This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/MSP430FR5994: Error when executing code in Energia- missing files?

Part Number: MSP430FR5994
Other Parts Discussed in Thread: ENERGIA

Tool/software: TI C/C++ Compiler

Hello,

I am having trouble using Energia 1.8.10E23 with my MSP430FR5994. It seems like my code compiles alright but these are the errors I get when I try to run it. Any advice on how to solve this? Under Board Manager it says I have Energia 1.0.6 installed if that helps. 

-Katie

  • Hi Katie,

    For Energia-related questions, we recommend posting them on the 43oh forum. Thanks.

    Regards,

    James

  • Thank you that was useful advice and I solved that issue.

    Now I am having the issue that I do not see anything printed on the serial monitor. I upload the code successfully and the port seems to recognize the board and did necessary updates, but there should be words printed on my serial port since I have my MSP430FR5994 connected to a sensor. Any idea why there is nothing there? I set the serial monitor to 115200 baud. I am trying to watch the sensor readings in real time. Maybe I just do not have a good understanding of how to read data from a serial monitor. Here is a copy of the code I am using which is for the Sparkfun heartrate and pulse oxygen sensor. 

    #include "SparkFun_Bio_Sensor_Hub_Library.h"
    #include "Wire.h"

    // No other Address options.
    #define DEF_ADDR 0x55

    // Reset pin, MFIO pin
    const int resPin = 16;
    const int mfioPin = 17;

    // Takes address, reset pin, and MFIO pin.
    SparkFun_Bio_Sensor_Hub bioHub(resPin, mfioPin);

    bioData body;


    //2
    void setup(){

    Serial.begin(115200);

    Wire.begin();
    int result = bioHub.begin();
    if (!result)
    Serial.println("Sensor started!");
    else
    Serial.println("Could not communicate with the sensor!!!");

    Serial.println("Configuring Sensor....");
    int error = bioHub.configBpm(MODE_ONE); // Configuring just the BPM settings.
    if(!error){
    Serial.println("Sensor configured.");
    }
    else {
    Serial.println("Error configuring sensor.");
    Serial.print("Error: ");
    Serial.println(error);
    }
    // Data lags a bit behind the sensor, if you're finger is on the sensor when
    // it's being configured this delay will give some time for the data to catch
    // up.
    delay(4000);

    }
    //3
    void loop(){

    // Information from the readBpm function will be saved to our "body"
    // variable.
    body =bioHub.readBpm();
    Serial.print("Heartrate: ");
    Serial.println(body.heartRate);
    Serial.print("Confidence: ");
    Serial.println(body.confidence);
    Serial.print("Oxygen: ");
    Serial.println(body.oxygen);
    Serial.print("Status: ");
    Serial.println(body.status);
    delay(250); // Slowing it down, we don't need to break our necks here.
    }

  • Hi Katie,

    I'm glad that was helpful. Unfortunately, we are not able to support Energia-related questions here on E2E, so I would recommend posting your latest issue over on the 43oh forum. We are able to support questions about C code using our Code Composer Studio (CCS) IDE, so if you ever switch to that environment, we'll be able to help more. Thanks for your understanding.

    Regards,

    James

**Attention** This is a public forum