S32K146 BOOTLOADER

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

S32K146 BOOTLOADER

跳至解决方案
1,662 次查看
kun_wang
Contributor II

my bootloader program jump twice time,then it can jump to app,but i do not know where the problem. and my bootloader program size is about 0xf000, in my bootload i use flash address:0x16000-0x16008 8bytes to store a flag,but when i write flag in this address, bootload cannot jump into app.please help me to solve my question, thank you advance.

0 项奖励
回复
1 解答
1,506 次查看
kun_wang
Contributor II

thanks for your answer. the start address of the bootloader is 0,application is 0x18000,i have disabled interrupts before the jump.

yesterday i found that when i write 8 bytes the flash in 0x16000, the application can not run. I think bootloader has already jump into application,but application didn't run.when 0x16000 data is 0xFF,the application run ok. i donot know whethe the flag can stop the APP startup progress.

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,506 次查看
dianabatrlova
NXP TechSupport
NXP TechSupport

Hello,

What is the start address of the bootloader and application?

Have you disabled interrupts before the jump?

Thank you.

Best regards,

Diana

0 项奖励
回复
1,506 次查看
kun_wang
Contributor II

 i found the reason :read flash make the problem, i use  ((*(__IO uint32_t*)(0x16000))) to read flash, but it can cause a

 DefaultISR:
    b       DefaultISR

0 项奖励
回复
1,507 次查看
kun_wang
Contributor II

thanks for your answer. the start address of the bootloader is 0,application is 0x18000,i have disabled interrupts before the jump.

yesterday i found that when i write 8 bytes the flash in 0x16000, the application can not run. I think bootloader has already jump into application,but application didn't run.when 0x16000 data is 0xFF,the application run ok. i donot know whethe the flag can stop the APP startup progress.

0 项奖励
回复