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


Browsing this Thread:   1 Anonymous Users






Re: 這是哪裡錯啦??
#6
版主
版主


查看用戶資訊
各位同好,
Microchip 現已將 16-bit 的 C compiler 拆成兩了版本了,PIC24 系列與 dsPIC 系列。以前花錢買的舊合併本還是可以繼續支援,為學生版就要更新到新版本了。
http://www.microchip.com/stellent/idc ... Id=1406&dDocName=en010065

學生版的限制為:
MPLAB C Student Edition

The Compiler Student Edition is free! It is full-featured for the first 60 days. After 60 days only optimization level 1 can be enabled in the compiler. The compiler will continue to function after 60 days, but code size may increase. There are no restrictions on the use of this C compiler

發表於: 2008/7/25 9:09
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 這是哪裡錯啦??
#5
資深會員
資深會員


查看用戶資訊

發表於: 2008/7/24 23:05
不要問我哪裡來,我只是個流浪天涯的工程師
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 這是哪裡錯啦??
#4
初級會員
初級會員


查看用戶資訊
參照:

Ryang 寫道:
摘自 p30f4012.h 檔裡 :
* IFS0 */
#define _INT0IF IFS0bits.INT0IF
#define _IC1IF IFS0bits.IC1IF
#define _OC1IF IFS0bits.OC1IF
#define _T1IF IFS0bits.T1IF
#define _IC2IF IFS0bits.IC2IF
#define _OC2IF IFS0bits.OC2IF
#define _T2IF IFS0bits.T2IF
#define _T3IF IFS0bits.T3IF
#define _SPI1IF IFS0bits.SPI1IF
#define _U1RXIF IFS0bits.U1RXIF

_U1RXIF 在較新板的 C30 裡以經有定義了,是不是你的版本太舊了的關係?

我使用的是 MPLAB C30, v2.01


我剛剛看啦一下 我的 MPLAB C30, v1.2版本!!
哇!!我ㄉ這ㄇ舊阿??
哪裡抓新版??

發表於: 2008/7/24 15:55
剛摸PIC的電源工程師
PIC12F508
[font=Impact]剛摸PIC的電源工程師
PIC12F508
[/font]
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 這是哪裡錯啦??
#3
版主
版主


查看用戶資訊
摘自 p30f4012.h 檔裡 :
* IFS0 */
#define _INT0IF IFS0bits.INT0IF
#define _IC1IF IFS0bits.IC1IF
#define _OC1IF IFS0bits.OC1IF
#define _T1IF IFS0bits.T1IF
#define _IC2IF IFS0bits.IC2IF
#define _OC2IF IFS0bits.OC2IF
#define _T2IF IFS0bits.T2IF
#define _T3IF IFS0bits.T3IF
#define _SPI1IF IFS0bits.SPI1IF
#define _U1RXIF IFS0bits.U1RXIF

_U1RXIF 在較新板的 C30 裡以經有定義了,是不是你的版本太舊了的關係?

我使用的是 MPLAB C30, v2.01

發表於: 2008/7/24 14:50
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 這是哪裡錯啦??
#2
資深會員
資深會員


查看用戶資訊
.c:79: error: `_U1RXIF' undeclared (first use in this function)

_U1RXIF沒有定義,編譯器不知道這變數名稱是什麼東西。
在上面點兩下就會到錯誤的地方。

發表於: 2008/7/24 2:30
不要問我哪裡來,我只是個流浪天涯的工程師
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


這是哪裡錯啦??
#1
初級會員
初級會員


查看用戶資訊
Clean: Deleting intermediary and output files.
Clean: Done.
Executing: "C:\pic30_tools\bin\pic30-gcc.exe" -mcpu=30F4012 -c -x c "Eg1_BlinkLED.c" -o"Eg1_BlinkLED.o" -g
Eg1_BlinkLED.c: In function `main':
Eg1_BlinkLED.c:79: error: `_U1RXIF' undeclared (first use in this function)
Eg1_BlinkLED.c:79: error: (Each undeclared identifier is reported only once
Eg1_BlinkLED.c:79: error: for each function it appears in.)
Eg1_BlinkLED.c: At top level:
Eg1_BlinkLED.c:109: warning: `no_auto_psv' attribute directive ignored
Halting build on first failure as requested.
BUILD FAILED: Wed Jul 23 22:46:58 2008
我剛剛執行程式 出現??

發表於: 2008/7/23 22:50
剛摸PIC的電源工程師
PIC12F508
[font=Impact]剛摸PIC的電源工程師
PIC12F508
[/font]
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... ]

教育訓練中心

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