作者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