编译环境CW10.6.4,使用PE,在0x400定义变量报错
.ld文件部分代码
m_cfmprotrom (RX) : ORIGIN = 0x00000400, LENGTH = 0x00000010
.cfmprotect :
{
. = ALIGN(4);
KEEP(*(.cfmconfig)) /* Flash Configuration Field (FCF) */
. = ALIGN(4);
} > m_cfmprotrom
我在main.c中定义
const __attribute__ ((section(".cfmconfig"))) char flash_config[] = {0x00};
提示4个错误
demo.elf section `.cfmprotect' will not fit in region `m_cfmprotrom'
region `m_cfmprotrom' overflowed by 4 bytes
求指点,多谢啦~
|