platform-atmelavr icon indicating copy to clipboard operation
platform-atmelavr copied to clipboard

Update toolchain-atmelavr version

Open thirstyice opened this issue 10 months ago • 1 comments

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.

thirstyice avatar Feb 05 '25 19:02 thirstyice

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

jjchico avatar Apr 29 '25 14:04 jjchico