Hello,
I am trying to run the flash_partitioning_s32k144 example code, i am running it from RAM and check the data changes in the memory.
After i run the code, the program is entering default isr.
I checked using the breakpoint, it is happening after the erase command is given.
Can someone help me with this issue?
Thanks,
Jeevan
The FlexNVM memory is partitioned to EEPROM use and is blocked for some erase commands (Erase Sector and Erase Block). As a consequence, loading the program to flash memory may fail on some debuggers.
Please perform a mass erase operation on Flash to remove this partitioning after running the example to be able to update your application on target.
Hi @Senlent
thanks for the reply,
Actually, the code is issuing the erase all block command(mass erase) before partitioning the FlexNVM.
But after that instruction, the program is entering the default isr in startup.s file.
Can you please check with this?
Also, i had another question; Even if I use the INT_SYS_DisableIRQ command, it tends to enter default isr. Why is that so?
I test this demo on myside,run it from RAM, it works on myside.
My chip is restored to the factory state through mass erase, if it fails, then you may have partitioned it before
When the Default ISR is called it means that you missed to put a handler in your project, for example, you enable a interrupt but you don't have a handler that attends this interrupt。
INT_SYS_DisableIRQ masks the specified interrupt, not all interrupts, which means that there may be other interrupts.
Hey @Senlent ,
Thanks for the reply.
Sorry for the Typo, I meant INT_SYS_DisableIRQGlobal was used in the program to avoid entering default isr but it is still entering.
Actually, i am using OpenSDA USB for debugging, Can I know how can I do the mass erase operation to proceed as you say?
You are just testing this demo, there is no need to restore to factory defaults.
1.You can update OpenSDA to J-Link, there are many related questions in the forum.
2.This still happens for some non-maskable interrupts.
I suggest that you carefully read the FLASH-related application manuals before performing practical operations.
AN12130: