结构体变量赋值的问题

2019-07-19 20:38发布

typedef struct
{
        uint8_t  ch_mode;//主机或从机模式
        uint8_t  register_flag;//设备注册标志
        uint16_t register_addr;
        uint8_t channel;
}CHANNEL_INFO;
#define LIGHT_CHANNEL_NUM                        3
CHANNEL_INFO LightChannelInfo[LIGHT_CHANNEL_NUM];//1
在主函数中加上变量的  LightChannelInfo[0].channel=1;
就编译不通过,提示的错误信息如下:
Error[Lp011]: section placement failed
          unable to allocate space for sections/blocks with a total estimated minimum size of 0x642 bytes (max align 0x1) in <[0x008000-0x009fff]> (total  

uncommitted space 0x63e).

Error while running Linker

开发环境是IAR,请问是哪里的问题,谢谢



友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。