Hello,
How do I set up grand central M4 with platform IO debugging with atmel ice for debugging on Windows 10?
Originally, I got it to program properly without atmel-ice in regular running without touching the platformio.ini. Now, I like to debug. Unfortunatey, after modifying the platformio.inin, it does not run and it dies not debug.
I changed the upload_protocol from : upload_protocol = sam-ba to atmel-ice
I put this in this int he platformio.ini
[env:adafruit_grandcentral_m4]
platform = atmelsam
board = adafruit_grandcentral_m4
framework = arduino
board_build.mcu = samd51p20a
debug_tool=atmel-ice
upload_protocol = atmel-ice
build_type=debug
[env:myenv]
platform = atmelsam
board = adafruit_grandcentral_m4
debug_tool = atmel-ice
I get these errors when I try to start to debug:
Processing adafruit_grandcentral_m4 (platform: atmelsam; board: adafruit_grandcentral_m4; framework: arduino)
Scanning dependencies...
No dependencies
Building in debug mode
Checking size .pio\build\adafruit_grandcentral_m4\firmware.elf
========================= [SUCCESS] Took 2.82 seconds =========================
Environment Status Duration
------------------------ -------- ------------
adafruit_grandcentral_m4 SUCCESS 00:00:02.820
========================= 1 succeeded in 00:00:02.820 =========================
Reading symbols from C:\Users\laptop\Documents\PlatformIO\Projects\grandcenralm4_blink\.pio\build\adafruit_grandcentral_m4\firmware.elf...
done.
PlatformIO Unified Debugger -> http://bit.ly/pio-debug
PlatformIO: debug_tool = atmel-ice
PlatformIO: Initializing remote target...
xPack OpenOCD, 64-bit Open On-Chip Debugger 0.10.0+dev (2019-07-17-11:28)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
at91samd51p20
Info : auto-selecting first available session transport "swd". To override use 'transport select <transport>'.
Info : tcl server disabled
Info : telnet server disabled
Error: unable to find CMSIS-DAP device
.pioinit:13: Error in sourced command file:
Remote communication error. Target disconnected.: Success.