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


Forums

  • 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

Calendars

There are no results to display.


Found 454 results

  1. PID Autotune

    I am building a code to control a heater with a PWM output connected to an SSR using the Arduino-PID-AutoTune-Library. There are two issues I am currently facing with the above library while using the normal mode(not simulating but using actual analog input of a thermocouple) of operation. https://github.com/br3ttb/Arduino-PID-AutoTune-Library 1> The temperature overshoots when I start the operation. I tried several values for the constants(kp=2,ki=0.5,kd=2; kp=1,ki=0.8,kd=0.8; kp=1,ki=0.5,kd=0 etc), but still the temperature overshoots by a significant amount. For eg, if the Setpoint is 100 C, the process value goes upto 130-140 C before coming back to stable state between 95 to 110 C. 2> When I use the Auto tuning feature, the Arduino enters the tuning mode, but the PWM output count just toggles between 50 and 150 and it never comes out of Autotune mode and the temperature goes on increasing continuously even beyond 200 C although the set point is 100 C. Can you please help me rectify the problem? Thanks sketch_feb12a.ino
  2. I have a tm4c129 board. I have installed updates form the board manager for the TIVA C so now I can upload the default examples form Energia. 1. Problem arises when I try to add custom libraries. What is the correct method to add a library? 2. I can find only MSP430 folder at location E:\..\energia-1.6.10E18\hardware\energia , I suppose all boards installed should show up in the hardware library. 3. I have included the library which I am trying to compile Error: WARNING: Category '' in library SD is not valid. Setting to 'Uncategorized' Missing 'maintainer' from library in C:\Users\Admin\Documents\Energia\libraries\SD Error compiling for board LaunchPad (Tiva C) w/ tm4c129 (120MHz). sd-logger-source.zip
  3. Hello, I'm currently working on a project temperature data logger. Now I'm using mc: MSP430f5529 I integrated with sd card using the petit fatfs library. Due to some limitation, i cant use full functionality. so I'm planning to make it work on fatfs. but there is no footprint for that. can you help me to come out of this issue? Thank you, sir Limitations: 1. Cant create a file 2. while saving the data in the same file previous entries are all given garbage value at sometimes. because it is not an empty file filled with null.
  4. Hello, I'm currently working on a project temperature data logger. Now I'm using mc: MSP430f5529 I integrated with sd card using the petit fatfs library. Due to some limitation, i cant use full functionality. so I'm planning to make it work on fatfs. but there is no footprint for that. can you help me to come out of this issue? Thank you, sir Limitations: 1. Cant create a file 2. while saving the data in the same file previous entries are all given garbage value at sometimes. because it is not an empty file filled with null.
  5. Hi , I am using MSP430FR4133LP , in energia the GPIO pins are predefined in the pins_energia.h for MSP430FR4133 LP based on the silkscreen on the board. I using this MSP430FR4133 chip for another project and in that i am not using a LCD so i thought that i can also use LCD pins as GPIO. For this purpose i need to add the pins in the pins_energia.h but i am not able to crack it. Can anyone help me with this ....? if i try to use any other pins other than the defined ones (say P2_2) ... it throws an error as " P2_2 not defined in the scope" // Pin names based on the silkscreen // static const uint8_t P1_0 = 4; static const uint8_t P1_1 = 3; static const uint8_t P1_2 = 24; static const uint8_t P1_3 = 13; static const uint8_t P1_4 = 12; static const uint8_t P1_5 = 11; static const uint8_t P1_6 = 18; static const uint8_t P1_7 = 19; //static const uint8_t P2_0 = ; //static const uint8_t P2_1 = ; //static const uint8_t P2_2 = ; <------ What should i do in order to add this pin static const uint8_t P2_3 = 22; static const uint8_t P2_4 = 21; static const uint8_t P2_5 = 8; static const uint8_t P2_6 = 25; static const uint8_t P2_7 = 5; //static const uint8_t P3_0 = ; //static const uint8_t P3_1 = ; //static const uint8_t P3_2 = ; //static const uint8_t P3_3 = ; //static const uint8_t P3_4 = ; //static const uint8_t P3_5 = ; //static const uint8_t P3_6 = ; //static const uint8_t P3_7 = ; static const uint8_t P4_0 = 23; //static const uint8_t P4_1 = ; //static const uint8_t P4_2 = ; //static const uint8_t P4_3 = ; //static const uint8_t P4_4 = ; //static const uint8_t P4_5 = ; //static const uint8_t P4_6 = ; //static const uint8_t P4_7 = ; static const uint8_t P5_0 = 17; static const uint8_t P5_1 = 7; static const uint8_t P5_2 = 15; static const uint8_t P5_3 = 14; //static const uint8_t P5_4 = ; //static const uint8_t P5_5 = ; //static const uint8_t P5_6 = ; //static const uint8_t P5_7 = ; static const uint8_t P8_0 = 6; static const uint8_t P8_1 = 2; static const uint8_t P8_2 = 9; static const uint8_t P8_3 = 10; //static const uint8_t P8_4 = ; //static const uint8_t P8_5 = ; //static const uint8_t P8_6 = ; //static const uint8_t P8_7 = ; //static const uint8_t PJ_0 = ; //static const uint8_t PJ_1 = ; //static const uint8_t PJ_2 = ; //static const uint8_t PJ_3 = ; //static const uint8_t PJ_4 = ; //static const uint8_t PJ_5 = ; //static const uint8_t PJ_6 = ; //static const uint8_t PJ_7 = ; These are the pin definitions that are already in the pins_energia.h based on the silkscreen. If i want to use a pin (say P2.2) what must i do in order to define that pin in the pins_energia.h file ?? thank you in advance.....
  6. I am currently testing the MSP430FR5994 launchpad. The available sram memory is 8Kbytes, but it is declared at 2 Kbytes in the boards.txt file. It is a mistake?
  7. iMeter BoosterPack

    The iMeter BoosterPack features the INA226, an iteration of the INA219 I've been using in various projects like the I²C Voltage-Current-Power INA219 Sensor and the Volt-Amp-Watt-Meter for Grove.Compared to the INA219, the INA226 operates on the same I²C bus but can now perform the measures on the high- or low-side, when the INA219 could only measure on the high-side. The library for Energia was then easy to develop thanks to the prior experience with the INA219. I tested the iMeter BoosterPack on a MSP430FR4133 LaunchPad and a MSP430FR6989 LaunchPad with the built-in segmented LCD, leveraging the alpha-numeric LCD to display the units and the buttons to select the different measures (V, A, W) and toggle between units (V, mV). References INA219 Review INA226 BoosterPack full review Library for Energia
  8. Hi, I am trying to implement Modbus RTU slave over TCP/IP using TIVA Tm4c1294 connected launchpad. The code has been successfully tested using Arduino. However, when I use the same code in energia, the launchpad gets pinged, but Modbus RTU does not work . Is there any library, hardware configuration which I need to change while migrating fro Arduino to TIVA? MgsModbus_test_Slave.rar
  9. I need help getting my program to compile work..... Here is the error code: Energia: 1.6.10E18 (Mac OS X), Board: "MSP-EXP430F5529LP" failed MSpanList_Insert 0x30d000 0x18bc3a4e55f1 0x0 fatal error: MSpanList_Insert runtime stack: runtime.throw(0x2ad50b) /usr/local/go/src/runtime/panic.go:491 +0xad fp=0x7ffeefbff430 sp=0x7ffeefbff400 runtime.MSpanList_Insert(0x2cb168, 0x30d000) /usr/local/go/src/runtime/mheap.c:692 +0x8f fp=0x7ffeefbff458 sp=0x7ffeefbff430 MHeap_FreeSpanLocked(0x2c7d60, 0x30d000, 0x100) /usr/local/go/src/runtime/mheap.c:583 +0x163 fp=0x7ffeefbff498 sp=0x7ffeefbff458 MHeap_Grow(0x2c7d60, 0x8, 0x0) /usr/local/go/src/runtime/mheap.c:420 +0x1a8 fp=0x7ffeefbff4d8 sp=0x7ffeefbff498 MHeap_AllocSpanLocked(0x2c7d60, 0x1, 0x0) /usr/local/go/src/runtime/mheap.c:298 +0x365 fp=0x7ffeefbff518 sp=0x7ffeefbff4d8 mheap_alloc(0x2c7d60, 0x1, 0x12, 0x0) /usr/local/go/src/runtime/mheap.c:190 +0x121 fp=0x7ffeefbff540 sp=0x7ffeefbff518 runtime.MHeap_Alloc(0x2c7d60, 0x1, 0x10000000012, 0xf989) /usr/local/go/src/runtime/mheap.c:240 +0x66 fp=0x7ffeefbff578 sp=0x7ffeefbff540 MCentral_Grow(0x2cfad8, 0x0) /usr/local/go/src/runtime/mcentral.c:197 +0x8b fp=0x7ffeefbff5e0 sp=0x7ffeefbff578 runtime.MCentral_CacheSpan(0x2cfad8, 0x0) /usr/local/go/src/runtime/mcentral.c:85 +0x167 fp=0x7ffeefbff618 sp=0x7ffeefbff5e0 runtime.MCache_Refill(0x309000, 0x12, 0x0) /usr/local/go/src/runtime/mcache.c:90 +0xa0 fp=0x7ffeefbff640 sp=0x7ffeefbff618 runtime.mcacheRefill_m() /usr/local/go/src/runtime/malloc.c:368 +0x57 fp=0x7ffeefbff660 sp=0x7ffeefbff640 runtime.onM(0x224f58) /usr/local/go/src/runtime/asm_amd64.s:273 +0x9a fp=0x7ffeefbff668 sp=0x7ffeefbff660 runtime.mallocgc(0x120, 0x1beba0, 0x0, 0x0) /usr/local/go/src/runtime/malloc.go:178 +0x849 fp=0x7ffeefbff718 sp=0x7ffeefbff668 runtime.newobject(0x1beba0, 0x309000) /usr/local/go/src/runtime/malloc.go:353 +0x49 fp=0x7ffeefbff740 sp=0x7ffeefbff718 runtime.newG(0x276ba) /usr/local/go/src/runtime/proc.go:233 +0x2a fp=0x7ffeefbff758 sp=0x7ffeefbff740 allocg(0x2ba660) /usr/local/go/src/runtime/proc.c:925 +0x1f fp=0x7ffeefbff768 sp=0x7ffeefbff758 runtime.malg(0x8000, 0x2ba700) /usr/local/go/src/runtime/proc.c:2106 +0x1f fp=0x7ffeefbff798 sp=0x7ffeefbff768 runtime.mpreinit(0x2baac0) /usr/local/go/src/runtime/os_darwin.c:137 +0x27 fp=0x7ffeefbff7b0 sp=0x7ffeefbff798 mcommoninit(0x2baac0) /usr/local/go/src/runtime/proc.c:201 +0xc9 fp=0x7ffeefbff7d8 sp=0x7ffeefbff7b0 runtime.schedinit() /usr/local/go/src/runtime/proc.c:138 +0x55 fp=0x7ffeefbff800 sp=0x7ffeefbff7d8 runtime.rt0_go(0x7ffeefbff838, 0x18, 0x7ffeefbff838, 0x0, 0x0, 0x18, 0x7ffeefbff9f8, 0x7ffeefbffa30, 0x7ffeefbffa3c, 0x7ffeefbffa4c, ...) /usr/local/go/src/runtime/asm_amd64.s:95 +0x116 fp=0x7ffeefbff808 sp=0x7ffeefbff800 arduino-builder returned 2 Error compiling for board MSP-EXP430F5529LP. This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.
  10. MSP-EXP432P401R Energia 1.6.10E18 Windows Education 10 x64 v1511 I am wondering if anyone has had experience or knows how I could make it so a board [RED LaunchPad /w msp432 EMT (48MHz)] will be available to all users in a domain environment. I originally tried using the CCS Cloud TI Agent but encountered some very odd registry issues with non admin users/domain users (Reference: https://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/650118#pi316318=2). We are able to install it fine for everyone with the local admin or administrative domain account, however when we goto Boards Manager and install that board it only applies to the current user. It looks like it may be specific to the user profile where it is installing this to as the only thing I could find related to the msp432 board was in this file location: C:\Users\domain_user\AppData\Local\Energia15\packages\energia\hardware\msp432r\5.6.1 Is there a registry or config file somewhere where I can change the location of where the boards get downloaded/installed to so it can be read from a location that all users have access to?
  11. MSP430FR2433 with Energia

    Hi, I am trying to connect my MSP430FR2433 Launchpad to Energia. I do not see how to select this board in the "Tools -> Board" setting, and I do not see how to download the drivers for it in the board manager. Yet on the homepage of energia.nu, it states that support for this board is available. Does anyone have any suggestions on how to get this board to work in Energia? Thank you. -Grant
  12. 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!
  13. 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
  14. 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 .
  15. 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
  16. 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).
  17. 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
  18. 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?.
  19. 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...)
  20. 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
  21. 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
  22. 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...)
  23. See related issue at
  24. 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
  25. 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
×