Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug configuration for Arduino Mega and Atmel-ICE #24

Open
fkromer opened this issue May 3, 2021 · 0 comments
Open

Debug configuration for Arduino Mega and Atmel-ICE #24

fkromer opened this issue May 3, 2021 · 0 comments
Assignees
Labels
topic: documentation Related to documentation for the project type: enhancement Proposed improvement

Comments

@fkromer
Copy link

fkromer commented May 3, 2021

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"
        }
    ]
}
@per1234 per1234 added topic: documentation Related to documentation for the project type: enhancement Proposed improvement labels Feb 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: documentation Related to documentation for the project type: enhancement Proposed improvement
Projects
None yet
Development

No branches or pull requests

3 participants