Exit status 1 problem

Hello everyone,
I'm trying to flash the basic example "Blink" on Arduino M0 pro, but there is the following error:

Sketch uses 11700 bytes (4%) of program storage space. Maximum is 262144 bytes.
Global variables use 2980 bytes (9%) of dynamic memory, leaving 29788 bytes for local variables. Maximum is 32768 bytes.
Open On-Chip Debugger 0.10.0+dev-gf0767a31 (2018-06-11-13:36)
Licensed under GNU GPL v2
For bug reports, read
    http://openocd.org/doc/doxygen/bugs.html
debug_level: 0
none separate
adapter speed: 400 kHz
cortex_m reset_config sysresetreq
in procedure 'program' 
in procedure 'init' called at file "embedded:startup.tcl", line 496
in procedure 'ocd_bouncer'
 OpenOCD init failed 
shutdown command invoked

Failed uploading: uploading error: exit status 1

The COM is detected correctly (Arduino M0 Pro, Programming port on COM4).
I've installed SAMD Boards(32 bits ARM Cortex M0+).

Any idea to solve this? Thanks in advance.

The laptop/PC is running Windows? What version?

Hello @PaulRB,
Yep, the OS is Windows 11.
The Arduino IDE version is 2.3.4.

I can successfully upload to M0 clones, but I run IDE 1.8.19 on Ubuntu 22.04.

Hopefully a Windows expert will be along shortly with some suggestions for you!

So is this the genuine Arduino board with the two USB ports?

If so, which port have you got plugged in? The one nearest the DC connector or the one furthest?

Which board option have you selected in the IDE? 'Arduino M0 Programming', 'Arduino M0 Native' or just 'Arduino M0'?

I've connected the USB cable on "Programming" connector.

Not 100% sure but as far as I can see you're not trying to upload, you're trying to debug.

The upload button is the middle one of the three below, not the right-hand one.

image

Yes, I tried the Upload.
Failed uploading: uploading error: exit status 1

I don't have your board so can't really help.

Did you ever manage to upload to this board?

Please enable verbose output during upload and disable verbose output during compilation. Perform an upload and post the full output here (please use code tags for that output).

Yes, many years ago and I remember that It worked.

Sketch uses 11700 bytes (4%) of program storage space. Maximum is 262144 bytes.
Global variables use 2980 bytes (9%) of dynamic memory, leaving 29788 bytes for local variables. Maximum is 32768 bytes.
"C:\Users\Gianni\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.10.0-arduino7/bin/openocd.exe" -d2 -s "C:\Users\Gianni\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.10.0-arduino7/share/openocd/scripts/" -f "C:\Users\Gianni\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.14/variants/arduino_mzero/openocd_scripts/arduino_zero.cfg" -c "telnet_port disabled; program {C:\Users\Gianni\AppData\Local\arduino\sketches\D3E7B7BE131773D0ED2381DA0D322204/Blink.ino.bin} verify reset 0x4000; shutdown"
Open On-Chip Debugger 0.10.0+dev-gf0767a31 (2018-06-11-13:36)
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
debug_level: 2
Info : auto-selecting first available session transport "swd". To override use 'transport select <transport>'.
none separate
adapter speed: 400 kHz
cortex_m reset_config sysresetreq
Info : CMSIS-DAP: SWD  Supported
Info : CMSIS-DAP: JTAG Supported
Info : CMSIS-DAP: Interface Initialised (SWD)
Info : CMSIS-DAP: FW Version = 01.1F.0118
Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 1 TDO = 1 nTRST = 0 nRESET = 1
Info : CMSIS-DAP: Interface ready
Info : clock speed 400 kHz
in procedure 'program' 
in procedure 'init' called at file "embedded:startup.tcl", line 496
in procedure 'ocd_bouncer'
** OpenOCD init failed **
shutdown command invoked

Failed uploading: uploading error: exit status 1

In that case I do not know, sorry.