| Author |
Message |
|
|
Posted: Mar 11, 2012 - 09:20 AM |
|

Joined: Mar 08, 2012
Posts: 9
|
|
|
|
|
|
|
Posted: Mar 12, 2012 - 09:32 AM |
|


Joined: Jul 18, 2005
Posts: 62296
Location: (using avr-gcc in) Finchingfield, Essex, England
|
|
|
|
|
|
|
Posted: Mar 12, 2012 - 01:29 PM |
|

Joined: Jan 25, 2012
Posts: 47
Location: wroclaw, poland
|
|
Hi All,
There is a problem still exist when you try to use avr-gcc with devices which has more than 64k of the flash memory.
Whole problem is described in the thread:
http://www.avrfreaks.net/index.php?name ... highlight=
Is it possible to apply patches from above thread ? |
|
|
| |
|
|
|
|
|
Posted: Mar 12, 2012 - 01:33 PM |
|


Joined: Jul 18, 2005
Posts: 62296
Location: (using avr-gcc in) Finchingfield, Essex, England
|
|
But did you follow the link to the GCC bug report?
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45263
Georg-Johann Lay (SprinterSB on this board) fixed it in April 2011. So GCC versions issued after that should have the problem fixed. Maybe try one of his 4.7 builds? |
_________________
|
| |
|
|
|
|
|
Posted: Mar 13, 2012 - 07:21 AM |
|

Joined: Jan 25, 2012
Posts: 47
Location: wroclaw, poland
|
|
| Can someone apply above patch (for 256k devices) to 4.5.1 ??? |
|
|
| |
|
|
|
|
|
Posted: Mar 14, 2012 - 01:42 PM |
|


Joined: Apr 25, 2004
Posts: 3809
Location: Denmark
|
|
I can't ...
I'm tracking the FreeBSD repos , and won't change that decision.
/Bingo |
|
|
| |
|
|
|
|
|
Posted: Mar 21, 2012 - 01:04 PM |
|

Joined: Mar 17, 2012
Posts: 7
|
|
|
|
|
|
|
Posted: Mar 21, 2012 - 01:29 PM |
|


Joined: Mar 27, 2002
Posts: 18555
Location: Lund, Sweden
|
|
|
|
|
|
|
Posted: Apr 14, 2012 - 04:39 PM |
|


Joined: Aug 04, 2004
Posts: 1822
Location: Davie, FL
|
|
I built the avr-gcc tools using the script on this thread to build the 4.5.1 version. It built several compiler executables including avr-gcc, avr_g++, avr_c++. Arduino is giving me the following error:
error: Cannot run program "avr-g++":, the manual states a missing avr-gcc-c++ program. Maybe it expects a simlink to avr-c++ or avr-g++? Any ideas? |
|
|
| |
|
|
|
|
|
Posted: Apr 14, 2012 - 08:21 PM |
|


