0
will

我的環境

standard sdk 4.0a /8711AM

ram_1.p.bin   44kb

ram_2.p.bin    207kb

ram_3.p.bin    243kb

ram_all.bin  483kb

ota.bin         439kb

想要做OTA時使用update_ota_prepare_addr(void)得到預設的位址為0x80000

1.所以使用OTA更新fw是把ota.bin(439kb)從0x80000寫到 0x80000+439kb嗎?

2.打開#define SWAP_UPDATE  1         作用是甚麼?

 

 

以下是我的log

---------------------------------------------------------------------

===> Flash Init

===> Flash Init Done, vendor: MXIC

===> Flash Write, start 0, addr 78b34, offset 0, count 14888, buf 10003c00
clear signature
Write Binary....Done

<=== Flash Write Done 3a48

===> Flash Init

===> Flash Init Done, vendor: MXIC
OTA addr is 80000

===> Flash Write, start b000, addr 3a48, offset 0, count 211920, buf 10003c00
Write Binary....Done

<=== Flash Write Done 3ebe0

===> Flash Init

===> Flash Init Done, vendor: MXIC

===> Flash Write, start 0, addr 3ebe0, offset 0, count 237384, buf 10003c00
Write Binary....Done
signature 88167923

<=== Flash Write Done 78b34

will 編輯了提問