Jump to content
43oh

msp430-gcc mmcu flags


Recommended Posts

once upon a time i managed to bumble my way into getting programs to correctly compile for the G2231s that i have lying around using the flag -mmcu=msp430x2012 .

 

my first question is, does anybody know why this works, as it seems it shouldn't

 

and second, what would be the proper flag for the FRaunchpad? mspdebug seems to talk to it fine, but i'm not sure how to compile for it just yet.

 

PS. does anybody have the code to the demo program that comes aboard the FRaunchpad? it would be a great reference.

Link to post
Share on other sites
once upon a time i managed to bumble my way into getting programs to correctly compile for the G2231s that i have lying around using the flag -mmcu=msp430x2012 .

 

my first question is, does anybody know why this works, as it seems it shouldn't

 

and second, what would be the proper flag for the FRaunchpad? mspdebug seems to talk to it fine, but i'm not sure how to compile for it just yet.

msp430-gcc -mmcu=msp430fr5739 works for me just fine. This, naturally, will depend on whether or not

you have one of the newer versions of msp430-gcc.

 

PS. does anybody have the code to the demo program that comes aboard the FRaunchpad? it would be a great reference.

It's available from the Fraunchpad webpage, http://www.ti.com/tool/msp-exp430fr5739

 

-Rusty-

Link to post
Share on other sites
once upon a time i managed to bumble my way into getting programs to correctly compile for the G2231s that i have lying around using the flag -mmcu=msp430x2012 .

 

my first question is, does anybody know why this works, as it seems it shouldn't

It would work if the size and offsets of the flash and RAM segments, and the addresses of all the peripherals you use, are the same between the MSP430G2231 and the MSP430F2012.

 

For any chip, you should simply use the lower-cased version of the MCU name. E.g., -mmcu=msp430g2231

 

While I decided to keep support for the legacy genericized MCU identifiers along with the preferred ones in LTS20110716 and its patches, those aliases were removed in the current development series, starting around 20111205.

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.

×
×
  • Create New...