Gast
#706406
Hallo, ich weiss, das Thema hat nen Bart, aber ich bekomme es einfach nicht hin. Habe nen Atmega16, Bootloader von Peter Fleury. Kommunikation über Uart ist getestet, und funktioniert mit Hyperterminal. Auszug Makefile: # MCU name MCU = atmega16 # Processor frequency. # This will define a symbol, F_CPU, in all source code files equal to the # processor frequency. You can then use this symbol in your source code to # calculate timings. Do NOT tack on a 'UL' at the end, this will be done # automatically to create a 32-bit value in your source code. F_CPU = 7273800 # Bootloader # Please adjust if using a different AVR # 0x0e00*2=0x1C00 for ATmega8 512 words Boot Size BOOTLOADER_ADDRESS = 3C00 Dann Bootloader drauf, Häkchen bei BOOTRST in AVRProg/Advanced gesetzt. Wenn ich den PIN D2 auf 0 ziehe, geht auch brav die LED an. Funktioniert auch, wenn ich das nach dem Reset mache. Sieht so aus als wenn der Controller sich selbst resetet, weil noch kein Programm drauf ist (ausser Bootloader...) Wenn ich nun versuche mit AVRStudio eine Verbindung herzustellen, findet er nichts. In Hyperterminal bekomme ich auf ein gesendetes Zeichen ein Echo. Ich weiss nicht mehr weiter und bitte um Hilfe !!! Was kann ich noch falsch gemacht haben???? Torsten