Claudio Román wrote:
hi:
Now i have another problem, with the SciTE. when i open a project with it,
and i try to make it shows that:
make
msp430-gcc -mmcu=msp430x1101 -O -g -c -o main.o main.c
make: msp430-gcc: No se encontró el programa // it can't find the
msp430-gcc
make: *** [main.o] Error 127
Exit code: 2
In my and root users in his .bashrc files have this sentences for define the
environment variables:
export LD_LIBRARY_PATH=/usr/local/lib
export PATH=$PATH:/usr/local/msp430/bin
PATH=$PATH:/usr/local/msp430/bin msp430-gcc -mmcu=msp430x1101 -O -g ..
should also work, you could replace:
"msp430-gcc" with
"PATH=$PATH:/usr/local/msp430/bin LD_LIBRARY_PATH=/usr/local/lib msp430-gcc"
doesn't look nice but could work.
Otherwise place the exports in your .bashrc file (or .bash_profile I never
remeber). There is also a system wide bashrc, but you probably won't like to set
i there.
And, when i invoke a make from a simply terminal that compiles fine my
program:
msp430-gcc -mmcu=msp430x1101 -O -g -c -o main.o main.c
msp430-gcc -mmcu=msp430x1101 -O -g -c -o lcd.o lcd.c
msp430-gcc -mmcu=msp430x1101 -o charlcd.elf main.o lcd.o
msp430-objcopy -O ihex charlcd.elf charlcd.a43
msp430-objdump -dSt charlcd.elf >charlcd.lst
Thanks for the help.