JumpAppFrom Boot ERROR

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

JumpAppFrom Boot ERROR

843 Views
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 Kudos
Reply
4 Replies

826 Views
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 Kudos
Reply

816 Views
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 Kudos
Reply

805 Views
liangliu
Contributor I

The following is the FBL VTOR Offset.

liangliu_1-1704436029416.png

 

0 Kudos
Reply

787 Views
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 Kudos
Reply