This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Re: Flash support for ea2648 target
- From: viren dot dobariya at aftek dot com
- To: "cetoni GmbH - Uwe Kindler" <uwe dot kindler at cetoni dot de>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Wed, 24 Feb 2010 05:02:09 -0600 (CST)
- Subject: Re: [ECOS] Re: Flash support for ea2648 target
- References: <20100224080602.GA2372@sg-desktop> <4B84F388.6070901@cetoni.de>
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?
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