PIO Unified Debugger

  • PlatformIO IDE for Atom, Menu: “PlatformIO > Upgrade PlatformIO Core”. Be sure that you use minimum 3.4.0b3 version
  • Open PlatformIO IDE Terminal and type
pio platform uninstall atmelsam
pio platform install atmelsam --with-package=uploader
  • Create Adafruit M0 based project, open “platformio.ini” and update its content to:
[env:adafruit_feather_m0_usb]
platform = atmelsam
board = adafruit_feather_m0_usb
framework = arduino
debug_tool = custom
debug_server =
  $PLATFORMIO_HOME_DIR/packages/tool-openocd/bin/openocd
  -f
  $PLATFORMIO_HOME_DIR/packages/tool-openocd/scripts/interface/cmsis-dap.cfg
  -c
  set CHIPNAME at91samd21g18; set ENDIAN little; set telnet_port 0
  -f
  $PLATFORMIO_HOME_DIR/packages/tool-openocd/scripts/target/at91samdXX.cfg

See details about SWCLK & SWDIO pins

Now, press “Debug” button on toolbar.