Skip to content

Debug configuration for Arduino Mega and Atmel-ICE #24

Open
@fkromer

Description

@fkromer

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"
        }
    ]
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions