s32K31x bootloader problem

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

s32K31x bootloader problem

950 次查看
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 项奖励
回复
3 回复数

906 次查看
xsong
Contributor I
I found that reading the RAM value will cause entering HardFault_Handler
0 项奖励
回复

940 次查看
xsong
Contributor I

Hi s32K31x bootloader problem Daniel

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

Regards,

xsong

0 项奖励
回复

874 次查看
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 项奖励
回复