s32K31x bootloader problem

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

s32K31x bootloader problem

957 Views
xsong
Contributor I

After using bootlaoder to flash the app code, I found that it would enter HardFault_Handler, but not when using s32ds to flash. I also exported the hex of the two different flashing methods into the memory and compared them. I found that they were exactly the same, but the one that was flashed using boot would enter HardFault_Handler after restarting.

0 Kudos
Reply
3 Replies

913 Views
xsong
Contributor I
I found that reading the RAM value will cause entering HardFault_Handler
0 Kudos
Reply

947 Views
xsong
Contributor I

Hi s32K31x bootloader problem Daniel

Thank you very much, I want to ask you why this happened..

Regards,

xsong

0 Kudos
Reply

881 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @xsong 

most likely, the SRAM is not initialized. These are typical symptoms.

From reference manual:

lukaszadrapa_0-1730957530912.png

You can find something like this in startup code:

lukaszadrapa_1-1730957548309.png

And the same for ITCM and DTCM memories... So, check how it is done in your bootloader.

Regards,

Lukas

 

 

0 Kudos
Reply