MKR1010: We were not able to upload the template sketch

Deal all,

I have a problem with the mkr1010 board. I am trying to make it work with example sketches (OPLA Templates.
I get the 'We were not able to upload the template sketch' result. The exact message is :

T_BREATH_VOC_EQUIVALENT, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/PressureClass.cpp:51:9: note: suggested alternative: 'BSEC_OUTPUT_IAQ_ESTIMATE' BSEC_OUTPUT_BREATH_VOC_EQUIVALENT, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BSEC_OUTPUT_IAQ_ESTIMATE /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/PressureClass.cpp:56:53: error: 'BSEC_SAMPLE_RATE_CONTINUOUS' was not declared in this scope iaqSensor->updateSubscription(sensorList, 10, BSEC_SAMPLE_RATE_CONTINUOUS); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/AirQualityClass.cpp:51:9: note: suggested alternative: 'BSEC_OUTPUT_IAQ_ESTIMATE' BSEC_OUTPUT_BREATH_VOC_EQUIVALENT, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BSEC_OUTPUT_IAQ_ESTIMATE /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/AirQualityClass.cpp:56:53: error: 'BSEC_SAMPLE_RATE_CONTINUOUS' was not declared in this scope iaqSensor->updateSubscription(sensorList, 10, BSEC_SAMPLE_RATE_CONTINUOUS); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/EnvClass.cpp:52:9: note: suggested alternative: 'BSEC_OUTPUT_IAQ_ESTIMATE' BSEC_OUTPUT_BREATH_VOC_EQUIVALENT, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BSEC_OUTPUT_IAQ_ESTIMATE /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/EnvClass.cpp:57:53: error: 'BSEC_SAMPLE_RATE_CONTINUOUS' was not declared in this scope iaqSensor->updateSubscription(sensorList, 10, BSEC_SAMPLE_RATE_CONTINUOUS); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/PressureClass.cpp:56:53: note: suggested alternative: 'BSEC_SAMPLE_RATE_ULP' iaqSensor->updateSubscription(sensorList, 10, BSEC_SAMPLE_RATE_CONTINUOUS); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ BSEC_SAMPLE_RATE_ULP /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/PressureClass.cpp: In member function 'int PressureClass::checkIaqSensorStatus()': /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/PressureClass.cpp:76:18: error: 'class Bsec' has no member named 'status'; did you mean 'bsecStatus'? if (iaqSensor->status != BSEC_OK) { ^~~~~~ bsecStatus /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/PressureClass.cpp:77:20: error: 'class Bsec' has no member named 'status'; did you mean 'bsecStatus'? if (iaqSensor->status < BSEC_OK) { ^~~~~~ bsecStatus /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/PressureClass.cpp:82:18: error: 'class Bsec' has no member named 'bme680Status'; did you mean 'bme68xStatus'? if (iaqSensor->bme680Status != BME680_OK) { ^~~~~~~~~~~~ bme68xStatus /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/PressureClass.cpp:82:34: error: 'BME680_OK' was not declared in this scope if (iaqSensor->bme680Status != BME680_OK) { ^~~~~~~~~ /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/AirQualityClass.cpp:56:53: note: suggested alternative: 'BSEC_SAMPLE_RATE_ULP' iaqSensor->updateSubscription(sensorList, 10, BSEC_SAMPLE_RATE_CONTINUOUS); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ BSEC_SAMPLE_RATE_ULP /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/AirQualityClass.cpp: In member function 'int AirQualityClass::checkIaqSensorStatus()': /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/AirQualityClass.cpp:71:18: error: 'class Bsec' has no member named 'status'; did you mean 'bsecStatus'? if (iaqSensor->status != BSEC_OK) { ^~~~~~ bsecStatus /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/AirQualityClass.cpp:72:20: error: 'class Bsec' has no member named 'status'; did you mean 'bsecStatus'? if (iaqSensor->status < BSEC_OK) { ^~~~~~ bsecStatus /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/AirQualityClass.cpp:77:18: error: 'class Bsec' has no member named 'bme680Status'; did you mean 'bme68xStatus'? if (iaqSensor->bme680Status != BME680_OK) { ^~~~~~~~~~~~ bme68xStatus /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/AirQualityClass.cpp:77:34: error: 'BME680_OK' was not declared in this scope if (iaqSensor->bme680Status != BME680_OK) { ^~~~~~~~~ /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/EnvClass.cpp:57:53: note: suggested alternative: 'BSEC_SAMPLE_RATE_ULP' iaqSensor->updateSubscription(sensorList, 10, BSEC_SAMPLE_RATE_CONTINUOUS); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ BSEC_SAMPLE_RATE_ULP /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/EnvClass.cpp: In member function 'int EnvClass::checkIaqSensorStatus()': /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/EnvClass.cpp:76:18: error: 'class Bsec' has no member named 'status'; did you mean 'bsecStatus'? if (iaqSensor->status != BSEC_OK) { ^~~~~~ bsecStatus /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/EnvClass.cpp:77:20: error: 'class Bsec' has no member named 'status'; did you mean 'bsecStatus'? if (iaqSensor->status < BSEC_OK) { ^~~~~~ bsecStatus /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/EnvClass.cpp:82:18: error: 'class Bsec' has no member named 'bme680Status'; did you mean 'bme68xStatus'? if (iaqSensor->bme680Status != BME680_OK) { ^~~~~~~~~~~~ bme68xStatus /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/EnvClass.cpp:82:34: error: 'BME680_OK' was not declared in this scope if (iaqSensor->bme680Status != BME680_OK) { ^~~~~~~~~ /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/PressureClass.cpp:82:34: note: suggested alternative: 'BME68X_OK' if (iaqSensor->bme680Status != BME680_OK) { ^~~~~~~~~ BME68X_OK /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/PressureClass.cpp:83:20: error: 'class Bsec' has no member named 'bme680Status'; did you mean 'bme68xStatus'? if (iaqSensor->bme680Status < BME680_OK) { ^~~~~~~~~~~~ bme68xStatus /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/AirQualityClass.cpp:77:34: note: suggested alternative: 'BME68X_OK' if (iaqSensor->bme680Status != BME680_OK) { ^~~~~~~~~ BME68X_OK /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/AirQualityClass.cpp:78:20: error: 'class Bsec' has no member named 'bme680Status'; did you mean 'bme68xStatus'? if (iaqSensor->bme680Status < BME680_OK) { ^~~~~~~~~~~~ bme68xStatus /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/EnvClass.cpp:82:34: note: suggested alternative: 'BME68X_OK' if (iaqSensor->bme680Status != BME680_OK) { ^~~~~~~~~ BME68X_OK /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/EnvClass.cpp:83:20: error: 'class Bsec' has no member named 'bme680Status'; did you mean 'bme68xStatus'? if (iaqSensor->bme680Status < BME680_OK) { ^~~~~~~~~~~~ bme68xStatus Error during build: exit status 1

I tried the suggested solution concerning the custorm libraries Arduino Support, but there are no custom libraries in my Web Editor.

Could anyone please suggest a solution?

Thank you in advance for yout replies.

Best Regards,
Gosia

Hello,
Install IDE 2.0.4 and then reset your board ( Reset your board) using Bootloader mode (double-press) method and then upload (while in this mode) blink LED example from the IDE.
If everything works fine, then install the latest "arduino_mkriotcarrier" library to continue to test the MKR100 + Carrier setup.

Dear Dozie,

Thank you very much for your reply.

I did as you suggested. I have upgraded the IDE to 2.0.4 and installed the latest "arduino_mkriotcarrier" 2.0.2. The IDE detects the board. The Reset state is correct (the orange LED is fading in and out). The 'Blink example' can be complied and uploaded without problems. The sketch works (the LED blinks according to the code).

Now I try to get it visible in the IoT Cloud. I have deleted all the devices. I go to 'IoT Cloud', the 'Devices' tab and there the 'ADD DEVICE'. As the 'Setup Device' appears, it is accompanied by the 'A network error occurred, please retry later [401]' message. I click the 'Set up an Arduino device'. The board is visible in the IDE, and there is no problem with internet connection. The 'Setup Device' message appears saying:
'We could not find any Arduino devicePlease try to:

  • Restart the Create Agent on the computer.
  • Reconnect the device to the computer with another USB cable and make sure the power LED lights up.
  • Reset your device'.
    Trying all each of the above (many times) gives no result.

I will be very, very grateful for further support.

Thank you very much.

Best regards
Gosia

For the cloud, take a look at Getting Started With the Arduino IoT Cloud
and Add and connect a device to IoT Cloud

Dear Dozie,

Thank you very much for your support.

I did as you have suggested. I have added the device (and configured it). It is visible in the 'Arduino IDE' and the 'Blink' can be uploaded without problems. Once I try to upload the OPLA templates from the webpage, I get the message:

T_BREATH_VOC_EQUIVALENT, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/AirQualityClass.cpp:51:9: note: suggested alternative: 'BSEC_OUTPUT_IAQ_ESTIMATE' BSEC_OUTPUT_BREATH_VOC_EQUIVALENT, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BSEC_OUTPUT_IAQ_ESTIMATE /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/AirQualityClass.cpp:56:53: error: 'BSEC_SAMPLE_RATE_CONTINUOUS' was not declared in this scope iaqSensor->updateSubscription(sensorList, 10, BSEC_SAMPLE_RATE_CONTINUOUS); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/PressureClass.cpp:51:9: note: suggested alternative: 'BSEC_OUTPUT_IAQ_ESTIMATE' BSEC_OUTPUT_BREATH_VOC_EQUIVALENT, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BSEC_OUTPUT_IAQ_ESTIMATE /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/PressureClass.cpp:56:53: error: 'BSEC_SAMPLE_RATE_CONTINUOUS' was not declared in this scope iaqSensor->updateSubscription(sensorList, 10, BSEC_SAMPLE_RATE_CONTINUOUS); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/EnvClass.cpp:52:9: note: suggested alternative: 'BSEC_OUTPUT_IAQ_ESTIMATE' BSEC_OUTPUT_BREATH_VOC_EQUIVALENT, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BSEC_OUTPUT_IAQ_ESTIMATE /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/EnvClass.cpp:57:53: error: 'BSEC_SAMPLE_RATE_CONTINUOUS' was not declared in this scope iaqSensor->updateSubscription(sensorList, 10, BSEC_SAMPLE_RATE_CONTINUOUS); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/AirQualityClass.cpp:56:53: note: suggested alternative: 'BSEC_SAMPLE_RATE_ULP' iaqSensor->updateSubscription(sensorList, 10, BSEC_SAMPLE_RATE_CONTINUOUS); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ BSEC_SAMPLE_RATE_ULP /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/AirQualityClass.cpp: In member function 'int AirQualityClass::checkIaqSensorStatus()': /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/AirQualityClass.cpp:71:18: error: 'class Bsec' has no member named 'status'; did you mean 'bsecStatus'? if (iaqSensor->status != BSEC_OK) { ^~~~~~ bsecStatus /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/AirQualityClass.cpp:72:20: error: 'class Bsec' has no member named 'status'; did you mean 'bsecStatus'? if (iaqSensor->status < BSEC_OK) { ^~~~~~ bsecStatus /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/AirQualityClass.cpp:77:18: error: 'class Bsec' has no member named 'bme680Status'; did you mean 'bme68xStatus'? if (iaqSensor->bme680Status != BME680_OK) { ^~~~~~~~~~~~ bme68xStatus /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/AirQualityClass.cpp:77:34: error: 'BME680_OK' was not declared in this scope if (iaqSensor->bme680Status != BME680_OK) { ^~~~~~~~~ /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/AirQualityClass.cpp:77:34: note: suggested alternative: 'BME68X_OK' if (iaqSensor->bme680Status != BME680_OK) { ^~~~~~~~~ BME68X_OK /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/AirQualityClass.cpp:78:20: error: 'class Bsec' has no member named 'bme680Status'; did you mean 'bme68xStatus'? if (iaqSensor->bme680Status < BME680_OK) { ^~~~~~~~~~~~ bme68xStatus /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/PressureClass.cpp:56:53: note: suggested alternative: 'BSEC_SAMPLE_RATE_ULP' iaqSensor->updateSubscription(sensorList, 10, BSEC_SAMPLE_RATE_CONTINUOUS); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ BSEC_SAMPLE_RATE_ULP /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/PressureClass.cpp: In member function 'int PressureClass::checkIaqSensorStatus()': /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/PressureClass.cpp:76:18: error: 'class Bsec' has no member named 'status'; did you mean 'bsecStatus'? if (iaqSensor->status != BSEC_OK) { ^~~~~~ bsecStatus /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/PressureClass.cpp:77:20: error: 'class Bsec' has no member named 'status'; did you mean 'bsecStatus'? if (iaqSensor->status < BSEC_OK) { ^~~~~~ bsecStatus /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/PressureClass.cpp:82:18: error: 'class Bsec' has no member named 'bme680Status'; did you mean 'bme68xStatus'? if (iaqSensor->bme680Status != BME680_OK) { ^~~~~~~~~~~~ bme68xStatus /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/PressureClass.cpp:82:34: error: 'BME680_OK' was not declared in this scope if (iaqSensor->bme680Status != BME680_OK) { ^~~~~~~~~ /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/PressureClass.cpp:82:34: note: suggested alternative: 'BME68X_OK' if (iaqSensor->bme680Status != BME680_OK) { ^~~~~~~~~ BME68X_OK /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/PressureClass.cpp:83:20: error: 'class Bsec' has no member named 'bme680Status'; did you mean 'bme68xStatus'? if (iaqSensor->bme680Status < BME680_OK) { ^~~~~~~~~~~~ bme68xStatus /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/EnvClass.cpp:57:53: note: suggested alternative: 'BSEC_SAMPLE_RATE_ULP' iaqSensor->updateSubscription(sensorList, 10, BSEC_SAMPLE_RATE_CONTINUOUS); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ BSEC_SAMPLE_RATE_ULP /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/EnvClass.cpp: In member function 'int EnvClass::checkIaqSensorStatus()': /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/EnvClass.cpp:76:18: error: 'class Bsec' has no member named 'status'; did you mean 'bsecStatus'? if (iaqSensor->status != BSEC_OK) { ^~~~~~ bsecStatus /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/EnvClass.cpp:77:20: error: 'class Bsec' has no member named 'status'; did you mean 'bsecStatus'? if (iaqSensor->status < BSEC_OK) { ^~~~~~ bsecStatus /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/EnvClass.cpp:82:18: error: 'class Bsec' has no member named 'bme680Status'; did you mean 'bme68xStatus'? if (iaqSensor->bme680Status != BME680_OK) { ^~~~~~~~~~~~ bme68xStatus /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/EnvClass.cpp:82:34: error: 'BME680_OK' was not declared in this scope if (iaqSensor->bme680Status != BME680_OK) { ^~~~~~~~~ /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/EnvClass.cpp:82:34: note: suggested alternative: 'BME68X_OK' if (iaqSensor->bme680Status != BME680_OK) { ^~~~~~~~~ BME68X_OK /home/builder/opt/libraries/latest/arduino_mkriotcarrier_2_0_2/src/EnvClass.cpp:83:20: error: 'class Bsec' has no member named 'bme680Status'; did you mean 'bme68xStatus'? if (iaqSensor->bme680Status < BME680_OK) { ^~~~~~~~~~~~ bme68xStatus Error during build: exit status 1

If I try to upload a sketch from the Cloud Sketch Editor I get the following message:
Upload started

Programming with: Serial

Restarting in bootloader mode

Flashing with command:C:/Users/janus/.arduino-create/arduino/bossac/1.7.0-arduino3/bossac.exe -i -d --port=COM4 -U true -i -e -w -v C:/Users/janus/AppData/Local/Temp/arduino-create-agent106274261/Untitled_mar07a.bin -R

No device found on COM4

Executing command: exit status 1
The device is visible in the Arduino IDE and in the Cloud, yet the 'Sketch tab' shows 'no device'.

Any help will be very welcomed.

Thank you very much in advance for your support.

Best regards
Gosia

Try this:

  1. Open your sketch in "Arduino Web Editor".
  2. From the menu on the left side of the "Arduino Web Editor" window, click "Libraries".
  3. Click the LIBRARY MANAGER button.
  4. In the "SEARCH LIBRARY" field, type BSEC Software Library
  5. Find the library in the search results.
  6. If the star to the right of the library is not already filled, click the star.
    This will add the library to your "Favorites" in "Arduino Web Editor".
  7. Click the DONE button.
  8. From the Libraries panel of the "Arduino Web Editor" window, click the "FAVORITES" tab.
  9. Find the library in the list of favorite libraries and hover the mouse pointer over its name.
  10. Click the downward-pointing triangle on the right side of the Include button.
  11. Select "VERSION 1.6.1480" from the menu.
  12. Delete this line from your sketch:
    #include <bsec.h>
  13. If after following the above steps you are still getting an error message please repeat steps 8 to 12

Dear Dozie
Thank you very, very much for your support and very detailed help. 'It's alive !' :grinning:.

Prior to doing according to your instruction, I have tried to 'Import the template' from the OPLA page and it was not possible.

I have switched to the Web Editor, deleted all the sketches. After that, 'I don't know why' :grinning: I have clicked 'Verify and upload' of an empty sketch (just empty setup() and loop()). It worked; the sketch was verified and uploaded successfully. It has encouraged me to give another try to 'Import Template', It has worked!

My OPLA-template based Personal Weather Station is on-line :muscle:.

Once again, thank you very, very much for your precise (and persistent :grinning:) help.

Best Regards
Gosia

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.