JumpAppFrom Boot ERROR

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

JumpAppFrom Boot ERROR

2,054 次查看
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 回复数

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

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

2,016 次查看
liangliu
Contributor I

The following is the FBL VTOR Offset.

liangliu_1-1704436029416.png

 

0 项奖励
回复

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