Problems with Eclipse + CDT and msp430-gcc [message #143113] |
Tue, 12 April 2005 03:37 |
Eclipse User |
|
|
|
Originally posted by: clive.brooks.conspec.com.au
Help Please,
I have installed mspgcc, the gcc port for the TI msp430 processor.
The msp430-gcc compiler is correctly in the path, at the command line I can
type msp430-gcc -v and get the correct response.
However when I try to build (all) using Eclipse as the front end with CDT,
both the latest version .
The error window reports as follows, I just cannot get the compiler/linker
to find the file io.h, even if I hard code the location in the .c or .h
files,
what have I not done correctly ?
I use GCC for several different processors, and Eclipse + CDT looks like the
answer to getting a consistent interface, if I can get it to work.
I presume it will not find other *.h files specific to the msp430 either.
Thanks
Clive
Full log report is as follows :-
**** Incremental build of configuration Debug for project pckeybd ****
make -k all
Building file: ../lcd.c
msp430-gcc -IC:/mspgcc/msp430/include -O0 -g3 -Wall -c -fmessage-length=0 -olcd.o
.../lcd.c
In file included from ../hardware.h:4,
from ../lcd.c:25:
/cygdrive/c/mspgcc/msp430/include/io.h:93:2: warning: #warning "Unknown
arch! Please check"
.../lcd.c: In function `lcdBusy':
.../lcd.c:34: `P3DIR' undeclared (first use in this function)
.../lcd.c:34: (Each undeclared identifier is reported only once
.../lcd.c:34: for each function it appears in.)
.../lcd.c:34: `BIT4' undeclared (first use in this function)
.../lcd.c:34: `BIT5' undeclared (first use in this function)
.../lcd.c:34: `BIT6' undeclared (first use in this function)
.../lcd.c:34: `BIT7' undeclared (first use in this function)
.../lcd.c:35: `P3OUT' undeclared (first use in this function)
.../lcd.c:35: `BIT2' undeclared (first use in this function)
.../lcd.c:38: `BIT3' undeclared (first use in this function)
.../lcd.c:40: `P3IN' undeclared (first use in this function)
.../lcd.c:46: `BIT1' undeclared (first use in this function)
.../lcd.c: In function `lcdOn':
.../lcd.c:53: `P3OUT' undeclared (first use in this function)
.../lcd.c:57: `BIT3' undeclared (first use in this function)
.../lcd.c: In function `lcdInstr':
.../lcd.c:93: `P3OUT' undeclared (first use in this function)
.../lcd.c:94: `BIT3' undeclared (first use in this function)
.../lcd.c: In function `lcdPutc':
.../lcd.c:121: `P3OUT' undeclared (first use in this function)
.../lcd.c:121: `BIT1' undeclared (first use in this function)
.../lcd.c:122: `BIT3' undeclared (first use in this function)
make: *** [lcd.o] Error 1
Building file: ../main.c
msp430-gcc -IC:/mspgcc/msp430/include -O0 -g3 -Wall -c -fmessage-length=0 -omain.o
.../main.c
In file included from ../main.c:8:
/cygdrive/c/mspgcc/msp430/include/io.h:93:2: warning: #warning "Unknown
arch! Please check"
.../main.c: In function `INT_TimerA_CCR0':
.../main.c:108: `CCR0' undeclared (first use in this function)
.../main.c:108: (Each undeclared identifier is reported only once
.../main.c:108: for each function it appears in.)
.../main.c: In function `INT_P2':
.../main.c:149: `P2IN' undeclared (first use in this function)
.../main.c:149: `BIT1' undeclared (first use in this function)
.../main.c:153: `BIT0' undeclared (first use in this function)
.../main.c:163: `P2IFG' undeclared (first use in this function)
.../main.c: In function `sendkeyb':
.../main.c:248: `P2IE' undeclared (first use in this function)
.../main.c:248: `BIT1' undeclared (first use in this function)
.../main.c:249: `P2OUT' undeclared (first use in this function)
.../main.c:249: `BIT0' undeclared (first use in this function)
.../main.c:251: `P2DIR' undeclared (first use in this function)
.../main.c:256: `P2IN' undeclared (first use in this function)
.../main.c:282: `BIT5' undeclared (first use in this function)
.../main.c:298: `P2IFG' undeclared (first use in this function)
.../main.c: In function `main':
.../main.c:310: `WDTCTL' undeclared (first use in this function)
.../main.c:310: `WDTPW' undeclared (first use in this function)
.../main.c:310: `WDTHOLD' undeclared (first use in this function)
.../main.c:312: `P1OUT' undeclared (first use in this function)
.../main.c:313: `P2OUT' undeclared (first use in this function)
.../main.c:314: `P3OUT' undeclared (first use in this function)
.../main.c:316: `P1SEL' undeclared (first use in this function)
.../main.c:317: `P2SEL' undeclared (first use in this function)
.../main.c:318: `P3SEL' undeclared (first use in this function)
.../main.c:320: `P1DIR' undeclared (first use in this function)
.../main.c:321: `P2DIR' undeclared (first use in this function)
.../main.c:321: `BIT5' undeclared (first use in this function)
.../main.c:322: `P3DIR' undeclared (first use in this function)
.../main.c:324: `P1IES' undeclared (first use in this function)
.../main.c:325: `P2IES' undeclared (first use in this function)
.../main.c:325: `BIT1' undeclared (first use in this function)
.../main.c:326: `P1IE' undeclared (first use in this function)
.../main.c:327: `P2IE' undeclared (first use in this function)
.../main.c:329: `BCSCTL1' undeclared (first use in this function)
.../main.c:329: `DIVA0' undeclared (first use in this function)
.../main.c:329: `DIVA1' undeclared (first use in this function)
.../main.c:330: `TACTL' undeclared (first use in this function)
.../main.c:330: `TASSEL0' undeclared (first use in this function)
.../main.c:330: `TACLR' undeclared (first use in this function)
.../main.c:330: `ID_3' undeclared (first use in this function)
.../main.c:331: `CCR0' undeclared (first use in this function)
.../main.c:332: `CCTL0' undeclared (first use in this function)
.../main.c:332: `CCIE' undeclared (first use in this function)
.../main.c:333: `CCTL1' undeclared (first use in this function)
.../main.c:334: `CCTL2' undeclared (first use in this function)
.../main.c:335: `MC1' undeclared (first use in this function)
.../main.c:346: `BIT0' undeclared (first use in this function)
.../main.c:355: warning: passing arg 1 of `uprintf' from incompatible pointer
type
.../main.c:361: `LPM0' undeclared (first use in this function)
.../main.c:365: warning: passing arg 1 of `uprintf' from incompatible pointer
type
make: *** [main.o] Error 1
make: Target `all' not remade because of errors.
Build complete for project pckeybd
|
|
|
Powered by
FUDForum. Page generated in 0.02416 seconds