Page 1 of 1

CrossWorks 1.4 compile error

PostPosted: Sun Mar 25, 2007 10:09 am
by krakit
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


Re: CrossWorks 1.4 compile error

PostPosted: Mon Mar 26, 2007 5:35 am
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.

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


Re: CrossWorks 1.4 compile error

PostPosted: Mon Mar 26, 2007 7:13 am
by krakit
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.


Re: CrossWorks 1.4 compile error

PostPosted: Fri Sep 21, 2007 11:54 am
by a2c
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


Re: CrossWorks 1.4 compile error

PostPosted: Wed Nov 19, 2008 2:30 am
by aek
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.

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