Description Resource Path Location Type
cannot find file DCMotor_TI C/C++ Problem
no valid memory range(NULL) available for placement of ".text" DCMotor_TI C/C++ Problem
program will not fit into available memory. run placement with DCMotor_TI C/C++ Problem
program will not fit into available memory. placement with DCMotor_TI C/C++ Problem
errors encountered during linking; "DCMotor.out" not built DCMotor_TI C/C++ Problem
囧:
你的.text段在当前的memory塞不下了,你加一个FLASH区域给.text段
Description Resource Path Location Type
cannot find file DCMotor_TI C/C++ Problem
no valid memory range(NULL) available for placement of ".text" DCMotor_TI C/C++ Problem
program will not fit into available memory. run placement with DCMotor_TI C/C++ Problem
program will not fit into available memory. placement with DCMotor_TI C/C++ Problem
errors encountered during linking; "DCMotor.out" not built DCMotor_TI C/C++ Problem
dongyang Zhao:
回复 囧:
加一个FLASH区域给.text段,这个怎么操作?
Description Resource Path Location Type
cannot find file DCMotor_TI C/C++ Problem
no valid memory range(NULL) available for placement of ".text" DCMotor_TI C/C++ Problem
program will not fit into available memory. run placement with DCMotor_TI C/C++ Problem
program will not fit into available memory. placement with DCMotor_TI C/C++ Problem
errors encountered during linking; "DCMotor.out" not built DCMotor_TI C/C++ Problem
Hardy Zhou:
回复 dongyang Zhao:
在cmd文件中,TI的例程一般都是默认使用FLASHA来存储代码
FLASHD : origin = 0x3F0000, length = 0x002000 /* on-chip FLASH */ FLASHC : origin = 0x3F2000, length = 0x002000 /* on-chip FLASH */ FLASHA : origin = 0x3F6000, length = 0x001F80 /* on-chip FLASH */
.cinit : > FLASHA PAGE = 0 .pinit : > FLASHA, PAGE = 0 .text : > FLASHA PAGE = 0
你需要把 FLASHA改为
FLASHA : origin = 0x3F4000, length = 0x003F80 /* on-chip FLASH */
因为实际还是有那么大的空间.
具体内存空间地址范围,可以参考规格书的memory mapping章节.
Description Resource Path Location Type
cannot find file DCMotor_TI C/C++ Problem
no valid memory range(NULL) available for placement of ".text" DCMotor_TI C/C++ Problem
program will not fit into available memory. run placement with DCMotor_TI C/C++ Problem
program will not fit into available memory. placement with DCMotor_TI C/C++ Problem
errors encountered during linking; "DCMotor.out" not built DCMotor_TI C/C++ Problem
Hardy Zhou:
回复 Hardy Zhou:
我上面的配置是F28027的,具体分配要参考对应芯片的内存地址范围