Error connecting to DP

Hello,

I've done the basic checks to see why the nicla sense me is not working i.e selected the right board and COM etc.. tried web editor and desktop uploading of sketches and tried the reset button but nothing is happening. This is the error I get:

debug_level: 2

adapter speed: 1000 kHz

Info : CMSIS-DAP: SWD Supported

Info : CMSIS-DAP: FW Version = v1.0

Info : CMSIS-DAP: Serial# = C06B0020

Info : CMSIS-DAP: Interface Initialised (SWD)

Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1

Info : CMSIS-DAP: Interface ready

Info : clock speed 1000 kHz

Error: Error connecting DP: cannot read IDR

Does anyone have any suggestions on what I could do, is the board dead completely now?

Thanks.

Hi @aeroptl,

I guess it could be a little bit late, but I face similar issues recently. For those who are experiencing the same, the only way I had for managing this error is to use the device (NICLA Sense ME in my case) together with a battery.

Thus, connecting the battery:

And then the device using the USB port to the computer I handled it.

Hope it helps. Regards,

You state: # Error connecting to DP" I assume it is not Decimal Point! What is it I cannot see your project.

This is the code

#include "Nicla_System.h"

void setup() {
  nicla::begin();
  nicla::leds.begin();
}

void loop() {
  nicla::leds.setColor(green);
  delay(1000);
  nicla::leds.setColor(off);
  delay(1000);
}

When i run this, this is the error:


Sketch uses 55552 bytes (10%) of program storage space. Maximum is 527616 bytes.
Global variables use 12256 bytes (19%) of dynamic memory, leaving 52032 bytes for local variables. Maximum is 64288 bytes.
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

Error: Error connecting DP: cannot read IDR


Failed uploading: uploading error: exit status 1```

I tried this, didn't work, I think the board is dead

It is a bad connection on the CB because the INC is not in the correct place. Maybe it is the SWR version you are using.

Sorry can you expand the acronyms you are using please?

Thanks.

I faced the same issue and simply resolved it by changing the micro-USB cable

I have the same problem. I tried couple of different usb cables and also powering it up with a battery during sketch upload, but I wasn't able to get it working.

Open On-Chip Debugger 0.11.0+dev-gab95bac57-dirty (2021-05-11-10:45)
Licensed under GNU GPL v2
For bug reports, read
OpenOCD: Bug Reporting
debug_level: 2

adapter speed: 1000 kHz

Info : CMSIS-DAP: SWD Supported
Info : CMSIS-DAP: FW Version = v1.0
Info : CMSIS-DAP: Serial# = 9B8ACC97
Info : CMSIS-DAP: Interface Initialised (SWD)
Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1
Info : CMSIS-DAP: Interface ready
Info : clock speed 1000 kHz
Error: Error connecting DP: cannot read IDR

Executing command: exit status 1

Hi!
What windows version are you using?
Have you tried by double tapping the reset button, then entering bootloader mode, and upload again?

Hi PMarquinez! I'm using windows 10. I tried bootloader mode without success. When I power up my Nicla Me, blue light blinks and then turns constant green. Windows recognises the device as Nicla ME CMCIS-DAP.

When I doubletap the reset button, led starts blinking red after a moment

Hi @aeroptl @heikki90 , I had a similar issue turns out on my board the ANNAB112 wasn't even getting powered.

The error Error: Error connecting DP: cannot read IDR from what I've been able to understand so far is the it couldn't connect to the debug port as it failed to read the identification register.

Now it could be other issues as well but maybe verify if you can read ~1.8V on the 1V8 pin(see pinout) and ~5V on VDDIO_EXT pin (again see pinout).

And check if you're usb cable works maybe with other mcu or just try a different cable.

Also I'd recommend getting in touch with Arduino support.

Thanks! I will check those voltages from pins. I've tried with other usb cables with same results (not working).