flash_partitioning_s32k144 program entering default isr.

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

flash_partitioning_s32k144 program entering default isr.

2,641件の閲覧回数
Jeevansagar
Contributor III

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.

Jeevansagar_0-1688636019129.png

Can someone help me with this issue?

 

Thanks,

Jeevan

 

 

0 件の賞賛
返信
5 返答(返信)

2,620件の閲覧回数
Senlent
NXP TechSupport
NXP TechSupport

Hi@Jeevansagar

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.

0 件の賞賛
返信

2,611件の閲覧回数
Jeevansagar
Contributor III

Hi @Senlent 

thanks for the reply,

Actually, the code is issuing the erase all block command(mass erase) before partitioning the FlexNVM.

Jeevansagar_0-1688701532312.png

 

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?

 

0 件の賞賛
返信

2,598件の閲覧回数
Senlent
NXP TechSupport
NXP TechSupport

Hi@Jeevansagar

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

Senlent_0-1688710936764.png

 

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.

0 件の賞賛
返信

2,595件の閲覧回数
Jeevansagar
Contributor III

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?

0 件の賞賛
返信

2,587件の閲覧回数
Senlent
NXP TechSupport
NXP TechSupport

Hi@Jeevansagar

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:

Senlent_0-1688714339431.png

 

 

0 件の賞賛
返信