![]() |
|
Tài trợ cho PIC Vietnam |
Giao tiếp USB, CAN, I2C, SPI, USART... Những giao tiếp được tích hợp trên PIC |
![]() |
|
Ðiều Chỉnh | Xếp Bài |
|
![]() |
#1 |
Nhập môn đệ tử
Tham gia ngày: Sep 2008
Bài gửi: 7
: |
anh hopeman à, em copy code cua anh vào dich bằng C30 (hình như anh ko cùng các init_ADC10 phải không ạ?) thì nó hiện ra các cái lỗi như sau, em thấy nhiều quá nên ko biết mình còn sót cái j nữa ko? Anh xem giùm em nhé!
Debug build of project `C:\Documents and Settings\PHAMQUOCVIET\Desktop\CAN_C30\CAN_4012_tes t.mcp' started. Language tool versions: pic30-as.exe v3.11, pic30-gcc.exe v3.11, pic30-ld.exe v3.11, pic30-ar.exe v3.11 Preprocessor symbol `__DEBUG' is defined. Thu May 06 14:49:41 2010 ---------------------------------------------------------------------- Make: The target "C:\Documents and Settings\PHAMQUOCVIET\Desktop\CAN_C30\Code_CAN_C30 _interrupt.o" is out of date. Executing: "C:\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe" -mcpu=30F4012 -x c -c "Code_CAN_C30_interrupt.c" -o"Code_CAN_C30_interrupt.o" -D__DEBUG -g -Wall Code_CAN_C30_interrupt.c:25: error: syntax error before '{' token Code_CAN_C30_interrupt.c:39: warning: type defaults to 'int' in declaration of 'C1CFG2' Code_CAN_C30_interrupt.c:39: error: conflicting type qualifiers for 'C1CFG2' c:/program files/microchip/mplab c30/bin/bin/../../support/dsPIC30F/h/p30F4012.h:1849: error: previous declaration of 'C1CFG2' was here Code_CAN_C30_interrupt.c:39: warning: data definition has no type or storage class Code_CAN_C30_interrupt.c:45: warning: type defaults to 'int' in declaration of 'C1INTF' Code_CAN_C30_interrupt.c:45: error: conflicting type qualifiers for 'C1INTF' c:/program files/microchip/mplab c30/bin/bin/../../support/dsPIC30F/h/p30F4012.h:1863: error: previous declaration of 'C1INTF' was here Code_CAN_C30_interrupt.c:45: warning: data definition has no type or storage class Code_CAN_C30_interrupt.c:46: error: syntax error before '.' token Code_CAN_C30_interrupt.c:47: warning: type defaults to 'int' in declaration of 'C1INTE' Code_CAN_C30_interrupt.c:47: error: conflicting type qualifiers for 'C1INTE' c:/program files/microchip/mplab c30/bin/bin/../../support/dsPIC30F/h/p30F4012.h:1885: error: previous declaration of 'C1INTE' was here Code_CAN_C30_interrupt.c:47: warning: data definition has no type or storage class Code_CAN_C30_interrupt.c:48: error: syntax error before '.' token Code_CAN_C30_interrupt.c:56: warning: type defaults to 'int' in declaration of 'C1RX0CON' Code_CAN_C30_interrupt.c:56: error: conflicting type qualifiers for 'C1RX0CON' c:/program files/microchip/mplab c30/bin/bin/../../support/dsPIC30F/h/p30F4012.h:1820: error: previous declaration of 'C1RX0CON' was here Code_CAN_C30_interrupt.c:56: error: initializer element is not constant Code_CAN_C30_interrupt.c:56: warning: data definition has no type or storage class Code_CAN_C30_interrupt.c:62: warning: type defaults to 'int' in declaration of 'C1RXM0SID' Code_CAN_C30_interrupt.c:62: error: conflicting type qualifiers for 'C1RXM0SID' c:/program files/microchip/mplab c30/bin/bin/../../support/dsPIC30F/h/p30F4012.h:1591: error: previous declaration of 'C1RXM0SID' was here Code_CAN_C30_interrupt.c:62: error: initializer element is not constant Code_CAN_C30_interrupt.c:62: warning: data definition has no type or storage class Code_CAN_C30_interrupt.c:66: warning: type defaults to 'int' in declaration of 'C1RXM0EIDH' Code_CAN_C30_interrupt.c:66: error: conflicting type qualifiers for 'C1RXM0EIDH' c:/program files/microchip/mplab c30/bin/bin/../../support/dsPIC30F/h/p30F4012.h:1595: error: previous declaration of 'C1RXM0EIDH' was here Code_CAN_C30_interrupt.c:66: error: initializer element is not constant Code_CAN_C30_interrupt.c:66: warning: data definition has no type or storage class Code_CAN_C30_interrupt.c:70: warning: type defaults to 'int' in declaration of 'C1RXM0EIDL' Code_CAN_C30_interrupt.c:70: error: conflicting type qualifiers for 'C1RXM0EIDL' c:/program files/microchip/mplab c30/bin/bin/../../support/dsPIC30F/h/p30F4012.h:1598: error: previous declaration of 'C1RXM0EIDL' was here Code_CAN_C30_interrupt.c:70: error: initializer element is not constant Code_CAN_C30_interrupt.c:70: warning: data definition has no type or storage class Code_CAN_C30_interrupt.c:75: warning: type defaults to 'int' in declaration of 'C1RXF0SID' Code_CAN_C30_interrupt.c:75: error: conflicting type qualifiers for 'C1RXF0SID' c:/program files/microchip/mplab c30/bin/bin/../../support/dsPIC30F/h/p30F4012.h:1523: error: previous declaration of 'C1RXF0SID' was here Code_CAN_C30_interrupt.c:75: warning: data definition has no type or storage class Code_CAN_C30_interrupt.c:76: warning: type defaults to 'int' in declaration of 'C1RXF2SID' Code_CAN_C30_interrupt.c:76: error: conflicting type qualifiers for 'C1RXF2SID' c:/program files/microchip/mplab c30/bin/bin/../../support/dsPIC30F/h/p30F4012.h:1543: error: previous declaration of 'C1RXF2SID' was here Code_CAN_C30_interrupt.c:76: warning: data definition has no type or storage class Code_CAN_C30_interrupt.c:77: warning: type defaults to 'int' in declaration of 'C1RXF2EIDH' Code_CAN_C30_interrupt.c:77: error: conflicting type qualifiers for 'C1RXF2EIDH' c:/program files/microchip/mplab c30/bin/bin/../../support/dsPIC30F/h/p30F4012.h:1547: error: previous declaration of 'C1RXF2EIDH' was here Code_CAN_C30_interrupt.c:77: warning: data definition has no type or storage class Code_CAN_C30_interrupt.c:78: warning: type defaults to 'int' in declaration of 'C1RXF2EIDL' Code_CAN_C30_interrupt.c:78: error: conflicting type qualifiers for 'C1RXF2EIDL' c:/program files/microchip/mplab c30/bin/bin/../../support/dsPIC30F/h/p30F4012.h:1550: error: previous declaration of 'C1RXF2EIDL' was here Code_CAN_C30_interrupt.c:78: warning: data definition has no type or storage class Code_CAN_C30_interrupt.c:84: warning: type defaults to 'int' in declaration of 'C1TX0CON' Code_CAN_C30_interrupt.c:84: error: conflicting type qualifiers for 'C1TX0CON' c:/program files/microchip/mplab c30/bin/bin/../../support/dsPIC30F/h/p30F4012.h:1728: error: previous declaration of 'C1TX0CON' was here Code_CAN_C30_interrupt.c:84: warning: data definition has no type or storage class Code_CAN_C30_interrupt.c:85: warning: type defaults to 'int' in declaration of 'C1TX0SID' Code_CAN_C30_interrupt.c:85: error: conflicting type qualifiers for 'C1TX0SID' c:/program files/microchip/mplab c30/bin/bin/../../support/dsPIC30F/h/p30F4012.h:1704: error: previous declaration of 'C1TX0SID' was here Code_CAN_C30_interrupt.c:85: warning: data definition has no type or storage class Code_CAN_C30_interrupt.c:86: warning: type defaults to 'int' in declaration of 'C1TX0EID' Code_CAN_C30_interrupt.c:86: error: conflicting type qualifiers for 'C1TX0EID' c:/program files/microchip/mplab c30/bin/bin/../../support/dsPIC30F/h/p30F4012.h:1708: error: previous declaration of 'C1TX0EID' was here Code_CAN_C30_interrupt.c:86: warning: data definition has no type or storage class Code_CAN_C30_interrupt.c:87: warning: type defaults to 'int' in declaration of 'C1TX0DLC' Code_CAN_C30_interrupt.c:87: error: conflicting type qualifiers for 'C1TX0DLC' c:/program files/microchip/mplab c30/bin/bin/../../support/dsPIC30F/h/p30F4012.h:1712: error: previous declaration of 'C1TX0DLC' was here Code_CAN_C30_interrupt.c:87: warning: data definition has no type or storage class Code_CAN_C30_interrupt.c:91: warning: type defaults to 'int' in declaration of 'C1TX1CON' Code_CAN_C30_interrupt.c:91: error: conflicting type qualifiers for 'C1TX1CON' c:/program files/microchip/mplab c30/bin/bin/../../support/dsPIC30F/h/p30F4012.h:1700: error: previous declaration of 'C1TX1CON' was here Code_CAN_C30_interrupt.c:91: warning: data definition has no type or storage class Code_CAN_C30_interrupt.c:92: warning: type defaults to 'int' in declaration of 'C1TX1SID' Code_CAN_C30_interrupt.c:92: error: conflicting type qualifiers for 'C1TX1SID' c:/program files/microchip/mplab c30/bin/bin/../../support/dsPIC30F/h/p30F4012.h:1676: error: previous declaration of 'C1TX1SID' was here Code_CAN_C30_interrupt.c:92: warning: data definition has no type or storage class Code_CAN_C30_interrupt.c:93: warning: type defaults to 'int' in declaration of 'C1TX1EID' Code_CAN_C30_interrupt.c:93: error: conflicting type qualifiers for 'C1TX1EID' c:/program files/microchip/mplab c30/bin/bin/../../support/dsPIC30F/h/p30F4012.h:1680: error: previous declaration of 'C1TX1EID' was here Code_CAN_C30_interrupt.c:93: warning: data definition has no type or storage class Code_CAN_C30_interrupt.c:94: warning: type defaults to 'int' in declaration of 'C1TX1DLC' Code_CAN_C30_interrupt.c:94: error: conflicting type qualifiers for 'C1TX1DLC' c:/program files/microchip/mplab c30/bin/bin/../../support/dsPIC30F/h/p30F4012.h:1684: error: previous declaration of 'C1TX1DLC' was here Code_CAN_C30_interrupt.c:94: warning: data definition has no type or storage class Code_CAN_C30_interrupt.c:97: error: syntax error before '.' token Code_CAN_C30_interrupt.c:222:2: warning: no newline at end of file Halting build on first failure as requested. ---------------------------------------------------------------------- Debug build of project `C:\Documents and Settings\PHAMQUOCVIET\Desktop\CAN_C30\CAN_4012_tes t.mcp' failed. Language tool versions: pic30-as.exe v3.11, pic30-gcc.exe v3.11, pic30-ld.exe v3.11, pic30-ar.exe v3.11 Preprocessor symbol `__DEBUG' is defined. Thu May 06 14:49:44 2010 ---------------------------------------------------------------------- BUILD FAILED |
![]() |
![]() |
![]() |
Ðiều Chỉnh | |
Xếp Bài | |
|
|