This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
flash size calculation
- To: eCos mailing list <ecos-discuss at sources dot redhat dot com>
- Subject: [ECOS] flash size calculation
- From: Christoph Csebits <christoph dot csebits at frequentis dot com>
- Date: Tue, 11 Sep 2001 10:58:18 +0200
hi
in the most platforms start-address and end-address
of the flash devices are calculated like the following:
flash_info.start = (void *)CYGNUM_FLASH_BASE;
flash_info.end = (void *)(CYGNUM_FLASH_BASE+ (FLASH_NUM_REGIONS
* FLASH_BLOCK_SIZE * CYGNUM_FLASH_INTERLEAVE * CYGNUM_FLASH_SERIES));
Supposed i have an 8MB flash starting at 0xFF800000:
flash_info.start = 0xFF800000
flash_info.end = 0x00000000 (overflow).
Is it sufficient to decrement the end address by one?
regards, christoph
--