AVR-GCC not being updated for new devices

Go To Last Post
15 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I just re-installed the latest(?) version of AVR-GCC available from the Ubuntu repository.  I've also checked the 'official' avr-gcc site looking for the latest sources.

It seems that definitions for the new AVR-0, AVR-Dx, AVR-Tiny0 and AVR-Tini1 series are NOT included (not in io.h, and no device specific headers are supplied).  Hell, even the not-so-new Atmega328pb and ATmega324pb are missing.

Yet these support files for these devices ARE found in the tool chain supplied with the current Arduino (1.8.13) release.  You can also find the required headers on Microchip's site (if you are good with searching their site to find the right 'pacl' to download.

(Is the Microchip MC-08 compiler a re-spin of gcc?).

 

Why hasn't the updated sources for avr-gcc from which these tool chains are built from been spun back into the GNU hosted sources?  Why haven't Debian and the other distro's updated their packages?  Isn't this what is SUPPOSED to happen with GNU licensed stuff?

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I grab files from here: http://packs.download.atmel.com/

Rename to .ZIP and extract the files you need.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

kscharf wrote:
Why haven't Debian and the other distro's updated their packages?
Uncertain though Debian will get there eventually.

gcc-avr vcswatch -- Debian Quality Assurance via

Debian Package Tracker - gcc-avr

[top, middle column]

action needed

...

other distributions' GCC are organic (FSF only)

There was an issue after Microchip Technology's GNU portal changed (web page updates, acquisition of Atmel by Microchip)

Where have Atmel avr-gcc sourcecode gone ? | AVR Freaks

 

P.S.

kscharf wrote:
(Is the Microchip MC-08 compiler a re-spin of gcc?).
MPLAB XC8 for AVR is based on GCC (GPL) though with some proprietary libraries.

MPLAB XC8 for PIC is based on LLVM Clang (not GPL)

 

edit : Ubuntu eventually

Comment #2 : Bug #1754624 : Bugs : gcc-avr package : Ubuntu

 

"Dare to be naïve." - Buckminster Fuller

Last Edited: Tue. Jul 21, 2020 - 07:41 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

kscharf wrote:
... and ATmega324pb are missing.
96055 – avr: atmega324pb not supported (FSF) via Bug List (GCC, AVR)

 

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I have not yet tried the arduino7 toolchain (yet).

 

https://github.com/arduino/toolchain-avr/tree/staging

 

It seems to be on there IDE tools list (x86_64, arm, aarch64).

 

https://github.com/arduino/Arduino/blob/master/hardware/package_index_bundled.json#L115

 

So for a 64bit Ubuntu, this may work.

 

http://downloads.arduino.cc/tools/avr-gcc-7.3.0-atmel3.6.1-arduino7-x86_64-pc-linux-gnu.tar.bz2

 

If it is working, then perhaps the Debian packager can add this as the upstream. It is a patchy method. I am not going to ask until I check that it works. The arduino7 toolchain drops the man pages, so that may be a problem. I have also struggled with Debian's issue system in the past, so I am not looking forward to it.

 

update: arduino7 patch system also does wget of atpack so parts are more up to date.

 

https://github.com/arduino/toolchain-avr/commit/93db899bc89fcf71434b1b0a1c4d4c18f5308378

 

Last Edited: Tue. Jul 21, 2020 - 08:30 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Also see...

 

https://www.avrfreaks.net/forum/...

 

So while device packs are currently the "new normal" the fact that GCC for AVR will be over in a few versions anyway. (As long as you are happy with the way things are now this may not matter)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

Hi, this is my first post on this forum:)

 

Does anyone know whether avr-gcc will come with header files for newer AVR microcontrollers, e.g AVR128 DB 28? Today I needed them and lost an hour searching for them - I ended up installing Microchip Studio on my other Windows machine (and I despise both Microchip Studio and Windows).

 

Thanks in advance:)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thank you very much:)

 

But are there any chances that includes for those newer AVRs will be added to avr-gcc? Then, instead of manually copying the files I need from the extracted .atpack, they'd be available out of the box.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

That would depend on where and from who you got your avr-gcc... 

:: Morten

 

(yes, I work for Microchip, yes, I do this in my spare time, now stop sending PMs)

 

The postings on this site are my own and do not represent Microchip’s positions, strategies, or opinions.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

AVR C Runtime Library - Patches: patch #9543, Add avrxmega3 devices. [Savannah]

Am uncertain that patch contains AVR Dx and tinyAVR 2-series.

 

 

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I use a Mac and use Homebrew as my package manager, so I get the builds from this formula repository. (e.g this is avr-gcc 11 built from scratch and this is avr-gcc 11 formula).

Does this patch have to be merged?

 

Anyway, I got it working simply by copying ioavr128db28.h to my includes/avr path and adding the following code to includes/avr/io.h

 

#elif defined (__AVR_128DB28__)
#  include <avr/ioavr128db28.h>

 

Last Edited: Sat. May 29, 2021 - 07:22 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Then it is up to the brew formula to package the device support wink

 

If you look in the issue list for the formula this has been discussed multiple times there...

:: Morten

 

(yes, I work for Microchip, yes, I do this in my spare time, now stop sending PMs)

 

The postings on this site are my own and do not represent Microchip’s positions, strategies, or opinions.

Last Edited: Sat. May 29, 2021 - 11:54 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Similar for PlatformIO; not yet implemented are tinyAVR 2-series and AVR Dx.

https://github.com/platformio/platform-atmelmegaavr/issues?q=is%3Aopen+is%3Aissue

 

edit :

Atmel megaAVR · Platforms · PlatformIO (AVRxt)

 

"Dare to be naïve." - Buckminster Fuller

Last Edited: Sat. May 29, 2021 - 08:32 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

"Dare to be naïve." - Buckminster Fuller