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


Browsing this Thread:   1 Anonymous Users






Re: PIC18f2221問題
#9
中級會員
中級會員


查看用戶資訊
請問一下

剛剛去官網下載MPLAB-C18-Upgrade-v3_22.exe

可是安裝畫面一直跑出錯誤訊息

截圖請考附檔...

請問一下這該如何解決?

Attach file:



jpg  (0.00 KB)


發表於: 2008/11/17 17:20
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: PIC18f2221問題
#8
中級會員
中級會員


查看用戶資訊
我用的是mplab 8.10 + c18 3.11

有照前輩的方法再用一遍 不過情況還是一樣

目前這問題有找到方法暫時解決
我們直接到PMC目錄裡面把有用到的function的.c檔
直接加到project裡....這樣就好了...
例如本來是ReadUSART不會過...把pmc目錄裡的uread.c檔加到project後....ReadUSART就會過了....目前做法是先這樣解決

剛剛去官網找了一下
新版的mplab是8.15a
c18是3.22版的...

等下載更新完後我再來試試看新版的好了....

發表於: 2008/11/17 16:31
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: PIC18f2221問題
#7
資深會員
資深會員


查看用戶資訊
奇怪了,我測試兩次的結果都是正常的: (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
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: PIC18f2221問題
#6
中級會員
中級會員


查看用戶資訊
不知道板大是否找到原因了?

發表於: 2008/11/16 10:09
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: PIC18f2221問題
#5
中級會員
中級會員


查看用戶資訊
請考附檔...
程式是考某書上寫的去改的...
有些地方還沒改好...因為本來是打算邊改邊Bulid除錯...
不過現在連Build都沒辦法....~_~....

就麻煩大大幫忙看一下是為什無法Build了

Attach file:


Link only for registered users

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


Re: PIC18f2221問題
#4
版主
版主


查看用戶資訊
可以的話,整個 Project 壓成 ZIP 放上來,找一下問題。
RAR 格式無法開啟。

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


Re: PIC18f2221問題
#3
中級會員
中級會員


查看用戶資訊
路徑確定都有設了....
剛剛又檢查一次...

不過還是出現一樣的錯誤......~_~

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


Re: PIC18f2221問題
#2
版主
版主


查看用戶資訊
// 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:



jpg  (0.00 KB)


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


PIC18f2221問題
#1
中級會員
中級會員


查看用戶資訊
請問一下,我用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
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連結

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... ]

教育訓練中心

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