PlatformIO Community

Debugging Atmel AVR: Failed to launch GDB pioinit 13

I was trying to debug but this error pops up.
Any idea what is wrong ?

What is the platformio.ini and your intended debug method (simavr or avr-stub)?

; PlatformIO Project Configuration File
;   Build options: build flags, source filter
;   Upload options: custom upload port, speed and extra flags
;   Library options: dependencies, extra library storages
;   Advanced options: extra scripting
; Please visit documentation for the other options and examples

platform = atmelavr
board = megaatmega2560
framework = arduino
lib_deps = 
	adafruit/Adafruit GFX Library@^1.10.14
	adafruit/Adafruit BusIO@^1.11.3
	adafruit/Adafruit TouchScreen@^1.1.3

I am trying to use avr-stub.

I don’t see necessary code in your project to initialize avr-stub or even include the library.

Please reproduce the minimal setup at How to debug on Arduino mega 2560 - #2 by maxgerhardt first. (with board being left at your target megaatmega2560 of course, and as documented in avr-stub — PlatformIO latest documentation).

1 Like

Pardon me, I thought it was a one click thing. Thank you for pointing that out.