Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Marc last won the day on November 17 2016

Marc had the most liked content!

About Marc

  • Rank
    Advanced Member

Recent Profile Visitors

1,214 profile views
  1. When including "main.c" as follows, can I include functions from another tab into main.c? In my example, I would like to use a function from LED.output.h before the main setup file In main.c #include <Energia.h> #include "LEDoutput.h" int main(void) { led_init(); // my function from LEDoutput.h init(); setup(); while (1) { loop(); } return 0; } However I am getting the following error: main.c:(.init9+0x2): undefined reference to `led_init'. Is my path to my custom library incorrect? Thank you!
  2. Hi, I am using the latest version of Energia (Energia 1.6.10E18) on a windows 7 machine. When I try to compile a basic example code, Energia tries to use libraries found in a file "..\AppData\Local\Energia15\packages\energia\hardware\msp430\1.0.2\libraries", an older library instead of the new folders that come with the new zipped file. Is there a way to change the path variable within Energia, so that it opens libraries within its own folder ie "..\energia-1.6.10E18\hardware\energia\msp430\libraries"? Or is \AppData\Local\Energia15 the default location, and I need to manually replace the
  3. Hi, I am trying to modify some of the core Energia files (main.c) so that I can initialize GPIO pins to LOW right away before Energia goes through its startup sequence. I have an LED driver connected to the MSP430FR5739 experimenter board (v1.1). The issue is, during the startup sequence (before my setup() code is running) the control pin from the experimenter board to the LED driver is active high for a few seconds thus turning the LED to full brightness. I would like to avoid using an external resistor if possible. My question is: 1. Is there a better way to initialize GPIO pins in Ener
  4. Has anyone experienced issues with the msp430FR5739 experimenter board with the latest energia v 18? I can't seem to program it using the latest version on my windows 10, 7 or mac. I get the following error message: usbutil: unable to find a device matching 0451:f432 An error occurred while uploading the sketch Thanks!
  5. It would be nice to have something like analog_read(VCC2) to get the reading, similar to TEMPSENSOR.
  6. Hi! Is there a way to use the Vcc/2 source for the ADC on the msp430FR5969 chip using energia? Thanks!
  7. Yes, another issue with the OPT3001.cpp (or is it?) is that instead of using the calculation methods of the datasheet, they use a shortcut using bit shifting to approximate the exponent multiplication constant. This is probably to keep the data as a uint32_t instead of a float. To get the exact data as the OPT3001EVM, I replaced the opt3001::readResult() function on 146 of OPT3001.cpp (and the prototype in OPT3001.h to a float) to: float opt3001::readResult() { uint16_t exponent = 0; float result = 0; int16_t raw; raw = readRegister(RESULT_REG); /*Convert to LUX*/ //extract result &a
  8. I think I have found the issue: In the energia opt3001.cpp code (line 77) the implementation for the register read readRegister(uint8_t registerName) declared the lsb, msb and result variables as int8_t. (line 79, OPT3001.cpp) int8_t lsb; int8_t msb; int16_t result; I changed this to unsigned, as they are supposed to be: uint8_t lsb; uint8_t msb; uint16_t result; The code now works. Thank you for sharing your library @@Rei Vilo, I was able to realize this by doing a side by side comparison with your code. I hope this will prevent any issues you may have with your project @@NurseB
  9. I know how you feel @@NurseBob, wow nursing instructor at day, developer at night? Thanks @@Rei Vilo, I downloaded the SensorsWeather_Library and hooked up my sensor to the CC3200 launchpad. It works without glitches now! There is still a NAK at the end of the wire transmission, but the CC3200 seems to have no problem getting the correct value. I am more convinced that it is some timing issue with the energia wire implementation.
  10. Thanks for sharing @BobNurse, it's interesting that it's a NAK instead of an ACK. I wonder if this has to do something with Energia's wire implementation? It's interesting that the USB messages also reflect 'missed' data reports. To see if the USB reporting had anything to interfere with the i2c, I tried an experiment where instead of reporting the received data on the USB after each i2c read, I had it so that the msp would log 10 data points, and then spit out the 10 readings via USB once the 10 i2c readings were completed. The results however still indicated that the data still was corru
  11. Thanks Bob, I really appreciate the help! I took a look at the OPT3001EVM module: It looks like it's reading the configuration bit, waits 13ms, reads the value, then waits another 45ms for the next cycle. There is no signal on the interrupt bit. Here are the captured waveforms. Instead of my sensor I mounted 2k resistors on the OPT3001EVM daughter board SCL, SDA and INT pins, then connected it directly to the msp430 as you suggested - oddly I am seeing that the configuration bit and the value are correctly captured in the logic probe, but when doing a Serial.print to the captured values
  12. Thanks @@Rei Vilo, I am currently using the Energia OPT3001 library, and experiencing the same issues with the example code. I did purchase an educational boosterPack MK-II to make sure it's not a hardware issue, but so far the issue seems to be consistent on both the Wolverine and Tiva C launchpads with the energia library.
  13. Thanks for the insight @@NurseBob! Yes, I do recall reading about the transient response, and have done a side by side comparison with the OPT3001EVM evaluation kit. I have tried experiments where I swing a light across the sensor rapidly across both the evaluation module and my msp430 board. The msp430 board returns a corrupted value, while the evaluation module responds with no problems. I have tried checking the "Conversion Ready" field before making a read, but I still get corrupted values read on the msp430. Also, I have checked the sensor signal coming from a logic probe, and the
  • Create New...