avrdudes / avr-libc

The AVR-LibC package provides a subset of the standard C library for AVR 8-bit RISC microcontrollers.
https://avrdudes.github.io/avr-libc/
Other
247 stars 53 forks source link

[patch #2923] Add infrastructure support for new AVR devices. #694

Closed avrs-admin closed 2 years ago

avrs-admin commented 2 years ago

Thu 08 Apr 2004 07:38:20 PM CEST

These patches add the underlying support to binutils, gcc and avr-libc to allow support for these new AVR devices:

tiny13 tiny2313 at90can128 mega48 mega88 mega168

The headers for the mega48/88/168 are already in avr-libc cvs head. Still waiting for contributions for the other 3 headers.

Colin O'Flynn and Bob Paddock have volunteered to write the can128 and tiny2313 headers respectively.

I'll probably write the header for the tiny13 as soon as I get a chance unless someone else beats me to it.

Please use the format I used for the iomx8.h for new headers since it makes it a little bit easier to review having the register and bit defs in the same place.

file #7261: avr-libc-new-devs.diff file #7262: gcc-avr-new-devs-2.diff file #7263: binutils-avr-new-devs.diff file #7268: avr-libc-new-devs-2.diff file #7280: avr-libc-new-devs-3.diff file #7282: avr-libc-new-devs-4.diff file #7283: avr-libc-new-devs-5.diff file #7352: gcc-3_4_0-avr-new-devs.patch file #8355: gcc-3_4_x-avr-new-devs2.patch file #9074: binutils-2.15-avr-new-devs-3.diff file #9075: gcc-3.4.4-avr-new-devs-3.diff

This issue was migrated from https://savannah.nongnu.org/patch/?2923

avrs-admin commented 2 years ago

Theodore A. Roth Fri 09 Apr 2004 09:42:12 PM CEST

Please note that the avr-libc patch should not be committed to  cvs head until the binutils and gcc patches have been committed. The avr-libc build will fail if you try to build with unpatched binutils/gcc.

avrs-admin commented 2 years ago

Theodore A. Roth Tue 13 Apr 2004 09:42:51 PM CEST

I've updated the avr-libc patch again (version 3).

Now configure checks if avr-gcc supports the each of the new devices by trying to compile and link a program with the appropriate -mmcu option. If that succeeds, the crt file for the device will be built.

This should let us merge these patches back to the 1.0 branch without requiring the users to upgrade bintuils and gcc.

This will also allow me to commit the patches without fear of breaking the build if the users gcc/binutils don't support the new devices. As such, I'll probably be committing the avr-libc patch to cvs soon.

avrs-admin commented 2 years ago

Theodore A. Roth Wed 14 Apr 2004 09:14:46 PM CEST

I've just checked in the iotn13.h header. If someone would like to review it, that would be appreciated.

Once we get the iocan128.h header into cvs, I'll commit the avr-libc patch.

avrs-admin commented 2 years ago

Theodore A. Roth Thu 15 Apr 2004 03:06:10 AM CEST

Galen Seitz found a problem with version 3 of the avr-libc patch.

When checking for binutils/gcc support, I should not try to link the test program, only try to compile. The linking test will fail if avr-libc is not installed giving a false negative result.

Version 4 should fix this problem.

avrs-admin commented 2 years ago

Theodore A. Roth Thu 15 Apr 2004 08:38:06 PM CEST

Looks like I introduced some more bugs in version 3 of the avr-libc patch.

I had crtXXX instead of crtXXX.o when adding the crt's to the list variables in configure.in.

I also found a typo that stopped the new tiny's from getting built/installed (s/HAS_tiny/HAS_attiny/).

Version 5 of the avr-libc patch fixes this problems.

avrs-admin commented 2 years ago

Theodore A. Roth Sat 24 Apr 2004 01:59:46 AM CEST

The iocan128.h header was committed today, so I've committed the latest version of the patch. This is strictly HEAD branch only until we get the binutils and gcc patches into cvs too.

avrs-admin commented 2 years ago

Theodore A. Roth Sat 24 Apr 2004 02:01:28 AM CEST

I am going to leave this patch open until the binutils and gcc patches are committed.

avrs-admin commented 2 years ago

Eric Weddington Mon 26 Apr 2004 10:37:15 PM CEST

Attached is a modified form of the GCC patch for the new devices. The patch is modified to patch against GCC 3.4.0 instead of HEAD. The changes were in avr.h and were very small to account for some extra text. There may or may not be the possibility that this patch will work for HEAD. It would be interesting to find out if it could.

Eric

avrs-admin commented 2 years ago

Theodore A. Roth Mon 29 Nov 2004 05:14:07 AM CET

Marek committed my patches to gcc on 2004-11-28.

Also note that binutils, gcc and avr-libc now support the mega165, mega325, mega3250, mega645 and mega6450 in addition to those listed in this patch report.

avrs-admin commented 2 years ago

Eric Weddington Tue 01 Feb 2005 11:47:58 PM CET

Reopened this patch until gcc 4.0.0 and binutils 2.16 is released, that way other users can more easily find the required patches.

Also, updated the gcc patch for 3.4.x with the fixes for the tiny13 and tiny2313, moving them to the avr2 "arch". This patch has been tested on gcc 3.4.3.

avrs-admin commented 2 years ago

Anatoly Sokolov Wed 13 Jul 2005 12:32:57 AM CEST

Updated the binutils patch for 2.15 with the fixes for the tiny13 and tiny2313 and add support for ATMega165. Updated the gcc patch for 3.4.4 add support for ATMega165.