# MSP430 build using V3 and linux

**URL:** <https://forums.freertos.org/t/msp430-build-using-v3-and-linux/1268>\
**Category:** Kernel\
**Created:** [May 7, 2005, 4:19pm UTC](https://forums.freertos.org/t/msp430-build-using-v3-and-linux/1268 "2005-05-07T16:19:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [May 7, 2005, 4:19pm UTC](https://forums.freertos.org/t/msp430-build-using-v3-and-linux/1268/1 "2005-05-07T16:19:27Z")

</div>

**nobody** wrote on [Saturday, May 07, 2005](https://sourceforge.net/p/freertos/discussion/382005/thread/3b25b975/#fd2f):

up to now it worked great with FreeRtos. Now I download the new version into a new directory and was trying to&nbsp; compile the MSP430 port before I work with my own stuff.

But it’s not possible to compile and link. ( gcc, linux ) Think it’s based on active 2.6 stuff ( e.g. portmacro.h ) in the tree.

Is it known already?

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [May 7, 2005, 4:23pm UTC](https://forums.freertos.org/t/msp430-build-using-v3-and-linux/1268/2 "2005-05-07T16:23:41Z")

</div>

**nobody** wrote on [Saturday, May 07, 2005](https://sourceforge.net/p/freertos/discussion/382005/thread/3b25b975/#fd2f/30d9):

Hi Peter,

I am using mspgcc under win32 (cygwin).&nbsp; It seems to build without any problems (output below).&nbsp; I cannot test under linux unfortunately.&nbsp; Win32 is a lot more fogiving as far as the direction of slashes (/ \) and the case sensitivity so maybe there is something wrong there.

A couple of questions for you.

1) Does the V3.0.0 demo project build when unmodified (from the demo/mspgcc directory)?

2) If not, what is the error message?&nbsp; Can you provide the output of the build?

3) Which version of gcc are you using?

Regards.

Build output:

msp430-gcc -c -mmcu=msp430x449 -Os -g -I. -I…/…/Source/include -I…/Common/include -DGCC\_MSP430 -Wall -Wshadow -Wpointer-arith -Wbad-function-c  
ast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused main.c -o main.o

msp430-gcc -c -mmcu=msp430x449 -Os -g -I. -I…/…/Source/include -I…/Common/include -DGCC\_MSP430 -Wall -Wshadow -Wpointer-arith -Wbad-function-c  
ast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused ParTest/ParTest.c -o  
ParTest/ParTest.o

msp430-gcc -c -mmcu=msp430x449 -Os -g -I. -I…/…/Source/include -I…/Common/include -DGCC\_MSP430 -Wall -Wshadow -Wpointer-arith -Wbad-function-c  
ast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused serial/serial.c -o se  
rial/serial.o

msp430-gcc -c -mmcu=msp430x449 -Os -g -I. -I…/…/Source/include -I…/Common/include -DGCC\_MSP430 -Wall -Wshadow -Wpointer-arith -Wbad-function-c  
ast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused …/…/Source/tasks.c  
-o …/…/Source/tasks.o

msp430-gcc -c -mmcu=msp430x449 -Os -g -I. -I…/…/Source/include -I…/Common/include -DGCC\_MSP430 -Wall -Wshadow -Wpointer-arith -Wbad-function-c  
ast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused …/…/Source/list.c -  
o …/…/Source/list.o

msp430-gcc -c -mmcu=msp430x449 -Os -g -I. -I…/…/Source/include -I…/Common/include -DGCC\_MSP430 -Wall -Wshadow -Wpointer-arith -Wbad-function-c  
ast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused …/…/Source/queue.c  
-o …/…/Source/queue.o

msp430-gcc -c -mmcu=msp430x449 -Os -g -I. -I…/…/Source/include -I…/Common/include -DGCC\_MSP430 -Wall -Wshadow -Wpointer-arith -Wbad-function-c  
ast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused …/…/Source/portable  
/MemMang/heap\_1.c -o …/…/Source/portable/MemMang/heap\_1.o

msp430-gcc -c -mmcu=msp430x449 -Os -g -I. -I…/…/Source/include -I…/Common/include -DGCC\_MSP430 -Wall -Wshadow -Wpointer-arith -Wbad-function-c  
ast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused …/…/Source/portable  
/GCC/MSP430F449/port.c -o …/…/Source/portable/GCC/MSP430F449/port.o

msp430-gcc -c -mmcu=msp430x449 -Os -g -I. -I…/…/Source/include -I…/Common/include -DGCC\_MSP430 -Wall -Wshadow -Wpointer-arith -Wbad-function-c  
ast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused …/Common/Minimal/fla  
sh.c -o …/Common/Minimal/flash.o

msp430-gcc -c -mmcu=msp430x449 -Os -g -I. -I…/…/Source/include -I…/Common/include -DGCC\_MSP430 -Wall -Wshadow -Wpointer-arith -Wbad-function-c  
ast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused …/Common/Minimal/int  
eger.c -o …/Common/Minimal/integer.o

msp430-gcc -c -mmcu=msp430x449 -Os -g -I. -I…/…/Source/include -I…/Common/include -DGCC\_MSP430 -Wall -Wshadow -Wpointer-arith -Wbad-function-c  
ast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused …/Common/Minimal/com  
test.c -o …/Common/Minimal/comtest.o

msp430-gcc -c -mmcu=msp430x449 -Os -g -I. -I…/…/Source/include -I…/Common/include -DGCC\_MSP430 -Wall -Wshadow -Wpointer-arith -Wbad-function-c  
ast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused …/Common/Minimal/Pol  
lQ.c -o …/Common/Minimal/PollQ.o

msp430-gcc main.o ParTest/ParTest.o serial/serial.o …/…/Source/tasks.o …/…/Source/list.o …/…/Source/queue.o …/…/Source/portable/MemMang/h  
eap\_1.o …/…/Source/portable/GCC/MSP430F449/port.o …/Common/Minimal/flash.o …/Common/Minimal/integer.o …/Common/Minimal/comtest.o …/Common/M  
inimal/PollQ.o -mmcu=msp430x449 -Os -g -I. -I…/…/Source/include -I…/Common/include -DGCC\_MSP430 -Wall -Wshadow -Wpointer-arith -Wbad-function-  
cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [May 7, 2005, 7:46pm UTC](https://forums.freertos.org/t/msp430-build-using-v3-and-linux/1268/3 "2005-05-07T19:46:40Z")

</div>

**nobody** wrote on [Saturday, May 07, 2005](https://sourceforge.net/p/freertos/discussion/382005/thread/3b25b975/#fd2f/30d9/7cc5):

Hi,  
here are some more details.  
I’m using the original 3.0 download file.  
msp430-gcc version 3.2.3 ( linux )  
Up to now it works fine with FreeRtos 2.6.

unzip FreeRTOSV3.0.0.zip  
&nbsp; ```  
&nbsp; ~~  
&nbsp; ~  
&nbsp; inflating: FreeRTOS/License/license.txt  
FreeRTOS/3.0\> cd FreeRTOS/  
3.0/FreeRTOS\> ll  
total 5  
drwxr-xr-x&nbsp; 19 plange applic 632 May&nbsp; 7 21:30 Demo  
drwxr-xr-x&nbsp;&nbsp; 2 plange applic&nbsp; 80 May&nbsp; 7 21:30 License  
drwxr-xr-x&nbsp;&nbsp; 4 plange applic 200 May&nbsp; 7 21:30 Source  
drwxr-xr-x&nbsp;&nbsp; 2 plange applic 176 May&nbsp; 7 21:30 TraceCon  
-rw-r–r--&nbsp;&nbsp; 1 plange applic 452 Apr 13 16:01 readme.txt  
3.0/FreeRTOS\> cd Demo/  
FreeRTOS/Demo\> cd msp430  
Demo/msp430\> ln -s Makefile makefile  
Demo/msp430\> ll  
total 24  
-rw-r–r--&nbsp; 1 plange applic 2961 Apr 20 21:07 FreeRTOSConfig.h  
-rw-r–r--&nbsp; 1 plange applic 2605 Apr 13 16:26 Makefile  
drwxr-xr-x&nbsp; 2 plange applic&nbsp;&nbsp; 80 May&nbsp; 7 21:30 ParTest  
-rw-r–r--&nbsp; 1 plange applic&nbsp;&nbsp; 83 Oct&nbsp; 3&nbsp; 2004 gdb.ini  
-rw-r–r--&nbsp; 1 plange applic 8865 Apr 20 21:05 main.c  
lrwxrwxrwx&nbsp; 1 plange applic&nbsp;&nbsp;&nbsp; 8 May&nbsp; 7 17:04 makefile -\> Makefile  
drwxr-xr-x&nbsp; 2 plange applic&nbsp;&nbsp; 72 May&nbsp; 7 21:30 serial  
Demo/msp430\> pwd  
/Peter/msp430/FreeRTOS/3.0/FreeRTOS/Demo/msp430

Demo/msp430\> which msp430-gcc  
/usr/local/msp430/bin/msp430-gcc  
Demo/msp430\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  
Demo/msp430\>  
Demo/msp430\> make clean  
touch makefile  
Demo/msp430\> make  
msp430-gcc -c -mmcu=msp430x449 -Os -g -I. -I…/…/Source/include -I…/Common/include -DGCC\_MSP430 -Wall -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused main.c -o main.o  
In file included from main.c:64:  
…/…/Source/include/FreeRTOS.h:43:22: ProjDefs.h: No such file or directory  
In file included from …/…/Source/include/FreeRTOS.h:49,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from main.c:64:  
…/…/Source/include/portable.h:116: syntax error before “pdTASK\_CODE”  
…/…/Source/include/portable.h:116: warning: function declaration isn’t a prototype  
In file included from main.c:65:  
…/…/Source/include/task.h:198: syntax error before “pvTaskCode”  
…/…/Source/include/task.h:198: warning: function declaration isn’t a prototype  
main.c: In function `vErrorChecks’:  
main.c:170: `pdPASS’ undeclared (first use in this function)  
main.c:170: (Each undeclared identifier is reported only once  
main.c:170: for each function it appears in.)  
main.c: In function `prvCheckOtherTasksAreStillRunning’:  
main.c:186: `pdTRUE’ undeclared (first use in this function)  
main.c:197: `pdFALSE’ undeclared (first use in this function)  
make: \*\*\* [main.o] Error 1  
Demo/msp430\>

Is the reference to portable.h still correct?

Peter

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [May 7, 2005, 8:08pm UTC](https://forums.freertos.org/t/msp430-build-using-v3-and-linux/1268/4 "2005-05-07T20:08:31Z")

</div>

**nobody** wrote on [Saturday, May 07, 2005](https://sourceforge.net/p/freertos/discussion/382005/thread/3b25b975/#fd2f/30d9/7cc5/5d7f):

# Demo/msp430\> find …/…/…/ -name "\*.h" -print | grep -i defs.h …/…/…/FreeRTOS/Source/include/projdefs.h Demo/msp430\> pushd …/…/…/FreeRTOS/Source/include/ /Peter/msp430/FreeRTOS/3.0/FreeRTOS/Source/include /Peter/msp430/FreeRTOS/3.0/FreeRTOS/Demo/msp430 Source/include\> ls FreeRTOS.h&nbsp; list.h&nbsp; portable.h&nbsp; projdefs.h&nbsp; queue.h&nbsp; semphr.h&nbsp; task.h Source/include\> ln -s projdefs.h ProjDefs.h

Demo/msp430\> make clean  
touch makefile  
Demo/msp430\> make  
msp430-gcc -c -mmcu=msp430x449 -Os -g -I. -I…/…/Source/include -I…/Common/include -DGCC\_MSP430 -Wall -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused main.c -o main.o  
msp430-gcc -c -mmcu=msp430x449 -Os -g -I. -I…/…/Source/include -I…/Common/include -DGCC\_MSP430 -Wall -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused ParTest/ParTest.c -o ParTest/ParTest.o  
msp430-gcc -c -mmcu=msp430x449 -Os -g -I. -I…/…/Source/include -I…/Common/include -DGCC\_MSP430 -Wall -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused serial/serial.c -o serial/serial.o  
msp430-gcc -c -mmcu=msp430x449 -Os -g -I. -I…/…/Source/include -I…/Common/include -DGCC\_MSP430 -Wall -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused …/…/Source/tasks.c -o …/…/Source/tasks.o  
msp430-gcc -c -mmcu=msp430x449 -Os -g -I. -I…/…/Source/include -I…/Common/include -DGCC\_MSP430 -Wall -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused …/…/Source/list.c -o …/…/Source/list.o  
msp430-gcc -c -mmcu=msp430x449 -Os -g -I. -I…/…/Source/include -I…/Common/include -DGCC\_MSP430 -Wall -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused …/…/Source/queue.c -o …/…/Source/queue.o  
msp430-gcc -c -mmcu=msp430x449 -Os -g -I. -I…/…/Source/include -I…/Common/include -DGCC\_MSP430 -Wall -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused …/…/Source/portable/MemMang/heap\_1.c -o …/…/Source/portable/MemMang/heap\_1.o  
msp430-gcc -c -mmcu=msp430x449 -Os -g -I. -I…/…/Source/include -I…/Common/include -DGCC\_MSP430 -Wall -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused …/…/Source/portable/GCC/MSP430F449/port.c -o …/…/Source/portable/GCC/MSP430F449/port.o  
msp430-gcc -c -mmcu=msp430x449 -Os -g -I. -I…/…/Source/include -I…/Common/include -DGCC\_MSP430 -Wall -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused …/Common/Minimal/flash.c -o …/Common/Minimal/flash.o  
msp430-gcc -c -mmcu=msp430x449 -Os -g -I. -I…/…/Source/include -I…/Common/include -DGCC\_MSP430 -Wall -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused …/Common/Minimal/integer.c -o …/Common/Minimal/integer.o  
msp430-gcc -c -mmcu=msp430x449 -Os -g -I. -I…/…/Source/include -I…/Common/include -DGCC\_MSP430 -Wall -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused …/Common/Minimal/comtest.c -o …/Common/Minimal/comtest.o  
msp430-gcc -c -mmcu=msp430x449 -Os -g -I. -I…/…/Source/include -I…/Common/include -DGCC\_MSP430 -Wall -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused …/Common/Minimal/PollQ.c -o …/Common/Minimal/PollQ.o  
msp430-gcc main.o ParTest/ParTest.o serial/serial.o …/…/Source/tasks.o …/…/Source/list.o …/…/Source/queue.o …/…/Source/portable/MemMang/heap\_1.o …/…/Source/portable/GCC/MSP430F449/port.o …/Common/Minimal/flash.o …/Common/Minimal/integer.o …/Common/Minimal/comtest.o …/Common/Minimal/PollQ.o -mmcu=msp430x449 -Os -g -I. -I…/…/Source/include -I…/Common/include -DGCC\_MSP430 -Wall -Wshadow -Wpointer-arith-Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused  
Demo/msp430\>

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [May 8, 2005, 9:02am UTC](https://forums.freertos.org/t/msp430-build-using-v3-and-linux/1268/5 "2005-05-08T09:02:24Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Sunday, May 08, 2005](https://sourceforge.net/p/freertos/discussion/382005/thread/3b25b975/#fd2f/30d9/7cc5/1987):

The new file "Source/include/FreeRTOS.h" has the line:

#include "ProjDefs.h"

The file being included is actually called "projdefs.h" - note that there are no capitals.&nbsp; Under Win32 this is no problem, under linux it is a problem.

I will add a note under the known issues list for V3.0.0 to rename "ProjDefs.h" to "projdefs.h".

Thanks for pointing this out.
