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.

#163-D unrecognized #pragma



CCS6 编译时报警告,无法识别#pragma 

在PAGE1里开辟了一个空间MYRAM

PAGE 1 :   /* Data Memory */
           /* Memory (RAM/FLASH/OTP) blocks can be moved to PAGE0 for program allocation */
           /* Registers remain on PAGE1                                                  */
   BOOT_RSVD   : origin = 0x000000, length = 0x000050     /* Part of M0, BOOT rom will use this for stack */
   RAMM0       : origin = 0x000050, length = 0x0003B0     /* on-chip RAM block M0 */
   RAMM1       : origin = 0x000400, length = 0x000400     /* on-chip RAM block M1 */
   RAML2       : origin = 0x008C00, length = 0x000400     /* on-chip RAM block L2 */
   RAML3       : origin = 0x009000, length = 0x000500     /* on-chip RAM block L3 */
   MYRAM    : origin = 0X009500, length = 0x000500
   FLASHB      : origin = 0x3F4000, length = 0x002000     /* on-chip FLASH */

对应的SECTION如下:

   .econst             : > FLASHA      PAGE = 0
   .switch             : > FLASHA      PAGE = 0
   .MYSECTION   :{} > MYRAM  PAGE 1
   /* Allocate IQ math areas: */
   IQmath              : > FLASHA      PAGE = 0            /* Math Code */
   IQmathTables        : > IQTABLES,   PAGE = 0, TYPE = NOLOAD
主函数里定义如下:
#pragma Data_SECTION(Pwm_Duty_Test,".MYSECTION");
int Pwm_Duty_Test = 500;
int i = 0;
编译有警告,且int Pwm_Duty_Test地址也不是我指定的。请问什么原因呢?