Nein, warum sollte ich auch, es ist ja auf der Commandozeile mit -DF_CPU=1000000UL definiert.
Nein, warum sollte ich auch, es ist ja auf der Commandozeile mit -DF_CPU=1000000UL definiert.
Zeig doch mal die Kommandozeile
Bild hier
Atmel’s products are not intended, authorized, or warranted for use
as components in applications intended to support or sustain life!
zum bauen und um daraus ne hex zu machenCode:avr-gcc -o test.elf main.c -Os -DF_CPU=1000000UL -mmcu=atmega8 -std=gnu99
Und noch ein paar infosCode:avr-objcopy -O ihex test.elf test.hex
Hoffe das hilft.Code:$avr-gcc --version avr-gcc (GCC) 4.5.3 Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $avr-objcopy --version GNU objcopy (GNU Binutils) 2.20.1.20100303 Copyright 2009 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License version 3 or (at your option) any later version. This program has absolutely no warranty.
Watchdog ist aus?
Stannungsversorgung ist sauber?
Welchen Code macht der Compiler?
Setze mal zusätzlich -dp -save-temps und zeige das s-File (ist Text)
Disclaimer: none. Sue me.
Das sollte das *.hex File sein mit den zwei Leds.
@ SprinterSB ich geh mal davon aus dass er aus ist, ich hab den AVR in meinen Probierereien schon auf Werkseinstellungen zurückgesetzt.
@Hubert.G Werd ich heute ausprobieren
Ich weis zwar nicht was das Programm hätte tun sollen, aber ich weis was es tut, nähmlich nichts.
Keine Sichtbare Reaktion des Microcontrollers.
Auch erscheint mir das Programm mit 202 byte ein wenig klein.
Ich werde mir mal noch den ASM output des GCC ansehen.
Geändert von Thalhammer (09.10.2012 um 16:13 Uhr)
Also bei mir tut die Hex vom Hubert genau das was sie soll: 5x PB1 an/aus, PB0 an, 5x PB1 an/aus, PB0 aus und wieder von vorne...
Wo der Fehler bei Dir liegt kann ich nicht sagen, ich tippe: Frequenz...oder einfach falschrum eingesetzt
viele grüße
Geändert von HeXPloreR (09.10.2012 um 16:37 Uhr)
Lesezeichen