Hello All,
I am currently trying to place my bootloader code written for S32K144 in the FlexNvM area and use FlexNvM as P-flash.
Linker file snapshot below:
Kamran_0-1608796184115.png
When I try to flash my code using "GDB PEMicro interface debugging" I get errors when I start Debugging session
Question 1: Is it a correct approach to make complete 64KB of FlexNvM as D-flash to run code from it?
Question 2: What should be the partition value that needs to be filled in advance debug option?
Note: I also tried "Emergency Kinetics Device recovery by full chip erase" but it didn't help.
Edit1:
Screenshot below shows the advance options set (0x0F0C: Set complete flexNvM as Dflash)
Kamran_0-1608816063018.png
After I did this change, I am now getting the following error:
Kamran_1-1608816161557.png
The main function of my bootloader is placed at 0x10000730 location.
The interrupt table is is Pflash at 0x000000, so the controller is trying to jump from pflash to flexNvM.
Am I doing something wrong or am I missing something?
Please help!
@lukaszadrapa