Cannot Upload codes to Arduino Nicla Sense ME

Unable to upload any codes to my Nicla Sense ME board. Here is the output log on Arduino Ide

Using library Nicla_System at version 1.0 in folder: C:\Users\vilak\AppData\Local\Arduino15\packages\arduino\hardware\mbed_nicla\3.2.0\libraries\Nicla_System 
Using library Wire in folder: C:\Users\vilak\AppData\Local\Arduino15\packages\arduino\hardware\mbed_nicla\3.2.0\libraries\Wire (legacy)
"C:\\Users\\vilak\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-size" -A "C:\\Users\\vilak\\AppData\\Local\\Temp\\arduino-sketch-5AD085E44DB3F194502DD4137C261ED8/Blink_Nicla.ino.elf"
Sketch uses 55212 bytes (10%) of program storage space. Maximum is 527616 bytes.
Global variables use 12032 bytes (18%) of dynamic memory, leaving 52256 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
"C:\Users\vilak\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.11.0-arduino2/bin/openocd.exe" -d2 -s "C:\Users\vilak\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.11.0-arduino2/share/openocd/scripts/" -f interface/cmsis-dap.cfg -c "transport select swd; adapter speed 1000" -f target/nrf52.cfg -c "telnet_port disabled; init; reset init; halt; adapter speed 10000; program {C:\Users\vilak\AppData\Local\Temp\arduino-sketch-5AD085E44DB3F194502DD4137C261ED8/Blink_Nicla.ino.elf}; reset run; shutdown"
debug_level: 2

adapter speed: 1000 kHz

Info : CMSIS-DAP: SWD  Supported
Info : CMSIS-DAP: FW Version = v1.0
Info : CMSIS-DAP: Serial# = 86C1E6E8
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
Info : SWD DPIDR 0x2ba01477
Info : nrf52.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : starting gdb server for nrf52.cpu on 3333
Info : Listening on port 3333 for gdb connections
target halted due to debug-request, current mode: Thread 
xPSR: 0x01000000 pc: 0x00006dd0 msp: 0x20010000
Info : SWD DPIDR 0x2ba01477
Failed uploading: uploading error: exit status 1

hey,
first check the basics, is the board connected, right com, right board selected in ide...

kind regards
finn

I'm on a Mac. I used the About This Mac / System Report / Hardware / USB to see if the Nicla Sense ME was visible to the operating system. Turned out I was using a power only USB cable. Once I used a full USB cable it appeared in the system report.

In the 2.0.0 IDE what worked for me was:
Board: Nicla Sense ME
Port: "dev/cu.usbmodemE10E62572"
Programmer: "ARM CMSIS-DAP compatible"

With that I could upload the "Blink_Nicla" sketch and verify that I was actually uploading to it.