Joined: Apr 25, 2004
Posts: 3809
Location: Denmark
|
|
@kscharf
I have an avr-g++ in my dir ,built from the same script
Code:
$ ls -l /usr/local/avr/bin
total 19940
-rwxr-xr-x 1 root root 126332 2012-03-08 17:33 avarice
-rwxr-xr-x 1 root root 598352 2012-03-08 17:33 avr-addr2line
-rwxr-xr-x 2 root root 626868 2012-03-08 17:33 avr-ar
-rwxr-xr-x 2 root root 813460 2012-03-08 17:33 avr-as
-rwxr-xr-x 2 root root 236996 2012-03-08 17:33 avr-c++
-rwxr-xr-x 1 root root 598160 2012-03-08 17:33 avr-c++filt
-rwxr-xr-x 1 root root 232900 2012-03-08 17:33 avr-cpp
-rwxr-xr-x 1 root root 297380 2012-03-08 17:33 avrdude
-rwxr-xr-x 2 root root 236996 2012-03-08 17:33 avr-g++
-rwxr-xr-x 2 root root 232900 2012-03-08 17:33 avr-gcc
-rwxr-xr-x 2 root root 232900 2012-03-08 17:33 avr-gcc-4.5.1
-rwxr-xr-x 1 root root 15975 2012-03-08 17:29 avr-gccbug
-rwxr-xr-x 1 root root 30244 2012-03-08 17:33 avr-gcov
-rwxr-xr-x 1 root root 4169544 2012-03-08 17:36 avr-gdb
-rwxr-xr-x 1 root root 4169549 2012-03-08 17:36 avr-gdbtui
-rwxr-xr-x 1 root root 668752 2012-03-08 17:33 avr-gprof
-rwxr-xr-x 2 root root 1063540 2012-03-08 17:33 avr-ld
-rwxr-xr-x 1 root root 1737 2012-03-08 17:33 avr-man
-rwxr-xr-x 2 root root 611024 2012-03-08 17:33 avr-nm
-rwxr-xr-x 2 root root 813232 2012-03-08 17:33 avr-objcopy
-rwxr-xr-x 2 root root 878352 2012-03-08 17:33 avr-objdump
-rwxr-xr-x 2 root root 626900 2012-03-08 17:33 avr-ranlib
-rwxr-xr-x 1 root root 295296 2012-03-08 17:33 avr-readelf
-rwxr-xr-x 1 root root 650224 2012-03-08 17:36 avr-run
-rwxr-xr-x 1 root root 609616 2012-03-08 17:33 avr-size
-rwxr-xr-x 1 root root 602416 2012-03-08 17:33 avr-strings
-rwxr-xr-x 2 root root 813232 2012-03-08 17:33 avr-strip
-rwxr-xr-x 1 root root 1071 2012-03-08 17:12 ice-gdb
-rwxr-xr-x 1 root root 51 2012-03-08 17:12 ice-insight
-rwxr-xr-x 1 root root 264 2012-03-08 17:12 kill-avarice
-rwxr-xr-x 1 root root 225 2012-03-08 17:12 start-avarice
/Bingo |
|
|
| |
|
|
|
|
|
Posted: Apr 14, 2012 - 08:39 PM |
|


Joined: Aug 04, 2004
Posts: 1822
Location: Davie, FL
|
|
I seem to have avr-c++, avr-g++, and avr-gcc in /usr/local/avr/bin as you do but the arduino ide gives me the error:
"Cannot run program "avr-g++" java:io Exception:error=2, No such file or directory. My path is set so I can find these files from a user terminal shell why can't the Arduino IDE find it? Maybe it's looking on a specific path but I don't know what that is?
The arduino site says to install avr-gcc-c++ whatever THAT is.
Maybe a simlink to something else? |
|
|
| |
|
|
|
|
|
Posted: Jul 08, 2012 - 07:53 PM |
|


Joined: Jul 18, 2005
Posts: 62296
Location: (using avr-gcc in) Finchingfield, Essex, England
|
|
NB Atmel have a 4.6.2 for Linux (and Windows) available at:
http://www.atmel.com/tools/ATMELAVRTOOL ... LINUX.aspx
this is the same toolchain that is found in the first release of AVR Studio and is not bad (like some of their previous attempts) and has the advantage of supporting a lot of new AVR models like the USB enabled Xmegas and the small tiny4/5/9/10/20/40 devices. |
_________________
|
| |
|
|
|
|
|
Posted: Jul 08, 2012 - 11:31 PM |
|

Joined: Dec 15, 2008
Posts: 923
Location: Brisbane, Australia
|
|
|
clawson wrote:
NB Atmel have a 4.6.2 for Linux (and Windows) available at:
Cliff,
We're current users of 30-Apr-2010 toolchain (gcc version 4.3.4), though we really only use the compiler, not the debugger or loader (we just use avr studio for a bootloader once).
Is there much of an advantage to Atmel's new toolchain to warrant changing for new projects (targets are generally xmega A4 series).
I did see a code space saving:
Old:
Code:
Size after:
AVR Memory Usage
----------------
Device: atxmega128a1
Program: 29822 bytes (21.4% Full)
(.text + .data + .bootloader)
Data: 2478 bytes (30.2% Full)
(.data + .bss + .noinit)
New:
Code:
Size after:
AVR Memory Usage
----------------
Device: atxmega128a1
Program: 28844 bytes (20.7% Full)
(.text + .data + .bootloader)
Data: 2478 bytes (30.2% Full)
(.data + .bss + .noinit)
-- Damien
p.s. The script and the ubuntu package is excellent. It saves us a huge number of hours in sorting out our own toolchain on Linux. The effort is deeply appreciated. |
|
|
| |
|
|
|
|
|
Posted: Jul 09, 2012 - 09:35 AM |
|


