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.
您好,
我想把一段程序放入指定的flash空间运行,做了如下的操作。
1、程序放入.MyCode段
#pragma CODE_SECTION (initEPWM, " .MyCode ")
void initEPWM(void)
{}
2、修改CMD文件
MEMORY
{
PAGE 0 :
MY_CODE : origin = 0x09B000, length = 0x003000 /* on-chip Flash */
}
SECTIONS
{
.MyCode : >> MY_CODE PAGE = 0, ALIGN(8)
}
编译完后,报#10247-D creating output section " .MyCode " without a SECTIONS specification
查map文件
该段程序放入了ram(RAMM0)中。
工程设置
请问我该如何修改?
我使用的是flash linker command file,其他程序正确被分到了flash区域,但是我自己分的.MyCode段被分到了ram,而不是我指定的MY_CODE区域。
您好
感谢您对TI产品的关注!为更加有效地解决您的问题,我们建议您将问题发布在E2E英文技术论坛上(e2e.ti.com/.../c2000-microcontrollers-forum),将由资深的英文论坛工程师为您提供帮助。