Jump to content

Rei Vilo

  • Content Count

  • Joined

  • Last visited

  • Days Won


Posts posted by Rei Vilo

  1. New release Energia 22 throws this error on macOS 10.15 Catalina:


    java -jar /Users/ReiVilo/Library/Energia15/packages/energia/tools/ino2cpp/1.0.2/ino2cpp.jar -o /var/folders/wn/n7qqb8ss0k3bvpqwfcdwp_7r0000gn/T/arduino_build_957196/sketch/ -T /Users/ReiVilo/Library/Energia15/packages/energia/tools/ino2cpp/1.0.2/templates/Variables.mk.template -r /Users/ReiVilo/Library/Energia15/packages/energia/tools/ino2cpp/1.0.2 -n Blink.ino /Applications/IDE/Energia.app/Contents/Java/examples/01.Basics/Blink "msp432:MSP_EXP432P401R\""
    No Java runtime present, requesting install.
    exit status 1
    Error compiling for board LaunchPad w/ msp432 EMT (48MHz).

    Indeed, many Java related files seem to be missing.


    I'm waiting for the final release. In the meantime, I'm using Xcode with embedXcode.

  2. On 10/9/2019 at 6:39 PM, energia said:

    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.


    The two links provided in the thread [Bad CPU type in executable?](https://forum.43oh.com/topic/13554-bad-cpu-type-in-executable/?tab=comments#comment-82533) fail.

    • http://s3.amazonaws.com/energiaUS/distributions/energia-1.8.10E22-macosx-signed.zip returns `AccessDeniedAccess Denied46C5585239622A0BtEYNB+M3ll6eUk8CpPRYP51lFaQ1EqejDms3Cn0z3W5Vz76rCFrkBl6jjaH5qv1x`
    • http://s3.amazonaws.com/energiaUS/distributions/energia-1.8.10E22-macosx-signed.zip is polluted by `http<feff>://s3.amazonaws.com/energiaUS/distributions/energia<feff>-1.8.10E22-macosx<feff>-signed.zip<feff><feff><feff><feff><feff><feff>` and redirects to the Google page.

    However, download from http://s3.amazonaws.com/energiaUS/distributions/energia-1.8.10E22-macosx-signed.zip eventually succeeds.

  3. Feel free to join the team and port Energia to the MSP432P1111!

    Except for the GPIOs used by the LCD, the ports and peripherals exposed on the MSP432P1111 LaunchPad are the same as those of the MSP432P401R LaunchPad.

    The LCD panel is the same used on the MSP430FR4133 and MSP430FR6989, with the LCD_Launchpad library. Obviously, ports and bits need to be adapted.

  4. As posted earlier and marked as bug, the clockFunction() can't include Serial.print() and similar functions which rely on clocks.


    The clockFunction() function is too long. It should be brief.

    • Modify clockFunction() to only raise an event...
    void clockFunction()

    ...initialised in the setup() function

    Event myEvent;
    void setup()
        // ...
        // Clock initialisation
        // Initial period = 1 s, then every 60000 ms = 60 s = 1 min
        myClock.begin(clockFunction, 1000, 60000);

    ...waited for in the loop() function

    void loop()
        // ...



  5. DSLite seems to be tailored for the XDC110 programmer/debugger of the MSP432P401R LaunchPad. It also works with the standalone USB XDS110 JTAG Debug Probe.

    Now, the MSP432P401R can be programmed/debugged with JLink, like the JLink Edu mini. See Segger J-Link EDU mini Programmer-Debugger and Segger J-Link with LaunchPad MSP432.

    So the question is how to define this programmer for Energia. As Energia is based on Arduino for the IDE, the question is how to define this programmer for Arduino.

    See for example Arduino IDE 1.5 3rd party Hardware specification and Add a Custom Programmer on Arduino IDE, among 5 010 000 other answers thrown by googling arduino custom programmer.

  6. I reached 0.0505 mW / 0.0141 mA (measured with EnergyTrace) for the CC1350 SensorTag when idle without using the Sensor Controller, only Energia MT and the Galaxia library.

    On the sensor_read_tx_working.txt version, Wire is initialised at each loop. Try removing line 45.

    On my side, I measured that using Wire.end() Wire.begin() has no impact on power consumption. delay() actually turns the CC1350 in low power mode.

    About the Galaxia library, Clock is recommended over Timer. Was Timer configured correctly? it uses two parameters: 


    Could you please post the program using Clock?

  7. Basically, you have two options:

    1. Adapt an already existing Arduino library to the LaunchPad. You’ll need to dig deep into the code and understand how it works. See the FAQ 
    2. Read the data-sheet of the controller and develop the library from scratch. This way, you’ll learn how a display controller works. 

    As a matter of facts, option 2 proved to be easier for me when I developed my LCD_screen Library Suite.

    Have fun!

  • Create New...