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
Personal Blogs
  • Community Hub
  • More
Personal Blogs
Legacy Personal Blogs Issue using Energia for the CC3200 LaunchXL
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: kweber250
  • Date Created: 26 Dec 2018 8:31 PM Date Created
  • Views 1448 views
  • Likes 2 likes
  • Comments 7 comments
Related
Recommended

Issue using Energia for the CC3200 LaunchXL

kweber250
kweber250
26 Dec 2018

Hello All,

I'm trying to compile this code in Energia and I receive the error below, I receive a similar error regardless of the code, if I need to download a library to write in c, which library and where do I download it.

Thank you!

////////////////////////////////////////CODE/////////////////////////////////////////

#include <msp430.h>

 

volatile unsigned int i;

 

void main(void) {

 

WDTCTL = WDTPW | WDTHOLD;

P1DIR |= (1<<0);

P1OUT &= ~(1<<0);

 

while(1) {

P1OUT ^= (1<<0);

i = 65535;// SW Delay

while(i --!= 0);

}

//////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////ERROR/////////////////////////////////////////

Build options changed, rebuilding all

test.c:1:20: error: msp430.h: No such file or directory

 

 

#include <msp430.h>

 

 

                    ^

 

 

compilation terminated.

 

 

exit status 1

msp430.h: No such file or directory

  • Sign in to reply

Top Comments

  • Jan Cumps
    Jan Cumps over 7 years ago +3
    This does not seem to be energia code. Energia code looks and feels like arduino sketches. msp430.h is not for a cc3200 controller. You seem to try and use msp430 registers on the cc3200. These two controller…
  • Jan Cumps
    Jan Cumps over 7 years ago in reply to kweber250 +3
    You’d use an IDE such as TI’s code composer studio for non-energia projects. Energia, like the Arduino IDE, expects you to follow the sketch way of working.
  • jomoenginer
    jomoenginer over 7 years ago +2
    This might be more inline with what you are looking for. https://energia.nu/pinmaps/cc3200-launchxl/ http://energia.nu/guide/boards/ https://forum.43oh.com/forum/125-energia-tivaccc3xxx/ Is there a particular…
  • phoenixcomm
    phoenixcomm over 6 years ago

    I agree with James. the MSP4xx and the CC32xx are very different processors and ARE NOT compatible/subset/superset/etc.

    • The MSP4xx are 16-bit low power devices, with a von Neumann architecture, with a single address space for instructions and data.
    • The CC3200 are ARMRegistered CortexRegistered -M4 Core, with an Armv7E-Harvard architecture, and The Wi-Fi Internet-on-a-chip, includes embedded TCP/IP and TLS/SSL stacks, HTTP server, and multiple Internet protocols.

    You can use CCSx on both devices but remember you must use the correct libraries.

     

    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • phoenixcomm
    phoenixcomm over 6 years ago in reply to kweber250

    Yes, You can use C/C++ with the TI CCSx or just run Eclipse. BTW CSSx is Eclipse

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • jomoenginer
    jomoenginer over 7 years ago

    This might be more inline with what you are looking for.

     

    https://energia.nu/pinmaps/cc3200-launchxl/

     

    http://energia.nu/guide/boards/  

     

    https://forum.43oh.com/forum/125-energia-tivaccc3xxx/

     

    Is there a particular reason you are looking to use Energia and not Code Composer Studio?

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • fmilburn
    fmilburn over 7 years ago in reply to kweber250

    You can use C / C++ but as Jan says, that is not Energia compliant code.  You can find more about Energia and the link to download the IDE here:  http://energia.nu/

     

    There is a blink sketch in the examples that does what you are attempting above.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Jan Cumps
    Jan Cumps over 7 years ago in reply to kweber250

    You’d use an IDE such as TI’s code composer studio for non-energia projects.

    Energia, like the Arduino IDE, expects you to follow the sketch way of working.

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • 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