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+).
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).
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