Hi,
I am using S32K116. the previews µC did not have CSEs feature but the new one has. And it is creating some trouble using the application.
SW is using whole size of FlexNVM as backup-EEEPROM and disables CSEs
FLASH_DRV_DEFlashPartition(&flashSSDConfig, 0x03, 0x08, 0x0u, false, true);
The problem is that if the µC is flashed for the first time with A SW, everything is fine. But if it gets erases with jLink and a B SW is flashed , it crashes on "FLASH_DRV_CommandSequence(pSSDConfig)" while executing "FLASH_DRV_DEFlashPartition".
After erasing the partitioning is gone and it seems it does not let that new B SW does the partitioning again.
To solve this problem, I erased the µC again and flashed A SW. until now it works perfectly with A SW. Then without erasing A SW, I flashed B SW. in this way it does not need to partition FlexNVM and it works as expected.
Would you please explain me what the issue is here and how I could solve it? Why I am not able to flash a new SW after erasing the first on?
It seems to me eventhough CSEs is not activated, but it still does some work. It saves some key depend on the first SW "A" , and does not let any other SW to partition FlexNVM except A SW. Am I right?
Thank you and have a nice holidays.
Best regards,
Leila