Hi all,
I am trying to setup an AVR development environment on my Solaris 10
machine as follows:
mkdir /usr/local/avr/
mkdir /usr/local/avr/bin
cd /usr/src
gunzip binutils-2.20.tar.gz
tar xvf binutils-2.20.tar
cd binutils-2.20
./configure
Hi Eric,
Normally binutils is built in a separate build directory, not built in
its source tree.
I don't know for sure if you really need to use the --program-prefix
configure switch in binutils and gcc. The build process normally does
that on other hosts, but I don't know how it behaves on
Hi Jonathan,
I can offer some help as I built it before on Solaris 10. It was quite
a while ago but I think that everything should work.
Thanks a lot for your offer. I modified the build process to
cd /usr/src
gunzip binutils-2.20.tar.gz
tar xvf binutils-2.20.tar
Hi all,
The build is still in progess, so no success so far.
cd /usr/src
gunzip binutils-2.20.tar.gz
tar xvf binutils-2.20.tar
cd binutils-2.20
./configure --target=avr --prefix=/usr/local/avr
make
make install
cd /usr/src
Hi all,
Thank you for trying. This seems not to encouraging.
But, at least this tool tests before it runs into unclear
errors... ;-)
Andreas just sent me a personal email saying that he finally got the
toolchain to build.
Well, I got binutils and gcc successfully built with
Hi all,
...
make[4]: Entering directory
`/usr/local/avr/src/avr-libc-1.6.7/avr/lib/avr2'
avr-gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../common
-I../../../include -g -Wall -W -Wstrict-prototypes
-D__COMPILING_AVR_LIBC__ -mcall-prologues -Os -x assembler-with-cpp
-Wa,-gstabs
Hi Eric,
Am I missing an environment variable?
I've been bitten by this several times. IIRC, you're supposed to use
GNU make 3.81. That should solve the problem.
It did solve the problem! Unbelievable!
Thanks so much,
Andreas
___
Hi Eric,
Am I missing an environment variable?
I've been bitten by this several times. IIRC, you're supposed to use
GNU make 3.81. That should solve the problem.
I have followed the guide
http://www.micahcarrick.com/02-15-2006/installing-gnu-tools-avr-
gcc.html
and have avr-gcc and
Hi all,
this is my attempt to build avrdude on Solaris 10.
cd /opt/temp
pkgadd -d autoconf-2.65-sol10-x86-local
pkgadd -d automake-1.11.1-sol10-x86-local
pkgadd -d m4-1.4.12-sol10-x86-local
cd /usr/src/Arduino
svn co
On Mittwoch, Dez 16, 2009, at 21:16 Europe/Berlin, Joerg Wunsch wrote:
gcc -DHAVE_CONFIG_H -I. -DCONFIG_DIR=\/usr/local/etc\ -Wall -g -O2
-MT libavrdude_a-config_gram.o -MD -MP -MF
.deps/libavrdude_a-config_gram.Tpo -c -o libavrdude_a-config_gram.o
`test -f 'config_gram.c' || echo
Hi all,
• I have built the avr tool chain on Solaris
• I have VirtualBox (Windows XP) on the Solaris machine
• I ave purchased a AMtel AVR programmer (AVRISPmkII). This thing has
an USB-interface
• I have an Arduino board
• I have written a first Hello World program, built that with avr-gcc
Hi all,
thanks for your responses that helped a lot to solve the problem:
The truncation is probably happening here--- utoa() takes an unsigned
int, which is 16 bits on this architecture. Try using ultoa() instead
and see if that helps. Compiling with the -Wconversion option turned on
might
HI all,
I have programmed ATMega8 in the past (worked great). I have purchased a
ATMega2560 board now and am trying to get my avr gcc tool chain to accept this
chip:
Makefile
==
# AVR-GCC Makefile
PROJECT=toggle_led
SOURCES=main.c
HEADERS=
CC=avr-gcc
OBJCOPY=avr-objcopy
Hi Tom,
#define F_CPU 1600UL /* 16 MHz CPU clock */
#include util/delay.h
#define OUTPUTPORT PORTB
#define OUTPUTPIN PB7
int main (void)
{
DDRB = 0xff; // all outputs
while (1) /* loop forever */
{
if ((PORTB _BV(PB7)) 0) PORTB =
Hi Tom,
#define F_CPU 1600UL /* 16 MHz CPU clock */
#include avr/io.h
#include util/delay.h
#define OUTPUTPORT PORTB
#define OUTPUTPIN PB7
int main (void) {
DDRB = 0xff; // all outputs
while (1) /* loop forever */
{
if ((PORTB _BV(PB7))
Begin forwarded message:
From: Jan Waclawek konf...@efton.sk
Date: November 27, 2014 8:40:36 AM GMT+01:00
To: Andreas Höschler ahoe...@smartsoft.de
Subject: Re: [avr-gcc-list] Programming ATMega2560
That's strange as by 4.3.3 the avr6 (subfamily/group where both ATMega256x
belong) support
Hi Jan and all,
That's strange as by 4.3.3 the avr6 (subfamily/group where both ATMega256x
belong) support was certainly already established. I use 4.2.2 for my
daily work with ATMega2560.
But it is known to be tricky to build a working package. Your free way is
too suspicious.
I googled
Hi Jan,
I googled a lot on this problem and this time tried to build the chain on
MacOSX (recipe below). I still hit the same problem. It simply won't build
code for the atmega2560 chip! :-(
The device list in gcc is in gcc/config/avr/avr-devices.c - can you see
atmega2560/2561 there?
I
Hi Jan,
I checked the Linux scripts you pointed to and tried to apply what they have
therein. They patch the gcc 4.5.1 sources. Part of the patch is bringing the
avr-devices.c file into the gcc source tree.
I could run all the patches on my gcc 4.5.1 tree. Unfortunately building the
gcc fails
Hi all,
I checked the Linux scripts you pointed to and tried to apply what they
have therein. They patch the gcc 4.5.1 sources. Part of the patch is
bringing the avr-devices.c file into the gcc source tree.
You do know that you'd have to apply the included binutils patches to
binutils
Hi,
I would like to thank you all for helping me out while setting up the tool
chain on MacOSX. I finally got it working!! For whomever is interested here is
the list of required steps:
Thanks a lot,
Andreas
Hi all,
Wow, what a process!
Thank you so much for documenting the whole thing so the rest of us
don't have to piece it together for ourselves!
Just for the record, the following chain of commands works on Sun Solaris (10
Intel)! :-)
Best wishes,
Andreas
Hi all,
I am close to tearing my hair out. After having established the avr tool chain
I tried out a very simple C-program (see below) on an SainSmart Mega2560 board
programmed into the chip by making use of
/Applications/Arduino.app//Contents/Resources/Java/hardware/tools/avr/bin/avrdude:
line.Wouter
Op 3 dec. 2014 22:12 schreef "Andreas Höschler" ahoe...@smartsoft.de:Hi all,I am close to tearing my hair out. After having established the avr tool chain I tried out a very simple C-program (see below) on an SainSmart Mega2560 board programmed into the chip by making use of/Ap
Hi Paweł,
$(PROJECT).hex: $(PROJECT).out
$(OBJCOPY) -j .text -O ihex $(PROJECT).out $(PROJECT).hex
I would say that here is the problem, change this to:
$(OBJCOPY) -R .eeprom -O ihex $(PROJECT).out $(PROJECT).hex
That was it
Thanks so much! You probably can't imagine how
Hi Richarf, Simon and Senthil,
thanks a lot for your additional hints, explanations and links. This starts to
make sense now for me!
Back to coding the beast! :-)
Best wishes,
Andreas
___
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
26 matches
Mail list logo