Hi,
ich schreibe ein Minimalprogramm für einen Attiny2313a. Das Programm
lässt eine LED im Sekundentakt blinken (entstammt dieser Seite).
Das funktioniert auf.
Füge ich nun eine neue Funktionsdefinition ein, so funktioniert das
Programm nicht mehr, gar nichts blinkt. Die neue Funktion wird nicht
einmal aufgerufen.
Was ist da los?
So kompiliere ich:
1 | avr-gcc src\gutfall.c -D__AVR_ATtiny2313A__ -o image\gutfall.elf -O2 -Wall
|
2 | avr-objcopy -O ihex image\gutfall.elf image\gutfall.hex
|
3 | avrdude.exe -c usbasp -pt2313 -Uflash:w:image\schlechtfall.hex:a
|
Compilerversion:
1 | avr-gcc --version
|
2 | avr-gcc (AVR_8_bit_GNU_Toolchain_3.5.3_1700) 4.9.2
|