Please keep your replies on the mailing list so that all may benefit. On Wed, Feb 24, 2010 at 08:11:07AM -0600, Viren wrote: > hi, > In my board, SST39VF3201 flash is available. > and entry of this part is also in this file -->flash_sst_39vfxxx.inl > Then also it gives same error.
Just a guess (I doubt, but). It may be bus width issue or it may be a bus timing... It seems for me, there is an additional place to get info in HAL setup: hal/arm/lpc24xx/ea2468/current/src/ea2468_misc.c BTW, you can build eCos `flash1' test and walk through out SST flash init sections in GDB (using the built RedBoot without FLASH support): ;# chdir in a suitable place ecosconfig new ea2468 ecosconfig add flash ecosconfig tree make make -C io/flash/current tests arm-eabi-nm install/tests/io/flash/current/tests/flash1|grep flash It's good to know for break points (useful bps: cyg_flash_get_info, cyg_flash_init). Then try to investigate arm-eabi-gdb -nx install/tests/io/flash/current/tests/flash1 Sergei -- > Thanks, > Viren > > > > > > Please, do not top-post! > > http://en.wikipedia.org/wiki/Top_posting > > > > On Wed, Feb 24, 2010 at 05:02:09AM -0600, viren.dobar...@aftek.com wrote: > >> hi, > >> I check in sst_init function but my prog don't reach there. > >> so, i debug whole code and findout from where it generates error. > >> > >> it returns from cyg_"flash_init function" from > >> "ecos-3.0/packages/io/flash/v3_0/src/flash.c". > >> > >> In cyg_flash_init() function: > >> > >> #if (1 == CYGHWR_IO_FLASH_DEVICE) > >> // Make sure there is one device, otherwise we could end up > >> // accessing a non-existent cyg_flash_dev structure. > >> > >> if (&(cyg_flashdevtab[0]) == &cyg_flashdevtab_end) { > >> return CYG_FLASH_ERR_INVALID; > >> } > >> > >> >From above loop, it always return CYG_FLASH_ERR_INVALID. > >> > >> so that's why i get error given below. > >> FLASH: driver init failed: Invalid FLASH address. > >> > >> how to solve this error? > > > > As Uwe said, you have to check the real Manufacturer/Device IDs for your > > flash parts. > > > > So, first, take a glass and know what is "your" SST flash IC variant > > is fitted on the board. Download data sheet and know the Device ID code > > for the IC. If the codes will be different from the "Uwe's" parts, you > > have to change the SST flash define here: > > > > devs/flash/arm/ea2468/current/src/flash_ea2468.c > > > > The available SST 39VFXXX parts (=defines) are described here: > > > > devs/flash/sst/39vfxxx/current/include/flash_sst_39vfxxx.inl > > > > > > I hope this help. > > > > Sergei > > -- > > > >> please reply me. > >> > >> Thanks, > >> Viren > > > >> > Hi, > >> > > >> > the EA2468 target uses the generic CYGPKG_DEVS_FLASH_SST_39VF3201 > >> flash > >> > driver. You should check, if the flash device returns the proper > >> > manufacturer ID (0x00BF) and device ID (0x235B) in function sst_init() > >> > in flash_sst_39vfxxx.inl. Maybe the flash part changed? > >> > > >> > Uwe > >> > > >> > -- > >> > Before posting, please read the FAQ: > >> http://ecos.sourceware.org/fom/ecos > >> > and search the list archive: > >> http://ecos.sourceware.org/ml/ecos-discuss > > > > -- > > Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos > > and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss > > > > > -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss