Jump to content
43oh

energia

Members
  • Content Count

    1,252
  • Joined

  • Last visited

  • Days Won

    63

Reputation Activity

  1. Like
    energia reacted to dubnet in xms432p401r becomes hot   
    By the way, if you are using the XMS version of the MSP432 then you are should have the black board.  I believe that the sensitivity issue has been addressed in the final board release (red board). I know that TI has been pretty strongly recommending moving to the red board since the black board used the pre-production XMS silicon.
  2. Like
    energia reacted to dubnet in xms432p401r becomes hot   
    This is a known issue typically due to static/handling damage. Please see the E2E site for more info:
    http://e2e.ti.com/search?q=msp432 gets hot
     
     
  3. Like
    energia got a reaction from tripwire in Delay() and sleep() have different timing cycles.   
    Thanks @Clavier for the explanation.To add to this. The VLO is only used if the startup code does not detect an external crystal to source ACLK from.
    @tapasxplore Note that the MSP430 max VCC is rated @ 3.6.
    Robert
  4. Like
    energia got a reaction from zeke in BLE Demo Programs   
    Below is a guide to get up and running with Energia BLE / Evothings
    Evothings for controlling your LaunchPad over BLE with a custom app on your mobile device:
     
    I have put together an app that allows to control of the RGB LED and Buttons exposed in the BLEInputOutput Sketch running on the MSP432 LaunchPad. At this moment it only runs on an MSP432 LaunchPad. Other LaunchPad's have bot been tested.
     
    To run the APP and control the LaunchPad follow the instructions below. You might have to upgrade the BoosterPack’s firmware. The firmware on my BoosterPack was not the right one so yours might not be as well. If you have issues running the app, then refer to updating the BoosterPack section below.
     
    Below is a screenshot of the app that I put together using Evothings to control the BLEInputOutput Sketch running on iOS.
     

     
     
    Running the APP on your mobile device:
     
    1: Seat the CC2650 BoosterPack on the MSP432 LaunchPad
    2: You will need the latest BLE library for crucial updates and new example Sketches. Get it from: https://github.com/ti-simplelink/ble_energia
    3: Put the BLE folder in your person Energia/libraries directory just as you would install any other library.
    4: Run Energia and open the example BLE->BLEInputOutput Sketch.
    5: Verify and upload the Sketch
    4: On your phone, download the Evothings Viewer from the app store. There is one for iOS and Android.
    5: Open the app and then in the “Enter connect key” enter http://energia.nu/ble/bleinputoutput/
    6: Click connect.
    7: The Energia BLE app should now open in the viewer. 
    8: Click he start button and the status should change to “Status: Connected”
    9: You can now change the RGB sliders and you should see the LED’s on the LP match
    10: Pressing the buttons will change the text for each button from “released” to “pressed”.
     
     
    Upgrading the CC2650 BoosterPack:
     
    The firmware on your BoosterPack might not be the right one. If you are experiencing issues with running the app, you might have to upgrade the firmware on your CC2650 BoosterPack. We are working on making this cross platform and to accomplish for Energia users. For now Smart RF Flash Programmer 2 has to be used on a windows PC.
     
    1: Download Smart RF Flash Programmer 2
    2: Remove JTAG headers from MSP432 LP (TDI, TDO, TCK, TMS)
    3: Remove the BoosterPack from the LaunchPad (you will need a RED MSP432 LaunchPad)
    4: Attach 10 pin ARM ribbon cable (included in the BoosterPack box) to XDS110 header on the emulation side of the MSP432 LaunchPad. Attach other end to CC2650 BP. It is keyed so there is only one way to attach it.
    5: Get the SNP images from this link: http://software-dl.ti.com/dsps/forms/self_cert_export.html?prod_no=ble_2_02_simple_np_setup.exe&ref_url=http://software-dl.ti.com/lprf/BLE-Simple-Network-Processor-Hex-Files
    6: Once installed, find the image simple_np_cc2650bp_uart_pm_xsbl.hex
    7: Plug the LP into your computer. 
    8: Launch Smart RF Flash Programmer 2.
    9: The CC2650 should show up in the left pane titled “Connected Devices”
    10: Right click the CC2650 and select connect. The status bar should say “Success!” when finished connecting.
    11: On the “Main” tab, in the “Flash Image” field select single and then browse to the simple_np_cc2650bp_uart_pm_xsbl.hex image.
    12: Still on the main tab, under the header “Actions” check “Erase”, “Program” and “Verify”. 
    13: Then click the Green Arrow image on the right bottom to program the image.
    14: Remove the ribbon cable, replace the JTAG headers and reseat the BoosterPack. You are now good to go to run the Sketch/App.
  5. Like
    energia got a reaction from Fmilburn in Delay() and sleep() have different timing cycles.   
    Thanks @Clavier for the explanation.To add to this. The VLO is only used if the startup code does not detect an external crystal to source ACLK from.
    @tapasxplore Note that the MSP430 max VCC is rated @ 3.6.
    Robert
  6. Like
    energia reacted to Clavier in Delay() and sleep() have different timing cycles.   
    The delay() function is part of the official Arduino API. It is implemented with a busy loop, based on the CPU clock.

    The sleep() function is not part of the official Arduino API. It powers down the CPU, and measures time based on the VLO, which doesn't have a accurately specified frequency to begin with and has much higher temperature and voltage coefficients than other clock sources.
  7. Like
    energia got a reaction from Fmilburn in BLE Demo Programs   
    Below is a guide to get up and running with Energia BLE / Evothings
    Evothings for controlling your LaunchPad over BLE with a custom app on your mobile device:
     
    I have put together an app that allows to control of the RGB LED and Buttons exposed in the BLEInputOutput Sketch running on the MSP432 LaunchPad. At this moment it only runs on an MSP432 LaunchPad. Other LaunchPad's have bot been tested.
     
    To run the APP and control the LaunchPad follow the instructions below. You might have to upgrade the BoosterPack’s firmware. The firmware on my BoosterPack was not the right one so yours might not be as well. If you have issues running the app, then refer to updating the BoosterPack section below.
     
    Below is a screenshot of the app that I put together using Evothings to control the BLEInputOutput Sketch running on iOS.
     

     
     
    Running the APP on your mobile device:
     
    1: Seat the CC2650 BoosterPack on the MSP432 LaunchPad
    2: You will need the latest BLE library for crucial updates and new example Sketches. Get it from: https://github.com/ti-simplelink/ble_energia
    3: Put the BLE folder in your person Energia/libraries directory just as you would install any other library.
    4: Run Energia and open the example BLE->BLEInputOutput Sketch.
    5: Verify and upload the Sketch
    4: On your phone, download the Evothings Viewer from the app store. There is one for iOS and Android.
    5: Open the app and then in the “Enter connect key” enter http://energia.nu/ble/bleinputoutput/
    6: Click connect.
    7: The Energia BLE app should now open in the viewer. 
    8: Click he start button and the status should change to “Status: Connected”
    9: You can now change the RGB sliders and you should see the LED’s on the LP match
    10: Pressing the buttons will change the text for each button from “released” to “pressed”.
     
     
    Upgrading the CC2650 BoosterPack:
     
    The firmware on your BoosterPack might not be the right one. If you are experiencing issues with running the app, you might have to upgrade the firmware on your CC2650 BoosterPack. We are working on making this cross platform and to accomplish for Energia users. For now Smart RF Flash Programmer 2 has to be used on a windows PC.
     
    1: Download Smart RF Flash Programmer 2
    2: Remove JTAG headers from MSP432 LP (TDI, TDO, TCK, TMS)
    3: Remove the BoosterPack from the LaunchPad (you will need a RED MSP432 LaunchPad)
    4: Attach 10 pin ARM ribbon cable (included in the BoosterPack box) to XDS110 header on the emulation side of the MSP432 LaunchPad. Attach other end to CC2650 BP. It is keyed so there is only one way to attach it.
    5: Get the SNP images from this link: http://software-dl.ti.com/dsps/forms/self_cert_export.html?prod_no=ble_2_02_simple_np_setup.exe&ref_url=http://software-dl.ti.com/lprf/BLE-Simple-Network-Processor-Hex-Files
    6: Once installed, find the image simple_np_cc2650bp_uart_pm_xsbl.hex
    7: Plug the LP into your computer. 
    8: Launch Smart RF Flash Programmer 2.
    9: The CC2650 should show up in the left pane titled “Connected Devices”
    10: Right click the CC2650 and select connect. The status bar should say “Success!” when finished connecting.
    11: On the “Main” tab, in the “Flash Image” field select single and then browse to the simple_np_cc2650bp_uart_pm_xsbl.hex image.
    12: Still on the main tab, under the header “Actions” check “Erase”, “Program” and “Verify”. 
    13: Then click the Green Arrow image on the right bottom to program the image.
    14: Remove the ribbon cable, replace the JTAG headers and reseat the BoosterPack. You are now good to go to run the Sketch/App.
  8. Like
    energia got a reaction from Rei Vilo in BLE Demo Programs   
    Below is a guide to get up and running with Energia BLE / Evothings
    Evothings for controlling your LaunchPad over BLE with a custom app on your mobile device:
     
    I have put together an app that allows to control of the RGB LED and Buttons exposed in the BLEInputOutput Sketch running on the MSP432 LaunchPad. At this moment it only runs on an MSP432 LaunchPad. Other LaunchPad's have bot been tested.
     
    To run the APP and control the LaunchPad follow the instructions below. You might have to upgrade the BoosterPack’s firmware. The firmware on my BoosterPack was not the right one so yours might not be as well. If you have issues running the app, then refer to updating the BoosterPack section below.
     
    Below is a screenshot of the app that I put together using Evothings to control the BLEInputOutput Sketch running on iOS.
     

     
     
    Running the APP on your mobile device:
     
    1: Seat the CC2650 BoosterPack on the MSP432 LaunchPad
    2: You will need the latest BLE library for crucial updates and new example Sketches. Get it from: https://github.com/ti-simplelink/ble_energia
    3: Put the BLE folder in your person Energia/libraries directory just as you would install any other library.
    4: Run Energia and open the example BLE->BLEInputOutput Sketch.
    5: Verify and upload the Sketch
    4: On your phone, download the Evothings Viewer from the app store. There is one for iOS and Android.
    5: Open the app and then in the “Enter connect key” enter http://energia.nu/ble/bleinputoutput/
    6: Click connect.
    7: The Energia BLE app should now open in the viewer. 
    8: Click he start button and the status should change to “Status: Connected”
    9: You can now change the RGB sliders and you should see the LED’s on the LP match
    10: Pressing the buttons will change the text for each button from “released” to “pressed”.
     
     
    Upgrading the CC2650 BoosterPack:
     
    The firmware on your BoosterPack might not be the right one. If you are experiencing issues with running the app, you might have to upgrade the firmware on your CC2650 BoosterPack. We are working on making this cross platform and to accomplish for Energia users. For now Smart RF Flash Programmer 2 has to be used on a windows PC.
     
    1: Download Smart RF Flash Programmer 2
    2: Remove JTAG headers from MSP432 LP (TDI, TDO, TCK, TMS)
    3: Remove the BoosterPack from the LaunchPad (you will need a RED MSP432 LaunchPad)
    4: Attach 10 pin ARM ribbon cable (included in the BoosterPack box) to XDS110 header on the emulation side of the MSP432 LaunchPad. Attach other end to CC2650 BP. It is keyed so there is only one way to attach it.
    5: Get the SNP images from this link: http://software-dl.ti.com/dsps/forms/self_cert_export.html?prod_no=ble_2_02_simple_np_setup.exe&ref_url=http://software-dl.ti.com/lprf/BLE-Simple-Network-Processor-Hex-Files
    6: Once installed, find the image simple_np_cc2650bp_uart_pm_xsbl.hex
    7: Plug the LP into your computer. 
    8: Launch Smart RF Flash Programmer 2.
    9: The CC2650 should show up in the left pane titled “Connected Devices”
    10: Right click the CC2650 and select connect. The status bar should say “Success!” when finished connecting.
    11: On the “Main” tab, in the “Flash Image” field select single and then browse to the simple_np_cc2650bp_uart_pm_xsbl.hex image.
    12: Still on the main tab, under the header “Actions” check “Erase”, “Program” and “Verify”. 
    13: Then click the Green Arrow image on the right bottom to program the image.
    14: Remove the ribbon cable, replace the JTAG headers and reseat the BoosterPack. You are now good to go to run the Sketch/App.
  9. Like
    energia got a reaction from Fmilburn in UART Interrupt in Energia   
    Energia does not implement an API for UART TX/RX interrupt callback. You could however easily modify HardwareSerial.cpp/.h and insert an optional hardware callback.
    I would add a function e.g. HardwareSerial::attachTxInterrupt(void (*userFunc)(void)) / HardwareSerial::attachRxInterrupt(void (*userFunc)(void)). Use attachInterrupt(void (*userFunc)(void)) in WInterrupts.c as an example. Add the TX and RX userFunc as a private member in HardwareSerial.h. Then in the tx/rx ISR check if the a function has been registered, if so call it.
  10. Like
    energia got a reaction from alex0andros in Problem reading data from the MMA7455 accelerometer   
    Try Wire.setModule(0) before calling Wire.begin().
    Reason is that the standard changed for the wire pins from ping 14/15 to pin 9/10 a while back. You are better off using pins 14/15 on the G2553 though since Wire on pins 9/10 is a software implementation. So use Wire.setModule() before Wire.begin() to allocate Wire to the hardware supported I2C pins.
  11. Like
    energia reacted to Rei Vilo in More CC3200MOD Questions   
    We can consider Energia as a disruptive technology, in a way it allows a whole new group of users to develop on micro-controllers.
    Another strong trend is frugal innovation popular among companies, where a prototype developed with Energia may be good enough to be launched on the market. 
    The major difference between Energia and other Arduino-like frameworks is, Energia relies on professional-grade SDKs. Energia is based on TI-DriverLib and Energia MT on TI-RTOS now SimpleLink. 
  12. Like
    energia reacted to Fmilburn in More CC3200MOD Questions   
    I will give you my relatively uneducated opinion for what it is worth...
    I don't think many professional C/C++ programmers (which I am not) would choose to use Energia in a commercial product and most commercial products do not use it.  The same applies to Arduino.  The reasons are many but there are exceptions of course.  The most obvious exceptions are where the product is intended for Energia/Arduino users or it is a relatively simple application that fits Energia and the programmers skills well.  I worked on a small project that used Energia and sold in very small quantity.
    See for example:  http://processors.wiki.ti.com/index.php/CC3100_%26_CC3200_UniFlash_Quick_Start_Guide
    You can discuss this with the PCB board assembler as some have this capability.  In any event, if you can do it, you can find someone else who will do it for the right price.
    If you are going to build several hundred of these you might discuss your questions with a TI sales representative.
  13. Like
    energia got a reaction from pneumatics in Energia-1.6.10R18 Windows 7 LaunchPad MSP430G2553 don't load sketch   
    Thanks for reporting this issue. I was able to reproduce it. For now you can work around it as described below. I will make a fix available in the next MSP430 package update through the board manager.
     
    copy <energia directory>\hardware\tools\DSLite\DebugServer\drivers\MSP430.dll to <energia directory>\hardware\tools\msp430\bin\ edit <energia directory>\hardware\energia\msp430\boards.txt an change the 2 occurrences of rf2500 with tilib restart energia and you should be able to upload to the MSP-EXP430G2 with MSP430G2553. I have also filed an issue on github here: https://github.com/energia/msp430-lg-core/issues/12
  14. Like
    energia got a reaction from Rei Vilo in Energia support for MSP430FR5994 LaunchPad?   
    Yes, it will be in the next release. Unfortunately this is taking a lot longer than anticipated due to the fact that we are making it compatible with both the new (msp430-elf-gcc and the old msp430-gcc).
  15. Like
    energia got a reaction from hemangjoshi37a in I2C - MSP430 to MSP430 problems   
    As @@chicken mentioned make sure you have a ground connection between the 2 LaunchPads.
    Could you also post the 2 Sketch so that we can have a look at that as well?
  16. Like
    energia reacted to chicken in Compiler warnings when using pgm_read_word()   
    Unless you care about portability to Atmel Arduinos, there's no need to use progmem with Energia. The compiler will put anything that's declared as const into flash memory.
  17. Like
    energia reacted to chicken in Compiler warnings when using pgm_read_word()   
    For a bit of background:
    Atmel AVR (the chip in the original Arduino) has a Harvard Architecture, which separates program memory (i.e. Flash) from data (i.e. RAM). It uses special assembly commands to read program memory. That's why you need to tell the compiler if you want to store a variable in Flash or access data that's stored in Flash.
    Most other MCUs have a Von Neumann architecture with a unified address space for all types of memory. All access to memory can use the same commands and the compiler decides on where to put things, depending on whether a variable is read-only (Flash) or read-write (RAM).
    To maintain compatibility with code written for AVR, Energia and other non-AVR Arduino implementations replace progmem related commands to basically do nothing without having the compiler complain too much. For the MSP430 see:
    https://github.com/energia/Energia/blob/master/hardware/msp430/cores/msp430/avr/pgmspace.h
    The warning you see is because the replacement for pgm_read_word casts your int to a short.
    #define pgm_read_word(addr) (*(const unsigned short *)(addr)) If you want to get rid of the warning while keeping pgm_read, you could declare your array as an unsigned short instead of int.
     
  18. Like
    energia reacted to Rei Vilo in Interrupt Tail Chaining -Setting Interrupt Priorities (cc3200)   
    The attachInterrupt is a standard function of the Arduino / Wiring framework.
    There are two frameworks for the LaunchPad CC3200:
    Energia based on the Arduino / Wiring, and Energia MT or Energia Multi-Tasking based on TI-RTOS. For more information on the latter, please refer to Introducing Energia MT, LaunchPad MSP432: RTOS for Everyone and Exploring RTOS with Galaxia on Energia MT.
    For more advanced RTOS applications where priority is critical, please consider Code Composer Studio, the official IDE from Texas Instruments.
  19. Like
    energia reacted to NurseBob in interfacing SD card with msp430f5529 launch pas   
    This google search string:  msp430 sd card library
    returns numerous useful code examples for msp devices. Further, there is this here on 43oh.
  20. Like
    energia got a reaction from Marc in Energia 18 and msp430FR5739 experimenter board   
    Please see the work-around for this in this thread: http://forum.43oh.com/topic/9848-energia-1610r18-windows-7-launchpad-msp430g2553-dont-load-sketch/?p=74156
  21. Like
    energia reacted to enl in Coding question, function pointer, check if null.   
    "if (bar[0]==NULL)" won't look at the pointer value, but instead the memory the pointer references, so that is right out, unless you want to know if the parameter is an empty string (only the null terminator)
    "if (bar == NULL)" should work, in particular if you explicitly pass NULL in since you are comparing a value to itself, as should "if (!bar)", since NULL should be 0.
    I just checked both (using gcc on a windoze machine) and they work as expected, so I can offer no insight as to why you would have a problem. I would suspect that you are seeing a symptom of some other issue than pointer comparison.
  22. Like
    energia reacted to vicks44 in Unable to upload, setting issue in Windows 10?   
    Problem resolved.  Deleted the Tiva board from the board manager and re-loaded it.  Works great now.  An extremely useful controller that I have successfully used in many different projects.
  23. Like
    energia reacted to B@tto in MSP430G2553 Power Monitoring   
    There is a dedicated channel on ADC with VCC/2.
    You have to select 2,5v analog ref and select internal channel : analogRead(128 + 11) (if I remember well)
    128 + X force energia to select the specific hardware channel X on analog multiplexer without mapping.
  24. Like
    energia reacted to Rei Vilo in Boostxl-Senshub   
    See https://github.com/rei-vilo/SensorsWeather_Library
  25. Like
    energia reacted to Rei Vilo in Boostxl-Senshub   
    @jithin97 Sorry for the confusion.
    There are two BoosterPacks with sensors:
    the Sensor Hub BoosterPack (yours, left), and the Sensors BoosterPack (mine, right).
    The library I've mentioned refers to the latter. For the former, please consider:
    Adafruit TMP006 Library Adafruit BMP085/BMP180 Library SHT21 Arduino Library (here or there)
×
×
  • Create New...