Hello all,
I face a problem that data flash (part of FlexNVM) is deleted during flash partitioning command 0x80 (PGMPART). I would like to flash a code to the code flash and also data to the data flash during production flashing via JTAG interface (e.g. J-link from Segger). But when the code is executed first time, it recognize that flash is not partitioned and executes flash partitioning command 0x80 (PGMPART) which erases complete FlexNVM.
I have tried also the opposite approach. I have flashed code doing flash partitioning, started this code and then flashed the data to data flash. It works, but only when I erase only sectors in the range 0x10000000 - 0x1005FFFF. When I erase more, the partitioning is corrupted and must be repeated on the next code execution. It makes sense to me. Sectors from 0x10060000 are probably used for EEE backup (64KB). I would like to ask whether this approach is save.
Thanks for any hints,
Libor Waszniowski
Hi, I would share screenshot from AN11983.
Flash partitioning itself needs to be executed from SRAM. Then you may store data to flash.