digidotcom / DCRabbit_9

This repository is the Open Source release of the libraries and sample code from Dynamic C 9, an integrated development environment for Digi International's embedded systems based on the Rabbit 2000 and 3000 microprocessors.
http://www.digi.com
Mozilla Public License 2.0
10 stars 11 forks source link

extract_flash.c will fail for large programs on dual-256K flash boards #13

Open tomlogic opened 3 months ago

tomlogic commented 3 months ago

IIRC, the memory layout of dual flash boards places the UserBlock and System ID Block at the top of the first flash. I think this was to allow for storing data on the second flash, or possibly an alternate firmware image (downloader on first flash, application on second flash).

The current version of Samples/extract_flash.c doesn't take that mapping into account, and won't be able to dump a large firmware image that skips over the UserBlock and System ID Block.