會員登陸
網站導航
最新下載
- 2020 Winter Eli... (Mon, 09-Dec-2019)
- Microchip 搭載 ... (Thu, 21-Nov-2019)
- 創客們看過來,... (Thu, 21-Nov-2019)
- 2019第八屆台灣... (Tue, 17-Sep-2019)
- 2019 (秋)嵌入式... (Tue, 17-Sep-2019)
- Microchip 2019 ... (Wed, 10-Jul-2019)
- 2019 Summer Eli... (Mon, 10-Jun-2019)
- ATWINC1500 RTC ... (Mon, 29-Apr-2019)
- APP-ESS18-1A An... (Wed, 24-Apr-2019)
- 2019春EDF限量特... (Mon, 22-Apr-2019)
訪問統計 (自2012/5/3)
|
正在流覽:
1 名訪客
|
沒有裝PICKIT等等的debugger能不能生成hex檔? |
|
新會員 
註冊日期: 3月25日 16:16:03
所屬群組:
註冊會員
文章: 5
等級: 1; EXP: 34 HP : 0 / 8 MP : 1 / 18
|
請問各位高手, 我手上有個範例, 我想把他生成hex檔案, 但是我買的東西都還沒到, 現在只有MPLAB X IDE, 我在project按右鍵生成hex檔案的時候跳出:
1 warning generated. interrupts.c:157:6: error: variable has incomplete type 'void' void interrupt isr(void) ^ interrupts.c:157:15: error: expected ';' after top level declarator void interrupt isr(void) ^ ; 2 errors generated. (908) exit status = 1 nbproject/Makefile-default.mk:155: recipe for target 'build/default/production/interrupts.p1' failed make[2]: *** [build/default/production/interrupts.p1] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory 'C:/MPLABcode/code/AirDim' nbproject/Makefile-default.mk:103: recipe for target '.build-conf' failed make[1]: Leaving directory 'C:/MPLABcode/code/AirDim' nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed make[1]: *** [.build-conf] Error 2 make: *** [.build-impl] Error 2
BUILD FAILED (exit value 2, total time: 1s) Export hex aborted.
請問是不是沒有連接PICKIT就不能compile還是哪裡錯了?
3月25日 23:32:23
|
|
|
Re: 沒有裝PICKIT等等的debugger能不能生成hex檔? |
|
版主 
註冊日期: 2004/04/30 10:53
來自 CAE, Microchip
所屬群組:
站務管理者 註冊會員 MICROCHIP
文章: 14874
等級: 73; EXP: 63 HP : 1089 / 1815 MP : 4958 / 82924
|
PICKit 等工具是除錯器及燒錄器,跟產生 Hex 檔的過程無關。
Hex 檔是由 MPLAB X IDE 下的 C Compiler 來編譯後產生的。
第一個警告訊息:中斷的變數有錯。
XC8 的中斷宣告方式: PIC18 的方式 void interrupt HighISR(void) // XC8 高優先權中斷函數 void interrupt low_priority LowISR(void) // XC8 低優先權中斷函數
PIC16 的方式: void interrupt isr(void)
第二個錯誤無法看出。
3月26日 10:52:43
|
|
|
Re: 沒有裝PICKIT等等的debugger能不能生成hex檔? |
|
新會員 
註冊日期: 3月25日 16:16:03
所屬群組:
註冊會員
文章: 5
等級: 1; EXP: 34 HP : 0 / 8 MP : 1 / 18
|
感謝您, 我試過把interrupt的檔案拿掉就可以make成功, 再請問一下, PIC12的interrup跟pic16一樣嗎?
3月26日 16:46:33
|
|
|
Re: 沒有裝PICKIT等等的debugger能不能生成hex檔? |
|
版主 
註冊日期: 2004/04/30 10:53
來自 CAE, Microchip
所屬群組:
站務管理者 註冊會員 MICROCHIP
文章: 14874
等級: 73; EXP: 63 HP : 1089 / 1815 MP : 4958 / 82924
|
PIC12F 有兩種,一種是有中斷功能的,另一種是沒有中斷功能的。你用的是哪一個編號?
3月26日 21:24:36
|
|
|
Re: 沒有裝PICKIT等等的debugger能不能生成hex檔? |
|
新會員 
註冊日期: 3月25日 16:16:03
所屬群組:
註冊會員
文章: 5
等級: 1; EXP: 34 HP : 0 / 8 MP : 1 / 18
|
F121822,這顆應該有
3月27日 10:43:51
|
|
您無法在此發表文章
您可以在此觀看文章
您無法回覆文章
您無法編輯自己的文章
您無法刪除自己的文章
您無法發起投票調查
您無法在此投票
您無法上傳附加檔案
您無法不經審核直接發表文章
|
搜尋
Microchip連結
網頁捷徑
2020 Winter Elite 報名
教育訓練
其它網站連結
|