Hi Keith,
Do you have your project working? I am using the MK10DX128, and I'm having a heck of a time storing to NVM and then reading it back. I have EEPROM defined from 0x14000000 to 0x140003FF and from 0x14000400 to 0x140007FF. Ultimately, I'm just trying to read a word back from 0x14000040. I'm in debug mode.
Writing like this seems to work:
#define WORD_VALUE_ADDR 0x14000040
EEEWrite(address, 0x02, value);
But everything I've tried to read data back seems to give me a hard fault:
value = READ8(0x14000040); --> FAULT
value = *((unsigned char *)0x14000040); --> FAULT
value = *((unsigned char *)WORD_VALUE_ADDR ); --> FAULT
value = *((uint16 *)WORD_VALUE_ADDR ); --> FAULT
Where can I find a simple EEERead(address, size)???
Let me know if you've figured this out.
Thanks,
Jonathan