主题中讨论的其他部分:UNIFLAASH
工具/软件:Code Composer Studio
您好,
我想在Herculus RM46x MCU中刻录一个代码。 我正在使用代码编辑器工作室。 当我在CCS中运行(调试)一个代码时,它将保留在MCU中。但 当我拔下MCU时,它将被擦除。 我怎么能把代码刻录在MCU里,这样如果我以后再把它插上,它就会保留在MCU里。谢谢
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.
您好,John:
感谢您的回复。这是我的链接器文件。
/*------------------ */
/* sys_link.cmd */
/**/
/*
/**/
/*------------------ */
/*用户代码开始(0)*/
/*用户代码结束*/
/*------------------ */
/*链接器设置*/
--retain="*(.intvecs)"
/*用户代码开始(1)*/
/*用户代码结束*/
/*------------------ */
/*内存映射*/
内存
{
引导程序(X):origal=0x0万 length=0x0.002万
FLASH0 (RX):Orig=0x0.002万 length=0x0013FFE0
stacks (RW):origid=0x800万 length=0x0.15万
RAM (RW):Orig=0x800.15万 length=0x0002EB00
AJSM (RX):origal=0xF0万 length=0x0.001万
/*用户代码开始(2)*/
/*用户代码结束*/
}
/*用户代码开始(3)*/
/*用户代码结束*/
/*------------------ */
/*区段配置*/
章节
{
intvecs :{}>引导程序
text :{}> FLASH0
const :{}> FLASH0
.cinit :{}> FLASH0
Pinit :{}> FLASH0
.bss :{}> RAM
数据:{}> RAM
sysmem:{}> RAM
iajsm :{}> AJSM
/*用户代码开始(4)*/
log_data : start( ulLOGStartAddr ), end( ulLOGEndAddr )> RAM
/*用户代码结束*/
}
/*用户代码开始(5)*/
/*用户代码结束*/
/*------------------ */
/*其他*/
/*用户代码开始(6)*/
/*用户代码结束*/
/*------------------ */