Error deploying Blink_Nicla Example Nicla Voice

I try to upload the Blink_Nicla example on Windows 10 using Arduino IDE 2.0.3 on my Nicla Voice. Unfortunately I always get this error:

Open On-Chip Debugger 0.11.0+dev-gab95bac57-dirty (2021-05-11-10:45)
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
debug_level: 0

adapter speed: 1000 kHz

target halted due to debug-request, current mode: Thread 
xPSR: 0x01000000 pc: 0x00006654 msp: 0x20010000
target halted due to debug-request, current mode: Thread 
xPSR: 0x01000000 pc: 0x00006654 msp: 0x20010000
** Programming Started **
** Programming Finished **
shutdown command invoked

The same happens on my friend's computer.

Hi @mantelschwarz. That looks like the output from a successful upload.

Did Arduino IDE indicate the upload failed? If the upload fails, you will see an "Upload error: ..." notification at the bottom right corner of the IDE window:

image

If the upload succeeds, you will see a "Done uploading." notification there:

image

Note that the success notification is hidden after a few seconds, so you might miss it if you aren't watching, but you can click the :bell: icon at the right side of the status bar to show the hidden notifications again.

So uploading indeed seems to work. but something seems to be wrong. E.g. if I upload the SensorTest.ino example the same error appears and the LED is blinking red which indicates an error as written in the code

NDP.onError(ledRedBlink);

What is the error you are referring to in this sentence? Please post the full and exact text of the error message.

Please do this:

  1. If the "Serial Monitor" tab is not already open in the bottom panel of Arduino IDE, select Tools > Serial Monitor to open it.
  2. Select "115200" from the dropdown menu at the top right of the "Serial Monitor" view.
  3. Press and release the button on the Nicla Voice board.

You should now see a message printed in the Serial Monitor. Please copy and paste that message here so I can understand the cause of the error. Once I have that information I should be able to help you to solve it.

Thank you very much. I have now found the response in this Forum thread:
https://forum.arduino.cc/t/error-deploying-alexa-demo-on-nicla-voice/1087319/2

It works now. But the documentation is still very limited. Is there somewhere a resource where I can see how i can use the NDP class? I simply would like to print the classifier's output to the serial monitor.

Excellent work finding the solution! I suspected the missing firmware was the cause of the error, but I don't like to make assumptions when providing support.

Unfortunately I think the only documentation for the library is the examples you find under the File > Examples > NDP menu in Arduino IDE and the "Getting Started" tutorial.

Although not a very user friendly form of documentation, information can be gleaned by studying the source code of the library. The library source files are located at this path on your computer:

C:\Users\<username>\AppData\Local\Arduino15\packages\arduino\hardware\mbed_nicla\3.5.5\libraries\NDP\src\

(where <username> is your Windows username)

:exclamation: If looking for it with your file browser or command line, note that the AppData folder is hidden by default. On Windows "File Explorer", you can make it visible by opening the "View" menu, then checking the box next to "☐ Hidden items".

You can also find the source files online here:

but when looking at those, be careful that the version you are looking at matches the version of the "Arduino Mbed OS Nicla Boards" platform installed on your computer. The link above is for the version of the library that comes with version 3.5.5 of the platform.


Arduino has a dedicated technical support team available to help you with your Nicla Voice board, so don't hesitate to contact them with any questions. Just submit them via this form and they will get in touch via email:

https://www.arduino.cc/en/contact-us

1 Like