Unterschiede zwischen den Revisionen 5 und 10 (über 5 Versionen hinweg)
Revision 5 vom 28.08.2007 17:13
Größe: 3162
Autor: LeissKG
Kommentar:
Revision 10 vom 28.04.2010 22:56
Größe: 3151
Autor: anonym
Kommentar: converted to 1.6 markup
Gelöschter Text ist auf diese Art markiert. Hinzugefügter Text ist auf diese Art markiert.
Zeile 1: Zeile 1:
||<tablewidth="200px" tablestyle="TEXT-ALIGN: center"bgcolor="#ffffa0">http://mikrocontroller.cco-ev.de/images/deu.gif Seite in [:SerCon:deutsch] ||
[[TableOfContents([maxdepth])]]
||<tablewidth="200px" tablestyle="TEXT-ALIGN: center"bgcolor="#ffffa0"> {{http://mikrocontroller.cco-ev.de/images/deu.gif}} Seite in [[SerCon|deutsch]] ||
<<TableOfContents>>
Zeile 5: Zeile 5:
[[ImageLink(http://mikrocontroller.cco-ev.de/images/kopter/Sercon_kl.jpg,http://mikrocontroller.cco-ev.de/images/kopter/Sercon.jpg)]] [[http://mikrocontroller.cco-ev.de/images/kopter/Sercon.jpg|{{http://mikrocontroller.cco-ev.de/images/kopter/Sercon_kl.jpg}}]]
Zeile 8: Zeile 8:
 
Zeile 10: Zeile 10:
 
Zeile 13: Zeile 13:
Zeile 15: Zeile 14:
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 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 18: Zeile 17:
 
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...

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 [[en/MikroKopter-Tool|MikroKopter-Tool]]. If you want you can also construct the circuit on a prototype PCB...
Zeile 28: Zeile 25:
In the past there have been difficulties with AvrDude. In the past there have been difficulties with [[AVRDude]].
Zeile 35: Zeile 32:
[[BR]] <<BR>>
Zeile 37: Zeile 34:
Chose the '''ATMEGA644 ''' as controller. Chose the '''ATMEGA644 '''as controller.
Zeile 41: Zeile 38:
http://mikrocontroller.cco-ev.de/images/kopter/pony_ser.gif {{http://mikrocontroller.cco-ev.de/images/kopter/pony_ser.gif}}
Zeile 43: Zeile 40:
[[BR]] You must select the following '''Fuses''': <<BR>> You must select the following '''Fuses''':
Zeile 45: Zeile 42:
http://mikrocontroller.cco-ev.de/images/kopter/pony644.gif {{http://mikrocontroller.cco-ev.de/images/kopter/pony644.gif}}
Zeile 49: Zeile 46:
[[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:
<<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:
Zeile 52: Zeile 48:
http://mikrocontroller.cco-ev.de/images/kopter/Atemega644Fusebits.png {{http://mikrocontroller.cco-ev.de/images/kopter/Atemega644Fusebits.png}}
Zeile 54: Zeile 50:
<<BR>>
Zeile 55: Zeile 52:
[[BR]]
Zeile 58: Zeile 54:
Zeile 64: Zeile 61:
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:Self:AVRWiederbelebung AVRWiederbelebung]. 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 [[AVRWiederbelebung]].
Zeile 66: Zeile 63:
[[BR]] <<BR>>
Zeile 69: Zeile 67:
----
KategorieAnleitung

http://mikrocontroller.cco-ev.de/images/deu.gif Seite in deutsch

Serieller Konverter (SerCon) ( Serial Converter )

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 )

The RS232/TTL converter is needed for the setup, parameterizing and debugging with the 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.


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


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 )


/!\ 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


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 AVRWiederbelebung.




KategorieAnleitung