S32K3 Bootloader

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
300件の閲覧回数
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 解決策
236件の閲覧回数
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 返信
237件の閲覧回数
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