New Firmware update flags in LPC82x UART Bootloader

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

New Firmware update flags in LPC82x UART Bootloader

ソリューションへジャンプ
1,006件の閲覧回数
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 解決策
935件の閲覧回数
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 返答(返信)
935件の閲覧回数
trongthinh
Contributor IV

The FLASH_INFO2 & FLASH_INFO1 is decleared here.

pastedImage_1.png

0 件の賞賛
返信
936件の閲覧回数
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 件の賞賛
返信