Re: 這是哪裡錯啦??
|
||||
---|---|---|---|---|
版主
|
各位同好,
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
|
|||
|
Re: 這是哪裡錯啦??
|
||||
---|---|---|---|---|
資深會員
|
發表於: 2008/7/24 23:05
|
|||
不要問我哪裡來,我只是個流浪天涯的工程師
|
||||
|
Re: 這是哪裡錯啦??
|
||||
---|---|---|---|---|
版主
|
摘自 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
|
|||
|
Re: 這是哪裡錯啦??
|
||||
---|---|---|---|---|
資深會員
|
.c:79: error: `_U1RXIF' undeclared (first use in this function)
_U1RXIF沒有定義,編譯器不知道這變數名稱是什麼東西。 在上面點兩下就會到錯誤的地方。
發表於: 2008/7/24 2:30
|
|||
不要問我哪裡來,我只是個流浪天涯的工程師
|
||||
|
這是哪裡錯啦??
|
||||
---|---|---|---|---|
初級會員
|
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] |
||||
|