Reply by kishoreseera June 17, 20022002-06-17
hi all,
Iam using the tms320vc5402 dsk. The flash memory chip on it is
M29w400T from STmicro electronics. I wrote the drivers for the flash
but unable to execute the functions properly. I am unable to get
whether Iam taking the base address of the flash properly and
implemented the functions as follows.
/************flash write function***********/
unsigned int FlashWrite(unsigned long ulOff, unsigned int uVal) {
return Base_Addr[ulOff] = uVal;
} and the flash read function as
unsigned int FlashRead(unsigned long ulOff) {
return Base_Addr[ulOff];
}

I tried the base address with all combination of block addresses. but
unable to read the correct manufacturers code and device code.
anybody can please tell me how to take the base address and whether i
should make any changes in the above functions.
Thanks in advance
regards
kishore



Reply by Vinodh Rathna N June 8, 20022002-06-08
Subject: RE to FLASH programming

** Proprietary **

hi kishore

The DSP 5402 has only onchip ROM and no flashEPROM.
If u c the signals going into the flash in the DSK kit it is thru CPLD so far i
have only used the FLASH UTILITY program to erase and write.The Flash in DSK5402
is AMD's AM 29 lv 400 bt.U have to refer to it's data sheet only,but since the
signals are thru the CPLD u may have to set some of its registera also.
U will find the logical flow of how to erase and write AM29lv400 bt in the
datasheet available in AMD site.

There is no FLASH in VC5402 only factory programed ROM is there. regards
vinodh



Reply by Brian C. Lane June 7, 20022002-06-07
On Fri, 07 Jun 2002 05:05:02 -0000, you wrote:

>hi all,
> Can anybody help me by providing a link or the material, where
>I can get the source code or algorithms for erasing and programming
>the flash on 5402. I know that there is flash utility to program
>flash. But I want to write the source code for programming flash.

The 5402 doesn't have any on-board flash. You might be referring to
the flash in the DSK board? Check with the manufacturer of the flash
used, their documents usually have examples that can easily be ported
to your target device.

Brian

-----------------
Brian C. Lane (KC7TYU) Programmer
www.shinemicro.com RF, DSP & Microcontroller Design



Reply by santosh kumar June 7, 20022002-06-07
--- kishoreseera <> wrote: > hi
all,
> Can anybody help me by providing a link or the
> material, where
> I can get the source code or algorithms for erasing
> and programming
> the flash on 5402. I know that there is flash
> utility to program
> flash. But I want to write the source code for
> programming flash.
> thanks in advance
> kishore
Hi,
I think,Let it be any DSP,but the basic algos for
clear/program or erase for the flash will be same,if
it is so,then u can refer to SPRU282 for the basic
algos,But the number of PULSES and DELAYS and enabling
of FLASH registers should be according to your DSP,u
should refer to your DSP datasheet.
I don't know whether this is correct or not,please
correct if not.
regards
A.santosh Kumar


Reply by kishoreseera June 7, 20022002-06-07
hi all,
Can anybody help me by providing a link or the material, where
I can get the source code or algorithms for erasing and programming
the flash on 5402. I know that there is flash utility to program
flash. But I want to write the source code for programming flash.
thanks in advance
kishore