--- tags: keil --- # 將 BIN 檔加入 keil c slide: http://www.google.com/ {%hackmd ryr9Ug6sd %} --- 用於解決 user setting table 無法列入 .axf 檔, 透過 ICE 燒code 會遺漏的問題. - Input BIN file and output object file(.o) <user_table_rom.s> ```shell= ; Generate an object file AREA user_table_rom, CODE, READONLY INCBIN release\UserTable.bin END ``` - 將上一步所產生的 .o 編進最終BIN <std.sct> ```c= USER_TABLE_ROM 0x00060000 0x200 { ; load region size_region USER_TABLE_ROM 0x00060000 0x200 { ; load address = execution address user_table_rom.o (user_table_rom, +First) } } ``` :::info 注意要加上 "+First" 否則在輸出的 map 會發現被移除該 section ::: - 相關資料 - [keil分散加載文件sct寫法](https://blog.csdn.net/banruoju/article/details/53905362)