JumpAppFrom Boot ERROR

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

JumpAppFrom Boot ERROR

1,947件の閲覧回数
liangliu
Contributor I

Hello Team,

Currently I'm working in bootloader development  activity for S32K116. I've referred the SDK of Unified bootloader Demo source .The  App entrypoint is 0x0000F204.When the  pc jump to app from boot ,it was stucked at defaultISR. also I`ve disabled watchdog.

Boot跳转APP异常.png

JumpApp.png

So, could someone help me in fixing the issue with proper solution. thanks

  

0 件の賞賛
返信
4 返答(返信)

1,930件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @liangliu,

This is probably a fault exception.

Add this function into the bootloader.

void HardFault_Handler(void)
{
   while(1){}
}

Before the jump, can you read the flash memory of the application code?

How is the VTOR of the application alligned?

https://developer.arm.com/documentation/dui0662/b/Cortex-M0--Peripherals/System-Control-Block/Vector...

 

Regards,

Daniel

 

0 件の賞賛
返信

1,920件の閲覧回数
liangliu
Contributor I

Hi,@danielmartynek,

 I read the flash memory before the jump

liangliu_0-1704418952039.png

this is APP ISR table

liangliu_1-1704418990343.png

The following is the FBL interrupt vector table.

liangliu_3-1704419266522.png

 

 

0 件の賞賛
返信

1,909件の閲覧回数
liangliu
Contributor I

The following is the FBL VTOR Offset.

liangliu_1-1704436029416.png

 

0 件の賞賛
返信

1,891件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @liangliu,

I understand that the reset routine of the application is at 0xF610.

Can you open the memory in the disassembly window and to check if the routine is there before the jump?

danielmartynek_0-1704466531361.png

 

Regards,

Daniel

 

 

0 件の賞賛
返信