• slider image 319
  • slider image 320
  • slider image 321
  • slider image 322
  • slider image 323
  • slider image 324
:::


Browsing this Thread:   1 Anonymous Users






Re: PIC18 XC8編譯問題
#2
版主
版主


查看用戶資訊
剛查了XC8 User's Guide v2.x 。新版本的 XC8 已經不再支援 24-bit 的浮點數。查看錯誤訊息可以看到:

(1426) 24-bit floating point types are not supported; * have been changed to 32-bits
(Driver)
Floating-point types must be 32-bits wide to conform to the CCI Standard. These types
will be compiled as 32-bit wide quantities.

發表於: 7/30 11:13
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


PIC18 XC8編譯問題
#1
新會員
新會員


查看用戶資訊
目前開啟一個已完成的專案,進行編譯時出現錯誤如下(擷取一部分)
make[2]: *** [build/default/production/mcc_generated_files/pin_manager.p1] Error 1
make[2]: *** [build/default/production/mcc_generated_files/uart1.p1] Error 1
nbproject/Makefile-default.mk:203: recipe for target 'build/default/production/mcc_generated_files/pin_manager.p1' failed
(908) exit status = 1
nbproject/Makefile-default.mk:211: recipe for target 'build/default/production/mcc_generated_files/uart1.p1' failed
::: error: (2047) 24-bit floating point types are not supported when compiling in C99
(908) exit status = 1
nbproject/Makefile-default.mk:227: recipe for target 'build/default/production/mcc_generated_files/pwm5.p1' failed
make[2]: *** [build/default/production/mcc_generated_files/pwm5.p1] Error 1
::: error: (2047) 24-bit floating point types are not supported when compiling in C99
(908) exit status = 1
make[2]: *** [build/default/production/mcc_generated_files/uart2.p1] Error 1
nbproject/Makefile-default.mk:219: recipe for target 'build/default/production/mcc_generated_files/uart2.p1' failed
::: error: (2047) 24-bit floating point types are not supported when compiling in C99
make[2]: *** [build/default/production/mcc_generated_files/tmr2.p1] Error 1


因為專案是完成的,所以在找原因,用了不同電腦開啟,編譯結果不同,
相同專案,不同電腦都使用MPLABX開啟,一個編譯OK,一個編譯錯誤,
OK電腦的PACK和XC8版本:
PIC18F-DFP = 1.3.84
XC8 = V1.45

編譯錯誤的PACK和XC8版本:
PIC18F-DFP = 1.4.87
XC8 = V2.32
但若是建立一個新的相同MCU的專案,則編譯OK

1. 請問編譯錯誤是編譯器的問題嗎?
2. 為何新版編譯器無法向下相容?需要什麼設定嗎?

Attach file:



gif  PIC18F編譯錯誤.GIF (30.20 KB)
74357_6100e56041585.gif 1379X659 px

發表於: 7/28 13:09
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部







You can view topic.
不可以 發起新主題
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create PDF files.
You cannot get print page.

[進階搜尋]


:::

Microchip連結

http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=2
http://elearning.microchip.com.tw/modules/tad_link/index.php?cate_sn=1
https://page.microchip.com/APAC-PrefCenters-TW.html
http://www.microchip.com/
http://www.microchip.com/treelink
http://www.microchipdirect.com/
http://www.microchip.com.cn/newcommunity/index.php?m=Video&a=index&id=103
http://www.microchip.com.tw/Data_CD/eLearning/index.html
http://www.microchip.com.tw/RTC/RTC_DVD/
https://www.microchip.com/development-tools/
[ more... ]

Microchip CAE 空中教室

教育訓練中心

課程 - 台北教育訓練中心
課程 - 新竹教育訓練中心
課程 - 高雄教育訓練中心
教育訓練中心介紹
購買 - 實驗工具
臺灣實驗板介紹與資源