Hello, i want to debug an Atmel MEGA 2560 with an Atmel -ICE, but i get an error message. Do i have to install something ?
I can’t use avr-stub, 'cause my software uses Serial & Serial1…
“DebugInvalidOptionsError: Unknown debug tool atmel-ice. Please use one of avr-stub, simavr or custom:”
This is my platformio.ini
[env:megaatmega2560]
platform = atmelavr
board = megaatmega2560
framework = arduino
debug_tool = atmel-ice
lib_deps =
knolleary/PubSubClient@^2.8
paulstoffregen/OneWire@^2.3.5
milesburton/DallasTemperature@^3.9.1
sstaub/Ticker@^4.4.0
arduino-libraries/Ethernet@^2.0.0
…which is for the Atmel SAM platform, aka ARM targets, not the Atmel AVR platform, which your Mega 2560 belongs to. The support of a debug probe is per-platform.