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.

TMS320F280049: TMS320F280049: 将程序分到指定的flash区间运行

Part Number: TMS320F280049

您好,

       我想把一段程序放入指定的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)中。

工程设置

请问我该如何修改?