I am using the MK10DX128VLH5 and would like to use its enhanced EEPROM (EEE) to store 4-byte data. I used CodeWarrior's Component Inspector to enable the EEPROM function. The Processor Expert did generated relevant methods, such as Cpu_SetFlexNVMPartition(). However, after I called this function in main(), it failed to partition the FlexNVM correctly.
- The returned code of Cpu_SetFlexNVMPartition() was not what is expected per the EEE configuration.
- FTFL_FCNFG is 02h, which means FlexRAM is available as traditional RAM only and EEE is not vailable.
- As a result, I was able to read from or write to FlexRAM (1400_0000h), but the data there were lost after power cycling.
I have attached my CodeWarrior (ver 10.6) project as a reference. Please kindly review and let me know how I can enable the EEE and store data there. I will be very appreciative if you could help at your earliest convenience. Thank you in advance.
Original Attachment has been moved to: EEE_Test.zip