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?
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 ,
what should i need to do recover from this?
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
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?
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:
Please review these conditions to determine which one might apply to your case.
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.