-
Notifications
You must be signed in to change notification settings - Fork 78
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
Not able to update toolchain #62
Comments
Hi @MCUdude -- We updated the way the formula work. Now you don't need to install avr-libc and avr-gcc separately because avr-libc is now a resource of avr-gcc. You should use the latest version of avr-gcc. I'm using it all the time on old and new code and it works perfectly. A lot of bugs have been fixed since 4.9 and a lot of nice features and optimizations have been added. It might be better to start from scratch to avoid any issues in the future. Run the following:
Enjoy! 👍 |
Thanks, but I'm still getting an error.
|
what makes you think it will not be the case with gcc 7.2? |
I don't. It's just that I want to stick with the compiler version that Arduino IDE + the optiboot maintainers are using. Does this means that there's no way to use brew for installing avr-gcc 4.9? If avr-gcc 7.2 is so great, why does Atmel studio ship with avr-gcc 4.9.2? No attack, just curious 🙂 |
I'd say because they are afraid of the future and don't want people to use the latest C++ features to make their code more readable and easier to write 😉 Anyway I just pushed some changes and things should be fixed now. just |
and also, you can have the different versions living side by side now. I'm curious if you could also install version 7.2 and compare the .hex files generated. |
I certainly will! I'm away the next week, but I'll post the hex files later. BTW which package contains the different microcontroller options? Turns out the default avr-gcc@4 installation doesn't support any of the new *PB series |
I honestly don't know, but from the documentation, it seems that you need to use |
Hi!
About a year ago I installed the AVR toolchain on my mac using this guide. It worked like a charm, and I currently have avr-gcc 4.9.3 and avr-libc 2.0.0 installed.
I'm working on a project where I want to compile optiboot for the new ATmega48PB/88PB/168PB/328PB chips, but I'm getting an error saying that the device isn't supported (or in the list of supported devices).
In order to update the toolchain I tried to run the following command; resulting in an error:
... And trying to install avr-gcc@4 didn't work either
How can I update the toolchain in order to compile for the new *PB series?
The text was updated successfully, but these errors were encountered: