Jump to content


  • Content count

  • Joined

  • Last visited

  • Days Won


energia last won the day on August 6

energia had the most liked content!

About energia

  • Rank
    Level 4

Contact Methods

  • Website URL

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. energia

    MSP430 Serial Monitor not working

    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:
  2. energia

    MSP430FR6989: Serial port monitor is not working

    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
  3. energia

    MSP430FR6989: Serial port monitor is not working

    Tools->Board->Boards Manager... Not that this is only available in Energia 18 and later.
  4. 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).
  5. You'll have to be a bit more specific about what "energy" you would like to monitor / measure.
  6. You are using Energia API's mixed with setting registers. Energia API's assume exclusive access to registers without user interference. We can however make this work with one small modification to wiring_analog.c In wiring_analog.c on line 61 just under the first if defined(__MSP430_HAS_ADC12_B__) change #define REF_MAP(x) (x & 0x31) to #define REF_MAP(x) (x & 0x33). You can find the msp430 core in: Linux: ~/.energia15/packages/energia/hardware/ Windows: %LOCALAPPDATA%\Energia15\packages\energia\hardware\ macOS: ~/Library/Energia15/packages/energia/hardware/ wiring_analog.c is under cores/msp430/ Then use the Sketch below. #define MY_INTERNAL2V0 (ADC12VRSEL_1 | REFON | REFVSEL_0 | REFOUT) #define ANALOG_RES 12 void setup() { analogReadResolution(ANALOG_RES); analogReference(MY_INTERNAL2V0); Serial.begin(115200); } void loop() { int val = analogRead(A11); /* * Note that the default resolution for the FR6989 is 12 bit. * This can be changed with analogReadResolution(resolution in bits) */ float voltage = val * (1.2 / (1 << ANALOG_RES)); Serial.print(voltage * 1000); Serial.println(" mV"); delay(500); }
  7. analogRead() will overwrite whatever you have written into REFCTL0 and therefor you are getting 0 as the REFOUT bit is not set. To work-around this do the following: `#define MY_INTERNAL2V0 (ADC12VRSEL_1 | REFON | REFVSEL_0 | REFOUT)` Then in setup call analogReference(MY_INTERNAL2V0) in setup() and do not call your function Vref_ON().
  8. No need to file a github issue. It has already been done.
  9. You are right about the offset. It needs to be 0x20. Please github issue here: https://github.com/energia/msp430-lg-core/issues/65. Same for the I2C module. This is indeed also an error in the pins file.
  10. There are no issues with the variant's pins_energia.h. There is an "issues" or rather limitation on which ports attachInterrupt() can be called on. Right now that limitation is P1 through P4. The MSP430FR5994 does have interrupt capability on all ports and to be able to support this the underlying code needs to be changed. The implementation is in the file WInterrupt.c. I have filed an enhancement request here: https://github.com/energia/msp430-lg-core/issues/64. For the Serial1 question, this smells like a bug. Would you please be so kind to file a bug here: https://github.com/energia/msp430-lg-core/issues
  11. There are no errors, only warnings so the compilation was successful and you can upload the binary produces using the "Upload" button. It seems that you do not have the correct driver installed though. Please install the driver from here and read the instructions: http://energia.nu/guide/guide_windows/ The direct link to the driver is: http://energia.nu/files/ezFET-Lite.zip Robert
  12. energia

    MSP430G2 Drivers - Not Working on Mac

    I just now put the correct driver back on energia.nu. It got misplaced when moving things around. http://energia.nu/files/MSP430LPCDC-1.0.3b-Signed.zip Please install this driver as it is signed (the one on github is not). Unsigned drivers will not load in later versions of macOS which is probably the reason why you do not see any serial ports related to the LaunchPad.
  13. energia

    Run BME280 by MSP430 with Arduino code

    Assuming you have I2C connected to pins 14 and 15, add Wire.setModule(0) before bme.begin(); Robert
  14. energia

    Run BME280 by MSP430 with Arduino code

    Welcome to 43oh @Binhthanh Which MSP430 LaunchPad are you using and where did the library come from? Robert
  15. energia

    MSP430FR6989: Serial port monitor is not working

    Couple quesitons: You mentioned "I reorient the jumpers TXD and RXD.". In what way did you reorient them? If you are indeed using the MSP430FR6989 LaunchPad then you do _not_ need to change the jumpers. Are you sure about the COM port number? What version of the MSP430 core do you have installed. Make sure you update to the latest (1.0.3) using the Energia boards manager.