Code not compiling binutils(cvs), gcc 3.4.4, avr-libc-1.2.5

MiniPOV4 and previous versions

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
sebbie
 
Posts: 3
Joined: Sun Aug 07, 2005 4:21 pm

Code not compiling binutils(cvs), gcc 3.4.4, avr-libc-1.2.5

Post by sebbie »

Hey,

I'm having a problem getting the sample code to compile (unchanged). Here is the error I'm getting

Code: Select all

minipov.c:0: error: MCU `attiny2313' supported for assembler only
In file included from minipov.c:1:
And then a bunch of errors about things not being defined because the device type is not defined.

I'm currently using binutils checked out from cvs (as of today 8/7/5), gcc-3.4.4, and avr-libc-1.2.5 .

gcc 3.4.4 is the latest "release" version of gcc (I think). Does anyone else have this problem? I'm compiling on FreeBSD 5.2.1-RELEASE-p8.

sebbie
 
Posts: 3
Joined: Sun Aug 07, 2005 4:21 pm

Post by sebbie »

Also just tried binutils 2.16, still the same error.

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Post by adafruit »

you dont have the latest version because its supported in the latest version. check what winavr uses and compile that...

sebbie
 
Posts: 3
Joined: Sun Aug 07, 2005 4:21 pm

Post by sebbie »

strange. WinAVR uses older versions than what I'm using.
WinAVR uses:
binutils-2.15
gcc-3.4.3
avr-libc-1.2.3

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Post by adafruit »

sorry i dont know :(
the very latest winavr works (feb 2005 release or something)

error1
 
Posts: 20
Joined: Thu Aug 04, 2005 1:34 pm

Post by error1 »

Worked just fine here too when i tried it a few days ago, i installed it on a nearly clean install of windows though. :)

Guest
 

Post by Guest »

I was able to compile it on winavr no problem. I was just trying to get it working under freebsd so I could do dev work while on the bus in the morning (and my laptop is freebsd)

remmelt
 

Post by remmelt »

Same here. Under Ubuntu there is no include file for the tiny2313, although it is recognised. The compiler knows about the chip, but does not have the proper files to do anything with it... Too bad! I guess we need to wait for an update. Or write one.

In the meantime I have programmed mine in Windows, which works fine. I'd love to go Linux-only though.

Guest
 

Post by Guest »

Winavr uses a Patched Binutil , that reckognizes the new MCU's

/Bingo

Guest
 

Post by Guest »

Ohh btw

This might come in handy (though i haven't tried it)
Building the AVR Toolchain under Linux
A. J. Erasmus made this homepage
http://home.telkomsa.net/antera/
With a "Recipe" for building a "WinAVR" compatible toolchain under linux (Untested by me)
Do start with the Readme
There is also the new avr-libc 1.25 from savannah

Well guyzz & "Lady .. Ladies"

Have a look at www.avrfreaks.net in the AVR-GCC forum

/Bingo

Locked
Please be positive and constructive with your questions and comments.

Return to “MiniPOV”