Rahix / avr-hal

embedded-hal abstractions for AVR microcontrollers
Apache License 2.0
1.32k stars 223 forks source link

The crates' avrdude.config not compatible with AVRDUDE 7.1 #498

Closed weiying-chen closed 8 months ago

weiying-chen commented 9 months ago

It seems like this file: https://github.com/Rahix/avr-hal/blob/main/ravedude/src/avrdude/avrdude.conf is not compatible with AVRDUDE 7.1: https://github.com/avrdudes/avrdude/discussions/1636

You get these warnings:

avrdude warning: ATmega329's flash writepage misses a necessary address bit a13 [/tmp/.avrdude-OHDaQR.conf:5780]

avrdude warning: a4 would normally be expected to be a5 [/tmp/.avrdude-OHDaQR.conf:11367]

Is there a way to update that avrdude.conf file or use the one in /etc/ instead?

Rahix commented 8 months ago

Sorry for the late reply! Yeah, this is a really unfortunate situation.

Is there a way to update that avrdude.conf file or use the one in /etc/ instead?

Both are tricky:

I think in the long term, the proper solution is to stop relying on the host avrdude and instead manage a vendored version that we can control. Then we always know what avrdude version we use and can always ship a matching config. It also means one less thing for the user to install. Arduino does the same thing, I'm pretty sure they had to learn the same lesson in the past ^^

As an immediate bandaid, I've created #508 to at least get ravedude working again. Not pretty, but maybe it's enough for now...