Conditions for disabling time-out detection

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

Conditions for disabling time-out detection

跳至解决方案
1,680 次查看
masahirokiniwa
Contributor IV

Could you tell me conditions for disabling time-out, when I use KL03 ROM bootloader.

When boot-pin is asserted or user-application is not valided, ROM bootloader disable time-out detection.
It's wrote at KL03 reference manual Rev.4 P.113 Figure 11-2.
But ROM bootloader disabled time-out detection at another situation, when I ran it from my user application.

I ran bootloader by below sequence same as RM P.114 11.3.5.
// Read the function address from the ROM API tree.
runBootloaderAddress = **(uint32_t **)(0x1c00001c);
runBootloader = (void (*)(void * arg))runBootloaderAddress;
// Start the bootloader.
runBootloader(NULL);

And I set BCA as below.
tag = "kcfg"
enabledPeripherals = use only I2C
i2cSlaveAddress = 0x50
peripheralDetectionTimeout = 10000 (10s)

Could you tell me what happened for disabling time-out.

0 项奖励
回复
1 解答
1,401 次查看
BlackNight
NXP Employee
NXP Employee

Hi Masahiro,

if you call the bootloader explicitly from your application, there is no timeout. So if you call the bootloader from your application, it stays in the bootloader until you do a reset.

Timeout is only used if bootloader is entered automatically after reset.

See other details in Getting Started: ROM Bootloader on the NXP FRDM-KL03Z Board | MCU on Eclipse .

I hope this helps,

Erich

在原帖中查看解决方案

2 回复数
1,402 次查看
BlackNight
NXP Employee
NXP Employee

Hi Masahiro,

if you call the bootloader explicitly from your application, there is no timeout. So if you call the bootloader from your application, it stays in the bootloader until you do a reset.

Timeout is only used if bootloader is entered automatically after reset.

See other details in Getting Started: ROM Bootloader on the NXP FRDM-KL03Z Board | MCU on Eclipse .

I hope this helps,

Erich

1,401 次查看
masahirokiniwa
Contributor IV

Hi Erich

Thank you for your answer.

I saw a reason of this case.

.

Best regards,

M.Kiniwa

0 项奖励
回复