Re: 想請問各位該如何改錯
|
||||
---|---|---|---|---|
中級會員
|
那再請問
這個又是少加什麼資料 Error - could not find definition of symbol 'DelayFor18TCY' in file 'wcmdxlcd.o'.
發表於: 2009/5/10 9:10
|
|||
|
Re: 想請問各位該如何改錯
|
||||
---|---|---|---|---|
中級會員
|
MPASMWIN
C:\MCC18\mpasm\MPASMWIN.exe mplink C:\MCC18\bin\mplink.exe mcc18 C:\MCC18\bin\mcc18.exe mplib C:\MCC18\bin\mplib.exe 這是Toolsuite的設定 Include C:\MCC18\h Library C:\MCC18\lib Linker C:\MCC18\lkr 這是Project的設定 我在Header的資料夾中,也有加入LCD.h 還有哪裡要加入資料的?或者我哪裡設定錯誤了 請給指教
發表於: 2009/5/9 16:44
|
|||
|
Re: 想請問各位該如何改錯
|
||||
---|---|---|---|---|
資深會員
|
檢查一下你呼叫putcLCD時有沒有先引入.h檔或是先宣告putcLCD?
could not find definition of symbol通常就是連結器在位址連結表找不到宣告。
發表於: 2009/5/9 14:06
|
|||
不要問我哪裡來,我只是個流浪天涯的工程師
|
||||
|
Re: 想請問各位該如何改錯
|
||||
---|---|---|---|---|
中級會員
|
我照著版主的意思用了"W401 教育訓練裡就有現成的 LCD 程式簡單又好用。"
可是卻出現這樣的錯誤,可以在指點我嗎? could not find definition of symbol 'putcLCD' in file './LCD02.o'.
發表於: 2009/5/9 14:01
|
|||
|
Re: 想請問各位該如何改錯
|
||||
---|---|---|---|---|
版主
|
建議你不要使用 XLCD 函數,會搞死你的。到 W401 教育訓練裡就有現成的 LCD 程式簡單又好用。裡面業又很多使用 LCD 的範例。可以從第三章的練習開始。
http://www.microchip.com.tw/modules/w ... glefile.php?cid=4&lid=236
發表於: 2009/5/8 14:21
|
|||
|
Re: 想請問各位該如何改錯
|
||||
---|---|---|---|---|
中級會員
|
當我改完
Error - could not find definition of symbol 'LCD_Set_Cursor' in file './LCD02.o'. 會跑出這樣的字串 這又是怎樣的情況阿??
發表於: 2009/5/7 16:30
|
|||
|
Re: 想請問各位該如何改錯
|
||||
---|---|---|---|---|
版主
|
UPPER 在 XLCD.H 檔裡已經被註解掉了,那就個隨便給個直傳進去就好了。
OpenXLCD(0); 使用 PORTB Low Nibber bit
發表於: 2009/5/7 15:12
|
|||
|
Re: 想請問各位該如何改錯
|
||||
---|---|---|---|---|
中級會員
|
我把自己寫的程式加入 OpenXLCD(UPPER);
卻出現I:\Project_EX\LCD02.c:41:Error [1105] symbol 'UPPER' has not been defined 這樣的錯誤 是我加錯指令了嗎???
發表於: 2009/5/7 14:18
|
|||
|
Re: 想請問各位該如何改錯
|
||||
---|---|---|---|---|
版主
|
看一下OpenXLCD 的原始程式宣告,使用使函數時需告告函數是使用 8-bit (BIT8) or 4-bit Mode (UPPER) 的參數傳入。
所以改成 OpenXLCD(UPPER); C:\MCC18\src\pmc_common\XLCD 底下為其 Source Code:
void OpenXLCD(unsigned char lcdtype)
發表於: 2009/5/7 12:03
|
|||
|