[chbot] Issue with avr-gcc and ATtiny3227

Mark Atherton markaren1 at xtra.co.nz
Wed Jan 1 01:42:31 GMT 2025


Hi All,

I have been using avr-gcc 7.30 by way of a makefile for use with the 
ATmega328P target without any problems for ages,

A couple of months ago the ATtiny404 was added, by downloading and 
installing the 4 required files from the Microchip site device-packs 
(packs.download.microchip.com). Again, without any issues.

A couple of days ago the  ATtiny3227 was added using the same process as 
above. All required C files compile OK, but the linker claims that it 
can’t find crtattiny3227.o, which is odd since it is in the same 
directory as crtattiny404.o (which works).

Full error message is 
c:/programfiles/avr8/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ld.exe: 
cannot find crtattiny3227.o: No such file or directory

<yes, there is a directory called programfiles>

Finally I repeated the above for the ATtiny827 and avr-gcc has no idea 
what an attiny827 is !

This is the most bewildering collection of faults I have seen for ages. 
I guess that the attiny device-pack which was downloaded could be 
corrupt (I have tried twice).

Just found that the free XC8 compiler supports the 3227, just hope it 
can be run from the command line.

Thoughts please.

HNY, Mark



More information about the Chchrobotics mailing list