New Firmware update flags in LPC82x UART Bootloader

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

New Firmware update flags in LPC82x UART Bootloader

Jump to solution
1,086 Views
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!

Tags (2)
0 Kudos
Reply
1 Solution
1,015 Views
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

View solution in original post

0 Kudos
Reply
2 Replies
1,015 Views
trongthinh
Contributor IV

The FLASH_INFO2 & FLASH_INFO1 is decleared here.

pastedImage_1.png

0 Kudos
Reply
1,016 Views
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 Kudos
Reply