Using the Tutorial for getting started with the Nicla Sense ME, getting readings from the sensor on the board
https://docs.arduino.cc/tutorials/nicla-sense-me/getting-started#arduino-ide-and-nicla-core
After installing the Arduino BHY2 and BYH2-Host libraries in Arduino IDE 1.8.15, then the Nicla board was installed using the board manager.
https://docs.arduino.cc/static/ba12e2f3a6ec080993d4e62acd9e9476/ABX00050-datasheet.pdf
After these steps, the Ardunio IDE could find and allow selection of example programs. When attemped to download direct to Nicla Sense, Arduino IDE errored on compile. The Arduino IDE was upgraded to Arduino IDE 1.8.19 with same result. See screen shots and error codes.
From the error log, the offending rules causing the error:
c:\programdata\matlab\supportpackages\r2018b\3p.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\type_traits:38:10: fatal error: bits/c++config.h: No such file or directory
#include <bits/c++config.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
Using library Arduino_BHY2 at version 1.0.4 in folder: C:\Users\GaryY\Documents\Arduino\libraries\Arduino_BHY2
exit status 1
Error compiling for board Nicla Sense ME.
------------------------------------------------------
3 years ago I did a Road Test using Arduino with MATLAB. When MATLAB expired MATLAB was uninstalled, but left remnants in the Arduino IDE compile rule sets that still want to use the MATLAB Support Packages. It's a really ugly compile, but worked OK until now. Not sure how to redirect the Arduino IDE to stop using the support package.
Please , appreciate advice to correct Arduino IDE rule set to move forward with Nicla package.
This is the complete ERROR log:
Arduino: 1.8.19 (Windows 10), Board: "Nicla Sense ME"
C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware
C:\Program Files (x86)\Arduino\hardware -hardware
C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages -tools
C:\Program Files (x86)\Arduino\tools-builder -tools
C:\Program Files (x86)\Arduino\hardware\tools\avr -tools
C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages -built-in-libraries
C:\Program Files (x86)\Arduino\libraries -libraries
C:\Users\GaryY\Documents\Arduino\libraries -fqbn=arduino:mbed_nicla:nicla_sense -vid-pid=2341_0060 -ide-version=10819 -build-path C:\Users\GaryY\AppData\Local\Temp\ArduinoServer\MW -warnings=all -build-cache C:\Users\GaryY\AppData\Local\Temp\arduino_cache_860460 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.openocd.path=C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\openocd\0.11.0-arduino2 -prefs=runtime.tools.openocd-0.11.0-arduino2.path=C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\openocd\0.11.0-arduino2 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4 -prefs=runtime.tools.arm-none-eabi-gcc-7-2017q4.path=C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4 -prefs=runtime.tools.rp2040tools.path=C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\rp2040tools\1.0.2 -prefs=runtime.tools.rp2040tools-1.0.2.path=C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\rp2040tools\1.0.2 -prefs=runtime.tools.imgtool.path=C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\imgtool\1.8.0-arduino -prefs=runtime.tools.imgtool-1.8.0-arduino.path=C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\imgtool\1.8.0-arduino -prefs=runtime.tools.dfu-util.path=C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\dfu-util\0.10.0-arduino1 -prefs=runtime.tools.dfu-util-0.10.0-arduino1.path=C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\dfu-util\0.10.0-arduino1 -prefs=runtime.tools.bossac.path=C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\bossac\1.9.1-arduino2 -prefs=runtime.tools.bossac-1.9.1-arduino2.path=C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\bossac\1.9.1-arduino2 -verbose
C:\Users\GaryY\Documents\Arduino\libraries\Arduino_BHY2\examples\Standalone\Standalone.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware
C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\GaryY\Documents\Arduino\libraries -fqbn=arduino:mbed_nicla:nicla_sense -vid-pid=2341_0060 -ide-version=10819 -build-path C:\Users\GaryY\AppData\Local\Temp\ArduinoServer\MW -warnings=all -build-cache C:\Users\GaryY\AppData\Local\Temp\arduino_cache_860460 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.openocd.path=C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\openocd\0.11.0-arduino2 -prefs=runtime.tools.openocd-0.11.0-arduino2.path=C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\openocd\0.11.0-arduino2 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4 -prefs=runtime.tools.arm-none-eabi-gcc-7-2017q4.path=C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4 -prefs=runtime.tools.rp2040tools.path=C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\rp2040tools\1.0.2 -prefs=runtime.tools.rp2040tools-1.0.2.path=C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\rp2040tools\1.0.2 -prefs=runtime.tools.imgtool.path=C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\imgtool\1.8.0-arduino -prefs=runtime.tools.imgtool-1.8.0-arduino.path=C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\imgtool\1.8.0-arduino -prefs=runtime.tools.dfu-util.path=C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\dfu-util\0.10.0-arduino1 -prefs=runtime.tools.dfu-util-0.10.0-arduino1.path=C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\dfu-util\0.10.0-arduino1 -prefs=runtime.tools.bossac.path=C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\bossac\1.9.1-arduino2 -prefs=runtime.tools.bossac-1.9.1-arduino2.path=C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\bossac\1.9.1-arduino2 -verbose C:\Users\GaryY\Documents\Arduino\libraries\Arduino_BHY2\examples\Standalone\Standalone.ino
Using board 'nicla_sense' from platform in folder: C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\hardware\mbed_nicla\3.0.1
Using core 'arduino' from platform in folder: C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\hardware\mbed_nicla\3.0.1
Detecting libraries used...
"C:\\ProgramData\\MATLAB\\SupportPackages\\R2018b\\3P.instrset\\arduinoide.instrset\\idepkgs\\packages\\arduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-g++" -c -w -g3 -nostdlib "@C:\\ProgramData\\MATLAB\\SupportPackages\\R2018b\\3P.instrset\\arduinoide.instrset\\idepkgs\\packages\\arduino\\hardware\\mbed_nicla\\3.0.1\\variants\\NICLA/defines.txt" "@C:\\ProgramData\\MATLAB\\SupportPackages\\R2018b\\3P.instrset\\arduinoide.instrset\\idepkgs\\packages\\arduino\\hardware\\mbed_nicla\\3.0.1\\variants\\NICLA/cxxflags.txt" -DARDUINO_ARCH_NRF52832 -mcpu=cortex-m4 -mfloat-abi=softfp -mfpu=fpv4-sp-d16 -w -x c++ -E -CC -DARDUINO=10819 -DARDUINO_NICLA -DARDUINO_ARCH_MBED_NICLA -DARDUINO_ARCH_MBED -DARDUINO_LIBRARY_DISCOVERY_PHASE=1 "-IC:\\ProgramData\\MATLAB\\SupportPackages\\R2018b\\3P.instrset\\arduinoide.instrset\\idepkgs\\packages\\arduino\\hardware\\mbed_nicla\\3.0.1\\cores\\arduino" "-IC:\\ProgramData\\MATLAB\\SupportPackages\\R2018b\\3P.instrset\\arduinoide.instrset\\idepkgs\\packages\\arduino\\hardware\\mbed_nicla\\3.0.1\\variants\\NICLA" "-IC:\\ProgramData\\MATLAB\\SupportPackages\\R2018b\\3P.instrset\\arduinoide.instrset\\idepkgs\\packages\\arduino\\hardware\\mbed_nicla\\3.0.1\\cores\\arduino/api/deprecated" "-IC:\\ProgramData\\MATLAB\\SupportPackages\\R2018b\\3P.instrset\\arduinoide.instrset\\idepkgs\\packages\\arduino\\hardware\\mbed_nicla\\3.0.1\\cores\\arduino/api/deprecated-avr-comp" "-iprefixC:\\ProgramData\\MATLAB\\SupportPackages\\R2018b\\3P.instrset\\arduinoide.instrset\\idepkgs\\packages\\arduino\\hardware\\mbed_nicla\\3.0.1\\cores\\arduino" "@C:\\ProgramData\\MATLAB\\SupportPackages\\R2018b\\3P.instrset\\arduinoide.instrset\\idepkgs\\packages\\arduino\\hardware\\mbed_nicla\\3.0.1\\variants\\NICLA/includes.txt" "C:\\Users\\GaryY\\AppData\\Local\\Temp\\ArduinoServer\\MW\\sketch\\Standalone.ino.cpp" -o nul
Alternatives for Arduino_BHY2.h: [Arduino_BHY2@1.0.4]
ResolveLibrary(Arduino_BHY2.h)
-> candidates: [Arduino_BHY2@1.0.4]
"C:\\ProgramData\\MATLAB\\SupportPackages\\R2018b\\3P.instrset\\arduinoide.instrset\\idepkgs\\packages\\arduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-g++" -c -w -g3 -nostdlib "@C:\\ProgramData\\MATLAB\\SupportPackages\\R2018b\\3P.instrset\\arduinoide.instrset\\idepkgs\\packages\\arduino\\hardware\\mbed_nicla\\3.0.1\\variants\\NICLA/defines.txt" "@C:\\ProgramData\\MATLAB\\SupportPackages\\R2018b\\3P.instrset\\arduinoide.instrset\\idepkgs\\packages\\arduino\\hardware\\mbed_nicla\\3.0.1\\variants\\NICLA/cxxflags.txt" -DARDUINO_ARCH_NRF52832 -mcpu=cortex-m4 -mfloat-abi=softfp -mfpu=fpv4-sp-d16 -w -x c++ -E -CC -DARDUINO=10819 -DARDUINO_NICLA -DARDUINO_ARCH_MBED_NICLA -DARDUINO_ARCH_MBED -DARDUINO_LIBRARY_DISCOVERY_PHASE=1 "-IC:\\ProgramData\\MATLAB\\SupportPackages\\R2018b\\3P.instrset\\arduinoide.instrset\\idepkgs\\packages\\arduino\\hardware\\mbed_nicla\\3.0.1\\cores\\arduino" "-IC:\\ProgramData\\MATLAB\\SupportPackages\\R2018b\\3P.instrset\\arduinoide.instrset\\idepkgs\\packages\\arduino\\hardware\\mbed_nicla\\3.0.1\\variants\\NICLA" "-IC:\\Users\\GaryY\\Documents\\Arduino\\libraries\\Arduino_BHY2\\src" "-IC:\\ProgramData\\MATLAB\\SupportPackages\\R2018b\\3P.instrset\\arduinoide.instrset\\idepkgs\\packages\\arduino\\hardware\\mbed_nicla\\3.0.1\\cores\\arduino/api/deprecated" "-IC:\\ProgramData\\MATLAB\\SupportPackages\\R2018b\\3P.instrset\\arduinoide.instrset\\idepkgs\\packages\\arduino\\hardware\\mbed_nicla\\3.0.1\\cores\\arduino/api/deprecated-avr-comp" "-iprefixC:\\ProgramData\\MATLAB\\SupportPackages\\R2018b\\3P.instrset\\arduinoide.instrset\\idepkgs\\packages\\arduino\\hardware\\mbed_nicla\\3.0.1\\cores\\arduino" "@C:\\ProgramData\\MATLAB\\SupportPackages\\R2018b\\3P.instrset\\arduinoide.instrset\\idepkgs\\packages\\arduino\\hardware\\mbed_nicla\\3.0.1\\variants\\NICLA/includes.txt" "C:\\Users\\GaryY\\AppData\\Local\\Temp\\ArduinoServer\\MW\\sketch\\Standalone.ino.cpp" -o nul
Alternatives for bits/c++config.h: []
ResolveLibrary(bits/c++config.h)
-> candidates: []
In file included from c:\programdata\matlab\supportpackages\r2018b\3p.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\ratio:38:0,
from c:\programdata\matlab\supportpackages\r2018b\3p.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\chrono:38,
from C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\hardware\mbed_nicla\3.0.1\cores\arduino/mbed/rtos/include/rtos/Kernel.h:27,
from C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\hardware\mbed_nicla\3.0.1\cores\arduino/mbed/rtos/include/rtos/rtos.h:28,
from C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\hardware\mbed_nicla\3.0.1\cores\arduino/mbed/mbed.h:24,
from C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\hardware\mbed_nicla\3.0.1\cores\arduino/mbed.h:8,
from C:\Users\GaryY\Documents\Arduino\libraries\Arduino_BHY2\src/BoschSensortec.h:5,
from C:\Users\GaryY\Documents\Arduino\libraries\Arduino_BHY2\src/sensors/SensorClass.h:6,
from C:\Users\GaryY\Documents\Arduino\libraries\Arduino_BHY2\src/Arduino_BHY2.h:8,
from C:\Users\GaryY\Documents\Arduino\libraries\Arduino_BHY2\examples\Standalone\Standalone.ino:9:
c:\programdata\matlab\supportpackages\r2018b\3p.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\type_traits:38:10: fatal error: bits/c++config.h: No such file or directory
#include <bits/c++config.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
Using library Arduino_BHY2 at version 1.0.4 in folder: C:\Users\GaryY\Documents\Arduino\libraries\Arduino_BHY2
exit status 1
Error compiling for board Nicla Sense ME.