Jump to content

Search the Community

Showing results for tags 'energia'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • News
    • Announcements
    • Suggestions
    • New users say Hi!
  • Spotlight!
    • Sponsor Spotlight
    • Sponsor Giveaways
  • Energia
    • Energia - MSP
    • Energia - TivaC/CC3XXX
    • Energia - C2000
    • Energia Libraries
  • MSP Technical Forums
    • General
    • Compilers and IDEs
    • Development Kits
    • Programmers and Debuggers
    • Code vault
    • Projects
    • Booster Packs
    • Energia
  • Tiva-C, Hercules, CCXXXX ARM Technical Forums
    • General
    • SensorTag
    • Tiva-C, Hercules, CC3XXX Launchpad Booster Packs
    • Code Vault
    • Projects
    • Compilers and IDEs
    • Development Kits and Custom Boards
  • Beagle ARM Cortex A8 Technical Forums
    • General
    • Code Snippets and Scripts
    • Cases, Capes and Plugin Boards
    • Projects
  • General Electronics Forum
    • General Electronics
    • Other Microcontrollers
  • Connect
    • Embedded Systems/Test Equipment Deals
    • Buy, Trade and Sell
    • The 43oh Store
    • Community Projects
    • Fireside Chat
  • C2000 Technical Forums
    • General
    • Development Kits
    • Code Vault
    • Projects
    • BoosterPacks


There are no results to display.

