I'm trying to use the flash NVM on a MC56F84452 both for data storage and EEPROM data.
Since I program some data on the data flash the problem is: when application starts it found the EEPROM not partitioned and then clears all the NVM block (which in turns clears my data ).
Eventually is there a way to prepare the data flash IFR filed with the linker command file or some other methods? The scope wuold be not to cause FlexNVM wiping at EEPROM partitioning.
Thanks for your help,
Solved! Go to Solution.
thanks for the example: it gives us some ideas on how to reach the goal!
Your example partitions the data flash at startup (if enabled, right :-) ) but we were looking for a "pre-partitioned" data flash that can be downloaded to the memory during programming time (with elf or s-record to be clear): this way the very first time the CPU is powered up it recognizes the partition code already stored during the downloading phase and then the program partition command will not be necessary.
I know it seems a forcing against the normal operations flow described in the FlexNVM user manual: at now the only one solution found is to download the data on data flash after having it partitioned by the code as you've shown in your example.
Anyway thanks for the support,