Jump to content
Sign in to follow this  
Tarun

How to use mspgcc?

Recommended Posts

I've used used energia for programming, but i wanated to move towards the native c programming for msp430g2 series. So how to use mspgcc to compile c code and generate hex files??

I heve downloaded the mspgcc from the following link : http://sourceforge.net/projects/mspgcc/files/Windows/mingw32/

 

Please tell me how to compile c code for windows and get hex file .............

Share this post


Link to post
Share on other sites

Hi,

 

Try something like:

 

msp430-gcc -mmcu=msp430g2533 -Os -c test.c

msp430-gcc -mmcu=msp430g2533 -o test test.o

msp430-objcopy -O ihex test test.hex

 
Replace argument in -mmcu with the actual chip you are using.
 
   Ari S.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×