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


Browsing this Thread:   2 Anonymous Users






Re: 程式 debug 時 發生如下問題, 請問哪為高手可以幫忙一下 謝謝
#2
版主
版主


查看用戶資訊
fs01.c: In function '_T3Interrupt':
fs01.c:80: warning: PSV model not specified for '_T3Interrupt';
assuming 'auto_psv' this may affect latency
fs01.c: In function '_IC8Interrupt':
fs01.c:92: warning: PSV model not specified for '_IC8Interrupt';

有關 PSV 得警告訊息刻意在宣告裡加入 no_auto_psv 宣告: 如下所示
void __attribute__((interrupt, no_auto_psv)) _T3Interrupt(void)


C:\software\jack\fs01\fs01.c:115: undefined reference to `init_ADC'
fs01.o(.text+0xbe):C:\software\jack\fs01\fs01.c:116: undefined reference to `initimer3'
fs01.o(.text+0xc2):C:\software\jack\fs01\fs01.c:118: undefined reference to `init_OC5'
fs01.o(.text+0xc4):C:\software\jack\fs01\fs01.c:119: undefined reference to `init_OC6'
fs01.o(.text+0xf0):C:\software\jack\fs01\fs01.c:132: undefined reference to `Btt_vol'
fs01.o(.text+0xf2):C:\software\jack\fs01\fs01.c:133: undefined reference to `fs_chang'
Link step failed.

檢查一下,該顆元件的周邊函數庫有沒有加在 Library Files 裡面,那裏應該有 libpPIC24Fxxx-coff.a

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


程式 debug 時 發生如下問題, 請問哪為高手可以幫忙一下 謝謝
#1
新會員
新會員


查看用戶資訊
----------------------------------------------------------------------
Debug build of project `C:\software\jack\fs01\chen_01.mcp' started.
Preprocessor symbol `__DEBUG' is defined.
Target debug platform is `__MPLAB_DEBUGGER_ICD2=1'.
Debug platform options are: `__ICD2RAM=1'.
Tue Sep 30 09:09:09 2008
----------------------------------------------------------------------
Clean: Deleting intermediary and output files.
Clean: Deleted file "C:\software\jack\I2C Master\I2CSubs.o".
Clean: Deleted file "C:\software\jack\fs01\fs01.o".
Clean: Deleted file "C:\software\jack\fs01\chen_01.mcs".
Clean: Done.
Executing: "C:\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe" -mcpu=30F6010A -x c -c "I2CSubs.c" -o"I2CSubs.o" -I"C:\Program Files\Microchip\MPLAB C30\support\h" -D__DEBUG -g
Executing: "C:\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe" -mcpu=30F6010A -x c -c "fs01.c" -o"fs01.o" -I"C:\Program Files\Microchip\MPLAB C30\support\h" -D__DEBUG -g
fs01.c: In function '_T3Interrupt':
fs01.c:80: warning: PSV model not specified for '_T3Interrupt';
assuming 'auto_psv' this may affect latency
fs01.c: In function '_IC8Interrupt':
fs01.c:92: warning: PSV model not specified for '_IC8Interrupt';
assuming 'auto_psv' this may affect latency
Executing: "C:\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe" -mcpu=30F6010A "..\I2C Master\I2CSubs.o" "fs01.o" "C:\Program Files\Microchip\MPLAB C30\lib\dsPIC30F\libp30F6010A-coff.a" -o"chen_01.cof" -Wl,-L"C:\Program Files\Microchip\MPLAB C30\lib",--script="..\..\..\Program Files\Microchip\MPLAB C30\support\dsPIC30F\gld\p30f6010A.gld",--defsym=__MPLAB_BUILD=1,--defsym=__MPLAB_DEBUG=1,--defsym=__MPLAB_DEBUGGER_ICD2=1,--defsym=__ICD2RAM=1,-Map="chen_01.map",--report-mem,--cref


Program Memory Usage

section address length (PC units) length (bytes) (dec)
------- ------- ----------------- --------------------
.reset 0 0x4 0x6 (6)
.ivt 0x4 0x7c 0xba (186)
.aivt 0x84 0x7c 0xba (186)
.text 0x100 0x226 0x339 (825)
.text 0x326 0x5cc 0x8b2 (2226)
.dinit 0x8f2 0x26 0x39 (57)
.isr 0x918 0x2 0x3 (3)

Total program memory used (bytes): 0xda1 (3489) 2%


Data Memory Usage

section address alignment gaps total length (dec)
------- ------- -------------- -------------------
.icd 0x800 0x50 0x50 (80)
.nbss 0x850 0 0x7c (124)
.ndata 0x8cc 0 0x24 (36)

Total data memory used (bytes): 0xf0 (240) 2%


Dynamic Memory Usage

region address maximum length (dec)
------ ------- ---------------------
heap 0 0 (0)
stack 0x8f0 0x1eb0 (7856)

Maximum dynamic memory (bytes): 0x1eb0 (7856)

fs01.o(.text+0xbc): In function `main':
C:\software\jack\fs01\fs01.c:115: undefined reference to `init_ADC'
fs01.o(.text+0xbe):C:\software\jack\fs01\fs01.c:116: undefined reference to `initimer3'
fs01.o(.text+0xc2):C:\software\jack\fs01\fs01.c:118: undefined reference to `init_OC5'
fs01.o(.text+0xc4):C:\software\jack\fs01\fs01.c:119: undefined reference to `init_OC6'
fs01.o(.text+0xf0):C:\software\jack\fs01\fs01.c:132: undefined reference to `Btt_vol'
fs01.o(.text+0xf2):C:\software\jack\fs01\fs01.c:133: undefined reference to `fs_chang'
Link step failed.
----------------------------------------------------------------------
Debug build of project `C:\software\jack\fs01\chen_01.mcp' failed.
Preprocessor symbol `__DEBUG' is defined.
Target debug platform is `__MPLAB_DEBUGGER_ICD2=1'.
Debug platform options are: `__ICD2RAM=1'.
Tue Sep 30 09:09:13 2008
----------------------------------------------------------------------
BUILD FAILED

Attach file:


Link only for registered users

發表於: 2008/9/30 9:15
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... ]

教育訓練中心

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