capiman / lpc21isp

lpc21isp - Portable command line ISP for Philips LPC family and Analog Devices ADUC70xx
68 stars 57 forks source link

-verify fails depending on SYSTEMREMAP register #18

Open redfern314 opened 8 years ago

redfern314 commented 8 years ago

I'm flashing an LPC1769 using lpc21isp. The following error comes up consistently when using -verify:

Sector 0: ..............................................................................................Wrong answer on Compare-Command
COMPARE_ERROR: Source and destination data not equal.

The flashed code works fine. The error is presumably due to the fact that for certain values of the SYSTEMREMAP register, the bottom 512 bytes (0x000 - 0x200) are re-mapped for the boot ROM or RAM. http://docs.lpcware.com/lpc800um/RegisterMaps/syscon/r-SYSMEMREMAP.html

Not sure which chips this affects, but it might be prudent to avoid comparing the first 512 bytes, instead of the first 64 bytes, for relevant chips.