This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Trouble compiling ADS1232REF firmware

Other Parts Discussed in Thread: ADS1232REF, ADS1232

I have downloaded the source code for the ADS1232REF evaluation module from ftp://ftp.ti.com/pub/data_acquisition/ADS123xREF/ADS123x_CDROM/

When I try to compile it I get numerous errors (see make output below).

I'm using cygwin to compile on Windows. I'm using the latest version of mspgcc (mspgcc-20120406-p20120911).

Using the above link I can only find V1.1 but my board was shipped with version V1.2. Is the source code for version 1.2 available?

Regards, Ben

*******************************MAKE OUTPUT *******************************

$ make
msp430-gcc -mmcu=msp430x449 -Ios/include -I../.. -I. -DVERSION=\""1.1.0d"\" -g -O1 core.c config.c qconfig.c heap_1.c keys.c lcd.c main.c ads1232.c anyl.c nconv.c nconv.s debug.c test.c disp.c console.c uart.c flash.c os/list.c os/port.c os/queue.c os/tasks.c -o ads1232ref-debug.elf -lm
In file included from ./FreeRTOSConfig.h:39:0,
from os/include/FreeRTOS.h:46,
from common.h:5,
from core.c:2:
c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/io.h:1:2: warning: #warning <io.h> is deprecated, please include <msp430.h> [-Wcpp]
In file included from c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/io.h:2:0,
from ./FreeRTOSConfig.h:39,
from os/include/FreeRTOS.h:46,
from common.h:5,
from core.c:2:
c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/msp430.h:813:2: warning: #warning Unable to identify and include MCU header, use -mmcu=MCU [-Wcpp]
In file included from ./FreeRTOSConfig.h:39:0,
from os/include/FreeRTOS.h:46,
from common.h:5,
from config.h:4,
from config.c:2:
c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/io.h:1:2: warning: #warning <io.h> is deprecated, please include <msp430.h> [-Wcpp]
In file included from c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/io.h:2:0,
from ./FreeRTOSConfig.h:39,
from os/include/FreeRTOS.h:46,
from common.h:5,
from config.h:4,
from config.c:2:
c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/msp430.h:813:2: warning: #warning Unable to identify and include MCU header, use -mmcu=MCU [-Wcpp]
In file included from ./FreeRTOSConfig.h:39:0,
from os/include/FreeRTOS.h:46,
from common.h:5,
from config.h:4,
from qconfig.c:2:
c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/io.h:1:2: warning: #warning <io.h> is deprecated, please include <msp430.h> [-Wcpp]
In file included from c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/io.h:2:0,
from ./FreeRTOSConfig.h:39,
from os/include/FreeRTOS.h:46,
from common.h:5,
from config.h:4,
from qconfig.c:2:
c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/msp430.h:813:2: warning: #warning Unable to identify and include MCU header, use -mmcu=MCU [-Wcpp]
In file included from ./FreeRTOSConfig.h:39:0,
from os/include/FreeRTOS.h:46,
from heap_1.c:55:
c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/io.h:1:2: warning: #warning <io.h> is deprecated, please include <msp430.h> [-Wcpp]
In file included from c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/io.h:2:0,
from ./FreeRTOSConfig.h:39,
from os/include/FreeRTOS.h:46,
from heap_1.c:55:
c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/msp430.h:813:2: warning: #warning Unable to identify and include MCU header, use -mmcu=MCU [-Wcpp]
In file included from ./FreeRTOSConfig.h:39:0,
from os/include/FreeRTOS.h:46,
from common.h:5,
from keys.h:5,
from keys.c:2:
c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/io.h:1:2: warning: #warning <io.h> is deprecated, please include <msp430.h> [-Wcpp]
In file included from c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/io.h:2:0,
from ./FreeRTOSConfig.h:39,
from os/include/FreeRTOS.h:46,
from common.h:5,
from keys.h:5,
from keys.c:2:
c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/msp430.h:813:2: warning: #warning Unable to identify and include MCU header, use -mmcu=MCU [-Wcpp]
keys.c: In function 'keys_update':
keys.c:86:15: error: 'P2IN' undeclared (first use in this function)
keys.c:86:15: note: each undeclared identifier is reported only once for each function it appears in
keys.c: In function 'keys_updatesw':
keys.c:116:10: error: 'P2IN' undeclared (first use in this function)
In file included from ./FreeRTOSConfig.h:39:0,
from os/include/FreeRTOS.h:46,
from common.h:5,
from lcd.h:5,
from lcd.c:2:
c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/io.h:1:2: warning: #warning <io.h> is deprecated, please include <msp430.h> [-Wcpp]
In file included from c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/io.h:2:0,
from ./FreeRTOSConfig.h:39,
from os/include/FreeRTOS.h:46,
from common.h:5,
from lcd.h:5,
from lcd.c:2:
c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/msp430.h:813:2: warning: #warning Unable to identify and include MCU header, use -mmcu=MCU [-Wcpp]
lcd.c: In function 'lcd_init':
lcd.c:222:2: error: 'BTCTL' undeclared (first use in this function)
lcd.c:222:2: note: each undeclared identifier is reported only once for each function it appears in
lcd.c:223:2: error: 'P5SEL' undeclared (first use in this function)
lcd.c:225:2: error: 'LCDCTL' undeclared (first use in this function)
In file included from ./FreeRTOSConfig.h:39:0,
from os/include/FreeRTOS.h:46,
from common.h:5,
from main.c:2:
c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/io.h:1:2: warning: #warning <io.h> is deprecated, please include <msp430.h> [-Wcpp]
In file included from c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/io.h:2:0,
from ./FreeRTOSConfig.h:39,
from os/include/FreeRTOS.h:46,
from common.h:5,
from main.c:2:
c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/msp430.h:813:2: warning: #warning Unable to identify and include MCU header, use -mmcu=MCU [-Wcpp]
In file included from main.c:8:0:
c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/signal.h:43:2: warning: #warning msp430-libc <signal.h> deprecated, using <legacymsp430.h> [-Wcpp]
main.c: In function 'init_clock':
main.c:30:2: error: 'SCFQCTL' undeclared (first use in this function)
main.c:30:2: note: each undeclared identifier is reported only once for each function it appears in
main.c:32:2: error: 'SCFI0' undeclared (first use in this function)
main.c:35:2: error: 'FLL_CTL0' undeclared (first use in this function)
main.c:38:2: error: 'FLL_CTL1' undeclared (first use in this function)
main.c:40:3: error: 'IFG1' undeclared (first use in this function)
main.c:40:10: error: 'OFIFG' undeclared (first use in this function)
main.c: In function 'check_rev':
main.c:54:2: error: 'P1DIR' undeclared (first use in this function)
main.c:57:2: error: 'P1OUT' undeclared (first use in this function)
main.c:59:6: error: 'P1IN' undeclared (first use in this function)
main.c: In function 'main':
main.c:79:2: error: 'WDTCTL' undeclared (first use in this function)
main.c:79:9: error: 'WDTPW' undeclared (first use in this function)
main.c:79:15: error: 'WDTHOLD' undeclared (first use in this function)
main.c:84:2: error: 'P1OUT' undeclared (first use in this function)
main.c:85:2: error: 'P1DIR' undeclared (first use in this function)
main.c:86:2: error: 'P2DIR' undeclared (first use in this function)
main.c:87:2: error: 'P2OUT' undeclared (first use in this function)
main.c:88:2: error: 'P3DIR' undeclared (first use in this function)
main.c:89:2: error: 'P4OUT' undeclared (first use in this function)
main.c:90:2: error: 'P4DIR' undeclared (first use in this function)
main.c:91:2: error: 'P5DIR' undeclared (first use in this function)
main.c:92:2: error: 'P6DIR' undeclared (first use in this function)
main.c:111:7: error: 'P2IN' undeclared (first use in this function)
In file included from ./FreeRTOSConfig.h:39:0,
from os/include/FreeRTOS.h:46,
from common.h:5,
from ads1232.h:7,
from ads1232.c:2:
c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/io.h:1:2: warning: #warning <io.h> is deprecated, please include <msp430.h> [-Wcpp]
In file included from c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/io.h:2:0,
from ./FreeRTOSConfig.h:39,
from os/include/FreeRTOS.h:46,
from common.h:5,
from ads1232.h:7,
from ads1232.c:2:
c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/msp430.h:813:2: warning: #warning Unable to identify and include MCU header, use -mmcu=MCU [-Wcpp]
In file included from ads1232.c:4:0:
c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/signal.h:43:2: warning: #warning msp430-libc <signal.h> deprecated, using <legacymsp430.h> [-Wcpp]
ads1232.c: In function 'DRDYIN':
ads1232.c:30:1: error: 'P2IN' undeclared (first use in this function)
ads1232.c:30:1: note: each undeclared identifier is reported only once for each function it appears in
ads1232.c: In function 'DRDYOUTH':
ads1232.c:30:1: error: 'P2OUT' undeclared (first use in this function)
ads1232.c: In function 'DRDYOUTL':
ads1232.c:30:1: error: 'P2OUT' undeclared (first use in this function)
ads1232.c: In function 'DRDYOUTR':
ads1232.c:30:1: error: 'P2OUT' undeclared (first use in this function)
ads1232.c: In function 'DRDYDIRH':
ads1232.c:30:1: error: 'P2DIR' undeclared (first use in this function)
ads1232.c: In function 'DRDYDIRL':
ads1232.c:30:1: error: 'P2DIR' undeclared (first use in this function)
ads1232.c: In function 'DRDYDIRR':
ads1232.c:30:1: error: 'P2DIR' undeclared (first use in this function)
ads1232.c: In function 'DRDYSELH':
ads1232.c:30:1: error: 'P2SEL' undeclared (first use in this function)
ads1232.c: In function 'DRDYSELL':
ads1232.c:30:1: error: 'P2SEL' undeclared (first use in this function)
ads1232.c: In function 'DRDYSELR':
ads1232.c:30:1: error: 'P2SEL' undeclared (first use in this function)
ads1232.c: In function 'DRDYIFGH':
ads1232.c:30:1: error: 'P2IFG' undeclared (first use in this function)
ads1232.c: In function 'DRDYIFGL':
ads1232.c:30:1: error: 'P2IFG' undeclared (first use in this function)
ads1232.c: In function 'DRDYIFGR':
ads1232.c:30:1: error: 'P2IFG' undeclared (first use in this function)
ads1232.c: In function 'DRDYIESH':
ads1232.c:30:1: error: 'P2IES' undeclared (first use in this function)
ads1232.c: In function 'DRDYIESL':
ads1232.c:30:1: error: 'P2IES' undeclared (first use in this function)
ads1232.c: In function 'DRDYIESR':
ads1232.c:30:1: error: 'P2IES' undeclared (first use in this function)
ads1232.c: In function 'DRDYIEH':
ads1232.c:30:1: error: 'P2IE' undeclared (first use in this function)
ads1232.c: In function 'DRDYIEL':
ads1232.c:30:1: error: 'P2IE' undeclared (first use in this function)
ads1232.c: In function 'DRDYIER':
ads1232.c:30:1: error: 'P2IE' undeclared (first use in this function)
ads1232.c: In function 'EXTCLKIN':
ads1232.c:31:1: error: 'P1IN' undeclared (first use in this function)
ads1232.c: In function 'EXTCLKOUTH':
ads1232.c:31:1: error: 'P1OUT' undeclared (first use in this function)
ads1232.c: In function 'EXTCLKOUTL':
ads1232.c:31:1: error: 'P1OUT' undeclared (first use in this function)
ads1232.c: In function 'EXTCLKOUTR':
ads1232.c:31:1: error: 'P1OUT' undeclared (first use in this function)
ads1232.c: In function 'EXTCLKDIRH':
ads1232.c:31:1: error: 'P1DIR' undeclared (first use in this function)
ads1232.c: In function 'EXTCLKDIRL':
ads1232.c:31:1: error: 'P1DIR' undeclared (first use in this function)
ads1232.c: In function 'EXTCLKDIRR':
ads1232.c:31:1: error: 'P1DIR' undeclared (first use in this function)
ads1232.c: In function 'EXTCLKSELH':
ads1232.c:31:1: error: 'P1SEL' undeclared (first use in this function)
ads1232.c: In function 'EXTCLKSELL':
ads1232.c:31:1: error: 'P1SEL' undeclared (first use in this function)
ads1232.c: In function 'EXTCLKSELR':
ads1232.c:31:1: error: 'P1SEL' undeclared (first use in this function)
ads1232.c: In function 'EXTCLKIFGH':
ads1232.c:31:1: error: 'P1IFG' undeclared (first use in this function)
ads1232.c: In function 'EXTCLKIFGL':
ads1232.c:31:1: error: 'P1IFG' undeclared (first use in this function)
ads1232.c: In function 'EXTCLKIFGR':
ads1232.c:31:1: error: 'P1IFG' undeclared (first use in this function)
ads1232.c: In function 'EXTCLKIESH':
ads1232.c:31:1: error: 'P1IES' undeclared (first use in this function)
ads1232.c: In function 'EXTCLKIESL':
ads1232.c:31:1: error: 'P1IES' undeclared (first use in this function)
ads1232.c: In function 'EXTCLKIESR':
ads1232.c:31:1: error: 'P1IES' undeclared (first use in this function)
ads1232.c: In function 'EXTCLKIEH':
ads1232.c:31:1: error: 'P1IE' undeclared (first use in this function)
ads1232.c: In function 'EXTCLKIEL':
ads1232.c:31:1: error: 'P1IE' undeclared (first use in this function)
ads1232.c: In function 'EXTCLKIER':
ads1232.c:31:1: error: 'P1IE' undeclared (first use in this function)
ads1232.c: In function 'DOUTIN':
ads1232.c:33:1: error: 'P3IN' undeclared (first use in this function)
ads1232.c: In function 'DOUTOUTH':
ads1232.c:33:1: error: 'P3OUT' undeclared (first use in this function)
ads1232.c: In function 'DOUTOUTL':
ads1232.c:33:1: error: 'P3OUT' undeclared (first use in this function)
ads1232.c: In function 'DOUTOUTR':
ads1232.c:33:1: error: 'P3OUT' undeclared (first use in this function)
ads1232.c: In function 'DOUTDIRH':
ads1232.c:33:1: error: 'P3DIR' undeclared (first use in this function)
ads1232.c: In function 'DOUTDIRL':
ads1232.c:33:1: error: 'P3DIR' undeclared (first use in this function)
ads1232.c: In function 'DOUTDIRR':
ads1232.c:33:1: error: 'P3DIR' undeclared (first use in this function)
ads1232.c: In function 'DOUTSELH':
ads1232.c:33:1: error: 'P3SEL' undeclared (first use in this function)
ads1232.c: In function 'DOUTSELL':
ads1232.c:33:1: error: 'P3SEL' undeclared (first use in this function)
ads1232.c: In function 'DOUTSELR':
ads1232.c:33:1: error: 'P3SEL' undeclared (first use in this function)
ads1232.c: In function 'SCLKIN':
ads1232.c:34:1: error: 'P3IN' undeclared (first use in this function)
ads1232.c: In function 'SCLKOUTH':
ads1232.c:34:1: error: 'P3OUT' undeclared (first use in this function)
ads1232.c: In function 'SCLKOUTL':
ads1232.c:34:1: error: 'P3OUT' undeclared (first use in this function)
ads1232.c: In function 'SCLKOUTR':
ads1232.c:34:1: error: 'P3OUT' undeclared (first use in this function)
ads1232.c: In function 'SCLKDIRH':
ads1232.c:34:1: error: 'P3DIR' undeclared (first use in this function)
ads1232.c: In function 'SCLKDIRL':
ads1232.c:34:1: error: 'P3DIR' undeclared (first use in this function)
ads1232.c: In function 'SCLKDIRR':
ads1232.c:34:1: error: 'P3DIR' undeclared (first use in this function)
ads1232.c: In function 'SCLKSELH':
ads1232.c:34:1: error: 'P3SEL' undeclared (first use in this function)
ads1232.c: In function 'SCLKSELL':
ads1232.c:34:1: error: 'P3SEL' undeclared (first use in this function)
ads1232.c: In function 'SCLKSELR':
ads1232.c:34:1: error: 'P3SEL' undeclared (first use in this function)
ads1232.c: In function 'SPEEDIN':
ads1232.c:35:1: error: 'P3IN' undeclared (first use in this function)
ads1232.c: In function 'SPEEDOUTH':
ads1232.c:35:1: error: 'P3OUT' undeclared (first use in this function)
ads1232.c: In function 'SPEEDOUTL':
ads1232.c:35:1: error: 'P3OUT' undeclared (first use in this function)
ads1232.c: In function 'SPEEDOUTR':
ads1232.c:35:1: error: 'P3OUT' undeclared (first use in this function)
ads1232.c: In function 'SPEEDDIRH':
ads1232.c:35:1: error: 'P3DIR' undeclared (first use in this function)
ads1232.c: In function 'SPEEDDIRL':
ads1232.c:35:1: error: 'P3DIR' undeclared (first use in this function)
ads1232.c: In function 'SPEEDDIRR':
ads1232.c:35:1: error: 'P3DIR' undeclared (first use in this function)
ads1232.c: In function 'SPEEDSELH':
ads1232.c:35:1: error: 'P3SEL' undeclared (first use in this function)
ads1232.c: In function 'SPEEDSELL':
ads1232.c:35:1: error: 'P3SEL' undeclared (first use in this function)
ads1232.c: In function 'SPEEDSELR':
ads1232.c:35:1: error: 'P3SEL' undeclared (first use in this function)
ads1232.c: In function 'TEMPIN':
ads1232.c:37:1: error: 'P1IN' undeclared (first use in this function)
ads1232.c: In function 'TEMPOUTH':
ads1232.c:37:1: error: 'P1OUT' undeclared (first use in this function)
ads1232.c: In function 'TEMPOUTL':
ads1232.c:37:1: error: 'P1OUT' undeclared (first use in this function)
ads1232.c: In function 'TEMPOUTR':
ads1232.c:37:1: error: 'P1OUT' undeclared (first use in this function)
ads1232.c: In function 'TEMPDIRH':
ads1232.c:37:1: error: 'P1DIR' undeclared (first use in this function)
ads1232.c: In function 'TEMPDIRL':
ads1232.c:37:1: error: 'P1DIR' undeclared (first use in this function)
ads1232.c: In function 'TEMPDIRR':
ads1232.c:37:1: error: 'P1DIR' undeclared (first use in this function)
ads1232.c: In function 'TEMPSELH':
ads1232.c:37:1: error: 'P1SEL' undeclared (first use in this function)
ads1232.c: In function 'TEMPSELL':
ads1232.c:37:1: error: 'P1SEL' undeclared (first use in this function)
ads1232.c: In function 'TEMPSELR':
ads1232.c:37:1: error: 'P1SEL' undeclared (first use in this function)
ads1232.c: In function 'TEMPIFGH':
ads1232.c:37:1: error: 'P1IFG' undeclared (first use in this function)
ads1232.c: In function 'TEMPIFGL':
ads1232.c:37:1: error: 'P1IFG' undeclared (first use in this function)
ads1232.c: In function 'TEMPIFGR':
ads1232.c:37:1: error: 'P1IFG' undeclared (first use in this function)
ads1232.c: In function 'TEMPIESH':
ads1232.c:37:1: error: 'P1IES' undeclared (first use in this function)
ads1232.c: In function 'TEMPIESL':
ads1232.c:37:1: error: 'P1IES' undeclared (first use in this function)
ads1232.c: In function 'TEMPIESR':
ads1232.c:37:1: error: 'P1IES' undeclared (first use in this function)
ads1232.c: In function 'TEMPIEH':
ads1232.c:37:1: error: 'P1IE' undeclared (first use in this function)
ads1232.c: In function 'TEMPIEL':
ads1232.c:37:1: error: 'P1IE' undeclared (first use in this function)
ads1232.c: In function 'TEMPIER':
ads1232.c:37:1: error: 'P1IE' undeclared (first use in this function)
ads1232.c: In function 'GAIN0IN':
ads1232.c:38:1: error: 'P3IN' undeclared (first use in this function)
ads1232.c: In function 'GAIN0OUTH':
ads1232.c:38:1: error: 'P3OUT' undeclared (first use in this function)
ads1232.c: In function 'GAIN0OUTL':
ads1232.c:38:1: error: 'P3OUT' undeclared (first use in this function)
ads1232.c: In function 'GAIN0OUTR':
ads1232.c:38:1: error: 'P3OUT' undeclared (first use in this function)
ads1232.c: In function 'GAIN0DIRH':
ads1232.c:38:1: error: 'P3DIR' undeclared (first use in this function)
ads1232.c: In function 'GAIN0DIRL':
ads1232.c:38:1: error: 'P3DIR' undeclared (first use in this function)
ads1232.c: In function 'GAIN0DIRR':
ads1232.c:38:1: error: 'P3DIR' undeclared (first use in this function)
ads1232.c: In function 'GAIN0SELH':
ads1232.c:38:1: error: 'P3SEL' undeclared (first use in this function)
ads1232.c: In function 'GAIN0SELL':
ads1232.c:38:1: error: 'P3SEL' undeclared (first use in this function)
ads1232.c: In function 'GAIN0SELR':
ads1232.c:38:1: error: 'P3SEL' undeclared (first use in this function)
ads1232.c: In function 'GAIN1IN':
ads1232.c:39:1: error: 'P3IN' undeclared (first use in this function)
ads1232.c: In function 'GAIN1OUTH':
ads1232.c:39:1: error: 'P3OUT' undeclared (first use in this function)
ads1232.c: In function 'GAIN1OUTL':
ads1232.c:39:1: error: 'P3OUT' undeclared (first use in this function)
ads1232.c: In function 'GAIN1OUTR':
ads1232.c:39:1: error: 'P3OUT' undeclared (first use in this function)
ads1232.c: In function 'GAIN1DIRH':
ads1232.c:39:1: error: 'P3DIR' undeclared (first use in this function)
ads1232.c: In function 'GAIN1DIRL':
ads1232.c:39:1: error: 'P3DIR' undeclared (first use in this function)
ads1232.c: In function 'GAIN1DIRR':
ads1232.c:39:1: error: 'P3DIR' undeclared (first use in this function)
ads1232.c: In function 'GAIN1SELH':
ads1232.c:39:1: error: 'P3SEL' undeclared (first use in this function)
ads1232.c: In function 'GAIN1SELL':
ads1232.c:39:1: error: 'P3SEL' undeclared (first use in this function)
ads1232.c: In function 'GAIN1SELR':
ads1232.c:39:1: error: 'P3SEL' undeclared (first use in this function)
ads1232.c: In function 'MUX0IN':
ads1232.c:40:1: error: 'P3IN' undeclared (first use in this function)
ads1232.c: In function 'MUX0OUTH':
ads1232.c:40:1: error: 'P3OUT' undeclared (first use in this function)
ads1232.c: In function 'MUX0OUTL':
ads1232.c:40:1: error: 'P3OUT' undeclared (first use in this function)
ads1232.c: In function 'MUX0OUTR':
ads1232.c:40:1: error: 'P3OUT' undeclared (first use in this function)
ads1232.c: In function 'MUX0DIRH':
ads1232.c:40:1: error: 'P3DIR' undeclared (first use in this function)
ads1232.c: In function 'MUX0DIRL':
ads1232.c:40:1: error: 'P3DIR' undeclared (first use in this function)
ads1232.c: In function 'MUX0DIRR':
ads1232.c:40:1: error: 'P3DIR' undeclared (first use in this function)
ads1232.c: In function 'MUX0SELH':
ads1232.c:40:1: error: 'P3SEL' undeclared (first use in this function)
ads1232.c: In function 'MUX0SELL':
ads1232.c:40:1: error: 'P3SEL' undeclared (first use in this function)
ads1232.c: In function 'MUX0SELR':
ads1232.c:40:1: error: 'P3SEL' undeclared (first use in this function)
ads1232.c: In function 'PDWNIN':
ads1232.c:44:1: error: 'P3IN' undeclared (first use in this function)
ads1232.c: In function 'PDWNOUTH':
ads1232.c:44:1: error: 'P3OUT' undeclared (first use in this function)
ads1232.c: In function 'PDWNOUTL':
ads1232.c:44:1: error: 'P3OUT' undeclared (first use in this function)
ads1232.c: In function 'PDWNOUTR':
ads1232.c:44:1: error: 'P3OUT' undeclared (first use in this function)
ads1232.c: In function 'PDWNDIRH':
ads1232.c:44:1: error: 'P3DIR' undeclared (first use in this function)
ads1232.c: In function 'PDWNDIRL':
ads1232.c:44:1: error: 'P3DIR' undeclared (first use in this function)
ads1232.c: In function 'PDWNDIRR':
ads1232.c:44:1: error: 'P3DIR' undeclared (first use in this function)
ads1232.c: In function 'PDWNSELH':
ads1232.c:44:1: error: 'P3SEL' undeclared (first use in this function)
ads1232.c: In function 'PDWNSELL':
ads1232.c:44:1: error: 'P3SEL' undeclared (first use in this function)
ads1232.c: In function 'PDWNSELR':
ads1232.c:44:1: error: 'P3SEL' undeclared (first use in this function)
ads1232.c: In function 'ads1232_init':
ads1232.c:79:2: error: 'U0CTL' undeclared (first use in this function)
ads1232.c:85:2: error: 'U0TCTL' undeclared (first use in this function)
ads1232.c:88:2: error: 'U0BR0' undeclared (first use in this function)
ads1232.c:89:2: error: 'U0BR1' undeclared (first use in this function)
ads1232.c:90:2: error: 'U0MCTL' undeclared (first use in this function)
ads1232.c:91:2: error: 'ME1' undeclared (first use in this function)
ads1232.c:91:7: error: 'USPIE0' undeclared (first use in this function)
ads1232.c: In function 'ads1232_isr':
ads1232.c:284:26: error: interrupt vector offset 'PORT2_VECTOR' is not an integer constant
ads1232.c:292:2: error: 'U0TXBUF' undeclared (first use in this function)
ads1232.c:293:10: error: 'IFG1' undeclared (first use in this function)
ads1232.c:293:15: error: 'URXIFG0' undeclared (first use in this function)
ads1232.c:294:10: error: 'U0RXBUF' undeclared (first use in this function)
In file included from ./FreeRTOSConfig.h:39:0,
from os/include/FreeRTOS.h:46,
from common.h:5,
from anyl.h:5,
from anyl.c:2:
c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/io.h:1:2: warning: #warning <io.h> is deprecated, please include <msp430.h> [-Wcpp]
In file included from c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/io.h:2:0,
from ./FreeRTOSConfig.h:39,
from os/include/FreeRTOS.h:46,
from common.h:5,
from anyl.h:5,
from anyl.c:2:
c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/msp430.h:813:2: warning: #warning Unable to identify and include MCU header, use -mmcu=MCU [-Wcpp]
anyl.c: In function 'stddev':
anyl.c:79:9: warning: incompatible implicit declaration of built-in function 'sqrtf' [enabled by default]
In file included from ./FreeRTOSConfig.h:39:0,
from os/include/FreeRTOS.h:46,
from common.h:5,
from nconv.h:5,
from nconv.c:2:
c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/io.h:1:2: warning: #warning <io.h> is deprecated, please include <msp430.h> [-Wcpp]
In file included from c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/io.h:2:0,
from ./FreeRTOSConfig.h:39,
from os/include/FreeRTOS.h:46,
from common.h:5,
from nconv.h:5,
from nconv.c:2:
c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/msp430.h:813:2: warning: #warning Unable to identify and include MCU header, use -mmcu=MCU [-Wcpp]
In file included from ./FreeRTOSConfig.h:39:0,
from os/include/FreeRTOS.h:46,
from common.h:5,
from debug.c:2:
c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/io.h:1:2: warning: #warning <io.h> is deprecated, please include <msp430.h> [-Wcpp]
In file included from c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/io.h:2:0,
from ./FreeRTOSConfig.h:39,
from os/include/FreeRTOS.h:46,
from common.h:5,
from debug.c:2:
c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/msp430.h:813:2: warning: #warning Unable to identify and include MCU header, use -mmcu=MCU [-Wcpp]
In file included from ./FreeRTOSConfig.h:39:0,
from os/include/FreeRTOS.h:46,
from common.h:5,
from test.c:2:
c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/io.h:1:2: warning: #warning <io.h> is deprecated, please include <msp430.h> [-Wcpp]
In file included from c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/io.h:2:0,
from ./FreeRTOSConfig.h:39,
from os/include/FreeRTOS.h:46,
from common.h:5,
from test.c:2:
c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/msp430.h:813:2: warning: #warning Unable to identify and include MCU header, use -mmcu=MCU [-Wcpp]
In file included from ./FreeRTOSConfig.h:39:0,
from os/include/FreeRTOS.h:46,
from common.h:5,
from disp.h:5,
from disp.c:2:
c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/io.h:1:2: warning: #warning <io.h> is deprecated, please include <msp430.h> [-Wcpp]
In file included from c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/io.h:2:0,
from ./FreeRTOSConfig.h:39,
from os/include/FreeRTOS.h:46,
from common.h:5,
from disp.h:5,
from disp.c:2:
c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/msp430.h:813:2: warning: #warning Unable to identify and include MCU header, use -mmcu=MCU [-Wcpp]
In file included from ./FreeRTOSConfig.h:39:0,
from os/include/FreeRTOS.h:46,
from common.h:5,
from console.c:2:
c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/io.h:1:2: warning: #warning <io.h> is deprecated, please include <msp430.h> [-Wcpp]
In file included from c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/io.h:2:0,
from ./FreeRTOSConfig.h:39,
from os/include/FreeRTOS.h:46,
from common.h:5,
from console.c:2:
c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/msp430.h:813:2: warning: #warning Unable to identify and include MCU header, use -mmcu=MCU [-Wcpp]
console.c: In function 'check_uart':
console.c:283:8: error: 'P4IN' undeclared (first use in this function)
console.c:283:8: note: each undeclared identifier is reported only once for each function it appears in
In file included from ./FreeRTOSConfig.h:39:0,
from os/include/FreeRTOS.h:46,
from common.h:5,
from uart.c:3:
c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/io.h:1:2: warning: #warning <io.h> is deprecated, please include <msp430.h> [-Wcpp]
In file included from c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/io.h:2:0,
from ./FreeRTOSConfig.h:39,
from os/include/FreeRTOS.h:46,
from common.h:5,
from uart.c:3:
c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/msp430.h:813:2: warning: #warning Unable to identify and include MCU header, use -mmcu=MCU [-Wcpp]
In file included from uart.c:5:0:
c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/signal.h:43:2: warning: #warning msp430-libc <signal.h> deprecated, using <legacymsp430.h> [-Wcpp]
uart.c: In function 'uart_init':
uart.c:16:2: error: 'U1CTL' undeclared (first use in this function)
uart.c:16:2: note: each undeclared identifier is reported only once for each function it appears in
uart.c:16:9: error: 'SWRST' undeclared (first use in this function)
uart.c:19:2: error: 'U1TCTL' undeclared (first use in this function)
uart.c:20:2: error: 'U1RCTL' undeclared (first use in this function)
uart.c:23:2: error: 'UBR01' undeclared (first use in this function)
uart.c:23:14: error: 'UBR11' undeclared (first use in this function)
uart.c:23:26: error: 'UMCTL1' undeclared (first use in this function)
uart.c:26:2: error: 'port4' undeclared (first use in this function)
uart.c:32:2: error: 'ME2' undeclared (first use in this function)
uart.c:32:7: error: 'UTXE1' undeclared (first use in this function)
uart.c:32:13: error: 'URXE1' undeclared (first use in this function)
uart.c:37:2: error: 'IE2' undeclared (first use in this function)
uart.c:37:7: error: 'URXIE1' undeclared (first use in this function)
uart.c: In function 'uart1rx_isr':
uart.c:40:29: error: interrupt vector offset 'USART1RX_VECTOR' is not an integer constant
uart.c:44:4: error: 'U1RXBUF' undeclared (first use in this function)
uart.c: In function 'uart_txc':
uart.c:52:11: error: 'IFG2' undeclared (first use in this function)
uart.c:52:16: error: 'UTXIFG1' undeclared (first use in this function)
uart.c:53:2: error: 'U1TXBUF' undeclared (first use in this function)
In file included from ./FreeRTOSConfig.h:39:0,
from os/include/FreeRTOS.h:46,
from common.h:5,
from config.h:4,
from flash.c:3:
c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/io.h:1:2: warning: #warning <io.h> is deprecated, please include <msp430.h> [-Wcpp]
In file included from c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/io.h:2:0,
from ./FreeRTOSConfig.h:39,
from os/include/FreeRTOS.h:46,
from common.h:5,
from config.h:4,
from flash.c:3:
c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/msp430.h:813:2: warning: #warning Unable to identify and include MCU header, use -mmcu=MCU [-Wcpp]
flash.c: In function 'flash_erase':
flash.c:105:2: error: 'FCTL3' undeclared (first use in this function)
flash.c:105:2: note: each undeclared identifier is reported only once for each function it appears in
flash.c:105:8: error: 'FWKEY' undeclared (first use in this function)
flash.c:106:2: error: 'FCTL1' undeclared (first use in this function)
flash.c:106:14: error: 'ERASE' undeclared (first use in this function)
flash.c:107:2: error: 'FCTL2' undeclared (first use in this function)
flash.c:111:14: error: 'LOCK' undeclared (first use in this function)
flash.c: In function 'flash_write':
flash.c:134:2: error: 'FCTL3' undeclared (first use in this function)
flash.c:134:8: error: 'FWKEY' undeclared (first use in this function)
flash.c:135:2: error: 'FCTL2' undeclared (first use in this function)
flash.c:136:2: error: 'FCTL1' undeclared (first use in this function)
flash.c:136:14: error: 'WRT' undeclared (first use in this function)
flash.c:145:14: error: 'LOCK' undeclared (first use in this function)
In file included from ./FreeRTOSConfig.h:39:0,
from os/include/FreeRTOS.h:46,
from os/list.c:65:
c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/io.h:1:2: warning: #warning <io.h> is deprecated, please include <msp430.h> [-Wcpp]
In file included from c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/io.h:2:0,
from ./FreeRTOSConfig.h:39,
from os/include/FreeRTOS.h:46,
from os/list.c:65:
c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/msp430.h:813:2: warning: #warning Unable to identify and include MCU header, use -mmcu=MCU [-Wcpp]
In file included from os/port.c:41:0:
c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/signal.h:43:2: warning: #warning msp430-libc <signal.h> deprecated, using <legacymsp430.h> [-Wcpp]
In file included from c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/legacymsp430.h:34:0,
from c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/signal.h:45,
from os/port.c:41:
c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/msp430.h:813:2: warning: #warning Unable to identify and include MCU header, use -mmcu=MCU [-Wcpp]
In file included from ./FreeRTOSConfig.h:39:0,
from os/include/FreeRTOS.h:46,
from os/port.c:44:
c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/io.h:1:2: warning: #warning <io.h> is deprecated, please include <msp430.h> [-Wcpp]
os/port.c: In function 'prvSetupTimerInterrupt':
os/port.c:260:2: error: 'TACTL' undeclared (first use in this function)
os/port.c:260:2: note: each undeclared identifier is reported only once for each function it appears in
os/port.c:266:11: error: 'TACLR' undeclared (first use in this function)
os/port.c:269:2: error: 'TACCR0' undeclared (first use in this function)
os/port.c:272:2: error: 'TACCTL0' undeclared (first use in this function)
os/port.c:272:12: error: 'CCIE' undeclared (first use in this function)
os/port.c:278:11: error: 'MC_1' undeclared (first use in this function)
os/port.c: In function 'prvTickISR':
os/port.c:295:29: error: interrupt vector offset 'TIMERA0_VECTOR' is not an integer constant
In file included from ./FreeRTOSConfig.h:39:0,
from os/include/FreeRTOS.h:46,
from os/queue.c:57:
c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/io.h:1:2: warning: #warning <io.h> is deprecated, please include <msp430.h> [-Wcpp]
In file included from c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/io.h:2:0,
from ./FreeRTOSConfig.h:39,
from os/include/FreeRTOS.h:46,
from os/queue.c:57:
c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/msp430.h:813:2: warning: #warning Unable to identify and include MCU header, use -mmcu=MCU [-Wcpp]
In file included from ./FreeRTOSConfig.h:39:0,
from os/include/FreeRTOS.h:46,
from os/tasks.c:132:
c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/io.h:1:2: warning: #warning <io.h> is deprecated, please include <msp430.h> [-Wcpp]
In file included from c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/io.h:2:0,
from ./FreeRTOSConfig.h:39,
from os/include/FreeRTOS.h:46,
from os/tasks.c:132:
c:\mspgcc\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/msp430.h:813:2: warning: #warning Unable to identify and include MCU header, use -mmcu=MCU [-Wcpp]
Makefile:53: recipe for target 'ads1232ref-debug.elf' failed
make: *** [ads1232ref-debug.elf] Error 1

  • Hi Ben,

    The only difference to 1.1.0d and 1.2 is with respect to contract manufacturer testing.  Everything else is the same.  I too have not been able to use the latest MSP-GCC compiler.  It may be possible, but I have not been able to find all the various updates required and do not have sufficient time available to work on this issue.  The MSP-GCC compiler used is 3.2.3.  You must also make sure all your paths are correct.

    This is about as much information as I can give you.  There was a lot of trial and error to get this working successfully over a number of days.  The original author of the code is no longer with TI.

    Best regards,

    Bob B