Joined: Jul 18, 2005
Posts: 62296
Location: (using avr-gcc in) Finchingfield, Essex, England
|
|
| I wouldn't change for changes sake but if you pick one of the new AVRs then I think this is the only toolchain that has support for the additional models. |
_________________
|
| |
|
|
|
|
|
Posted: Jul 09, 2012 - 09:07 PM |
|


Joined: Apr 25, 2004
Posts: 3809
Location: Denmark
|
|
|
|
|
|
|
Posted: Jul 24, 2012 - 03:58 PM |
|

Joined: Jan 06, 2003
Posts: 3
|
|
| why can't read the script? |
|
|
| |
|
|
|
|
|
Posted: Jul 27, 2012 - 07:59 PM |
|


Joined: Apr 25, 2004
Posts: 3809
Location: Denmark
|
|
|
|
|
|
|
Posted: Aug 05, 2012 - 08:34 PM |
|


Joined: Nov 16, 2001
Posts: 411
Location: Grimstad, NO(r)WAY!
|
|
ftp://ftp.dkuug.dk (for binutils and gcc) Seems to be down. Permanent or just wait?
Its the getfiles.sh that fails.
I may resolve it for binutils by using this link instead (or?)
ftp://ftp.gnu.org/gnu/binutils/binutils-2.20.1.tar.bz2
And for gcc link
ftp://ftp.gnu.org/gnu/gcc/gcc-4.5.1/gcc-4.5.1.tar.bz2
Or has it been done changes to the archives that would bring me troubles if using the mentioned ones... I downloaded today, 5.aug...
By the way, if no changes, why not use the above as default in the script? |
_________________ Regards
Vidar (Z)
"There is nothing new to be discovered in physics now, All that remains is more and more precise measurement." Lord Kelvin
|
| |
|
|
|
|
|
Posted: Aug 06, 2012 - 12:25 AM |
|

Joined: Oct 07, 2009
Posts: 248
|
|
Goodnight, today I have tried to intall the latest .deb package under ubuntu 12.04 LTS and got this error:
Code:
dpkg: error processing avr-gcc-4.5.1-avrfreaks-2011-dec-29-u10.04.i386.deb (--install):
parsing file '/var/lib/dpkg/tmp.ci/control' near line 10 package 'avr-gcc-4.5.1-avrfreaks-2011-dec-29-u10.04.i386':
blank line in value of field 'Description'
Errors were encountered while processing:
avr-gcc-4.5.1-avrfreaks-2011-dec-29-u10.04.i386.deb
|
|
|
| |
|
|
|
|
|
Posted: Aug 06, 2012 - 05:15 AM |
|

Joined: Dec 15, 2008
Posts: 923
Location: Brisbane, Australia
|
|
|
keepcool wrote:
Goodnight, today I have tried to intall the latest .deb package under ubuntu 12.04 LTS and got this error:
Code:
dpkg: error processing avr-gcc-4.5.1-avrfreaks-2011-dec-29-u10.04.i386.deb (--install):
parsing file '/var/lib/dpkg/tmp.ci/control' near line 10 package 'avr-gcc-4.5.1-avrfreaks-2011-dec-29-u10.04.i386':
blank line in value of field 'Description'
Errors were encountered while processing:
avr-gcc-4.5.1-avrfreaks-2011-dec-29-u10.04.i386.deb
Actually, I got something similar too, though it was on an upgrade from 11.10 to 12.04. The fix is to remove the blank lines in the offending control files (mine were the dpkg cache files over an upgrade where it broke), but it should be fixed more permanently.
-- Damien |
|
|
| |
|
|
|
|
|