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
  • 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 404 subscribers
  • Views 3937 views
  • Users 0 members are here
  • energia
  • msp430
  • arduino
Related

Run Arduino code on MSP430

ntewinkel
ntewinkel over 12 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 12 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 12 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 12 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
  • Former Member
    Former Member over 9 years ago

    I am using same sensor(bno055 shuttle board). I follow same connection that sensor master has posted(schemetic.jpg).slight change i use 10kohm with 'i2c addr selec' pin then to vddio. I want connect bno055 shuttle board with msp432 using energia IDE. energia is compatible of arduino libraries. but while uploading the code I am facing following errors. I dont know why it comes

     

     

     

     

     

    CCROOT C:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017\hardware\tools\lm4f

    SDKROOT C:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017\hardware\msp432/CC3200SDK_1.0.0.patch

    CLOSURE C:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017\hardware\common

    MAINSKETCH sensorapi.cpp

    armcl sensorapi.cpp

    C:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017\hardware\tools\lm4f/bin/arm-none-eabi-gcc -c -Os @"C:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017\hardware\emt/ti/runtime/wiring/msp432/compiler.opt" -DF_CPU=48000000L -D__MSP432P401R__ -DTARGET_IS_MSP432P4XX -Dxdc__nolocalstring=1 -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/libraries/AIR430BoostEuropeETSI/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/libraries/AIR430BoostEuropeETSI/utility/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/libraries/AIR430BoostUSAFCC/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/libraries/AIR430BoostUSAFCC/utility/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/libraries/Adafruit_BNO055/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/libraries/Adafruit_Sensor/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/libraries/Adafruit_TMP006/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/libraries/CogLCD/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/libraries/EduBPMKII_Screen/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/libraries/LCD_SharpBoosterPack_SPI/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/libraries/M2XStreamClient/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/libraries/MQTTClient/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/libraries/MSP432P401_Code_Examples/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/libraries/OPT3001/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/libraries/OneMsTaskTimer/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/libraries/OneWire/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/libraries/PubNub/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/libraries/PubSubClient/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/libraries/SPI/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/libraries/Servo/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/libraries/Temboo/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/libraries/Temboo/utility/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/libraries/WiFi/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/libraries/WiFi/utility/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/libraries/Wire/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/libraries/aJson/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/libraries/aJson/utility/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/variants/MSP_EXP432P401R/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/cores/msp432/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/cores/msp432/inc/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/cores/msp432/lib/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017\hardware\emt -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017\hardware\emt\ti\runtime\wiring\msp432 -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/emt/ti/runtime/wiring/ -ffunction-sections -fdata-sections -DARDUINO=101 -DBOARD_MSP_EXP432P401R -DENERGIA=17 -D__MSP432P401R__ -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant  -fno-exceptions -fno-rtti -I "C:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017\hardware\tools\lm4f/include" -I "C:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017\hardware\common" -I "C:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017\hardware\common" -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/cores/msp432/inc/CMSIS -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/cores/msp432/driverlib/MSP432P4xx sensorapi.cpp -o sensorapi.obj

    sensorapi.ino:6:29: fatal error: Adafruit_Sensor.h: No such file or directory

    compilation terminated.

    make: *** [sensorapi.obj] Error 1

    C:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017\tools\common\bin\make returned 2

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • Former Member
    Former Member over 9 years ago

    I am using same sensor(bno055 shuttle board). I follow same connection that sensor master has posted(schemetic.jpg).slight change i use 10kohm with 'i2c addr selec' pin then to vddio. I want connect bno055 shuttle board with msp432 using energia IDE. energia is compatible of arduino libraries. but while uploading the code I am facing following errors. I dont know why it comes

     

     

     

     

     

    CCROOT C:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017\hardware\tools\lm4f

    SDKROOT C:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017\hardware\msp432/CC3200SDK_1.0.0.patch

    CLOSURE C:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017\hardware\common

    MAINSKETCH sensorapi.cpp

    armcl sensorapi.cpp

    C:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017\hardware\tools\lm4f/bin/arm-none-eabi-gcc -c -Os @"C:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017\hardware\emt/ti/runtime/wiring/msp432/compiler.opt" -DF_CPU=48000000L -D__MSP432P401R__ -DTARGET_IS_MSP432P4XX -Dxdc__nolocalstring=1 -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/libraries/AIR430BoostEuropeETSI/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/libraries/AIR430BoostEuropeETSI/utility/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/libraries/AIR430BoostUSAFCC/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/libraries/AIR430BoostUSAFCC/utility/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/libraries/Adafruit_BNO055/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/libraries/Adafruit_Sensor/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/libraries/Adafruit_TMP006/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/libraries/CogLCD/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/libraries/EduBPMKII_Screen/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/libraries/LCD_SharpBoosterPack_SPI/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/libraries/M2XStreamClient/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/libraries/MQTTClient/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/libraries/MSP432P401_Code_Examples/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/libraries/OPT3001/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/libraries/OneMsTaskTimer/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/libraries/OneWire/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/libraries/PubNub/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/libraries/PubSubClient/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/libraries/SPI/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/libraries/Servo/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/libraries/Temboo/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/libraries/Temboo/utility/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/libraries/WiFi/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/libraries/WiFi/utility/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/libraries/Wire/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/libraries/aJson/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/libraries/aJson/utility/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/variants/MSP_EXP432P401R/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/cores/msp432/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/cores/msp432/inc/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/cores/msp432/lib/ -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017\hardware\emt -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017\hardware\emt\ti\runtime\wiring\msp432 -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/emt/ti/runtime/wiring/ -ffunction-sections -fdata-sections -DARDUINO=101 -DBOARD_MSP_EXP432P401R -DENERGIA=17 -D__MSP432P401R__ -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant  -fno-exceptions -fno-rtti -I "C:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017\hardware\tools\lm4f/include" -I "C:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017\hardware\common" -I "C:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017\hardware\common" -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/cores/msp432/inc/CMSIS -IC:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017/hardware/msp432/cores/msp432/driverlib/MSP432P4xx sensorapi.cpp -o sensorapi.obj

    sensorapi.ino:6:29: fatal error: Adafruit_Sensor.h: No such file or directory

    compilation terminated.

    make: *** [sensorapi.obj] Error 1

    C:\Users\Reazwan\Downloads\energia-0101E0017-windows\energia-0101E0017\tools\common\bin\make returned 2

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • shabaz
    shabaz over 9 years ago in reply to Former Member

    The secret is to just try to make sense of the output - usually some hints are buried in the output.

    In the output above, if you follow it line by line, you see a compiler is being invoked (gcc). At the end, you see that it was terminated (it says "compilation terminated" ).

    Right above it, you can see a "fatal error" and you can see that the compiler (gcc) could not find a file.

    Your job is to locate that file in your body of source code, and then examine that massive gcc command in order to see why the file was not found by gcc.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • clem57
    clem57 over 9 years ago in reply to shabaz

    Besides what shabaz said, also check your source for same .h file in case it was misspelled/wrong case.

    Clem

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 9 years ago in reply to shabaz

    @sahbaz @martin

    I am using MSP432 with energia IDE. I interface BNO055 shuttle board via I2C with MSP432. Then in energia I paste the code from

     

    github.com/.../Tindie_working_allprint

     

    But I get following error

     

    Unknow error at address 0x6D

    Unknow error at address 0x6E

    Unknow error at address 0x6F

    Unknow error at address 0x70

    Unknow error at address 0x71

    Unknow error at address 0x72

    Unknow error at address 0x73

    Unknow error at address 0x74

    Unknow error at address 0x75

    Unknow error at address 0x76

    Unknow error at address 0x77

    Unknow error at address 0x78

    Unknow error at address 0x79

    Unknow error at address 0x7A

    Unknow error at address 0x7B

    Unknow error at address 0x7C

    Unknow error at address 0x7D

    Unknow error at address 0x7E

    No I2C devices found

    BNO055 9-axis motion sensor...

    BNO055 Address = 0x29

    BNO055 WHO_AM_I = 0x0

    BNO055 I AM B6 I should be 0xA0

    What kind of error is that, what i have mistaken? The error is corresponds to hardware config or for code?

    imageimage

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • clem57
    clem57 over 9 years ago in reply to Former Member

    Copy and paste code software across different platforms is like throwing a Volkswagen engine(Teensy 3.1->AVRl chip) into a Ferrari(MSP432 -> Arm 32 chip) and asking why it doesn't work. With that said, the speed on the original Teensy is around 8-16Mhz for 8 bit AVR and the frequency for 32 bit ARM M4F is up to 48 MHz. So here are the possibilities :

    • speed mismatch
    • architecture mismatch
    • I/O mismatch
    • interrupt structure mismatch

     

    Trying to help,

    Clem

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 9 years ago in reply to clem57

    Well put, Clem!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
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 © 2025 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.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube