• slider image 514
  • slider image 516
  • slider image 517
  • slider image 518
  • slider image 519
:::


Browsing this Thread:   3 Anonymous Users






Re: 16-bit Peripheral Libraries 無法 Link 到
#7
中級會員
中級會員


查看用戶資訊
謝謝 Ryang

果然是路徑有問題, 移除再重加入就正常了
感謝~

發表於: 2009/1/8 9:57
曾經 狂奔 舞蹈 貪婪的說話, 隨著冷的 濕的 心腐化

個人的休閒小站
歡迎來參觀
http://www.elevior.com
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 16-bit Peripheral Libraries 無法 Link 到
#6
版主
版主


查看用戶資訊
檢查一下 Workspace Project 裡的 Library 的檔案,移掉舊的後加入新的 Library.

Attach file:



jpg  (0.00 KB)


jpg  (0.00 KB)


發表於: 2009/1/7 18:38
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 16-bit Peripheral Libraries 無法 Link 到
#5
中級會員
中級會員


查看用戶資訊
謝謝 Ryang

可能是我沒有說清楚...

我的 Library search path 有
c:\pic30_tools\src\peripheral_24F\libs
c:\pic30_tools\lib
即使加入
C:\Program Files\Microchip\MPLAB C30\lib\
compile 後也無濟於事, 同樣錯誤訊息

因為我根本沒有 C:\Program Files\Microchip\MPLAB C30\lib\ 這個目錄, 我的 compiler 裝在 c:\pic30_tools\
版本 v3.02 09 November 2007, 很久的版本, 不是最新版, 但是 他的 Library 說明裡, 也就是 C:\pic30_tools\docs\periph_lib\PIC24F I2C Library Help File.htm, 說明它提供 I2C lib. Compile 可以過 (因為include正常), 但 Link 時會出現我列出的訊息

發表於: 2009/1/7 18:33
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 16-bit Peripheral Libraries 無法 Link 到
#4
版主
版主


查看用戶資訊
MPLAB IDE 下的 Project -->Project Options --> Project 下設定一下路徑。

按兩下就可以放大圖片。

Attach file:



jpg  (0.00 KB)


發表於: 2009/1/7 17:32
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 16-bit Peripheral Libraries 無法 Link 到
#3
中級會員
中級會員


查看用戶資訊
先謝謝

可是我用的是舊版的 compiler, 所以路徑應該沒問題對吧
這些 I2C 函式也是舊版的 compiler內附的
在他的 Peripheral 說明檔案看到的 lib
但無法 link 到, 何解?

發表於: 2009/1/7 17:22
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 16-bit Peripheral Libraries 無法 Link 到
#2
版主
版主


查看用戶資訊
新版的 C30 Library 路徑已經被改掉了,請重設 :
C:\Program Files\Microchip\MPLAB C30\lib\dsPIC30F

PIC24 Libary :
C:\Program Files\Microchip\MPLAB C30\lib\PIC24F

發表於: 2009/1/7 16:46
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


16-bit Peripheral Libraries 無法 Link 到
#1
中級會員
中級會員


查看用戶資訊
大家好,

我使用16-bit Peripheral Libraries的 I2C
在我的程式碼裡我加入了 #include <i2c.h>
compile 可以過
但在 Linker 卻發生問題, 似乎找不到 Peripheral Libraries
我的 Library search path 有
c:\pic30_tools\src\peripheral_24F\libs
c:\pic30_tools\lib
還需要什麼動作 linker 才能找到 lib 嗎?
感謝


[錯誤訊息]
main.o(.text+0x1e):E:\Microchip Starter Kits\PIC24F Starter Kit 1\GPF510\main.c:36: undefined reference to `IdleI2C1'
main.o(.text+0x20):E:\Microchip Starter Kits\PIC24F Starter Kit 1\GPF510\main.c:38: undefined reference to `StartI2C1'
main.o(.text+0x2c):E:\Microchip Starter Kits\PIC24F Starter Kit 1\GPF510\main.c:46: undefined reference to `MasterWriteI2C1'
main.o(.text+0x42):E:\Microchip Starter Kits\PIC24F Starter Kit 1\GPF510\main.c:56: undefined reference to `MasterputsI2C1'
main.o(.text+0x44):E:\Microchip Starter Kits\PIC24F Starter Kit 1\GPF510\main.c:58: undefined reference to `StopI2C1'
main.o(.text+0x4e):E:\Microchip Starter Kits\PIC24F Starter Kit 1\GPF510\main.c:64: undefined reference to `CloseI2C1'

發表於: 2009/1/7 16:22
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... ]

教育訓練中心

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