Found 443 results

  1. Part Number: TM4C123GH6PM Tool/software: Energia 1.6.10E18 LaunchPad board name and version: TIVA TM4C123GH6PM IDE version: Energia 1.6.10E18 or CCS7.0 OS name and version: Windows7 While uploading a simple LED Blink code on Tiva TM4C123GH6PMevaluation board, I get an error "Failed: Unable to find an entry in the TPI ini file for "TMS470REX"", failing to upload to the device. Please help!
  2. while integrating GPS with my msp430. I'm getting these errors from the library. so please someone help me out. C:\Users\softdesigners\Desktop\energia-1.6.10E18\libraries\SoftwareSerial\SoftwareSerial.cpp:81:2: error: #error This version of SoftwareSerial supports only 16MHz processors C:\Users\softdesigners\Desktop\energia-1.6.10E18\libraries\SoftwareSerial\SoftwareSerial.cpp: In member function 'void SoftwareSerial::begin(long int)': C:\Users\softdesigners\Desktop\energia-1.6.10E18\libraries\SoftwareSerial\SoftwareSerial.cpp:251:31: error: 'table' was not declared in this scope C:\Users\softdesigners\Desktop\energia-1.6.10E18\libraries\SoftwareSerial\SoftwareSerial.cpp: In member function 'virtual size_t SoftwareSerial::write(uint8_t)': C:\Users\softdesigners\Desktop\energia-1.6.10E18\libraries\SoftwareSerial\SoftwareSerial.cpp:319:26: error: 'XMIT_START_ADJUSTMENT' was not declared in this scope
  3. I am trying to read a .wav file from sd card and play it using I2S on CC3200 audio booster in Energia. I have modified the Wifi audio example of CC3200 sdk for this. The dma is setup in ping pong mode and sd card loads data into the buffer but the tx dma interrupt fires only once in primary mode and once in alternate mode. I could not understand why its firing only once. I have configured I2S in stereo mode with 16KHz sampling frequency and 16 bit size. This is my tx dma handler .
  4. Energia Hybrid Code

    Hi all, I started writing a few "hybrid" code examples based on Energia projects. They're called hybrid because they're based on Energia examples but are written more of a compact form, using few header files. For example, they do not try to hide the main() routine like Arduino/Energia (this is great for beginners/prototypers, but not for understanding the microprocessor). Energia and CCS examples are somewhat complementary: Energia is easy to use/hard to follow, TI code is hard to use/easy to follow. Hi-level vs. low-level. So I wanted something in between. Hence, hybrid. They are written with the intent to expose the underlying details, not to try to hide them like Arduino/Energia paradigm. The intent is to make them self-contained without too many header files. One significant departure is to specify ports in the TI style of P1.x instead of mapping them to single numbers (P1.0 = 1, etc) . Not sure if that's a bad idea. Here is a rough draft of Blinky: #include <msp430.h> typedef unsigned char uint8_t; typedef enum _val {LOW, HIGH} _val_t; typedef enum _dir {INPUT, OUTPUT} _dir_t; void disableWatchDog() { WDTCTL = WDTPW | WDTHOLD; } void init() { disableWatchDog(); } void pinMode(uint8_t port, uint8_t pin, _dir_t dir){ volatile unsigned char* _base_addr = &P1DIR; //base starting address volatile unsigned char* _port_addr; //final calculated addr uint8_t offset; // port address equals base plus offset offset = (port - 1) << (port + 1); // each port seperated by 8 bytes, hence shift a 1 by 2^3 _port_addr = _base_addr + offset; uint8_t mask = 1<<pin; (dir == INPUT) ? (*_port_addr &= ~mask) : (*_port_addr |= mask); //set or reset bit } void setup() { uint8_t port = 1; //Port 1.0 uint8_t pin =0; pinMode(port, pin, OUTPUT); } void digitalWrite(uint8_t port, uint8_t pin, _val_t val) { volatile unsigned char* _base_addr = &P1OUT; volatile unsigned char* _port_addr; //final calculated addr uint8_t offset; // port address equals base plus offset offset = (port - 1) << (port + 1); // each port seperated by 8 bytes, hence shift a 1 by 2^3 uint8_t mask = 1<<pin; _port_addr = _base_addr + offset; (val == LOW) ? (*_port_addr &= ~mask) : (*_port_addr |= mask); //set or reset bit } // the loop routine runs over and over again forever: void loop() { uint8_t port = 1; //Port 1.0 uint8_t pin =0; digitalWrite(port, pin, HIGH); // turn the LED on (HIGH is the voltage level) __delay_cycles(50000); // wait for a second digitalWrite(port, pin, LOW); // turn the LED off by making the voltage LOW __delay_cycles(50000); // wait for a second } int main(void) { init(); setup(); while(1) loop(); } Comments are encouraged! is this useful/useless, redundant, confusing, inaccurate, inconsistent, awesome/irrelevant, helpful, etc? thank you, Scott
  5. Back in June, I wrote a very basic sketch that sent an email via my hosted SMTP server. Unfortunately, the USB drive I stored the sketch on is toast. I don't recall the source and after digging through the examples, libraries and the forum, I'm unable to find an example I might have drawn from. Does anyone have an idea of what code example I might have used? I know I didn't write anything from scratch. I also know I didn't use Temboo or SMTP2Go, as I still have the email in my gmail mailbox (and it came from my hosted domain).
  6. Hi, I am looking to interface CC3200 Launchpad with Kentec K350QVG 3.5" LCD Booster pack using Energia. I can't find any library suits for CC3200. Does anyone interfaced this display with CC3200? If so, can any one guide me? Thanks
  7. hi, I am using a MSP430FR4133 launchpad, i am trying to get a float value and send it via sim800. for that i hve to convert the float value to char* or char array. I have tried many conversions but i am not able to get the conversion properly. Even if i get it properly while printing it on the serial. The data is not transmitted in the right format through sim800. for example if i use dtostrf( buff , "%f" , flaotVal); function in serial monitor only "%f" is getting printed. and if i try other type of convertions , while transmitting through sim800 the right side part of the float value gets added to the decimal values . have tried ( itoa(), sprintf(), etc..) for example .. float value = 1.25. and if i tried converting and printing it on serial monitor i am getting it corrrectly as "1.25" . But when i am trying to transmit through sim800 the converted float value is sent as "0.125" instead 1.25 . Can anyone help me with this?.
  8. Is it possible to use asm in energia? I would like to see some short and simple example of how to use it and compile it. I found THIS very nice and useful guide to make it work in code composer studio, but unfortunalley I could not put this code it to work in Energia, and I dont have CCS.. (I downloaded the version 7, but for some reason it did not install, just give errors, tried in 2 pcs) In the other hand, I found something about asm in Energia here in the forum, but is was intended for a more complex stuff, and I could not put it to work, too.. Could someone give me a light? I just want to do something very simple like blink a red led, then a green led, like in the example in the link, just to know how to handle asm in msp430. But in Energia, not CCS.. I am using the msp430g2553 launchpad. I have also a g2452 chip.. ps. my final objective is to make something like THIS in msp430 (the guy provides the emulator asm code for the atmel chip, I guess it would be possible to port it to msp, if you know asm and study the chips very well.... once tha arm emulator runs, I guess the rest will work...)
  9. Hello, I want to design a datalogger and to create USB Mass Storage when I connect board. I did not find Examples related to MSP430F5529 for Energia. So, please suggest me Energia example/SDK related to "MSP430F5529". Thank you. Regards, Pratik Panchal
  10. Hello from Fort Worth, Texas

    Hello, Just getting back into the microcontroller development aren. In the nineties I got very familiar with the Intel 8751 all programming in assembly. Times have changed! A lot is easier now, but learning the new IDE and knocking the rust off my C programming. We picked the MSP430 for the low power consumption. Like others I had a little trouble getting Energia running but now no problems. First project completed was a remote oxygen pressure monitor for the airplane. We have also connected the LIS3DH accelerometer and have it working well. I haven't figured out exactly how to import, modify arduino libraries yet so I just wrote directly to the chip following the data sheet. No problems with the I2C. Looking forward to more MSP430 projects. thanks, Valerie
  11. I²C Check-List

    Check the usual suspects: Does the I²C device run at 3.3V? Otherwise, use a logic-level converter. Are pull-ups installed? Try 10, 4.7 or 2.2 kΩ for the SDA and SCL lines. In case the LaunchPad provides multiple I²C ports, is the correct port selected? Try Wire.setModule(0); // or other port number Wire.begin(); Still nothing? Use a logic analyser to trace the signals on the I²C port. (To be continued...)
  12. See related issue at
  13. Model of LaunchPad: MSP430G2553/G2403 and revision number: 1.5 Model of the MCU used: I am not sure, but the box is MSP-EXP430G2 Name and version of the IDE used : Energia version 0101E0017 (I tried the newer one, but it threw a bunch of errors which resolved when downgrading) OS the IDE is running on Ubuntu 16.04 LTS I am completely new to this type of programming, so I apologize if I need extra clarification or am missing something. Issues faced: The blinking code I have used all work just fine, but no print statements work. My current goal is to simply get a read from the internal temperature sensor, but printing won't work. I am attaching relevant screenshots. and example code. Any direction/help is appreciated! Blink.ino
  14. Full MSP430FR5969 Port

    Is there a full energia porting for msp430fr5969, i.e. all the ports and full mcu functionality (timer, spi, i2c etc) rather than limited as per the launchpad? I have msp430fr5969, custom board connected to bunch of sensors and radio and would like to use energia for this. Any directions or suggestions will be most welcome. Thanks
  15. Hi everyone, I am using a Black Launchpad and this does not work in the latest version of Energia which is 1.6.10E18. So I switched back to the version 0101E0017 to make use of the Black Launchpad. My code is below and tried in Arduino IDE and working fine: float a = 3.5; float b = 2.0; float result = 0.00; void setup() { // put your setup code here, to run once: Serial.begin(9600); } void loop() { // put your main code here, to run repeatedly: result = max(a,b); Serial.println(result); delay(1000); } Using the same code in version 0101E0017 produces a compilation error that "max" was not defined. In 1.6.10E18, this works but it is impossible to upload this program using the Black Launchpad. Any suggestions for this error? Thanks and Good Day, Leo
  16. Fatal error

    I'm using the latest version of Energia and I'm facing some problems with it. I'm a beginner and I tried running an example program on the MSP430G2553. I get this error which says: Energia: 1.6.10E18 (Windows 8.1), Board: "MSP_EXP430G2553LP" In file included from C:\energia-1.6.10E18\hardware\energia\msp430\cores\msp430/Arduino.h:3:0, from sketch\Blink.ino.cpp:1: C:\energia-1.6.10E18\hardware\energia\msp430\cores\msp430/Energia.h:339:26: fatal error: pins_energia.h: No such file or directory compilation terminated. exit status 1 Error compiling for board MSP_EXP430G2553LP. This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences. Please help me in getting rid of this error. Thank you!
  17. I was not able to use realloc using energia so I imported the proyect to CSS v7. It seems there is something wrong or not done about realloc under Energia. CSS v7 is using the Ti compiler instead of GCC and it has realloc and it works. But when using CCSv7 with the imported sketch, the Serial.print commands do nothing. Even If I debug step by step it just ignores Serial.print commands without showing anything anywhere. I activated the serial terminals inside CCSv7 to see the output and I also have the normal output and the console. I can work around if I find a function equivalent to micros() for the CCSv7
  18. i bought two Mspexp430 launchpad with two cc110l rfand i could to programm them in energia : then i want to add more nodes on the Network so i bought two new Mspexp430 launchpad with new two cc110l rf and they work correctly on ATC boostersatcklite but when I want to program them on energia I can upload the code but the cc110l doesn’t exchange any data from each other , i tried also with the examples in energia (wirlessControl-WirlessTest-WirelessMonitorhub-WirelessmonitorSensor) but they did not work Can you help me to let them work correctly and exchange data
  19. Hi all, I am currently just trying to upload a example sketch to my MSP430G2553, all i'm getting is a compile error. The github library is; https://github.com/ibm666/ILI9341libraryforEnergiaMSP430Launchpad what im getting error wise is; In file included from D:\energia-1.6.10E18\libraries\ili9341-arduino-master\examples\drawNumber\drawNumber.ino:8:0: D:\energia-1.6.10E18\libraries\ili9341-arduino-master/TFTv2.h:33:17: fatal error: SPI.h: No such file or directory compilation terminated. Using library ili9341-arduino-master in folder: D:\energia-1.6.10E18\libraries\ili9341-arduino-master (legacy) exit status 1 Error compiling for board MSP-EXP430G2 w/ MSP430G2553. Can anyone tell me what i'm doing wrong? I can upload examples from the SPI library so im assuming it cant be that?! HELP!!! PLEASE!!!
  20. Hello, What is the status of Wire.h when using energia with the tiva-c board? Since there is the BoardManager in E18, the file layout has changed. Which leads to some confusion. eagle@daredevil:~$ find . -type f -name "Wire.h" ./.energia15/packages/energia/hardware/msp432/3.8.0/cores/msp432/ti/runtime/wiring/Wire.h ./.energia15/packages/energia/hardware/msp430/1.0.2/libraries/Wire/Wire.h ./.energia15/packages/energia/hardware/tivac/1.0.2/libraries/Wire/Wire.h ./.energia15/packages/energia/hardware/msp432r/5.6.0/cores/msp432r/ti/runtime/wiring/Wire.h ./bin/energia-1.6.10E18/hardware/energia/msp430/libraries/Wire/Wire.h ./bin/energia-1.6.10E18/hardware/energia/msp430/cores/msp430/Wire.h So I think when using energia with tivac, it will use the .energia15/packages/energia/hardware/tivac/1.0.2/libraries/Wire/Wire.h file that is in the hidden .energia directory right? Then I went ahead and edited the Wire.cpp file in the tivac/1.0.2 dir. #include <stdlib.h> #include <stdio.h> #include <string.h> #include <inttypes.h> #include "wiring_private.h" #include "inc/hw_memmap.h" #include "inc/hw_types.h" #include "inc/hw_ints.h" #include "inc/hw_i2c.h" #include "driverlib/gpio.h" #include "driverlib/debug.h" #include "driverlib/interrupt.h" #include "driverlib/rom.h" #include "driverlib/rom_map.h" #include "driverlib/pin_map.h" #include "driverlib/sysctl.h" #include "driverlib/i2c.h" #include "Wire.h" Here is a list of include files from Wire.cpp. So here is my question: is this Wire.cpp implementation is for TM4C? is it using or based on the TivaWare Peripheal library? I intend to make some modifications for it, for example using 2 i2c ports at the same time. So I need to start at the correct place. Any ideas / help greatly reccomended. Best regards, CA
  21. Weird characters in serial monitor

    Dear developers, I am simply using Serial.println(); command, but I get some weird characters in the serial port display window. Code : #include <Wire.h> // HIH6130 I2C address is 0x27(39) #define Addr 0x27 int tzero = 196; int tspan = 17; int hzero = 196; int hspan = 17; void setup() { Wire.setModule(1); Wire.begin(); pinMode(P1_3,OUTPUT); pinMode(P1_2,OUTPUT); pinMode(P1_6,OUTPUT); Serial.begin(9600); Serial.println("OK"); delay(300); } void loop() { unsigned int data[4]; // Start I2C Transmission Wire.beginTransmission(Addr); // Select data register Wire.write(0x00); // Stop I2C Transmission Wire.endTransmission(); // Request 4 bytes of data Wire.requestFrom(Addr, 4); // Read 4 bytes of data // humidity msb, humidity lsb, temp msb, temp lsb if (Wire.available() == 4) { data[0] = Wire.read(); data[1] = Wire.read(); data[2] = Wire.read(); data[3] = Wire.read(); } // Convert the data to 14-bits float humidity = ((((data[0] & 0x3F) * 256) + data[1]) * 100.0) / 16383.0; float temp = ((data[2] * 256) + (data[3] & 0xFC)) / 4; float cTemp = (temp / 16384.0) * 165.0 - 40.0; // Output data to serial monitor Serial.print("Relative Humidity :"); Serial.println(humidity); Serial.println(" %RH"); Serial.print("Temperature in Celsius :"); Serial.println(cTemp); Serial.println(" C"); Serial.println("=============================================================== "); int VcTemp = map(cTemp, -5, 125, tzero, tspan ); int vhumidity = map (humidity, 0, 100, hzero, hspan); analogWrite(P1_2, VcTemp); analogWrite(P1_6, vhumidity); delay(1000); } Serial Output : (in one single line, means it keeps printing these characters in just one line on and on.picture : Thax.
  22. Energia running very slow

    I don't know why but my energia is running very slow. All the other apps are running at good speed. I am using windows 10 64-bit version. I am using Energia V17. Pictures from my task manager are attached here, please take a look at it. Thax and peace.
  23. Hello everyone, I'm trying setup pwm frequency for tiva C in Energia but failed at this line: analogFrequency(PWM_FREQ) // define PWM pins #define PWM_1 PD_6 // define PWM frequency #define PWM_FREQ 20000 void setup() { pinMode(PWM_1, OUTPUT); analogFrequency(PWM_FREQ); } void loop() { analogWrite(PWM_1, 50); } Can help me with the problem, thank!
  24. Energia Mac OS X

    Hi, I am having trouble when trying to set the Serial Port and the Board. The options that it shows on the Guide for Mac to choose aren't options shown when I go to the tool tab on my Energia app! Please let me know!
  25. MSP430 reduce clock speed

    Hey everyone, I am trying to reduce the power consumption of my msp430FR4133 by reducing the clock speed from 8MHZ. I am using the http://annem.github.io/ADXL362/ example code as a base which sets the default clock speed to 8MHZ. I have read that the Wiring.c file defines the clock speed but I cannot find where F_CPU is defined. Any help would be greatly appreciated thanks.