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.

CC3200程序大小

Other Parts Discussed in Thread: CC3200

当程序大于67k左右就会报以下错误

62 398 bytes of readonly code memory
5 738 bytes of readonly data memory
111 870 bytes of readwrite data memory

icf文件定义

define region FLASH = mem:[from 0x01000000 to 0x01010000];
if(CC3200_ES_1_2_1)
{
define region SRAM = mem:[from 0x20000000 to 0x20030000];
}
else
{
define region SRAM = mem:[from 0x20004000 to 0x20030000];
}

此时CC3200_ES_1_2_1=0,如果把CC3200_ES_1_2_1=1空间会变大,编译通过;但是又有一个问题,程序在线仿真可以正常运行,下载到flash后就不行!芯片是CC3200R1M2。

请问:

1、为什么程序是在67K左右就不可以编译过,按照CC3200_ES_1_2_1=0的空间大小是完全够的。

2、仿真和下载运行不同原因?

3、按照我们使用的芯片CC3200R1M2,应该是不用定义CC3200_ES_1_2_1,是有240k左右,但是同样下载后也无法正常运行?

if (!isdefinedsymbol(CC3200_ES_1_2_1))
{
define region SRAM = mem:[from 0x20004000 to 0x2002FFFF];
}
else if(CC3200_ES_1_2_1)
{
define region SRAM = mem:[from 0x20000000 to 0x2002FFFF];
}
else
{
define region SRAM = mem:[from 0x20004000 to 0x2002FFFF];
}