Help with PIO Debugger using Atmel ICE and Arduino Due

Great!

Then let’s try the same openocd target for debugging, maybe things change. Still, the build_flag stuff should be kept in there to ensure a debug build for now. Add to the platformio.ini (adapted from docs):

build_unflags = -Os
build_flags = -Og -g3 -ggdb3
debug_tool = custom
debug_server =
	/Users/hackmodford/.platformio/packages/tool-openocd/bin/openocd
	-d2 
	-s 
	/Users/hackmodford/.platformio/packages/tool-openocd/scripts
	-f 
	interface/cmsis-dap.cfg 
	-c 
	"set CHIPNAME at91sam3X8E" 
	-c 
	"source [find target/at91sam3ax_8x.cfg]" 

What’s the log now debugging? Does the behavior change?