[Ilugc] Using Redhat's msp430-gcc package

  • From: jagannathante@xxxxxxxxx (Jagannathan Tiruvallur Eachambadi)
  • Date: Sun, 15 Dec 2013 19:58:40 +0530

I am using a 32-bit archlinux chroot <
http://xyne.archlinux.ca/projects/arch32-light/> to keep my host system
purely 64-bit. I couldn't get the source to compile, so I had to resort to
the binary installer provided by redhat <
http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/MSPGCC/1_00_00_00/exports/Msp430GCCopensource-msp430-130423-272-linux-installer.run>.
I installed it under /usr/local when prompted for a installation directory,
the default was /opt/MspGCCOpensource. Compilation of a trivial program,
the standard blink fails as the compiler is unable to find the header
'msp430.h'. I found that the header was installed in
'/usr/local/lib/gcc/msp430-elf/4.8.0/plugin/include/config/msp430/msp430.h'.
Is there a way in which I can make this visible to gcc?

For the moment, I am using ubuntu-12.04 LTS in my desktop. I would very
much want the development environment setup in my laptop. I have only used
gcc in its very basic form, I tried the include flag,
'-I/usr/local/lib/gcc/msp430-elf/4.8.0/plugin/include/config/msp430/msp430.h',
still it fails.

Regards

Jagannathan T E

Other related posts: