podonoghue / usbdm-eclipse-makefiles-build

Current USBDM builds
GNU General Public License v2.0
15 stars 15 forks source link

MemoryDump: Add option to dump paged EEPROM/D-Flash memory for HCS12 devices #20

Closed gagnonpl closed 3 years ago

gagnonpl commented 3 years ago

HCS12 devices have paged EEPROM (also called "D-Flash" for the first few pages (00-1F on my device)). To select the EEPROM page, a register called EPAGE is set. It's the exact same mechanism as PPAGE for flash pages, except that the window in local address space where the EEPROM page is accessed is different. AFAIK only HCS12 devices can page eeprom, HCS08s only page flash.

The device on which I tested is a MC9S12XEP768MAG, of the MC9S12XEP100 family. I was able to read out all the EEPROM pages.

podonoghue commented 3 years ago

Dialogues are generated using wxFormBuilder. I have updated the .fbp file and reconciled generated .h and .cpp files with eeprom update which appears to have been done by hand. There should be no functional change - please check.