• slider image 442
  • slider image 483
  • slider image 484
  • slider image 485
  • slider image 486
  • slider image 487
:::

論壇索引


Board index » All Posts (TSheng)




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

發表於: 2021/7/28 13:09
頂部


Re: MHGC 畫面橫向設計改為直向設計
#2
新會員
新會員


好的,謝謝回復

發表於: 2021/7/14 11:26
頂部


Re: MHGC 畫面橫向設計改為直向設計
#3
新會員
新會員


>>
如果原本的設計是橫向時, 想改為縱向就需要全部設計過,
另外如果是要把原來的橫向設計, 全部向右或是向左傾倒90度(文字也是).
就應該是對LCD輸出轉90度的配置來更改.


所以我現在只能朝以下兩個方向進行嗎?
1. 如果原本的設計是橫向時, 想改為縱向就需要全部設計過,
Generate Code以後,在各個檔案中將X=480,Y=272分別都改成X=272,Y=480,這樣對嗎?
2. "對LCD輸出轉90度的配置" → 這部分該如何做到呢?

Best Regards.

發表於: 2021/7/12 11:41
頂部


MHGC 畫面橫向設計改為直向設計
#4
新會員
新會員


Hi all,

我的LCD是480 x 272,
設計畫面時原本是橫向設計,

現在想要改成直向設計,
但Widget的原件(如Label、Button)在屬性列表中沒有旋轉90度的選項可編輯,

請問有辦法讓Widget的原件(如Label、Button)旋轉90度嗎?
或者我該如何對應直向畫面設計呢?



Best Regards.

發表於: 2021/7/12 8:50
頂部


Re: 如何讀取Lable字串
#5
新會員
新會員


參照:

Libra wrote:
既然有setString 當然也會有 getString
leString* getString(const leLabelWidget* _this)

leString string_Number1;
string_Number1 Screen0_LabelWidget0->fn->getString(Screen0_LabelWidget0);


感謝您

發表於: 2021/7/9 11:32
頂部


如何讀取Lable字串
#6
新會員
新會員


Hi, all

我使用MHGC,畫面配置完成後,編譯OK
目前要顯示Label內容,
有看到畫面配置宣告的程式碼中有程式可參考,如下
Screen0_LabelWidget0->fn->setString(Screen0_LabelWidget0, (leString*)&string_Number1);

顯示Number 1於LabelWidget0,沒問題

現在我想要反過來,讀取LabelWidget0的字串內容,
但找不到相關程式碼可參考。

請問該如何讀取LabelWidget0字串內容呢?

發表於: 2021/7/6 14:22
頂部


Re: 請問有USB HID的 Bootloader Application嗎?
#7
新會員
新會員


您好, 我現在用UART 測試,參照下網址PDF http://www.microchip.com.cn/newcommun ... /201907/5d31620e0d3bf.pdf 請問第13頁 在burn_app.bat 文件,文件内容如下 C:\Python27\python.exe C:\microchip\Harmony3_2\bootloader\tools\btl_host.py -v -i COM5 -d same7x -o 0x2000 -f sam_e70_xult.X.production.bin 我現在是改成 C:\Python37\python.exe C:\Microchip\harmony\Harmony\bootloader\tools\btl_host.py -v -i COM4 -d pic32mz_das_sk -a 0x1D000000 -f pic32mz_das_sk.X.production.bin pause 但點擊2下執行卻無第14頁的畫面,而是以下文字 C:\Microchip\Harmony\bootloader_apps_uart\apps\uart_bootloader\test_app\firmware\pic32mz_das_sk.X\dist\pic32mz_das_sk\production>C:\Python37\python.exe Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 21:26:53) [MSC v.1916 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> 因為我不確定bat檔內容格式是否正確,想請問一下 1. 我要如何改成PIC32系列呢? (我的MCU是PIC32MZ2064DAH169) 2. 此bat檔放的位置有限定要在哪個路徑下嗎? 謝謝

Attach file:



gif  1.GIF (26.79 KB)
74357_60bddc0d0200a.gif 1100X191 px

gif  2.GIF (12.79 KB)
74357_60bddc206027e.gif 978X161 px

發表於: 2021/6/7 16:39
頂部


請問有USB HID的 Bootloader Application嗎?
#8
新會員
新會員


目前要透過Bootloader來燒錄Application,
下記PDF檔中的13頁有UART Bootloader Application的作法(使用Python)
http://www.microchip.com.cn/newcommun ... /201907/5d31620e0d3bf.pdf

請問有USB HID Bootloader Application的作法嗎?
或者該如何改成USB HID Bootloader Application呢?
(使用Python)

發表於: 2021/6/4 15:54
頂部


Re: MPLAB 程式碼顯示問題
新會員
新會員



Attach file:



jpg  (0.00 KB)


發表於: 2019/7/25 10:32
頂部



(1) 2 »



:::

Microchip連結

https://www.facebook.com/microchiptechnologytaiwan/
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=13
https://mu.microchip.com/page/tmu
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/modules/tad_uploader/index.php?of_cat_sn=2
http://www.microchip.com.tw/Data_CD/eLearning/index.html
http://www.microchip.com.tw/RTC/RTC_DVD/
https://www.microchip.com/development-tools/
https://www.youtube.com/user/MicrochipTechnology
[ more... ]

教育訓練中心

!開發工具購買
辦法說明 [業界客戶] [教育單位]
----------------------------------
!校園樣品申請
辦法說明 [教師資格] [學生資格]
----------------------------------