Jump to content

energia

Members
  • Content Count

    1,238
  • Joined

  • Last visited

  • Days Won

    60

energia last won the day on April 25

energia had the most liked content!

1 Follower

About energia

  • Rank
    Level 4

Contact Methods

  • Website URL
    http://www.energia.nu

Recent Profile Visitors

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

  1. energia

    Bad CPU type in executable?

    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
  2. Note that it can take quite a bit of time for the installation to finish? How long did you wait?
  3. 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
  4. 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 function in Energia. Robert
  5. energia

    CC1312R1 Energia

    Not yet but will be soon.
  6. energia

    i2C Slave not working on MSP430FR5969

    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 directory>/Contents/Java/hardware/energia/msp430/libraries/Wire/utility/twi.h And set BUFFER_LENGTH / TWI_BUFFER_LENGTH to a larger number.
  7. energia

    MSP430FR2355 problem to connect with nRF24L01+

    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 pins_energia.h
  8. energia

    energia serial monitor not working

    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. ROM = 28 FF 6C 5C 72 15 3 E3 Chip = DS18B20 Data = 1 7C 1 4B 46 7F FF C 10 7F CRC=7F Temperature = 23.75 Celsius, 74.75 Fahrenheit No more addresses. Robert
  9. energia

    energia serial monitor not working

    "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?
  10. energia

    I2C- MSP-EXP430G2ET

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

    i2C Slave not working on MSP430FR5969

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

    i2C Slave not working on MSP430FR5969

    There is a bug for slave mode which has already been fixed in the git repo. You can work-around it with the following. If you have the latest Energia release installed (1.8.7E21), then edit the file: Linux: <Energia directory>hardware/energia/msp430/libraries/Wire/utility/twi.c Windows: <Energia directory>hardware\energia\msp430\libraries\Wire\utility\twi.c macOS: <Energia.app directory>/Contents/Java/hardware/energia/msp430/libraries/Wire/utility/twi.c Got to line 1183 and replace: 1183 } else if (twi_state == TWI_MRX) { // Master receive mode 1184 // copy data to output register 1185 UCBzTXBUF = twi_txBuffer[twi_txBufferIndex++]; by this: 1183 } else if (twi_state == TWI_STX) { // Slave transmit mode 1184 // copy data to output register 1185 UCBzTXBUF = twi_txBuffer[twi_txBufferIndex++];
  13. energia

    How to program "raw" CC1330 chip?

    Which ISP programmer do you have? If it's compatible with CC1310 then we should be able to figure something out.
  14. energia

    How to program "raw" CC1330 chip?

    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.
  15. 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.
×