2414999_en-US

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

2414999_en-US

2414999_en-US

S32K314 get stuck at 0x2040012C WFI during HSE recovery in AB swap

Hello NXP Support Team,


I am testing HSE recovery in AB swap as following steps. Firstly, I use lauterbach to execute HSE FW erase to erase HW, then test the recovery process. The CPU always stops at at 0x2040012C WFI instruction after step 9 issue a functional reset, I need to power off, then power on to get out of this.  Could you please give some tips on what's going wrong? 

leo_cheng_0-1789995644535.pngleo_cheng_0-1789995644535.png

leo_cheng_1-1789995683683.pngleo_cheng_1-1789995683683.png


Re: S32K314 get stuck at 0x2040012C WFI during HSE recovery in AB swap

Hi @leo_cheng 


If it hangs at 0x2040012C after reset, it means that the device entered JTAG based recovery  mode. You can take a look at “2.6.1.3 Recovery Mode” section in the HSE-B Firmware reference manual.


If you want to recover using Lauterbach debugger, I wrote attached script which follows section “3.3.1  MU Installation Steps by Host in AB_SWAP Configuration”. It works for installation of the firmware on brand new device and it works for recovery when the firmware is erased completely or when there’s backup image in passive partition.


Regards,

Lukas

Tags (1)
No ratings
Version history
Last update:
Tuesday
Updated by: