Jump to content
43oh

energia

Members
  • Content Count

    1,252
  • Joined

  • Last visited

  • Days Won

    64

Everything posted by energia

  1. Which MSP430 are you using? I recently tested it on an MSP430F5529 and that worked. One thing to note though is that pins 3 and 4 are already used by Hardware Serial which you use in your Sketch (Serial.xyz()). Try changing to different pins. I would suggest you try pins 11 and 12 if you are not using those for anything else. Robert
  2. As @enl mentioned, the black window content is what we need to see. Best would be to turn on "verbose during compilation" in the Energia preferences, compile the Sketch and then copy past the content of the black window into a reply to this thread. Robert
  3. Hi @Derekspeegle When you connected TX / RX did you swap them? TX should be connected to RX and RX to TX. | TX (P6.0) -- -- RX (P6.1) | LaunchPad 1 | \/ | LaunchPad 2 | /\ | _ _ _ _ _ _ | RX (P6.1) -- -- TX (P6.0) |_ _ _ _ _ _ _ Robert
  4. Alternatively you could use https://github.com/energia-libraries/RotaryEncoder
  5. This seems like an incomplete installation. Perhaps the installation of the board packages was cancelled by pressing the cancel button in the board manager. This is a quirk from the Energia / Arduino IDE where it does not the already installed components. A work-around is: Navigate to: On Linux: ~/.energia15/packages/energia/staging/packages On Windows: %LOCALAPPDATA%\Energia15\staging\packages On MacOSX: ~/Library/Energia15/staging/packages 'Delete all files in this directory: On Linux: ~/.energia15/packages/energia/hardware/ O
  6. http://s3.amazonaws.com/energiaUS/packages/package_msp432p_index.json. Plug this URL into the Energia preferences. Note that this is a pre-release. Please report any issues you might come across in this thread.
  7. I suggest going to resource explorer in CCS and use that to install the MSP430 core.
  8. Not sure if you did but you have to reprogram the out of the box demo firmware.
  9. A0 is on P1.0 which is not brought out to the boosterpack header but instead connected to LED1 (aka RED LED). If you wanted to you could remove the jumper from LED1 and feed your analog signal into the right side jumper pin. You can then use analogRead(A0) to acquire the analog signal on that pin. I suggest modifying the Sketch and picking a different analog input that is available on the boosterpack header.
  10. I posted a library a while ago which could be of use. It can be found here: https://github.com/energia-libraries/RotaryEncoder
  11. Please repeat these steps again and do not cancel the installation process until it is done. It seems that it takes a long time on your machine and it might look like it hangs but that's not the case. In the board manager click remove on the TivaC package. Go to the directory C:\Users\andre\AppData\Local\Energia15\staging\ and delete all files and folders Go to C:\Users\andre\AppData\Local\Energia15\packages\energia\tools\dslite\ and delete the folder 7.2.0.2096 Go to C:\Users\andre\AppData\Local\Energia15\packages\energia\hardware\ and delete the folder tivac
  12. I filed a bug for this here: https://github.com/energia/tivac-core/issues/44. Will look at it this week.
  13. https://forum.arduino.cc/index.php?topic=5496.0
  14. You are most likely running macOS Catalina. Try this version of the IDE: http://s3.amazonaws.com/energiaUS/distributions/energia-1.8.10E22-macosx-signed.zip. This is a pre-release and I should have an official release for upload on energia.nu next week. http://s3.amazonaws.com/energiaUS/distributions/energia-1.8.10E22-macosx-signed.zip
  15. Note that it can take quite a bit of time for the installation to finish? How long did you wait?
  16. Hi Anding, It seems that the TivaC installation did not complete. Can you do the following: In the board manager click remove on the TivaC package. Go to the directory C:\Users\andre\AppData\Local\Energia15\staging\ and delete all files and folders Go to C:\Users\andre\AppData\Local\Energia15\packages\energia\tools\dslite\ and delete the folder 7.2.0.2096 Go to C:\Users\andre\AppData\Local\Energia15\packages\energia\hardware\ and delete the folder tivac Now restart Energia Start Energia and reinstall the TivaC package. Robert
  17. Your main Sketch tab should look like: extern "C" void foo(); void setup() { bsl(); } void loop() { } Then create another tab called bsl.c and add the following content to it: #include <stdint.h> #define BSL_PARAM 0xFC48FFFF // I2C slave address = 0x48, Interface selection = Auto #define BSL_API_TABLE_ADDR 0x00202000 // Address of BSL API table #define BSL_ENTRY_FUNCTION (*((uint32_t *)BSL_API_TABLE_ADDR)) void foo() { ((void (*)())BSL_ENTRY_FUNCTION)((uint32_t)BSL_PARAM); // Call the BSL with given BSL parameters } This compiles but I have never used the BSL funct
  18. The MSP430 Wire buffer length is set to 16. If you need a larger buffer, you can edit the file: Linux: <Energia directory>hardware/energia/msp430/libraries/Wire/Wire.h Windows: <Energia directory>hardware\energia\msp430\libraries\Wire\Wire.h macOS: <Energia.app directory>/Contents/Java/hardware/energia/msp430/libraries/Wire/Wire.h and in: Linux: <Energia directory>hardware/energia/msp430/libraries/Wire/utility/twi.h Windows: <Energia directory>hardware\energia\msp430\libraries\Wire\utility\twi.h macOS: <Energia.app direct
  19. You are right, there is indeed something wrong with SPI. The pins and registers are setup wrong in the SPI library due to incorrect pins in the MSP430FR2355 pins_energia.h header file. Please copy the attached pins_energia.h to the MSP-EXP430FR2355LP variants directory. Windows: <Energia dir>\hardware\energia\msp430\variants\MSP-EXP430FR2355LP Linux: <Energia dir>/hardware/energia/msp430/variants/MSP-EXP430FR2355LP macOS: Energia.app/Contents/Java/hardware/energia/msp430/variants/MSP-EXP430FR2355LP Please let us know if this solved your issue. Robert
  20. I just now gave this a try with a DS18B20 and it works as expected (see output below). If you applied 5v then pin 10 might now be damaged. I did try with 5v supply knowing I could damage the MSP430 but that worked as well. Try connecting it to pin 6 (P1.4). Also make sure that you change that in your Sketch. It is also unclear to me from the pictures if you have a 4.7k pullup resistor on the data line (middle pin). If you do not, then that's a requirement for it to operate correctly. Also, the LaunchPad should have 2 Serial ports exposed. Make sure you select the right one
  21. "No more addresses." means it can't find the sensor. Also, it seems that you wired the sensor to 5v. Note that the MSP430 I/O's are _not_ 5v tolerant. The sensor might have put 5 volt on the line damaging the I/O. Also, if the sensor module you are using is a 5v one, it might not detect the 3.3v signal levers the MSP430 put's out. Do you have a link to the DS18X20 module you are using?
  22. P2.1 and P2.2 are S/W I2C slave (module -1) and does not support I2C Slave. In your Sketch you call Wire.setModule(0) to select hardware I2C. However, looking at the picture you wired the 2 LaunchPad's together on P2.1/P2.2. This is not correct, the hardware I2C module is on P1.7(SDA) and P1.6(SCL). Rewire it to use those pins and that should solve the issue.
  23. p.s. you should use the first Sketch you posted. Also make sure that the master is setup to talk to the right address you specify in the Wire.begin(addr) call.
×
×
  • Create New...