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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...