[elektro] avr-gcc
Dukai Zoltan
dukai.zoltan at gmail.com
Fri Aug 1 17:51:48 CEST 2008
akkor itt a log ablak:
> "make.exe" all
set -e; avr-gcc -MM -mmcu=atmega48 -I. -g -Os -funsigned-char
-funsigned-bitfields -fpack-struct -fshort-enums -Wall
-Wstrict-prototypes -Wa,-ahlms=main.lst main.c \
| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > main.d; \
avr-gcc -c -mmcu=atmega48 -I. -g -Os -funsigned-char
-funsigned-bitfields -fpack-struct -fshort-enums -Wall
-Wstrict-prototypes -Wa,-ahlms=main.lst main.c -o main.o
vr-gcc -mmcu=atmega48 -I. -g -Os -funsigned-char -funsigned-bitfields
-fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=main.o
main.o --output main.elf -Wl,-Map=main.map,--cref -lm
avr-objcopy -O ihex -R .eeprom main.elf main.hex
avr-objcopy -j .eeprom --set-section-flags=.eeprom="alloc,load" \
--change-section-lma .eeprom=0 -O ihex main.elf main.eep
c:\WinAVR-20070525\bin\avr-objcopy.exe: there are no sections to be copied!
c:\WinAVR-20070525\bin\avr-objcopy.exe: --change-section-lma
.eeprom=0x00000000 never used
make.exe: [main.eep] Error 1 (ignored)
Hatha ki tudsz nezni valamit belole
zulu irta:
> Az -mmcu=atmega32 kapcsoló a parancssorban tartalmazza a procot. Soha nem kellett külön inklúdolni.
>
> > Csak 1 otlet:
> > az atmega32-specifikus headert nem kell includeolni?
>
> A kacsacsőr nem segített.
>
> Dukai Zoltan írta:
>> az en initjeim:
>>
>> #include <inttypes.h>
>> #include <avr/interrupt.h>
>> #include <avr/io.h>
>> #include <avr/pgmspace.h>
>> #include <avr/eeprom.h>
>> #include <string.h>
>> #include <stdlib.h>
>>
>> Probalj kacsacsoroket hasznalni az idezojelek helyett
>
> -zulu
>
> -----------------------------------------
> elektro[-flame|-etc]
>
More information about the Elektro
mailing list