KL03Z32 -- how the ROM boot loader know the user application is valid or not

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

KL03Z32 -- how the ROM boot loader know the user application is valid or not

跳至解决方案
1,519 次查看
felixtsai
Contributor I

Hi, I am using KL03Z32 for our project. In Figure 11-2 in the Reference Manual (KL03 Sub-Family Reference Manual, Rev. 4, August, 2014), there is a judgement that "Is user application valid?". I would like to understand how the ROM boot loader know the user application is valid or not. It would be appreciated if someone can share the answer or give me a hint.

标签 (1)
0 项奖励
回复
1 解答
1,288 次查看
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Felix Tsai:

Please check the response in the next thread:

Re: how application got valid

If you have any doubt just let me know.


Regards!,
Jorge Gonzalez

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,289 次查看
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Felix Tsai:

Please check the response in the next thread:

Re: how application got valid

If you have any doubt just let me know.


Regards!,
Jorge Gonzalez

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复
1,288 次查看
felixtsai
Contributor I

Hi Jorge,

     Thanks for your reply. The thread you hinted is not the answer to my question. I have to implement the failsafe mechanism when the firmware update fails due to unstable power, such as the power is unintentionally unplugged when firmware update is in progress. From the reference manual, I understood how to make KL03Z32 boot from ROM bootloader when power on resets. But no information about how the ROM boot loader know the user application is valid or not, so that I cannot understand if Timeout detection is enabled or not. If I know how bootloader code check the user application is valid or not, I can control bootloader code to disable Timeout detection and stay in ROM bootloader, i.e. not jump to the corrupted user application in the flash memory.

    Felix.

0 项奖励
回复
1,288 次查看
joeygouly
Contributor IV

You should reserve an area of memory that the boot loader clears on start, and fills with a specific pattern on successful completion. I can't think of a good way to actually ensure the validity of the firmware otherwise.

0 项奖励
回复