element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum Run Arduino code on MSP430
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 16 replies
  • Subscribers 419 subscribers
  • Views 4796 views
  • Users 0 members are here
  • energia
  • msp430
  • arduino
Related

Run Arduino code on MSP430

ntewinkel
ntewinkel over 13 years ago

Hi all,

 

I just found this last night: http://energia.nu (Energia)

 

It's an Arduino style IDE that works with the $4.30 MSP Launchpads. It looks like most of the Arduino libraries have also been ported. So you can take your Arduino sketch and run directly it on the MSP430 (with maybe a few pin reassignments).

 

I'm just trying to get things going here on my Mac today (yes, it runs on Mac - woohoo!).

 

Has anyone else tried this out yet?

 

Cheers,

-Nico

  • Sign in to reply
  • Cancel

Top Replies

  • grahamf72
    grahamf72 over 13 years ago +2
    Hi Nico, I've been using Energia for a few months now. As a development tool, it is much easier to use than CCS, primarily because of the way it hides the low-level register manipulation with a higher…
  • DAB
    DAB over 13 years ago +1
    Hi Nico, I just recently downloaded the software myself. I hope to try it out in the next couple of weeks. I just recieved by Launchpad Educational Boosterpack and I am ancious to see what it can do. So…
  • DAB
    DAB over 13 years ago in reply to ntewinkel +1
    Hi Nico, Yes, the Education Boosterpack is a real bargain at 25 USD. You get a microphone, and amplifier intput, a transducer audio output, a potentiometer, an OLED display, a three axis accellerometer…
Parents
  • e14 Contributor
    e14 Contributor over 10 years ago

    Tawhid;

    I've had a number of problems trying to use Energia with the MSP432.  This is a 32-bit Harvard architecture platform vs. the MSP430's 16-bit Von Neumann.  TI has a document on porting code that might be of some help: http://www.ti.com/lit/an/slaa656b/slaa656b.pdf

    The hardware abstraction for the two is very different, and even TI states that CCS is not completely accounting for ISR's (the MSP430 has an abstraction that automatically addresses memory registers, and the MSP432 requires a two-step process).  A couple of pages later they state that the MSP432 "...is compatible with the Energia platform..."  Not sure how it can be both ways?

    Here are a few lines from that doc that might be of some help (the highlights are mine):

     

     

    A few key highlights include:

     

    • Interrupt vector table

     

    – MSP430 starts at 0xFFFF with Reset Vector and growing downwards.

     

    – MSP432 starts at 0x0000 with Reset Vector and growing upwards.

     

    • Flash, RAM, and other memory placements:

     

    – MSP430 memory components share 64KB space (for 16-bit CPU devices) or 1MB space (for 20-

     

    bit-supported CPUX), and addresses for each component potentially vary per device.

     

    – MSP432 uses the abundant 32-bit address space to reserve separate memory locations for

     

    different components.

     

    • MSP432 introduces the bit-band feature to compensate for the Read-Modify-Write nature of the

     

    Cortex-M instruction set.

     

    • Individual bit manipulation in SRAM or in peripheral space can take advantage of bit-banding to reduce

     

    the Read-Modify-Write operation down to a single instruction. DriverLib APIs take advantage of bitbanding

     

    when manipulating peripheral registers. When writing your own register-access code, use the

     

    following defines to leverage bit-banding when possible.

     

    This doesn't exactly answer your question, but I can say I've also had the same type of problem with the MSP432; and had to resort to bit-banging to get things to work.

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • e14 Contributor
    e14 Contributor over 10 years ago

    Tawhid;

    I've had a number of problems trying to use Energia with the MSP432.  This is a 32-bit Harvard architecture platform vs. the MSP430's 16-bit Von Neumann.  TI has a document on porting code that might be of some help: http://www.ti.com/lit/an/slaa656b/slaa656b.pdf

    The hardware abstraction for the two is very different, and even TI states that CCS is not completely accounting for ISR's (the MSP430 has an abstraction that automatically addresses memory registers, and the MSP432 requires a two-step process).  A couple of pages later they state that the MSP432 "...is compatible with the Energia platform..."  Not sure how it can be both ways?

    Here are a few lines from that doc that might be of some help (the highlights are mine):

     

     

    A few key highlights include:

     

    • Interrupt vector table

     

    – MSP430 starts at 0xFFFF with Reset Vector and growing downwards.

     

    – MSP432 starts at 0x0000 with Reset Vector and growing upwards.

     

    • Flash, RAM, and other memory placements:

     

    – MSP430 memory components share 64KB space (for 16-bit CPU devices) or 1MB space (for 20-

     

    bit-supported CPUX), and addresses for each component potentially vary per device.

     

    – MSP432 uses the abundant 32-bit address space to reserve separate memory locations for

     

    different components.

     

    • MSP432 introduces the bit-band feature to compensate for the Read-Modify-Write nature of the

     

    Cortex-M instruction set.

     

    • Individual bit manipulation in SRAM or in peripheral space can take advantage of bit-banding to reduce

     

    the Read-Modify-Write operation down to a single instruction. DriverLib APIs take advantage of bitbanding

     

    when manipulating peripheral registers. When writing your own register-access code, use the

     

    following defines to leverage bit-banding when possible.

     

    This doesn't exactly answer your question, but I can say I've also had the same type of problem with the MSP432; and had to resort to bit-banging to get things to work.

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube