想請問CCS MSP430如何燒錄兩個code在不同區域?
型號:MSP430FR2433
bootloader燒入在0xC400 (length:0x1400)
app燒在0xD800 (length:0x2780)
是藉由lnk_msp430fr2433.cmd去更改嗎?
但如果燒完bootloader再燒錄app,app會不會把bootloader區塊清除掉?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
想請問CCS MSP430如何燒錄兩個code在不同區域?
型號:MSP430FR2433
bootloader燒入在0xC400 (length:0x1400)
app燒在0xD800 (length:0x2780)
是藉由lnk_msp430fr2433.cmd去更改嗎?
但如果燒完bootloader再燒錄app,app會不會把bootloader區塊清除掉?
方法二:先烧写bootloader,然后通过bootloader的方式把app烧写进去
目前使用上面的方法,link.cmd做以下修正
(Bootloader)
FRAM : origin = 0xC400, length = 0x1400
(APP)
FRAM : origin = 0xD800, length = 0x2780
編譯後產生出10kB的bin檔
==========================================
利用bootloader燒入APP(從0xD800)開始
0xFFFE~0xFFFF不覆蓋保留原本的(reset vector)
最後利用asm(" mov &0xD800,PC;");跳到APP
程式就不知道飛去哪了...轉跳到APP不是把PC指向APP起始位址嗎?