Re: 16-bit Peripheral Libraries 無法 Link 到
|
||||
---|---|---|---|---|
中級會員
|
謝謝 Ryang
果然是路徑有問題, 移除再重加入就正常了 感謝~
發表於: 2009/1/8 9:57
|
|||
|
Re: 16-bit Peripheral Libraries 無法 Link 到
|
||||
---|---|---|---|---|
版主
|
檢查一下 Workspace Project 裡的 Library 的檔案,移掉舊的後加入新的 Library.
Attach file: (0.00 KB) (0.00 KB)
發表於: 2009/1/7 18:38
|
|||
|
Re: 16-bit Peripheral Libraries 無法 Link 到
|
||||
---|---|---|---|---|
版主
|
MPLAB IDE 下的 Project -->Project Options --> Project 下設定一下路徑。
按兩下就可以放大圖片。 Attach file: (0.00 KB)
發表於: 2009/1/7 17:32
|
|||
|
Re: 16-bit Peripheral Libraries 無法 Link 到
|
||||
---|---|---|---|---|
中級會員
|
先謝謝
可是我用的是舊版的 compiler, 所以路徑應該沒問題對吧 這些 I2C 函式也是舊版的 compiler內附的 在他的 Peripheral 說明檔案看到的 lib 但無法 link 到, 何解?
發表於: 2009/1/7 17:22
|
|||
|
Re: 16-bit Peripheral Libraries 無法 Link 到
|
||||
---|---|---|---|---|
版主
|
新版的 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
|
|||
|
16-bit Peripheral Libraries 無法 Link 到
|
||||
---|---|---|---|---|
中級會員
|
大家好,
我使用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
|
|||
|