This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Atmel DataFlash Driver and EB55
> > So I think the CYG_FLASH_DRIVER is the problem of all. Can't find it in
> > my fresh CVS-respository.
>
> You need to use the flash_v2 branch for io/flash. Until that branch
> gets merged into the trunk its going to be a bit messy using the
> DataFlash driver.
I did what you write in your other post,
but now can't compile redboot in cause of redboot/src/flash.c
can't find info - undeclared on line 1392
******snipp*****
bool
do_flash_init(void)
{
int stat, i;
cyg_flashaddr_t err_addr;
#ifdef CYGNUM_REDBOOT_FLASH_BASE
cyg_flash_info_t info;
#endif
if (!__flash_init) {
__flash_init = 1;
if ((stat = cyg_flash_init(diag_printf)) != 0) {
diag_printf("FLASH: driver init failed: %s\n",
cyg_flash_errmsg(stat));
return false;
}
#ifdef CYGNUM_REDBOOT_FLASH_BASE
stat = cyg_flash_get_info_addr(CYGNUM_REDBOOT_FLASH_BASE, &info);
#else
stat = cyg_flash_get_info(0, &info);
#endif
if (stat != CYG_FLASH_ERR_OK) {
diag_printf("FLASH: driver init failed: %s\n",
cyg_flash_errmsg(stat));
return false;
}
flash_start = info.start;
flash_end = info.end -1;
***** snipp ******
I think there is a general problem, cause this statement
#ifdef CYGNUM_REDBOOT_FLASH_BASE
cyg_flash_info_t info;
#endif
has no else-tree where a variable calls info is declared when
REDBOOT_FLASH_BASE isn't set.
Or am I wrong !?
Sebastian
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss