Pumpkin, Inc.

Pumpkin User Forums

CrossWorks 1.4 compile error

For issues specific to TI's MSP430 line of ultra-low-power microcontrollers, including compilers (e.g. Quadravox AQ430), IDEs (e.g. IAR Embedded Workbench) and development tools (e.g. TI MSP-FET430 Flash Emulation Tool).

CrossWorks 1.4 compile error

Postby krakit » Sun Mar 25, 2007 10:09 am

Hi

I'm trying to compile the example program provided in AN-23 using Rowley's CrossWorks 1.4 for MSP430. When trying to build the project I get the following error:

included from
/salvo-3.2/inc/salvo.h(871): included from CrossWorks/Projects/test/main.c(17): can't find include file <in430.h>

<in430.h> is included in the portcs430.h. But the Crossworks is not able to find it. I've included liblcs430-a.hza library in my project. I'm wondering if CrossWorks is not detecting the library included.

I'm using CrossWorks 1.4 and Salvo 3.2 (pro) on Linux 2.6.15.

Am I missing anything here?
Thanks for the help.

Karthik

krakit
 
Posts: 2
Joined: Sun Feb 11, 2007 12:00 am

Re: CrossWorks 1.4 compile error

Postby aek » Mon Mar 26, 2007 5:35 am

in430.h is a CrossWorks file header file ... either your CW430 inc dir is missing this file, or the paths for the compiler (has nothing to do with Salvo) aren't quite right and CW430 isn't including its own inc dir in is search path ... that's how I would read this error.

------------------

-------
aek
aek
 
Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm

Re: CrossWorks 1.4 compile error

Postby krakit » Mon Mar 26, 2007 7:13 am

quote:
Originally posted by aek:
in430.h is a CrossWorks file header file ... either your CW430 inc dir is missing this file, or the paths for the compiler (has nothing to do with Salvo) aren't quite right and CW430 isn't including its own inc dir in is search path ... that's how I would read this error.


Hi

You were right. The filename is In430.h in the CW430 inc dir. Changed the file name and it works fine.
Thanks for your help.

krakit
 
Posts: 2
Joined: Sun Feb 11, 2007 12:00 am

Re: CrossWorks 1.4 compile error

Postby a2c » Fri Sep 21, 2007 11:54 am

quote:
Hi

You were right. The filename is In430.h in the CW430 inc dir. Changed the file name and it works fine.
Thanks for your help.


Hi Krakit
Once I tried building salvo with CrossWorks for MSP430 for Linux but i didn't get it. What flavor of Linux did You use? Could you describe the process step by step? And how did you configure your USB MSP430 FET or for example How will you configure a EZ430F2013 using spy-bi-wire in Linux.

------------------
I have learned that to be with those i like is enough

I have learned that to be with those i like is enough
a2c
 
Posts: 1
Joined: Tue Sep 20, 2005 11:00 pm
Location: Colombia

Re: CrossWorks 1.4 compile error

Postby aek » Wed Nov 19, 2008 2:30 am

Question -- did you run into any file-translation problems when building with Salvo on Linux?

I installed Salvo to a USB stick, then copied the entire Pumpkin tree to the home directory of my Ubuntu 8.x machine ... but when I try to build Salvo projects in CS430, I get e.g.

code:
Building "tut5lite" in configuration "Debug"
Compiling tut5.c
/home/andrew/Pumpkin/Salvo/Inc/salvoadc.h(42): error E1023: included from /home/andrew/Pumpkin/Salvo/Inc/salvo.h(62): included from /home/andrew/Pumpkin/Salvo/Example/MSP430/MSP430x1xx/TI_MSP430_FET/Tut/Tut5/tut5.c(17): bad operator '
' in #if/#elsif
/home/andrew/Pumpkin/Salvo/Inc/salvoadc.h(86): error E1023: included from /home/andrew/Pumpkin/Salvo/Inc/salvo.h(62): included from /home/andrew/Pumpkin/Salvo/Example/MSP430/MSP430x1xx/TI_MSP430_FET/Tut/Tut5/tut5.c(17): bad operator '
' in #if/#elsif
/home/andrew/Pumpkin/Salvo/Inc/salvoadc.h(114): error E1023: included from /home/andrew/Pumpkin/Salvo/Inc/salvo.h(62): included from /home/andrew/Pumpkin/Salvo/Example/MSP430/MSP430x1xx/TI_MSP430_FET/Tut/Tut5/tut5.c(17): bad operator '
' in #if/#elsif
/home/andrew/Pumpkin/Salvo/Inc/salvoadc.h(119): error E1023: included from /home/andrew/Pumpkin/Salvo/Inc/salvo.h(62): included from /home/andrew/Pumpkin/Salvo/Example/MSP430/MSP430x1xx/TI_MSP430_FET/Tut/Tut5/tut5.c(17): bad operator '
' in #if/#elsif
/home/andrew/Pumpkin/Salvo/Inc/salvoadc.h(141): error E1023: included from /home/andrew/Pumpkin/Salvo/Inc/salvo.h(62): included from /home/andrew/Pumpkin/Salvo/Example/MSP430/MSP430x1xx/TI_MSP430_FET/Tut/Tut5/tut5.c(17): bad operator '
' in #if/#elsif
/home/andrew/Pumpkin/Salvo/Inc/salvoadc.h(149): error E1023: included from /home/andrew/Pumpkin/Salvo/Inc/salvo.h(62): included from /home/andrew/Pumpkin/Salvo/Example/MSP430/MSP430x1xx/TI_MSP430_FET/Tut/Tut5/tut5.c(17): bad operator '
' in #if/#elsif
/home/andrew/Pumpkin/Salvo/Inc/salvoadc.h(157): error E1023: included from /home/andrew/Pumpkin/Salvo/Inc/salvo.h(62): included from /home/andrew/Pumpkin/Salvo/Example/MSP430/MSP430x1xx/TI_MSP430_FET/Tut/Tut5/tut5.c(17): bad operator '
' in #if/#elsif
/home/andrew/Pumpkin/Salvo/Inc/salvoadc.h(165): error E1023: included from /home/andrew/Pumpkin/Salvo/Inc/salvo.h(62): included from /home/andrew/Pumpkin/Salvo/Example/MSP430/MSP430x1xx/TI_MSP430_FET/Tut/Tut5/tut5.c(17): bad operator '
' in #if/#elsif
/home/andrew/Pumpkin/Salvo/Inc/salvoadc.h(173): error E1023: included from /home/andrew/Pumpkin/Salvo/Inc/salvo.h(62): included from /home/andrew/Pumpkin/Salvo/Example/MSP430/MSP430x1xx/TI_MSP430_FET/Tut/Tut5/tut5.c(17): bad operator '
' in #if/#elsif
/home/andrew/Pumpkin/Salvo/Inc/salvoadc.h(181): error E1023: included from /home/andrew/Pumpkin/Salvo/Inc/salvo.h(62): included from /home/andrew/Pumpkin/Salvo/Example/MSP430/MSP430x1xx/TI_MSP430_FET/Tut/Tut5/tut5.c(17): bad operator '
' in #if/#elsif
/home/andrew/Pumpkin/Salvo/Inc/salvoadc.h(189): error E1023: included from /home/andrew/Pumpkin/Salvo/Inc/salvo.h(62): included from /home/andrew/Pumpkin/Salvo/Example/MSP430/MSP430x1xx/TI_MSP430_FET/Tut/Tut5/tut5.c(17): bad operator '
' in #if/#elsif
/home/andrew/Pumpkin/Salvo/Inc/salvoadc.h(207): error E1023: included from /home/andrew/Pumpkin/Salvo/Inc/salvo.h(62): included from /home/andrew/Pumpkin/Salvo/Example/MSP430/MSP430x1xx/TI_MSP430_FET/Tut/Tut5/tut5.c(17): bad operator '
' in #if/#elsif
/home/andrew/Pumpkin/Salvo/Inc/salvoadc.h(221): error E1023: included from /home/andrew/Pumpkin/Salvo/Inc/salvo.h(62): included from /home/andrew/Pumpkin/Salvo/Example/MSP430/MSP430x1xx/TI_MSP430_FET/Tut/Tut5/tut5.c(17): bad operator '
' in #if/#elsif
/home/andrew/Pumpkin/Salvo/Inc/salvoadc.h(228): error E1023: included from /home/andrew/Pumpkin/Salvo/Inc/salvo.h(62): included from /home/andrew/Pumpkin/Salvo/Example/MSP430/MSP430x1xx/TI_MSP430_FET/Tut/Tut5/tut5.c(17): bad operator '
' in #if/#elsif
/home/andrew/Pumpkin/Salvo/Inc/salvo.h(91): error E1023: included from /home/andrew/Pumpkin/Salvo/Example/MSP430/MSP430x1xx/TI_MSP430_FET/Tut/Tut5/tut5.c(17): bad operator '
' in #if/#elsif
/home/andrew/Pumpkin/Salvo/Inc/salvo.h(98): error E1023: included from /home/andrew/Pumpkin/Salvo/Example/MSP430/MSP430x1xx/TI_MSP430_FET/Tut/Tut5/tut5.c(17): can't find include file "salvocfg.h"
/home/andrew/Pumpkin/Salvo/Inc/salvo.h(120): error E1023: included from /home/andrew/Pumpkin/Salvo/Example/MSP430/MSP430x1xx/TI_MSP430_FET/Tut/Tut5/tut5.c(17): bad operator '
' in #if/#elsif

and so forth ...

BTW, I can build Rowley's example projects just fine ...

So, there seems to be an issue with the Windows file format of the Salvo files.

------------------

-------
aek
aek
 
Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm


Return to TI's MSP430

Who is online

Users browsing this forum: No registered users and 2 guests

cron