S32K3 Bootloader

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

S32K3 Bootloader

跳至解决方案
258 次查看
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 项奖励
回复
1 解答
194 次查看
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

在原帖中查看解决方案

1 回复
195 次查看
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