vscode-arduino-tools icon indicating copy to clipboard operation
vscode-arduino-tools copied to clipboard

Debug configuration for Arduino Mega and Atmel-ICE

Open fkromer opened this issue 3 years ago • 0 comments

It would be great if you could provide instructions about how to configure the Atmel-ICE when using an Arduino Mega. Probably it would make sense to add the configuration as default as well.

The excerpt shown below is from here and allows to debug the ATMega128 in VSCode. The launch.json for the Arduino IDE 2.X should look quite similiar...

{
    "version": "0.2.0",
    "debugServer": 4710,
    "configurations": [
        {
            "name": "atmel-debug",
            "type": "atbackend",
            "atbackendHost": "127.0.0.1",
            "atbackendPort": 4712,
            "request": "launch",
            "program": "${workspaceRoot}/GccApplication2/Debug/GccApplication2.elf",
            "tool": "com.atmel.avrdbg.tool.simulator",
            "device": "ATmega128",
            "launchAttached": true,
            "launchSuspended": true,
            "preserveEeprom": false,
            "bootSegment": 2,
            "cacheFlash": true,
            "eraseRule": 0,
            "useGdb": true,
            "gdbLocation": "C:/Program Files (x86)/Atmel/Studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/avr-gdb.exe",
            "progFlashFromRam": false,
            "ramSnippetAddress": "0x20000000",
            "packPath": "C:/Program Files (x86)/Atmel/Studio/7.0/Packs/atmel/ATmega_DFP/1.0.106/Atmel.ATmega_DFP.pdsc"
        }
    ]
}

fkromer avatar May 03 '21 12:05 fkromer