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


Browsing this Thread:   1 Anonymous Users






Re: Link step failed! 誰可以幫幫忙哦
#2
新會員
新會員


查看用戶資訊
沒有人能解答嗎?

發表於: 2009/4/12 6:48
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Link step failed! 誰可以幫幫忙哦
#1
新會員
新會員


查看用戶資訊
小弟初學dsPIC33, 想用一下它的外設xlcd來控制LCD, 結果出了以下錯誤:

Executing: "C:\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe" -mcpu=33FJ32GP202 -x c -c "Main.c" -o"Main.o" -D__DEBUG -g -Wall
Main.c:1:1: warning: "__dsPIC33FJ32GP202__" redefined
<built-in>:1:1: warning: this is the location of the previous definition
Main.c: In function 'main':
Main.c:28: warning: implicit declaration of function 'PutsXLCD'
Main.c:37:2: warning: no newline at end of file
Executing: "C:\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe" -mcpu=33FJ32GP202 -x c -c "xlcd\BusyXLCD.c" -o"BusyXLCD.o" -D__DEBUG -g -Wall
xlcd\BusyXLCD.c:72:2: warning: #warning "Does not build on this target"
Executing: "C:\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe" -mcpu=33FJ32GP202 -x c -c "xlcd\delay.c" -o"delay.o" -D__DEBUG -g -Wall
xlcd\delay.c:69:2: warning: #warning "Does not build on this target"
Executing: "C:\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe" -mcpu=33FJ32GP202 -x c -c "xlcd\OpenXLCD.c" -o"OpenXLCD.o" -D__DEBUG -g -Wall
xlcd\OpenXLCD.c:70:2: warning: #warning "Does not build on this target"
Executing: "C:\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe" -mcpu=33FJ32GP202 -x c -c "xlcd\PutsXLCD.c" -o"PutsXLCD.o" -D__DEBUG -g -Wall
xlcd\PutsXLCD.c:27:2: warning: #warning "Does not build on this target"
Executing: "C:\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe" -mcpu=33FJ32GP202 -x c -c "xlcd\ReadAddrXLCD.c" -o"ReadAddrXLCD.o" -D__DEBUG -g -Wall
xlcd\ReadAddrXLCD.c:80:2: warning: #warning "Does not build on this target"
Executing: "C:\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe" -mcpu=33FJ32GP202 -x c -c "xlcd\ReadDataXLCD.c" -o"ReadDataXLCD.o" -D__DEBUG -g -Wall
xlcd\ReadDataXLCD.c:87:2: warning: #warning "Does not build on this target"
Executing: "C:\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe" -mcpu=33FJ32GP202 -x c -c "xlcd\setCGRamAddr.c" -o"setCGRamAddr.o" -D__DEBUG -g -Wall
xlcd\setCGRamAddr.c:83:2: warning: #warning "Does not build on this target"
Executing: "C:\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe" -mcpu=33FJ32GP202 -x c -c "xlcd\setDDRamAddr.c" -o"setDDRamAddr.o" -D__DEBUG -g -Wall
xlcd\setDDRamAddr.c:83:2: warning: #warning "Does not build on this target"
Executing: "C:\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe" -mcpu=33FJ32GP202 -x c -c "xlcd\WriteCmdXLCD.c" -o"WriteCmdXLCD.o" -D__DEBUG -g -Wall
xlcd\WriteCmdXLCD.c:71:2: warning: #warning "Does not build on this target"
Executing: "C:\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe" -mcpu=33FJ32GP202 -x c -c "xlcd\WriteDataXLCD.c" -o"WriteDataXLCD.o" -D__DEBUG -g -Wall
xlcd\WriteDataXLCD.c:91:2: warning: #warning "Does not build on this target"
Executing: "C:\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe" -mcpu=33FJ32GP202 "Main.o" "BusyXLCD.o" "delay.o" "OpenXLCD.o" "PutsXLCD.o" "ReadAddrXLCD.o" "ReadDataXLCD.o" "setCGRamAddr.o" "setDDRamAddr.o" "WriteCmdXLCD.o" "WriteDataXLCD.o" "D:\My Documents\Final_YR_project\Microchip\lib\libp33FJ32GP202-coff.a" -o"Microchip.cof" -Wl,-L"C:\Program Files\Microchip\MPLAB C30\lib",--script="C:\Program Files\Microchip\MPLAB C30\support\dsPIC33F\gld\p33FJ32GP202.gld",--defsym=__MPLAB_BUILD=1,--defsym=__MPLAB_DEBUG=1,-Map="Microchip.map",--report-mem

......


Main.o(.text+0x4): In function `main':
D:\My Documents\Final_YR_project\Microchip\Main.c:22: undefined reference to `OpenXLCD'
Main.o(.text+0x6):D:\My Documents\Final_YR_project\Microchip\Main.c:24: undefined reference to `BusyXLCD'
Main.o(.text+0xe):D:\My Documents\Final_YR_project\Microchip\Main.c:26: undefined reference to `WriteCmdXLCD'
Main.o(.text+0x16):D:\My Documents\Final_YR_project\Microchip\Main.c:28: undefined reference to `PutsXLCD'
Main.o(.text+0x18):D:\My Documents\Final_YR_project\Microchip\Main.c:29: undefined reference to `BusyXLCD'
Main.o(.text+0x20):D:\My Documents\Final_YR_project\Microchip\Main.c:31: undefined reference to `SetDDRamAddr'
Main.o(.text+0x22):D:\My Documents\Final_YR_project\Microchip\Main.c:32: undefined reference to `BusyXLCD'
Main.o(.text+0x2e):D:\My Documents\Final_YR_project\Microchip\Main.c:34: undefined reference to `PutsXLCD'
Main.o(.text+0x30):D:\My Documents\Final_YR_project\Microchip\Main.c:35: undefined reference to `BusyXLCD'
Link step failed.

我已經把修改好的xlcd.h放到我project的folder裏, main.c裏也設置好了, 就是不知道什麼一回事, 總是build不了?

我把zip檔upload了, 有那位大大可以幫忙看一下嗎?

Attach file:


Link only for registered users

發表於: 2009/4/10 6:39
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... ]

教育訓練中心

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