How to upgrade the AVR-GCC toolset on a Mac?

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
rptort
 
Posts: 4
Joined: Mon Jul 30, 2012 10:06 pm

How to upgrade the AVR-GCC toolset on a Mac?

Post by rptort »

I'm trying to program an ATtiny84 but I get a compiling error when the program gets above about 50% of its full capacity (~4k of a max 8k).

This is part of the error I get:

Code: Select all

relocation truncated to fit: R_AVR_13_PCREL
I've been told to fix the issue I need to upgrade the AVR-GCC toolset, but I have no idea how to do that on a mac. I downloaded CrossPack, which I believe has an updated avr-gcc, but I'm not sure what to do from there.

Thanks!

User avatar
westfw
 
Posts: 2010
Joined: Fri Apr 27, 2007 1:01 pm

Re: How to upgrade the AVR-GCC toolset on a Mac?

Post by westfw »

Are you trying to upgrade the toolset INSIDE of Arduino?
That's probably ... problematic. There are a lot of interdependancies.


rptort
 
Posts: 4
Joined: Mon Jul 30, 2012 10:06 pm

Re: How to upgrade the AVR-GCC toolset on a Mac?

Post by rptort »

Yes that's ultimately what I'd like to do because the arduino IDE is so easy to use.

I'm quite new to this, but aside from arduino, can I program a chip directly using the command line terminal (and a USBtiny programmer)? If that's possible, it might be easier. However, I was experimenting with it (and reading the tutorials), but I'm pretty lost. After downloading CrossPack, I typed in "avrdude" (without quotes) into the command line and it said something along lines of that directory doesn't exist - rather than displaying all of the avrdude options.

After downloading CrossPack, is there something you have to do to actually install it?

Again, I'm a noob, so please excuse my ignorance. Any help is much appreciated.

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

Return to “Arduino”