Pretty much wanted to revert to the "Standalone example" after playing with the Arduino Nicla Sense ME in the web IDE, where I suddenly could not connect to the board.
I have tried to reinstall the agent.
Anyway I could connect locally and tried to burn the bootloader after double clicking reset - it worked just fine. But pretty much anything alse involving "nicla" does not work?!
What have I messed up to get this error message (libraries are installed and update!)
Arduino: 1.8.5 (Windows 10), Board: "Nicla Sense ME"
Build options changed, rebuilding all
C:\Users\dicha\Documents\Arduino\libraries\Arduino_BHY2\src\Arduino_BHY2.cpp: In member function 'void Arduino_BHY2::pingI2C()':
C:\Users\dicha\Documents\Arduino\libraries\Arduino_BHY2\src\Arduino_BHY2.cpp:37:5: error: 'nicla' has not been declared
nicla::readLDOreg();
^~~~~
C:\Users\dicha\Documents\Arduino\libraries\Arduino_BHY2\src\Arduino_BHY2.cpp: In member function 'bool Arduino_BHY2::begin(NiclaConfig, NiclaWiring)':
C:\Users\dicha\Documents\Arduino\libraries\Arduino_BHY2\src\Arduino_BHY2.cpp:56:9: error: 'nicla' has not been declared
res = nicla::begin();
^~~~~
C:\Users\dicha\Documents\Arduino\libraries\Arduino_BHY2\src\Arduino_BHY2.cpp:58:3: error: 'nicla' has not been declared
nicla::enable3V3LDO();
^~~~~
exit status 1
Error compiling for board Nicla Sense ME.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
It seems to work in the 2.x.x IDE, but not in the old 1.8.x IDE (but it did earlier). Has the support from the old IDE been removed after "update"? :-/
Hi @dichaelen. I'm going to ask you to provide some additional information that might allow us to determine the cause of the problem.
NOTE: These instructions will not solve the problem. They are only intended to gather more information which might provide a clue that eventually leads to a solution.
Please do this:
- Start Arduino IDE 1.8.5.
- Select File > Preferences from the Arduino IDE menus.
- Check the box next to "Show verbose output during: ☐ compilation".
- Click the OK button.
- Select Sketch > Verify/Compile from the Arduino IDE menus.
- After the compilation fails you'll see a button on the right side of the orange bar in Arduino IDE: Copy error messages. Click that button.
This copies the full output to the clipboard.
- Open a forum reply here by clicking the Reply button.
- Click the
</>
icon on the post composer toolbar.
This will add the forum's code block markup (```
) to your reply to make sure the error messages are correctly formatted.
- Press Ctrl+V.
This will paste the compilation output into the code block.
- Move the cursor outside of the code tags before you add any additional text to your reply.
- Click the Reply button to post the output.
In case the output is longer than the forum software will allow to be added to a post, you can instead save it to a .txt
file and then attach that file to a reply here:
- Open any text editor program.
-
Paste the copied output into the text editor.
- Save the file in
.txt
format.
- Open a forum reply here by clicking the Reply button.
- Click the "Upload" icon () on the post composer toolbar:
- Select the
.txt
file you saved.
- Click the Open button.
- Click the Reply button to publish the post.
Alternatively, instead of using the "Upload" icon on the post composer toolbar as described in steps (5) - (7) above, you can simply drag and drop the .txt
file onto the post composer field to attach it.
Hi im having the same problem with Arduino IDE 1.8.13 on Debian stable Linux and also with version 1.8.13 on Raspberry Pi OS. The Blink_Nicla sketch does not compile:
Arduino: 1.8.13 (Linux), Board: "Nicla Sense ME"
arduino-builder -dump-prefs -logger=machine -hardware /usr/share/arduino/hardware -hardware /root/.arduino15/packages -tools /usr/share/arduino/hardware/tools/avr -tools /root/.arduino15/packages -libraries /root/Arduino/libraries -fqbn=arduino:mbed_nicla:nicla_sense -ide-version=10813 -build-path /tmp/arduino_build_556391 -warnings=none -build-cache /tmp/arduino_cache_613711 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.rp2040tools.path=/root/.arduino15/packages/arduino/tools/rp2040tools/1.0.6 -prefs=runtime.tools.rp2040tools-1.0.6.path=/root/.arduino15/packages/arduino/tools/rp2040tools/1.0.6 -prefs=runtime.tools.dfu-util.path=/root/.arduino15/packages/arduino/tools/dfu-util/0.10.0-arduino1 -prefs=runtime.tools.dfu-util-0.10.0-arduino1.path=/root/.arduino15/packages/arduino/tools/dfu-util/0.10.0-arduino1 -prefs=runtime.tools.arm-none-eabi-gcc.path=/root/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4 -prefs=runtime.tools.arm-none-eabi-gcc-7-2017q4.path=/root/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4 -prefs=runtime.tools.openocd.path=/root/.arduino15/packages/arduino/tools/openocd/0.11.0-arduino2 -prefs=runtime.tools.openocd-0.11.0-arduino2.path=/root/.arduino15/packages/arduino/tools/openocd/0.11.0-arduino2 -prefs=runtime.tools.bossac.path=/root/.arduino15/packages/arduino/tools/bossac/1.9.1-arduino2 -prefs=runtime.tools.bossac-1.9.1-arduino2.path=/root/.arduino15/packages/arduino/tools/bossac/1.9.1-arduino2 -verbose /root/.arduino15/packages/arduino/hardware/mbed_nicla/3.5.4/libraries/Nicla_System/examples/Blink_Nicla/Blink_Nicla.ino
arduino-builder -compile -logger=machine -hardware /usr/share/arduino/hardware -hardware /root/.arduino15/packages -tools /usr/share/arduino/hardware/tools/avr -tools /root/.arduino15/packages -libraries /root/Arduino/libraries -fqbn=arduino:mbed_nicla:nicla_sense -ide-version=10813 -build-path /tmp/arduino_build_556391 -warnings=none -build-cache /tmp/arduino_cache_613711 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.rp2040tools.path=/root/.arduino15/packages/arduino/tools/rp2040tools/1.0.6 -prefs=runtime.tools.rp2040tools-1.0.6.path=/root/.arduino15/packages/arduino/tools/rp2040tools/1.0.6 -prefs=runtime.tools.dfu-util.path=/root/.arduino15/packages/arduino/tools/dfu-util/0.10.0-arduino1 -prefs=runtime.tools.dfu-util-0.10.0-arduino1.path=/root/.arduino15/packages/arduino/tools/dfu-util/0.10.0-arduino1 -prefs=runtime.tools.arm-none-eabi-gcc.path=/root/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4 -prefs=runtime.tools.arm-none-eabi-gcc-7-2017q4.path=/root/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4 -prefs=runtime.tools.openocd.path=/root/.arduino15/packages/arduino/tools/openocd/0.11.0-arduino2 -prefs=runtime.tools.openocd-0.11.0-arduino2.path=/root/.arduino15/packages/arduino/tools/openocd/0.11.0-arduino2 -prefs=runtime.tools.bossac.path=/root/.arduino15/packages/arduino/tools/bossac/1.9.1-arduino2 -prefs=runtime.tools.bossac-1.9.1-arduino2.path=/root/.arduino15/packages/arduino/tools/bossac/1.9.1-arduino2 -verbose /root/.arduino15/packages/arduino/hardware/mbed_nicla/3.5.4/libraries/Nicla_System/examples/Blink_Nicla/Blink_Nicla.ino
Using board 'nicla_sense' from platform in folder: /root/.arduino15/packages/arduino/hardware/mbed_nicla/3.5.4
Using core 'arduino' from platform in folder: /root/.arduino15/packages/arduino/hardware/mbed_nicla/3.5.4
Detecting libraries used...
"/root/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++" -c -w -g3 -nostdlib "@/root/.arduino15/packages/arduino/hardware/mbed_nicla/3.5.4/variants/NICLA/defines.txt" "@/root/.arduino15/packages/arduino/hardware/mbed_nicla/3.5.4/variants/NICLA/cxxflags.txt" -DARDUINO_ARCH_NRF52832 -mcpu=cortex-m4 -mfloat-abi=softfp -mfpu=fpv4-sp-d16 -w -x c++ -E -CC -DARDUINO=10813 -DARDUINO_NICLA -DARDUINO_ARCH_MBED_NICLA -DARDUINO_ARCH_MBED -DARDUINO_LIBRARY_DISCOVERY_PHASE=0 "-I/root/.arduino15/packages/arduino/hardware/mbed_nicla/3.5.4/cores/arduino" "-I/root/.arduino15/packages/arduino/hardware/mbed_nicla/3.5.4/variants/NICLA" "-I/root/.arduino15/packages/arduino/hardware/mbed_nicla/3.5.4/cores/arduino/api/deprecated" "-I/root/.arduino15/packages/arduino/hardware/mbed_nicla/3.5.4/cores/arduino/api/deprecated-avr-comp" "-iprefix/root/.arduino15/packages/arduino/hardware/mbed_nicla/3.5.4/cores/arduino" "@/root/.arduino15/packages/arduino/hardware/mbed_nicla/3.5.4/variants/NICLA/includes.txt" "/tmp/arduino_build_556391/sketch/Blink_Nicla.ino.cpp" -o "/dev/null"
Generating function prototypes...
"/root/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++" -c -w -g3 -nostdlib "@/root/.arduino15/packages/arduino/hardware/mbed_nicla/3.5.4/variants/NICLA/defines.txt" "@/root/.arduino15/packages/arduino/hardware/mbed_nicla/3.5.4/variants/NICLA/cxxflags.txt" -DARDUINO_ARCH_NRF52832 -mcpu=cortex-m4 -mfloat-abi=softfp -mfpu=fpv4-sp-d16 -w -x c++ -E -CC -DARDUINO=10813 -DARDUINO_NICLA -DARDUINO_ARCH_MBED_NICLA -DARDUINO_ARCH_MBED -DARDUINO_LIBRARY_DISCOVERY_PHASE=0 "-I/root/.arduino15/packages/arduino/hardware/mbed_nicla/3.5.4/cores/arduino" "-I/root/.arduino15/packages/arduino/hardware/mbed_nicla/3.5.4/variants/NICLA" "-I/root/.arduino15/packages/arduino/hardware/mbed_nicla/3.5.4/cores/arduino/api/deprecated" "-I/root/.arduino15/packages/arduino/hardware/mbed_nicla/3.5.4/cores/arduino/api/deprecated-avr-comp" "-iprefix/root/.arduino15/packages/arduino/hardware/mbed_nicla/3.5.4/cores/arduino" "@/root/.arduino15/packages/arduino/hardware/mbed_nicla/3.5.4/variants/NICLA/includes.txt" "/tmp/arduino_build_556391/sketch/Blink_Nicla.ino.cpp" -o "/tmp/arduino_build_556391/preproc/ctags_target_for_gcc_minus_e.cpp"
"/usr/bin/arduino-ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "/tmp/arduino_build_556391/preproc/ctags_target_for_gcc_minus_e.cpp"
Sketch wird kompiliert...
"/root/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++" -c -w -g3 -nostdlib "@/root/.arduino15/packages/arduino/hardware/mbed_nicla/3.5.4/variants/NICLA/defines.txt" "@/root/.arduino15/packages/arduino/hardware/mbed_nicla/3.5.4/variants/NICLA/cxxflags.txt" -DARDUINO_ARCH_NRF52832 -MMD -mcpu=cortex-m4 -mfloat-abi=softfp -mfpu=fpv4-sp-d16 -DARDUINO=10813 -DARDUINO_NICLA -DARDUINO_ARCH_MBED_NICLA -DARDUINO_ARCH_MBED -DARDUINO_LIBRARY_DISCOVERY_PHASE=0 "-I/root/.arduino15/packages/arduino/hardware/mbed_nicla/3.5.4/cores/arduino" "-I/root/.arduino15/packages/arduino/hardware/mbed_nicla/3.5.4/variants/NICLA" "-I/root/.arduino15/packages/arduino/hardware/mbed_nicla/3.5.4/cores/arduino/api/deprecated" "-I/root/.arduino15/packages/arduino/hardware/mbed_nicla/3.5.4/cores/arduino/api/deprecated-avr-comp" "-iprefix/root/.arduino15/packages/arduino/hardware/mbed_nicla/3.5.4/cores/arduino" "@/root/.arduino15/packages/arduino/hardware/mbed_nicla/3.5.4/variants/NICLA/includes.txt" "/tmp/arduino_build_556391/sketch/Blink_Nicla.ino.cpp" -o "/tmp/arduino_build_556391/sketch/Blink_Nicla.ino.cpp.o"
/root/.arduino15/packages/arduino/hardware/mbed_nicla/3.5.4/libraries/Nicla_System/examples/Blink_Nicla/Blink_Nicla.ino: In function 'void setup()':
Blink_Nicla:4:3: error: 'nicla' has not been declared
nicla::begin();
^~~~~
Blink_Nicla:5:3: error: 'nicla' has not been declared
nicla::leds.begin();
^~~~~
/root/.arduino15/packages/arduino/hardware/mbed_nicla/3.5.4/libraries/Nicla_System/examples/Blink_Nicla/Blink_Nicla.ino: In function 'void loop()':
Blink_Nicla:9:3: error: 'nicla' has not been declared
nicla::leds.setColor(green);
^~~~~
Blink_Nicla:9:24: error: 'green' was not declared in this scope
nicla::leds.setColor(green);
^~~~~
/root/.arduino15/packages/arduino/hardware/mbed_nicla/3.5.4/libraries/Nicla_System/examples/Blink_Nicla/Blink_Nicla.ino:9:24: note: suggested alternative: '_reent'
nicla::leds.setColor(green);
^~~~~
_reent
Blink_Nicla:11:3: error: 'nicla' has not been declared
nicla::leds.setColor(off);
^~~~~
Blink_Nicla:11:24: error: 'off' was not declared in this scope
nicla::leds.setColor(off);
^~~
/root/.arduino15/packages/arduino/hardware/mbed_nicla/3.5.4/libraries/Nicla_System/examples/Blink_Nicla/Blink_Nicla.ino:11:24: note: suggested alternative: 'off_t'
nicla::leds.setColor(off);
^~~
off_t
exit status 1
'nicla' has not been declared
Any suggestions? Thx.
Hi @jwillkomm. The problem is in this command:
The arduino-builder
tool should be adding a -DARDUINO_LIB_DISCOVERY_PHASE
flag on the end of that command. I don't know why it didn't do that. I just tested the compilation of the same "Blink_Nicla" sketch for the same "Nicla Sense ME" board, using the same "3.5.4" version of the "Arduino Mbed OS Nicla Boards" platform, with the same Arduino IDE 1.8.13 version on my Linux machine and the flag is added to that command.
I wonder if maybe you replaced the arduino-builder
tool in your Arduino IDE installation? Or maybe you installed Arduino IDE from a package repository (e.g., APT, Snap, Flatpak) instead of downloading the official version from the "Software" page and the 3rd party package maintainer has tampered with the arduino-builder
tool?
Very mysterious. My recommendation is for you to try the latest version of Arduino IDE downloaded from the "Software" page:
Arduino IDE 2.x is not available for the Linux ARM architecture of your Raspberry Pi, but you can download a Linux ARM build of Arduino IDE 1.8.19 from the link farther down on that "Software" page.