Jump to content

energia

Members
  • Content Count

    1,250
  • Joined

  • Last visited

  • Days Won

    61

Everything posted by energia

  1. Interesting. I did not know about these modules. Thank you for bringing this to my attention. Which module do you have (frequency)? These module are intended to be used as a network processor connected to an MCU. Looking at the user manual there is no serial loader implemented nor a way to update the firmware over the air. With that said, it seems that the modules expose the TCKC, TMSC and RESET line. You should be able to hookup these lines from the LaunchPad's XDS110 if you have one to program it with Energia. Please not that there are pin mappings specific for the LaunchPad that you might want to change.
  2. The key here is to as @LiviuM mentioned to assign a unique client ID to each MQTT client. I have just confirmed that with 2 different client ID's all works as expected.
  3. Although the Arduino IDE should be able to consume the Energia packages, there is a difference between the arduino-builder in Arduino and Energia which makes the msp432 package incompatible with the Arduino IDE. See the pull request here: https://github.com/arduino/arduino-builder/pull/119. I have it on my list to find a different solution and be able to use the stock arduino-builder at which point the Arduino IDE should be able to consume the Energia package. For TivaC and MSP430, it is possible to use it in the Arduino IDE. Just put this in the preferences: http://energia.nu/packages/package_energia_index.json. Then pull up the board manager and install TivaC support.
  4. Can you please open a terminal and type the following command? kextstat -b com.FTDI.driver.FTDIUSBSerialDriver If it does not show something like the below then the driver was not loaded: Index Refs Address Size Wired Name (Version) UUID <Linked Against> 533 0 0xffffff7f831ad000 0x7000 0x7000 com.FTDI.driver.FTDIUSBSerialDriver (2.3) ECC3AF36-431D-370D-86F2-5237785E9CF8 <110 52 5 4 3 1> In that case try: find /Library/Extensions/ -name *FTDI* This should show something like the below if the driver was installed. If not then reinstall the driver. If it does show something like the below then read on. /Library/Extensions//FTDIUSBSerialDriver.kext /Library/Extensions//FTDIUSBSerialDriver.kext/Contents/MacOS/FTDIUSBSerialDriver If the driver is indeed installed and exists in /Library/Extensions then try to force load it with the following command and check id the Serial port shows up in Energia. sudo kextload -b com.FTDI.driver.FTDIUSBSerialDriver After this you can check if the driver is loaded with the command I listed above.
  5. Can you please provide details on what you see? What does ls /dev/tty.* show?
  6. Which version of the msp430 package are you running? I don't have access to a MSP430FR2433 LaunchPad right now so ma not able to reproduce. Could you try replacing the setup loop with jus a pinMode(LED, OUPUT) to test if it you do see a 2 second blink?
  7. I spaced out on this. Tank you to one of the developers for reminding me. The msp430fr5969 does not have hardware I2C on pins 9/10 and thus no I2C slave on those pins, only software master. It does however have both hardware slave/master on pins 14(SCL)/15(SDA). This module can be activated by calling Wire.setModule(0) before Wire.begin(). Please see Sketch below as an example: #include <Wire.h> void setup() { Wire.setModule(0); Wire.begin(4); // join i2c bus with address #4 Wire.onReceive(receiveEvent); // register event Serial.begin(115200); // start serial for output } void loop() { delay(100); } void receiveEvent(int howMany) { while(1 < Wire.available()) // loop through all but the last { char c = Wire.read(); // receive byte as a character Serial.print(c); // print the character } int x = Wire.read(); // receive byte as an integer Serial.println(x); // print the integer }
  8. I just ran a test here and I2C slave indeed does have some issues on the FR5969. We will look into it. Robert
  9. Please provide both the Sketch you run on the Uno and the msp430fr5969 so I can look into it.
  10. That library should work with Energia/msp432 from looking at it .
  11. I reproduced the issue. Below is how to work around it. open the folder %LOCALAPPDATA%\Energia15\packages\energia\hardware\msp432e\5.19.0 Open the file platform.txt in a text editor. find the line recipe.hooks.linking.postlink.1.pattern.windows=cmd /c copy "{build.system.path}/energia/energia_pm4fg.rov.xs" "{build.path}" an delete it. You should now be able to compile. Robert
  12. Currently we do not have the internal temperature sensor ADC channel exposed but I think it is a good idea to get that enabled. Would you please be so kind to submit a feature request here? https://github.com/energia/msp432r-core/issues Thanks, Robert
  13. energia

    G2553 UART issues

    Couple questions: Was this always the case or did it function correctly at some point? Which version of the Energia IDE and which version of the MSP430 packages do you have installed? Can you post the Sketch you have used to send data? Robert
  14. This board is indeed obsoleted. It was replaced by the RED board many years ago. The TI-RTOS version it was based on no longer receives updates. Hence, it was time to retire this. If you still like access to this board then do the following: Open Energia's preferences (File->Preferences or on macOS Energia->Preferences) Located "Additional Boards Manager URLs" and paste the following link into that field: https://energia.nu/packages/package_msp432_black_index.json Go to the board manager and you should see the black board appear again. Good luck with your Robot project. Robert
  15. I just ran a quick test with the Sketch below. This is using MSP430 core version 1.0.3. Note that as per pinmap I2C lines, by default, are on pins 9 (SCL) and 10 (SDA) http://energia.nu/pinmaps/msp-exp430fr5969/. Also make sure that you have GND connected from the device to the LaunchPad. What type of device are you trying to talk to? #include <Wire.h> void setup() { Wire.begin(); // join i2c bus (address optional for master) Serial.begin(115200); // start serial for output } uint16_t x = 0; void loop() { /* Read from device #2 */ Wire.requestFrom(2, 6); // request 6 bytes from slave device #2 while(Wire.available()) // slave may send less than requested { char c = Wire.read(); // receive a byte as character Serial.print(c); // print the character } Serial.println(); /* Write to device #2 */ Wire.beginTransmission(2); // transmit to device #2 Wire.write("x is "); // sends five bytes Wire.write(x); // sends one byte Wire.endTransmission(); // stop transmitting x++; delay(500); }
  16. You can. Simply #include the library you wish to use in your Sketch. All libraries that are in the Energia library folder can be used. To find out where your Energia libraries are stored, go to the Energia preferences and note the "Sketchbook location" directory. The libraries are stored in the Sketchbook Location folder / libraries. Robert
  17. All you need to know is in the datasheet: http://www.ti.com/lit/gpn/msp430g2453
  18. Same for the "Positive-going input threshold voltage"
  19. Please specify which MSP430. The attached is from the datasheet for the F5529. You should be able to find something similar in the datasheet for the MSP430 you are using.
  20. You might have one of those LaunchPads that comes out of the box configured to use software uart. On a Rev 1.5 LaunchPad, J3's RX and TX jumpers need to be set to the horizontal position to work with Serial. Also make sure that you match the baudrate set in the Sketch in the Serial monitor. In your test Sketch, you might want to add a small delay (e.g. delay(200)) at the end of the loop to not flood the Serial monitor. Please see the pinmap:
  21. You should be using COM16. What baudrate do you have set in the Sketch (the number in Serial.begin(....)) and does that match the baudrate in the Serial monitor (lower right corner). Can you please try the Sketch "File->Examples->04.Communication->ASCIITable". The baudrate is set to 9600 so make sure that it matches the baudrate set in the Serial monitor. Robert
  22. Tools->Board->Boards Manager... Not that this is only available in Energia 18 and later.
  23. energia

    MSP430 GPS

    Thank you for reporting back that you got it solved. You probably suffered from out of heap memory. If the library makes extensive use of the String library or does malloc() (Both not recommended for small memory micros).
  24. You'll have to be a bit more specific about what "energy" you would like to monitor / measure.
×
×
  • Create New...