Re: PIC18F66K22-I/PT 奇怪現象

作者 hann_mh 於 2017年11月24日 18:06:43
不要以為新的比較好或比較穩定?

以下這段內含程式, 我用16F1947,用 XC8 1.21(pro) OK,
程式已經用到 ROM 99.7%, 所以才換 MCU移植程式.

18F66K22 用 XC8 1.21 complier OK,
18F66k22 用 XC8 1.41,1.44 會出現 fail

所以我還是只能說....... xc8 也要檢查一下版本 .

-----------------------------------------------------------------------------------

switch (Heater_Sio2_Mode){
case 1:
Power_On_Mode();
break;
//
case 2: // Mode 2 = Normal
Normal_Mode();
break;

case 3:
Load_Cell_Fail_Mode();
break;
//
case 4: //Load_Cell_Fail_Mode();
Unheating_Mode();
break;
//
case 5: // Fix time On.
Fix_Time_Mode();
break;
//
case 6: // Stop operation
Stop_Mode();
break;
//
default:
Load_Cell_Fail_Mode();
break;
}

----------------------------------------------------------------------------------------

main_Test.c:4515: warning: (520) function "_Write_To_Eprom" is never called
mcc_generated_files/memory.c:83: warning: (1498) pointer (FLASH_WriteByte@flashRdBufPtr) in expression may have no targets
mcc_generated_files/memory.c:87: warning: (1498) pointer (FLASH_WriteByte@flashRdBufPtr) in expression may have no targets
main_Test.c:678: warning: (759) expression generates no code

:0: error: (500) undefined symbols:

_Write_b_eep(dist/default/production\FE-SDB2_Test.X.production.obj) _Busy_eep(dist/default/production\FE-SDB2_Test.X.production.obj)

make[2]: *** [dist/default/production/FE-SDB2_Test.X.production.hex] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
(908) exit status = 1

來自: http://www.microchip.com.tw/newbb/viewtopic.php?forum=1&topic_id=21808&post_id=77269