Unterschiede zwischen den Revisionen 3 und 4
Revision 3 vom 27.08.2007 20:15
Größe: 3631
Autor: IngoBusker
Kommentar: KategroieEnglish hinzugefügt
Revision 4 vom 27.08.2007 22:16
Größe: 3363
Autor: LeissKG
Kommentar:
Gelöschter Text ist auf diese Art markiert. Hinzugefügter Text ist auf diese Art markiert.
Zeile 1: Zeile 1:
 . {i} '''I have started a translation to english, this sentence will stay here until I think the translation is complete. Untranslated sections are still in german.'''
Zeile 17: Zeile 15:
Um einen AVR-Controller zu programmieren, benötigt man einen ISP-Adatper. Diese werden z.B. Parallelport oder Seriellport des PCs angeschlossen. If you want to program an AVR controller you need an In-Circuit-Programming interface. These can be connected to a parallel, serial or USB port of the PC.
Zeile 19: Zeile 17:
Wenn man im Internet sucht, wird man feststellen, dass es diverse ISP-Adatper-Varianten gibt. If you search the Internet you will see that there many variants of ICP interfaces.
 
With the SerCon you can program all PCB's from our Homepage ( also the PCB's from mikrocontroller.com ) [[BR]][[BR]]
The RS232/TTL converter is needed for the setup, parameterizing and debugging with the [wiki:Self:en/MikroKopter-Tool MikroKopter-Tool].
If you want you can also construct the circuit on a prototype PCB...
Zeile 21: Zeile 23:
Mit dem SerCon kann man alle Platinen von unserer Homepage ( auch die von mikrocontroller.com ) programmieren. [[BR]][[BR]] Der RS232/TTL-Wandler wird für die Inbetriebnahme, Parametrierung & Debuggen mit unserem MikroKopter-Tool benötigt. In the download area you will find a detailed description, a parts list, a schematic and so on...
Zeile 23: Zeile 25:
Wer will, kann natürlich die Schaltung auch auf Lochraster aufbauen... = Programming the ATMEGA644 of the Main PCB with PonyProg =
/!\ ToDo: Find a better location for this information
Zeile 25: Zeile 28:
In Download-Bereich findet man eine ausführliche Beschreibung, Stückliste, Schaltplan, usw... In the past there have been difficulties with AvrDude.
Zeile 27: Zeile 30:
= Den ATMEGA644 der Hauptplatine mit PonyProg programmieren =
/!\ ToDo: Besseren Ort für diese Information finden

Mit dem AvrDude gab es in der Vergangenheit immer wieder Probleme.

