blhost without 5 seconds delay

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

blhost without 5 seconds delay

跳至解决方案
1,339 次查看
jh0
Contributor IV

I am using ROM blhost for flashing over USB K32L2A31 device, and it is working fine. When reset button is pressed program is started, when NMI button is pressed device enter to bootloader mode. I just don't like every time 5 seconds delay after firmware is updated. In

I know that changing original boot configuration can lock device, so I am asking here what should I change in default SDK setup just to disable 5 seconds delay after bootloader reset command, and leave everything as it is. In Kinetis Bootloader Reference Manual pdf there is 5 second in reset command description but not how and if this can be changed.

The reset command can also be used to switch boot from flash after successful flash
image provisioning via ROM bootloader. After issuing the reset command, allow 5
seconds for the user application to start running from Flash.

/* Flash Configuration */
.section .FlashConfig, "a"
.long 0xFFFFFFFF
.long 0xFFFFFFFF
.long 0xFFFFFFFF
.long 0xFFFF3DFE

Reards,

Josip

0 项奖励
回复
1 解答
1,329 次查看
jingpan
NXP TechSupport
NXP TechSupport

Hi jh0,

No, the 5's peripheral waiting time can't change. It is defined in ROM code, not in address 0x400. If you refer to. for example, K64's flashloader demo, you can see BL_DEFAULT_PERIPHERAL_DETECT_TIMEOUT in bootloader_config.h. K32L2A's ROM bootloader has similar code.

 

Regards,

Jing

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,330 次查看
jingpan
NXP TechSupport
NXP TechSupport

Hi jh0,

No, the 5's peripheral waiting time can't change. It is defined in ROM code, not in address 0x400. If you refer to. for example, K64's flashloader demo, you can see BL_DEFAULT_PERIPHERAL_DETECT_TIMEOUT in bootloader_config.h. K32L2A's ROM bootloader has similar code.

 

Regards,

Jing

0 项奖励
回复