32.12 Recovery mode And Functional Reset

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

32.12 Recovery mode And Functional Reset

782 Views
FabioG
Contributor III

Hi There,

I read a lot of posts and about It.

I can disable Reset by modify DCM-DCRWP1 or (more unsafe) trigger IPMC_RGM->FREC= 0xF before each functional reset.

But I read  from RM 32.12 Recovery mode that also, for example "SBAF does not boot the application" or other cases listed causes the VTOR = 2040_0100 address.

I notice in this case PC = 0x2040_012E and stack pointer SP= 0x2040_200 that are all wrong and they are in the middle of my sram Memory! and also PC loops on 0x2040_012e endless!

I don't know if I need to fill any VT code on  2040_0100 but all is stucked !

HSE is skipped and sbaf loads directly my application code.

can you help Me ?

Best Regards 

Fabio 

0 Kudos
Reply
1 Reply

742 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @FabioG 

This is called JTAG based recovery mode. You are not supposed to load own code to the RAM, the wfi and endless loop is written there by SBAF. The purpose of this recovery mode is to put the device to some defined state when user is allowed to attach a debugger and take appropriate actions (like re-program application, check the content of flash, change configuration or whatever).
If you want to execute own code automatically in this situation, you can use HSE and its Secure Recovery Mode. See HSE firmware reference manual for details.
Or something similar - if you want to execute specific code when your application is corrupted, see:
https://community.nxp.com/t5/S32K/How-to-enable-the-rollback-function-of-Hse-AB-SWAP-on-S32K3/m-p/21...

Regards,
Lukas

0 Kudos
Reply