Nun es gibt eine Version von PonyProg, mit der sich der ATMEGA644 über das SerCon programmieren lässt: '''!PonyProg V2.6g'''
There is now a version of PonyProg that can program the ATMEGA644 using the SerCon: '''!PonyProg V2.6g'''
Zeile 35: Zeile 33:
/!\ Achtung: die aktuellere V2.7a geht nicht! Der ATMEGA644 ist nicht mehr in der Datenbank. /!\ Attention: the newer V2.7a does not work! The ATMEGA644 is not in the device database.
Zeile 37: Zeile 35:
/!\ Kommentar/Berichtigung zu obiger Warnung: in der [[http://www.lancos.com/prog.html momentan aktuellsten Version]] (V2.'''0'''7a) ist der ATMEGA644 doch als Auswahl verfügbar. ''(tatsächliches Flashen konnte ich aber bisher nicht testen)'' /!\ Comment/Correction to the warning above: in the [[http://www.lancos.com/prog.html newest Version]] (V2.'''0'''7a) you can chose the ATMEGA644. ''( I have not tested programming with version )''
Zeile 41: Zeile 39:
Als Controller wird der '''ATMEGA644 '''gewählt. Chose the '''ATMEGA644 ''' as controller.
Zeile 43: Zeile 41:
Der SerCon wird unter Interface-Setup so eingestellt: To use the SerCon chose the following in Interface-Setup:
Zeile 47: Zeile 45:
[[BR]] Die '''Fuses''' müssen so eingestellt werden: [[BR]] You must select the following '''Fuses''':
Zeile 51: Zeile 49:
Die Bedienung ist wie bei den BL-Reglern (ggf. in die Anleitung dazu schauen) Operation is similar to the BL-Ctrl ( if necessary look in the instructions manual )
Zeile 53: Zeile 51:
[[BR]]''ACHTUNG:'' Spielt man auf die Hauptplatine die Flight-Control Software mit '''Bootloader''', so müssen folgende Fusebits gesetzt werden, damit der Bootloader später auch verwendbar ist: [[BR]]
/!\
''Attention:'' If you use the Flight-Control Software with '''Bootloader''', you have to set the following Fusebits to be able to use the Bootloader afterwards:

TableOfContents([maxdepth])

Serieller Konverter (SerCon) ( Serial Converter )

ImageLink(http://mikrocontroller.cco-ev.de/images/kopter/Sercon_kl.jpg,http://mikrocontroller.cco-ev.de/images/kopter/Sercon.jpg)

The Serial Converter has two functions:

SI-PROG: Serial In Circuit Programming interface for programs like PonyProg and avrdude

RS232/TTL-Converter: Converts the 5V TTL level of the AVR to the levels needed by a PC serial interface.

Why do I need that ?

If you want to program an AVR controller you need an In-Circuit-Programming interface. These can be connected to a parallel, serial or USB port of the PC.

If you search the Internet you will see that there many variants of ICP interfaces.

With the SerCon you can program all PCB's from our Homepage ( also the PCB's from mikrocontroller.com ) BRBR The RS232/TTL converter is needed for the setup, parameterizing and debugging with the [wiki:en/MikroKopter-Tool MikroKopter-Tool]. If you want you can also construct the circuit on a prototype PCB...

In the download area you will find a detailed description, a parts list, a schematic and so on...

Programming the ATMEGA644 of the Main PCB with PonyProg

/!\ ToDo: Find a better location for this information

In the past there have been difficulties with AvrDude.

There is now a version of PonyProg that can program the ATMEGA644 using the SerCon: PonyProg V2.6g

/!\ Attention: the newer V2.7a does not work! The ATMEGA644 is not in the device database.

/!\ Comment/Correction to the warning above: in the http://www.lancos.com/prog.html newest Version (V2.07a) you can chose the ATMEGA644. ( I have not tested programming with version )

BR

Chose the ATMEGA644 as controller.

To use the SerCon chose the following in Interface-Setup:

http://mikrocontroller.cco-ev.de/images/kopter/pony_ser.gif

BR You must select the following Fuses:

http://mikrocontroller.cco-ev.de/images/kopter/pony644.gif

Operation is similar to the BL-Ctrl ( if necessary look in the instructions manual )

BR /!\ Attention: If you use the Flight-Control Software with Bootloader, you have to set the following Fusebits to be able to use the Bootloader afterwards:

http://mikrocontroller.cco-ev.de/images/kopter/Atemega644Fusebits.png

BR

Problem Solution: Write failed

If the programming fails with the message "Write failed" the reason may be a wrong parameter for PonyProg. In the PonyProg INI-File change the following values:

  • ATMegaPageWriteDelay=100
  • AVRByteWriteDelay=50
  • AVREraseDelay=100

(The Version 2.06g of PonyProg has 2 ini-files: PONYPROG2000.INI and PonyProg2000_26g.ini. If in doubt change both ).

Problem Solution: locked out of the processor

If after setting inaccurate fuse bits ( or a failed programming with avrdude ) there is no longer access to the processor, you may be able to resurrect it with an external oscillator. See the wiki article [wiki:AVRWiederbelebung AVRWiederbelebung].

BR