I'm in need of some help getting started using msp430-gcc on a linux machine
using command line. I have no prior experience with gcc so there's a learning
curve I'd like help shortening.
After kind help from this list, I've installed msp430-gcc and related binary
utilities onto my Ubuntu 9.04 machine from repository at wyper.ca. The
instructions I used (from a handy PDF file at www.develissimo.net) are much
more extensive (including install of debugger proxy, eclipse IDE, and so on)
than I needed in this case (just "binutils".)
My need is only to assemble msp430 assembly source file and link into an intel
hex file that I can then transmit to my remotely-located msp430
microcontroller. I do not need jtag support (my microcontroller has a serial
port loader and I won't be using jtag due to it's remote location). I can only
access the remote linux machine (connected to the msp430 microcontroller) via
ssh, so I can't use the Eclipse IDE. Therefore, this is a really basic
configuration - just enough to edit-assemble-link-download, all from command
line.
I am sure my problem (at this stage) is just lack of appropriate command line
options for msp430-gcc, but when I try to compile a trivial assembly language
program:
$ cat f.s
include
org #0xE000
nop
end
with the command (based on the msp430-gcc documentation on assembling I found):
$ msp430-gcc -D_GNU_ASSEMBLER_ -x assembler-with-cpp -c f.s -o f.o
I get this output:
f.s: Assembler messages:
f.s:1: Error: unknown opcode `include'
f.s:2: Error: unknown opcode `org'
f.s:4: Error: unknown opcode `end'
What other options do I need to tell msp430-gcc how to recognize the incoming
source code?
Very tks,
Dave
_________________________________________________________________
Get back to school stuff for them and cashback for you.
http://www.bing.com/cashback?form=MSHYCB&publ=WLHMTAG&crea=TEXT_MSHYCB_BackToSchool_Cashback_BTSCashback_1x1