作者aifinsrc (henry)
看板Electronics
标题[问题] TI f2806 memory map问题
时间Mon Oct 11 20:51:58 2010
请问各位大大,
最近在写一段TI TMS320 f2806的程式, 当我宣告变数後(程式中的变数挺多的),
complier出现了这麽一段错误:
>> error: can't allocate .text, size 00006604 (page 0) in FLASHC (avail:
00006569)
>> warning: entry point other than _c_int00 specified
>> error: errors in input - ./Debug/Example_280xGpioSetup.out not built
>> Compilation failure
但,如果我把宣告的这几个变数,分开放在不同的地方宣告,这个error就没了(如下举例),
因此想问这个什麽原因造成的?又要如何去修改程式呢?如果您方便是否可以提供资料给我?!
例如:
case1.会出现错误的状况
unsigned char learning_bit=0,count=0,dpls_index=0,motor_sel,switch_dm37_input=0;
unsigned char vmo_sel=0,start_bit=0;
unsigned char enter=0,switch_count=0,count_tmp=0,byte0,door_hold_still=0;
unsigned char ss0,ss1,ss2,ss3,ss4,power_on_DO=3,initial_flag;
int u_current,v_current,w_current; // 我在测试用的
int amp_value=100; // 我在测试用的
case2.不会出现错误的状况
unsigned char learning_bit=0,count=0,dpls_index=0,motor_sel,switch_dm37_input=0;
unsigned char vmo_sel=0,start_bit=0;
int u_current,v_current,w_current; // 我在测试用的
unsigned char enter=0,switch_count=0,count_tmp=0,byte0,door_hold_still=0;
unsigned char ss0,ss1,ss2,ss3,ss4,power_on_DO=3,initial_flag;
int amp_value=100; // 我在测试用的
此外想请问.cmd档中, FLASHC,FLASHA与OTP分别代表什麽意义?
谢谢您的帮忙!!
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 59.117.115.57