s32K31x bootloader problem

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

s32K31x bootloader problem

964件の閲覧回数
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 返答(返信)

920件の閲覧回数
xsong
Contributor I
I found that reading the RAM value will cause entering HardFault_Handler
0 件の賞賛
返信

954件の閲覧回数
xsong
Contributor I

Hi s32K31x bootloader problem Daniel

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

Regards,

xsong

0 件の賞賛
返信

888件の閲覧回数
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 件の賞賛
返信