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.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Location


Interests


Sparkfun


Github

Found 560 results

  1. Just installed in the latest Energia and then used the board manager to update my msp432r stuff to the latest 5.29.0. However, in: AppData\Local\Energia15\packages\energia\hardware\msp432r\5.29.0 the platform.txt file says: version=5.25.2 version.string=5252 Is 5.29.0 the same as 5.25.2?
  2. 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!
  3. hi,frnds i would like to work with cc3200 and nfcboosterpack trf7970a in energia IDE .Does any one have energia library for TRF7970A boosterpack. i have attached a pdf which helps to make a library for iso1443a and iso5693 i tried this code for msp430g2553 but its not working please any one can help me TestTRF7970A_with_BPV3 (1).pdf nfcpin.pdf #include<SPI.h> #define enable P2_2 #define CS P2_1 #define interrupt P2_0 #define CS_ENABLED digitalWrite(CS,LOW) #define CS_DISABLED digitalWrite(CS,HIGH) void setup() { // put your setup code here, to run once: pinMode(CS,OUTPUT); pinMode(enable,OUTPUT); digitalWrite(enable,LOW); pinMode(interrupt,INPUT); SPI.setDataMode(SPI_MODE1); SPI.setClockDivider(SPI_CLOCK_DIV8); SPI.setBitOrder(MSBFIRST); SPI.begin(); Serial.begin(9600); } void loop() { // put your main code here, to run repeatedly: let(); } void let(void) { CS_ENABLED; Write(0x83); CS_DISABLED; CS_ENABLED; Write(0x09); Write(0x31); CS_DISABLED; CS_ENABLED; Read(0x49); CS_DISABLED; CS_ENABLED; Write(0x01); Write(0x88); CS_DISABLED; CS_ENABLED; Read(0x41); CS_DISABLED; CS_ENABLED; Write(0x00); Write(0x20); CS_DISABLED; CS_ENABLED; Read(0x40); CS_DISABLED; CS_ENABLED; Write(0x01); Write(0x88); CS_DISABLED; CS_ENABLED; Write(0x8F); Write(0x90); Write(0x3D); Write(0x00); Write(0x0F); Write(0x26); CS_DISABLED; delay(100); CS_ENABLED; Write(0x6C); Read(0xC0); Read(0x3E); CS_DISABLED; CS_ENABLED; Write(0x5C); Read(0x02); CS_DISABLED; CS_ENABLED; Write(0x7F); Read(0x04); Read(0x00); CS_DISABLED; CS_ENABLED; Write(0x8F); CS_DISABLED; CS_ENABLED; SPI.transfer(0x4F); Read(0x7F); CS_DISABLED; delay(20); CS_ENABLED; Write(0x8F); Write(0x90); Write(0x3D); Write(0x00); Write(0x20); Write(0x93); Write(0x20); CS_DISABLED; delay(5); CS_ENABLED; Write(0x6C); Read(0xC0); Read(0x3E); CS_DISABLED; CS_ENABLED; Write(0x5C); Read(0x05); CS_DISABLED; CS_ENABLED; Write(0x7F); Read(0xCD); Read(0x88); Read(0x77); Read(0x66); Read(0x00); delay(10); CS_DISABLED; CS_ENABLED; Write(0x6C); Read(0x00); Read(0x3E); CS_DISABLED; CS_ENABLED; Write(0x8F); CS_DISABLED; CS_ENABLED; Write(0x4F); Read(0x7F); CS_DISABLED; } void Read(byte data ) { Serial.print(SPI.transfer(data)); } void Write(byte data) { SPI.transfer( data); }
  4. Hello I need help. I have to get it with an Energia programming that you have to press a button 5 seconds before the led tackles. Are there any programs or commands on how to get this?. Thank you for your help
  5. Hello, I am storing a sensor value in the Flash Memory in a Segment of MSP430F5529 board. Since the data from the sensor keeps changing i want the data to be overwritten so that not much of space in flash memory is used. Is there a simple way to achieve the overwrite feature in flash memory ? Also i have another doubt, i wanted to know if i keep writing continuously a data to flash memory, does the microcontroller gets caught in writing to the flash and slows the running program ? thank you for taking time to review my questions.
  6. Hello, I am playing around with msp432e401y launchpad in Energia and in my case analogWrite() does not work. I am not confident what this behavior is not related to my system, so I would like to get confirmation from other forum members. Thanks
  7. Hello everyone, I'm basically trying to port over Arduino's SD card library (which utilizes SPI communication) to Energia, and am starting by testing whether I am able to properly initialize the SD card or not. First, I made sure that the Arduino library worked on an AT Mega 2560 and SD card that I have (it did). I then moved on to porting the library for Energia. I changed the pin mapping and the SPI settings to work for the F5529 and so far I can prove with a logic analyzer that the SD initialization function commands the CS, SCLK, MISO, and MOSI SPI lines in the exact same manner for the MSP430 as for the Atmel, byte for byte. Basically, the information coming in to and out of each mircrocontroller is exactly the same so I know that all the SD card information is there for me However, the problem is that the information does not seems to be received by the MSP430 in the same manner as the Atmel and causes the initialization to fail. I think the roots of this issue involve differences between the way the Atmel device DataloggerArduino.zip DataloggerEnergia.zip
  8. Hello, Has there ever been a method developed for Energia that allows it to use an external crystal? I'd like to have the ability to enable a low frequency crystal as well as a high frequency crystal on the msp430fr5994. Does anyone have any recommendations for implementing this? Thanks,
  9. Hello, I'm trying to get some code to upload to my MSP-EXP430F5529LP board. Following this forum post (I'm on Mac OS Catalina), I installed a pre-release version of Energia, and I get this error: Energia: 1.8.10E22 (Mac OS X), Board: "MSP-EXP430F5529LP" Sketch uses 706 bytes (1%) of program storage space. Maximum is 48128 bytes. Global variables use 18 bytes (0%) of dynamic memory, leaving 8174 bytes for local variables. Maximum is 8192 bytes. java.io.IOException: Cannot run program "___REMOVE___/DebugServer/bin/DSLite": error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048) at java.lang.Runtime.exec(Runtime.java:620) at java.lang.Runtime.exec(Runtime.java:485) at processing.app.helpers.ProcessUtils.exec(ProcessUtils.java:11) at cc.arduino.packages.Uploader.executeUploadCommand(Uploader.java:129) at cc.arduino.packages.uploaders.SerialUploader.runCommand(SerialUploader.java:383) at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:197) at cc.arduino.UploaderUtils.upload(UploaderUtils.java:77) at processing.app.SketchController.upload(SketchController.java:732) at processing.app.SketchController.exportApplet(SketchController.java:703) at processing.app.Editor$UploadHandler.run(Editor.java:2075) at java.lang.Thread.run(Thread.java:745) Caused by: java.io.IOException: error=2, No such file or directory at java.lang.UNIXProcess.forkAndExec(Native Method) at java.lang.UNIXProcess.<init>(UNIXProcess.java:247) at java.lang.ProcessImpl.start(ProcessImpl.java:134) at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029) ... 11 more An error occurred while uploading the sketch This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences. What could be the issue? It seems like the directory that the program is trying to use is incorrect. (Maybe ___REMOVE___ is not supposed to be there or something?) Thanks in advance!
  10. Hello, I've been developing with the msp430fr5994 on energia and I seem to have come across an issue using the serial ports on 6.0 and 6.1 I have two of these processors connected together with the Tx/Rx connected respectively on 6.0 and 6.1. I have the first processor sending out a single number using the Serial1.write("1"); command. The second processor i set to respond by displaying data on it's TFT once it gets any kind of data. So far, I can't get anything to come out of the Serial1 ports. An oscilloscope shows that it's being held high and not sending any kind of data out. I've tried just about every combination of Serial1.print and Serial1.write commands and attempted single numbers, letters, phrases, ect. I read online from about a year ago that there was an issue getting Serial1 to work on this processor using energia, was there a fix for this? Thanks,
  11. With the 5.25.0 msp432pr board file update, my SPI stuff has stopped working. Some time back, there was an issue with spi modes 0/1 being switched. As such, that was the direction I was looking to try and figure out my current problem. While digging around I noticed this: 5.23.1\cores\msp432r\ti\runtime\wiring\SPI.h #define SPI_MODE0 SPI_POL0_PHA0 #define SPI_MODE1 SPI_POL0_PHA1 #define SPI_MODE2 SPI_POL1_PHA0 #define SPI_MODE3 SPI_POL1_PHA1 5.25.0\cores\msp432r\ti\runtime\wiring\SPI.h #define SPI_MODE0 SPI_POL0_PHA1 #define SPI_MODE1 SPI_POL0_PHA0 #define SPI_MODE2 SPI_POL1_PHA1 #define SPI_MODE3 SPI_POL1_PHA0 If I swap the definitions for SPI_MODE0 and SPI_MODE1 my code works again. So has the mode swapping problem re-appeared?
  12. I want know why my code isn't work, I used to use in TM4C129 and edit the code to used in TM4C123GXL, but it doesn't work. #include <stdint.h> #include "driverlib/sysctl.h" #include "driverlib/qei.h" int pos; void setup() { Serial.begin(9600); // Setup QEI Module SysCtlPeripheralEnable(SYSCTL_PERIPH_QEI0); GPIOPinConfigure(0x00031806); //GPIO_PD6_PHA0 GPIOPinConfigure(0x00031C06); //GPIO_PD7_PHB0 GPIOPinTypeQEI(GPIO_PORTL_BASE, GPIO_PIN_1 | GPIO_PIN_2); // Configure and Enable QEI QEIConfigure(QEI0_BASE, (QEI_CONFIG_CAPTURE_A_B | QEI_CONFIG_NO_RESET | QEI_CONFIG_QUADRATURE | QEI_CONFIG_NO_SWAP), 2147483648); QEIVelocityConfigure(QEI0_BASE, QEI_VELDIV_1, SysCtlClockGet()); // Divide by clock speed to get counts/sec QEIEnable(QEI0_BASE); QEIVelocityEnable(QEI0_BASE); } void loop() { // Report Position & Velocity of Encoder to Serial Terminal Serial.print(QEIPositionGet(QEI0_BASE)); Serial.print(','); Serial.println(QEIVelocityGet(QEI0_BASE)); delay(10); }
  13. Howdy, I'm having trouble programming my MSP430FR2433LP with Energia on my Mac. When I try to upload the program, it gives me this error: MSP430: Error initializing emulator: No USB FET was found. Strangely, I am able to program it with the online Code Composer Studio. I have made it blink red and green lights. Unfortunately, I'm not trying to become an embedded programmer (while that would be fun, I do not have the time) so I do not want to learn CCS, registers, and serial communications in pure C. Props to all you who can do this. I really want this to work with Energia - it will save me many hours down the road. I also tried this on my Windows Parallels desktop emulation software (which works pretty damn near perfectly like a true Windows OS), but I got the same error message! The board and USB cable are clearly working if I can program with CCS. So what is going on with Energia? Thanks, Another Mac-using engineer with problems
  14. I an using mspexp430g2 launchpad on energia with windows 10 OS.In this while compiling the inbulit "DigitalReadSerial" example code from energia IDE ,at that time it should print the output in the Serial Monitor screen . But it does not print anything.Please help me.
  15. I am using CC3100 and BOOSTXL-SENSHUB alongwith TM4C123GXL launchpad to build a project that senses the temperature and posts it to some server. Is there any energia library or sample code for BOOSTXL-SENSHUB sensor hub pack?
  16. Hi, rank TI n00b here: I am a professional developer working a often in the Arduino IDE with Atmel, ESP, ARM, ATtiny and Kendryte processors among others. I am replicating a client design centered around an MSP430G2302 (14 pin TSSOP versus the apparently several different pin counts for this model) and thought the Launchpad MSP430GET would be a good programmer as it claims to support the MSP430G2302... and Energia is very familiar to me as it is essentially the Arduino IDE. I am finding no way to access the MSP430G2302 from Energia, nor any way to specify a 14 pin vs 16 pin package. Is this IC supported, and if so how do I use it? If this is one of those things where I'll get asked 'would YOU like to support it'; then I can assume it's unsupported despite what the literature claims. I am ready to pay the premium for using an ATMEGA328P-AU in order to be able to move on from trying to make this work to getting on with programming and designing this product. Thank you
  17. From time to time, threads pop up where someone tries to count very fast pulses in the hundreds of kHz or even MHz range. There is a solution for the hardcore C-coders among us, but to my surprise there was no Energia library for this simple problem. I herewith present the CounterLib for Energia Download Source code and detailed instructions are also available on GitHub: https://github.com/astuder/CounterLib-Energia Currently the library supports MSP430G2553, MSP430F5529 and MSP430FR5969. To create an instance of the counter, simply declare it as a global variable like this: Counter<> MyCounter; // create a counter that counts pulses on pin P1.0Once created, the counter has 5 functions:start() initializes the timer peripheral and I/O pin and starts the counter stop() stops the counter, but does not reset the counter value read() reads the current value of the counter reset() resets the counter to 0, the counter keeps running readAndReset() reads the current value and resets the counter to 0 And a basic example, which should work for signals lower than 65 kHz: Counter<> MyCounter; // create counter that counts pulses on pin P1.0 void setup() { Serial.begin(9600); MyCounter.start(); // start counter } void loop() { MyCounter.reset(); // reset counter to zero delay(1000); // wait one second Serial.println(MyCounter.read()); // read number of pulses during the last second delay(1000); // wait another second } The library also supports dividers to measure much faster signals. For more detailed instructions see GitHub. The library uses the external clock input of the timer peripheral. This enables the library to measure very fast signals (MHz range). On the downside, each timer only has a specific pin assigned, and the G2553 only has one timer with an external pin. It is also possible, that other Energia libraries or built-in functionality use the same timer, which won't work. Here's a list of the timers supported by the library and their pins: | Timer | G2553,| | | | | | G2452,| F5529 | FR5969 | FR6989 | | | G2231 | | | | |------------|-------|-------|--------|--------| | CL_TimerA0 | P1.0 | P1.0 | P1.2 | P1.2* | | CL_TimerA1 | n/a | P1.6 | P1.1* | P1.1* | | CL_TimerA2 | n/a | P2.2 | n/a | n/a | | CL_TimerB0 | n/a | P7.7*| P2.0* | P2.0 |Pins marked with * are not broken out on the LaunchPad or are difficult to access. The library probably works on many other MSP430's, but you'll need to adjust the #defines in the library. Please report back if you successfully tested with other devices, so that I can extend the library. Please report any bugs. And also let me know if you break any speed records. So far I only tested it up to 750 kHz. Edit 9/3/15: Added support for FR5969. Thanks @@Fmilburn Edit 9/4/15: Refactored to make it easier to add more MCUs. Several bug fixes, thanks to all the eagle-eyed members of 43oh Edit 3/13/16: Replaced attached ZIP file with link to GitHub to always give up-to-date version
  18. Hi everyone, I did a quick port of these two libraries to Energia on Stellaris. You can find them here: https://github.com/jscrane/Adafruit-ST7735-Library https://github.com/jscrane/Adafruit-GFX-Library Note that I used digitalWrite() rather than messing with port registers. The speed doesn't seem too bad all the same. At the moment, I have only tested with hardware SPI. If you inspect the changes I had to make for Energia, it might help with porting further libraries to Stellaris. Cheers, Steve
  19. When installing energia on Linux Ubuntu the install runs successfully and produces a desktop icon and a menu item. The problem is that both launchers point to "/home/$USER/Downloads/energia-1.8.7E21/arduino" - but the file "arduino" does not exist in the energia directory so the app will not launch.
  20. I am using MSP432P401R and wanted to increase the I2C frequency from 100kHz(Standard) to 400kHz(Fast). In the Wire library for arduino, there is a function Wire.setclock(). Has anybody written such a function for energia? Because it is not there in energia. I went through the wire and twi libraries and found the following, In wire library, Wire.endTransmission calls a fucntion in twi library, twi_writeTo() which has the following line of code, UCBzCTL1 |= UCSSEL_2; // SMCLK Is this the line of code that sets the clock speed? Also in the twi.h library, the line of code, #define TWI_FREQ 100000L defines the frequency as 100kHz, but even if I changed it to 400000L, I don't see any change on hardware. Is this the right way? I'd appreciate if anyone can help me with this. Thanks
  21. Hi, Does energia IDE support programming a MSP432 microcontroller on a custom board (by JTAG, SWD or UART) ? If not, what are the hardware modifications needed to support it? In the Energia website I can only see that the launchpads are supported https://energia.nu/guide/install/macos/ Regards and thank you
  22. Hi Everyone, I'm looking for ILI9340C library so that I can import that library in Energia and burn a program on TIVA C series. I read some of the forums on this websites but some people are using a different launchpad and some are using ILI9341 or some other LCD. I need to work with TIVA C launch pad and ILI9340. I'm using Energia. Before that I was Using Keil uVision to make some libraries for TIVA C Launchpad to work with ILI9340 but that were not that much efficient. I read some of you successfully made libraries to work with TIVA C launcpad and ILI9340 but links provided on those forums are not working or the content from those links have been removed. So please help me. Thanks.
  23. 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
  24. There's a problem in interfacing Neo-6m GPS module with CC3200 MCU. I have to interface with Neo-6m GPS module with CC3200 MCU for getting the coordinates of a particular location. GPS module works fine when I interface it with Arduino UNO/Mega/Nano. Before I bought my own CC3200 MCU, I had interfaced Neo-6m GPS module with CC3200 at an Industrial training Institute and it worked fine there. Now, when I'm trying to interface GPS module with same configuration, setup and program, it shows nothing on Energia's Serial Monitor. Please check video (attached). Please let me know whether jumpers and wires are connected correctly. VID-20190629-WA0002.mp4
  25. Hello there, Ive been trying to use the UART on pin number 3 and 4 by using serial for monitoring the received data and serial1 for connecting and controlling the hardware(GPS) but the by using serial1 i think the uart isnt active. i see by connecting gps to putty that there is no data sent from the cc device . I checked the hardware serial .h and .cpp file where in the cpp file there is serial1 functions mentioned but in the pins_energia file i see no pin initialized as uart only analog, timers and gpio's are initialized. So what can i do to make it work. 1 2 3 4 5 6 7 8 9 10 11 12 13 Serial1.begin(112500); Serial.begin(19200); delay(50); Serial1.println("AT"); delay(1000); Serial1.println("AT+QGNSSC?"); delay(1000); Serial1.println("AT+QGNSSC=1"); delay(1000); Serial1.println("AT+QGNSSTS?"); delay(1000);
×
×
  • Create New...