I just received the new genuine Arduino Zero bought from Arduino Store today, I am able to upload sketch using USB native port but failed at the USB programming port with Arduino IDE 2.0 beta 5 live debugging feature under Microsoft Windows [Version 10.0.19042.928].
When I pressed the debug button it shown error below:
Alternatively, based on this LINK, under command prompt also received the error below:
I edited C:\Users\RICKY GAI\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.10.0-arduino7\share\openocd\scripts\interface\cmsis-dap.cfg and noticed the cmsis_dap_serial xxx is remarked as shown below:
I have specified the serial number cmsis_dap_serial under "C:\Users\RICKY GAI\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.10.0-arduino7\share\openocd\scripts\interface\cmsis-dap.cfg" where the serial number is obtained from Microchip Studio -> Device Programming ->Tool Information and I only used the built-in Arduino Zero USB programming port, no USB native connection and no external power supply, is there anything missing here ?
I updated the "EDBG Virtual COM Port (COM3)" to "Atmel Corp. xxx" as shown below by uninstalling the device, and do a "scan for hardware changes", the result still the same, "Error: unable to open CMSIS-DAP device 0x3eb:0x2157".
The launch.json is like below:
{
"version": "0.2.0",
"configurations": [
{
"cwd": "${workspaceRoot}",
"name": "Arduino",
"request": "launch",
"type": "cortex-debug",
"executable": "C:\\Users\\RICKYG~1\\AppData\\Local\\Temp\\arduino-sketch-198A0C7A20112487DD9690866E9F0962/sketch_apr27a.ino.elf",
"servertype": "openocd",
"serverpath": "C:\\Users\\RICKY GAI\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\openocd\\0.10.0-arduino7/bin/openocd",
"armToolchainPath": "C:\\Users\\RICKY GAI\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/",
"configFiles": [
"C:\\Users\\RICKY GAI\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.11/variants/arduino_zero/openocd_scripts/arduino_zero.cfg"
]
}
]
}
The Arduino Zero board I received currently is like below:
...and I also updated to latest EDBG firmware using Microchip Studio 7:
Please advise.