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

working with Platformio #7

Closed
paulskirk53 opened this issue Mar 13, 2021 · 2 comments
Closed

working with Platformio #7

paulskirk53 opened this issue Mar 13, 2021 · 2 comments

Comments

@paulskirk53
Copy link

Hi, I have the microUPDI, can I get it to debug code on an AVR 4809 using Platformio? Any help to configure would be much appreciated.

@maxgerhardt
Copy link

maxgerhardt commented Mar 14, 2021

Per topic in https://community.platformio.org/t/debug-an-avr-4809-with-microupdi/19926/18?u=maxgerhardt it worked by adding

upload_protocol = custom
upload_flags =
    -C
    $PROJECT_PACKAGES_DIR/tool-avrdude-megaavr/avrdude.conf
    -p
    $BOARD_MCU
    -c
    xplainedmini_updi
    -Pusb
    -b115200
upload_command = avrdude $UPLOAD_FLAGS -U flash:w:$SOURCE:i

to the platformio.ini, after seeing the info in https://github.com/MCUdude/microUPDI#usage.

@MCUdude
Copy link
Owner

MCUdude commented Mar 20, 2021

Hi, I have the microUPDI, can I get it to debug code on an AVR 4809 using Platformio? Any help to configure would be much appreciated.

PlatformIO doesn't support AVR debugging natively. You'll have to use Atmel Studio, MPLAB X, set up your own GDB to do this or follow the guide that @maxgerhardt linked to.

@MCUdude MCUdude closed this as completed Mar 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants