S32K3 Bootloader

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

S32K3 Bootloader

Jump to solution
293 Views
francescovico
Contributor III

Hello,

I'm writing a bootloader on micro S32K324.

To chatch the problem, I'm wrote a very simple bootloader and application.

The bootloader toggle slowly PDT5 pin and after that jump to application at address 0x00500000.

The application toggle PTD5 at main cycle (fast).

My problem it's that after jump to application there is no activity on PTD5 and the problem appear:

Break at address "0x502000" with no debug information available, or outside of program code.

Attached there is the bootloader S32K324_Boot_Test.zip and application  S32K324_TOGGLE.zip.

To flash boot and application I have used settings Boot_And_App_Flash.png

Thanks for the support!

0 Kudos
Reply
1 Solution
229 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @francescovico 

Just remove this line:

func = (((uint32_t)func) & 0xFFFFFFFEU);

You are not supposed to do that. The LSB must be set to 1 to indicate Thumb mode which is required on Cortex-M cores. Then it should work. 

Regards,

Lukas

View solution in original post

1 Reply
230 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @francescovico 

Just remove this line:

func = (((uint32_t)func) & 0xFFFFFFFEU);

You are not supposed to do that. The LSB must be set to 1 to indicate Thumb mode which is required on Cortex-M cores. Then it should work. 

Regards,

Lukas