Re: PIC18f2221問題
|
||||
---|---|---|---|---|
中級會員
|
請問一下
剛剛去官網下載MPLAB-C18-Upgrade-v3_22.exe 可是安裝畫面一直跑出錯誤訊息 截圖請考附檔... 請問一下這該如何解決? Attach file: (0.00 KB)
發表於: 2008/11/17 17:20
|
|||
|
Re: PIC18f2221問題
|
||||
---|---|---|---|---|
資深會員
|
奇怪了,我測試兩次的結果都是正常的: (mplab 8.14 + c18 3.16)
目前想到的對策有: 先做個 CLEAN 再 BUILD 看看 直接指定 usart.h 的位置 把 usart.h 加到 project 檢查 MPLAB IDE 裡 Project → Set Language Tool Locations → Microchip C18 Toolsuite → Executes - 各exe用mcc18的 MPLAB / C18 版本更新 ---------------------------------------------------------------------- Release build of project `C:\PW710\PW710.mcp' started. Mon Nov 17 15:34:50 2008 ---------------------------------------------------------------------- Clean: Deleting intermediary and output files. Clean: Done. Executing: "C:\MCC18\bin\mcc18.exe" -p=18F2221 /i"C:\MCC18\h" "PW710.c" -fo="PW710.o" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa- Executing: "C:\MCC18\bin\mplink.exe" /l"C:\MCC18\lib" /k"C:\MCC18\lkr" "..\MCC18\lkr\18f2221.lkr" "PW710.o" /o"PW710.cof" /M"PW710.map" /W MPLINK 4.16, Linker Copyright (c) 2008 Microchip Technology Inc. Errors : 0 MP2HEX 4.16, COFF to HEX File Converter Copyright (c) 2008 Microchip Technology Inc. Errors : 0 Loaded C:\PW710\PW710.cof. ---------------------------------------------------------------------- Release build of project `C:\PW710\PW710.mcp' succeeded. Mon Nov 17 15:34:51 2008 ---------------------------------------------------------------------- BUILD SUCCEEDED
發表於: 2008/11/17 16:05
|
|||
|
Re: PIC18f2221問題
|
||||
---|---|---|---|---|
中級會員
|
不知道板大是否找到原因了?
發表於: 2008/11/16 10:09
|
|||
|
Re: PIC18f2221問題
|
||||
---|---|---|---|---|
中級會員
|
請考附檔...
程式是考某書上寫的去改的... 有些地方還沒改好...因為本來是打算邊改邊Bulid除錯... 不過現在連Build都沒辦法....~_~.... 就麻煩大大幫忙看一下是為什無法Build了 Attach file: Link only for registered users
發表於: 2008/11/13 16:29
|
|||
|
Re: PIC18f2221問題
|
||||
---|---|---|---|---|
版主
|
可以的話,整個 Project 壓成 ZIP 放上來,找一下問題。
RAR 格式無法開啟。
發表於: 2008/11/13 15:57
|
|||
|
Re: PIC18f2221問題
|
||||
---|---|---|---|---|
中級會員
|
路徑確定都有設了....
剛剛又檢查一次... 不過還是出現一樣的錯誤......~_~
發表於: 2008/11/13 15:14
|
|||
|
Re: PIC18f2221問題
|
||||
---|---|---|---|---|
版主
|
// File: 18f2221i.lkr
// Sample ICD2 linker script for the PIC18F2221 processor LIBPATH . FILES c018i.o FILES clib.lib FILES p18f2221.lib LIB 得檔案名稱在 LKR 檔裡已經設定了,再次確定 Project 的 LIB 路徑設定如下: Attach file: (0.00 KB)
發表於: 2008/11/13 14:44
|
|||
|
PIC18f2221問題
|
||||
---|---|---|---|---|
中級會員
|
請問一下,我用PIC18F2221寫了一各基本的RS232程式
但build all後,都會出現以下錯誤訊息 Executing: "C:\MCC18\bin\mplink.exe" /l"C:\MCC18\lib" /k"C:\MCC18\lkr" "C:\MCC18\lkr\18f2221.lkr" "C:\PW710\PW710.o" /m"C:\MCC18\bin\PW710.map" /w /o"PW710.cof" MPLINK 4.11, Linker Copyright (c) 2007 Microchip Technology Inc. Error - could not find definition of symbol 'ReadUSART' in file 'C:\PW710\PW710.o'. Errors : 1 一直說我的.o檔找不到ReadUSART的定義.... 然後我把那行先刪掉,又變成WriteUSART找不到定義... 好像只要跟USART有關的函式都沒法用.... 可是我有#include <usart.h> 而且用其他型號 build 也都沒這問題.... 但2221就是 build 不過.... 有大大可以幫忙解答一下那邊出問題嗎? 困擾兩天了~_~
發表於: 2008/11/13 11:40
|
|||
|