Default ISR Issue Flash memory on s32k146

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Default ISR Issue Flash memory on s32k146

41件の閲覧回数
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.

タグ(2)
0 件の賞賛
返信
1 返信

25件の閲覧回数
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 件の賞賛
返信