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.png
leo_cheng_1-1789995683683.png
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