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
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!
解決済! 解決策の投稿を見る。
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
The FLASH_INFO2 & FLASH_INFO1 is decleared here.
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