Skip to content

Update toolchain-atmelavr version #338

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

thirstyice
Copy link

There's been a newer version of toolchain-atmelavr for 3 years now. Why not use it?

Note: I have tested nothing. I only updated the version number in the platform.json.

Has a pretty good chance of fixing #313, #292, #275, and maybe others.

@jjchico
Copy link

jjchico commented Apr 29, 2025

Hi!
#313 would not be fixed since 3.70300.220127 does not include avr-gdb. I have forced the new version by including the following under [env] in platformio.ini:

    platform_packages =
    platformio/toolchain-atmelavr@^3.70300.220127

platform-atmelavr will then use the system's avr-gdb at /usr/bin/avr-gdb. Debuging with simavr will run but the PORTB does not get updated in my assembly test code. [email protected] works fine but it faces the #313 bug.

A possible solution is that some devs have a look to the problem with the updated avr-gdb and that avg-gdb becomes a tool like simavr.

System tested:

$ cat /etc/issue
Ubuntu 24.04.2 LTS \n \l

$ LANG=C dpkg -l gdb-avr 
[...]
ii  gdb-avr        13.2-3ubuntu3 amd64        GNU Debugger for avr

$ /usr/bin/avr-gdb --version
GNU gdb (GDB) 15.0.50.20240320-git
[...]

$ ~/.platformio/packages/toolchain-atmelavr\@1.70300.191015/bin/avr-gdb --version
GNU gdb (GDB) 7.8
[...]

$ .platformio/penv/bin/pio --version
PlatformIO Core, version 6.1.18

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

Successfully merging this pull request may close these issues.

2 participants