11-04-2023, 05:09 PM
I went to copy my XML memory map for you to look at, and found the issue. I wasn't specifying the second flash area starting location correctly. It now works with the two flash areas as it should.
One other thing though that I noticed- The LPC802 is strange in that it reports 0x00 instead of 0xFF for an erased flash cell. I thought something was wrong when an erased page returned all zeros, but then I found this in the User Manual: "The blank (erased) state of a page flash memory is a logic 0." This seems to confuses EBlink when it checks to see if the sector is empty. Is there a way to specify all 0's indicates a blank sector rather than all 1's?
One other thing though that I noticed- The LPC802 is strange in that it reports 0x00 instead of 0xFF for an erased flash cell. I thought something was wrong when an erased page returned all zeros, but then I found this in the User Manual: "The blank (erased) state of a page flash memory is a logic 0." This seems to confuses EBlink when it checks to see if the sector is empty. Is there a way to specify all 0's indicates a blank sector rather than all 1's?