AnsweredAssumed Answered

EEPROM partitioning in MK20DX256VLL10

Question asked by j b on Aug 22, 2016
Latest reply on Mar 1, 2017 by Carlos Candido

Hey guys. I've had a pile of boards made up using the MK20DX256VLL10 device. At the time the software for these were not complete and now I have found that whenever I call SetFlexRAMFunction() I get an ACCERR error in the FSTAT register. I am correctly checking if the device is already partitioned by checking that GetFlexNVMPartitionCode() returns FLEX_NVM_NOT_PARTITIONED, which it does. I have tried the erase and unlock kinetis commands using a segger Jlink. Both yield the same results.

 

In the MK20DX256VLH7 device, which I have had the EEPROM working on, this method works.

 

Looking deeper into it I notice that in the table: 'Flash Commands by Mode' in the datasheet: http://www.nxp.com/files/32bit/doc/ref_manual/K20P100M100SF2V2RM.pdf?fasp=1&WT_TYPE=Reference%20Manuals&WT_VENDOR=FREESCALE&WT_FILE_FORMAT=pdf&WT_ASSET=Documentation&fileExt=.pdf the usual 0x80: Program Partition command is missing.

 

Has the MK20DX256VLL10 device got a unique way to partition the EEPROM? The device specification clearly states a 4kB potential EEPROM space: https://www.nxp.com/webapp/search.partparamdetail.framework?PART_NUMBER=MK20DX256VLL10

 

Any pointers to how to create/use the EEPROM space in this device would be much appreciated

 

Many thanks,

Joshua

Outcomes