Hi,
ich wollte meinen alten PC jetzt als Bastel-PC einrichten. Dazu hab ich
openSUSE 12.1 draufgespielt. Zum Compilieren verwende ich den
gcc-Compiler. Ich hab also folgende Packete installiert:
- cross-avr-gcc
- cross-avr-binutils
- avr-libc
wenn ich jetzt versuche ein simples Tesprogramm zu kompilieren (mit dem
Makefile aus dem Tutorial auf dieser Seite) bekomme ich immer folgende
Fehlermeldung:
1 | -------- begin --------
|
2 | avr-gcc (GCC) 4.3.3
|
3 | Copyright (C) 2008 Free Software Foundation, Inc.
|
4 | This is free software; see the source for copying conditions. There is NO
|
5 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
6 |
|
7 |
|
8 | Compiling: main.c
|
9 | avr-gcc -c -mmcu=atmega8 -I. -gdwarf-2 -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=main.lst -std=gnu99 -DF_OSC= -MD -MP -MF .dep/main.o.d main.c -o main.o
|
10 |
|
11 | Linking: main.elf
|
12 | avr-gcc -mmcu=atmega8 -I. -gdwarf-2 -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=main.o -std=gnu99 -DF_OSC= -MD -MP -MF .dep/main.elf.d main.o --output main.elf -Wl,-Map=main.map,--cref -lm
|
13 |
|
14 | Creating load file for Flash: main.hex
|
15 | avr-objcopy -O ihex -R .eeprom main.elf main.hex
|
16 | sh: avr-objcopy: command not found
|
17 | make: *** [main.hex] Error 127
|
Ich bin schon seit einiger Zeit am Rumprobieren aber ich finde einfach
keine Lösung. Eigentlich sollte das avr-objcopy meiner Meinung nach doch
zusammen mit der Toolchain installiert werden, oder?
mfg
Michael
PS: Testprogramm
1 | #include <avr/io.h>
|
2 |
|
3 | int main(int argc, char* argv[]){
|
4 | return 0;
|
5 | }
|