Default ISR Issue Flash memory on s32k146

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Default ISR Issue Flash memory on s32k146

482 Views
Kiruthika_S
Contributor I

Hi,

I’ve been working with Flash memory on the S32K146. Initially, I tested the Flash_Partitioning_S32K146 example program, and it worked fine. After that, I created a new application project and implemented my own program based on my requirements. However, in this new project, the code isn’t working — during the EraseAllBlock operation, it jumps to the default ISR.

Note: My main.c file works properly when used in the example project.

I have attached the code below.

Tags (2)
0 Kudos
Reply
1 Reply

466 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @Kiruthika_S,

I don’t recommend erasing all flash blocks from within the application.

Full flash erase operation must be executed from SRAM, since the core cannot erase flash while executing code from it, due to the Read-While-Write (RWW) limitation.

In the project you posted, I only see a Debug_FLASH session. To support execution from SRAM, you’ll need to configure a Debug_SRAM session.

Also, keep in mind that partitioning should only be done once during the device’s lifetime, ideally via the programmer before the application is loaded.

 

Regards,

Daniel

0 Kudos
Reply