eclipse-tools


ON Ubuntu:


steps:

* install mspgcc4 with apt-get

* Tools for eclipse: follow https://openwsn.atlassian.net/wiki/pages/viewpage.action?pageId=11534370

and get them here:

http://xpg.dk/projects/msp430/msp430-eclipse/

(but no need to download the precompiled msp-gcc files)

* install the latest mspdebug (not sure if necessary) http://processors.wiki.ti.com/index.php/MSP430_LaunchPad_Mac_OS_X

–> git clone mspdebug.git.sourceforge.net/gitroot/mspdebug/mspdebug

* get the libmsp.so library from http://processors.wiki.ti.com/index.php/MSP_Debug_Stack

–> sudo cp libmsp430.so /usr/lib

* should work…

known issues:

DLL430_v3/src/DLL430_OldApiV3.cpp: In member function ‘virtual bool DLL430_OldApiV3::Initialize(const char*, long int*)’: DLL430_v3/src/DLL430_OldApiV3.cpp:308:59: error: ‘canonical’ was not declared in this scope

Solution: update boost libraries to the newest: $ sudo add-apt-repository ppa:boost-latest/ppa $ sudo apt-get update $ aptitude search boost $ sudo apt-get install libboost1.55-all-dev


ON MAC OS X (NOT working!!!):



http://xpg.dk/projects/msp430/msp430-eclipse/
https://openwsn.atlassian.net/wiki/pages/viewpage.action?pageId=11534370

Ok finally i find the solution for solve this problem i don't know why Eclipse showing me this error and i don't know is this a best solution but anyway i solve my problem with delete the artifacts.xml file in Eclipse root directory After delete this file try to install that plugin again but this time after few second everything done and work perfectly

UPDATE: If you get that's error again just go to Eclipse root directory and search for "artifacts.xml" and delete all the files is in the result ;)

-- add /usr/local/msp430-toolchain/bin to PATH!!!

--IMPORTANT: ALWAYS load the msp430 tools in eclipse in order to select a microcontroller in project settings

-- defined paths for include, libraries and msp-assembler
(according to Ubuntu Tutorial: MSPGCC and Eclipse Alvaro Aguilar August 17, 2010) 
BUT DO NOT INCLUDE /usr/include


==============ERRORS======== (after build)

make
Building file: ../main.c
Invoking: MSP430 C Compiler
/usr/local/msp430-toolchain/bin/msp430-gcc-wrapper -I/usr/include -I/usr/local/msp430-toolchain/include -I/usr/local/msp430-toolchain/msp430/include -O0 -g -Wall -mmcu=msp430f5229 -std=gnu89 -c -o "main.o" "../main.c"
dyld: Library not loaded: /opt/local/lib/libmpc.2.dylib
  Referenced from: /usr/local/msp430-toolchain/bin/../libexec/gcc/msp430/4.7.0/cc1
  Reason: image not found
msp430-gcc: internal compiler error: Trace/BPT trap: 5 (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make: *** [main.o] Error 4
''

=====SOLUTION===========
cd ../Downloads/msp430-toolchain-mac_os_x-x86_64-2.2 
sudo cp libmpc.2.dylib /opt/local/lib/libmpc.2.dylib


=====next error===========

when using the provided example

make                  
Building file: ../main.c
Invoking: MSP430 C Compiler
/usr/local/msp430-toolchain/bin/msp430-gcc-wrapper -I/usr/include -I/usr/local/msp430-toolchain/include -I/usr/local/msp430-toolchain/msp430/include -O0 -g -Wall -mmcu=msp430f5229 -std=gnu89 -c -o "main.o" "../main.c"
In file included from ../main.c:1:0:
/usr/local/msp430-toolchain/bin/../lib/gcc/msp430/4.7.0/../../../../msp430/include/io.h:1:2: warning: #warning <io.h> is deprecated, please include <msp430.h> [-Wcpp]
In file included from /usr/include/sys/_types.h:32:0,
                 from /usr/include/stdint.h:52,
                 from ../main.c:2:
/usr/include/sys/cdefs.h:680:2: error: #error Unsupported architecture
In file included from /usr/include/sys/_types.h:33:0,
                 from /usr/include/stdint.h:52,
                 from ../main.c:2:
/usr/include/machine/_types.h:34:2: error: #error architecture not supported
In file included from /usr/include/stdint.h:52:0,
                 from ../main.c:2:
/usr/include/sys/_types.h:55:1: error: unknown type name '__int64_t'
/usr/include/sys/_types.h:56:1: error: unknown type name '__int32_t'
/usr/include/sys/_types.h:57:1: error: unknown type name '__int32_t'
/usr/include/sys/_types.h:60:1: error: unknown type name '__uint32_t'
/usr/include/sys/_types.h:61:1: error: unknown type name '__uint32_t'
/usr/include/sys/_types.h:62:1: error: unknown type name '__uint64_t'
/usr/include/sys/_types.h:68:1: error: unknown type name '__darwin_natural_t'
/usr/include/sys/_types.h:70:1: error: unknown type name '__uint16_t'
/usr/include/sys/_types.h:71:1: error: unknown type name '__int64_t'
/usr/include/sys/_types.h:72:1: error: unknown type name '__int32_t'
/usr/include/sys/_types.h:73:1: error: unknown type name '__uint32_t'
/usr/include/sys/_types.h:74:1: error: unknown type name '__int32_t'
/usr/include/sys/_types.h:75:1: error: unknown type name '__uint32_t'
/usr/include/sys/_types.h:76:1: error: unknown type name '__uint32_t'
In file included from /usr/include/stdint.h:53:0,
                 from ../main.c:2:
/usr/include/sys/_types/_intptr_t.h:30:1: error: unknown type name '__darwin_intptr_t'
make: *** [main.o] Error 1

============SOLUTION===============
error does not exist when NOT including the libraries from /usr/include in eclipse


=============flashing=============
http://brandonlucia.com/Building_MSPDebug_TILIB_On_OSX.txt
  • eclipse-tools.txt
  • Last modified: 9 years ago
  • (external edit)