S32k324 Error in flashing program

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

S32k324 Error in flashing program

518 Views
AntoZ
Contributor II

Hi there, 

I'm working on s32k324 board , during debugging the MCU got stuck at some memory , whatever i tried with resume and stop in debug option its stuck at same memory.

 

Can't able to flash new program into the device , Error in flashing  message from debugger.

I want to recover my device from this,

1.How can i recover my device to work with that?

2.is anything option available to erase the whole flash memory option?

0 Kudos
Reply
5 Replies

511 Views
AntoZ
Contributor II

Update for above issue

Core 0 stuck at memory "0x2040012e" 

This is the message at debug console 

"Program received signal SIGINT, Interrupt.

0x2040012e in ?? ()"

 

i checked in Disassembly window at that address ,

AntoZ_0-1751633120859.png

 

what should i need to do recover from this?

 

0 Kudos
Reply

450 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @AntoZ 

If your device is stuck executing code at address 0x20400100 or a similar location, it may have entered Recovery Mode. To confirm this, check bit 5 of the HSE_CONFIG_GPR3 register at address 0x4039C028. This bit indicates whether the SBAF is booting the application cores in Recovery Mode.

Recovery Mode is designed to help the host recover from abnormal situations. There are two types of recovery modes, Secure Recovery Mode and JTAG-Based Recovery Mode. For more detailed information, refer to section 2.6.1.3 (Recovery Mode) of the HSE_B Firmware Reference Manual, Rev. 2.5, and section 32.12 (Recovery Mode Sequence) of the S32K3xx Reference Manual, Rev. 10.

 

BR, VaneB

0 Kudos
Reply

422 Views
AntoZ
Contributor II

Hi @VaneB 

I check the registers at 0x4039C028 and i think it is not in recovery mode but i'm not sure, could you confirm that.

and what is the way to recover this chip?

 

AntoZ_0-1752143340548.png

 

0 Kudos
Reply

378 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @AntoZ 

Thank you for sharing the value at address 0x4039C028. That confirms your device is currently in Recovery Mode.

According to Section 2.6.1.3 of the HSE_B Firmware Reference Manual (Rev. 2.5), the device can enter Recovery Mode under the following conditions:

  • IVT is not present or corrupted.
  • There are 8 consecutive functional or destructive resets.
  • Secure boot authentication of the application image failed.

Please review these conditions to determine which one might apply to your case.

0 Kudos
Reply

420 Views
AntoZ
Contributor II

I attached the console output while I tried to flash new program. 

And i tried to flash my code and the project created from scratch ,

same console output for both code.

0 Kudos
Reply