This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
AMD flash with CYGNUM_FLASH_SERIES
- From: Tim michals <tcmichals at yahoo dot com>
- To: ecos-discuss at ecos dot sourceware dot org
- Date: Thu, 8 Dec 2005 03:59:31 -0800 (PST)
- Subject: [ECOS] AMD flash with CYGNUM_FLASH_SERIES
I've have to flash parts in series, so the
CYGNUM_FLASH_SERIES is set to two:
#define CYGNUM_FLASH_INTERLEAVE (1)
#define CYGNUM_FLASH_SERIES (2)
#define CYGNUM_FLASH_WIDTH (16)
The problem is calculating the boot blocks, taken from
flash_am29xxxxx.inl:
// Is this in a "boot" sector?
if (flash_dev_info->bootblock) {
bootblocks = (cyg_uint32
*)&flash_dev_info->bootblocks[0];
while (*bootblocks != _LAST_BOOTBLOCK) {
if (*bootblocks++ == ((unsigned long)block
- (unsigned long)ROM)) {
len = *bootblocks++; // Size of first
sub-block
bootblock = true;
break;
} else {
int ls = flash_dev_info->block_size;
// Skip over segment
while ((ls -= *bootblocks++) > 0) ;
}
}
}
Looks like the calculation does not take into count
the second flash part?
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss