New Firmware update flags in LPC82x UART Bootloader

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

New Firmware update flags in LPC82x UART Bootloader

跳至解决方案
1,421 次查看
trongthinh
Contributor IV

Attached file is LPC82x Uart Second bootloader. In file bootloader.c in project bootloader_example, there is a code line 

__RODATA(FLASH_INFO2) FW_CHECK_INFO_T boot_chk_info = {BLANK_VALUE_32B, BLANK_VALUE_16B, BLANK_VALUE_16B, BLANK_VALUE_32B};

And in main function

pastedImage_3.png

I think the highlighted line is always "FALSE" because boot_chk_info is a constant. Am I right? Please correct me if I am wrong!

标记 (2)
0 项奖励
回复
1 解答
1,350 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

HI

NO. this parameter is defined at address 0x00001F80, the default value is blank 0xFFFFFFFF. 

if the parameter “new_addr” is blank (i.e 0xFFFFFFFF). Blank value of the “new_addr” indicates the new firmware is not available.

in bootloader and user app, there is routine update_chk_info() which can update this parameter ( at 0x00001F80), thus it is not blank.

Jun Zhang

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,350 次查看
trongthinh
Contributor IV

The FLASH_INFO2 & FLASH_INFO1 is decleared here.

pastedImage_1.png

0 项奖励
回复
1,351 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

HI

NO. this parameter is defined at address 0x00001F80, the default value is blank 0xFFFFFFFF. 

if the parameter “new_addr” is blank (i.e 0xFFFFFFFF). Blank value of the “new_addr” indicates the new firmware is not available.

in bootloader and user app, there is routine update_chk_info() which can update this parameter ( at 0x00001F80), thus it is not blank.

Jun Zhang

0 项奖励
回复