Diese Seite dient zum Einfügen in andere Seiten per Include-Macro. So wird redundanter Inhalt vermieden.

Syntax: <<Include(include/KopterTool/TerminalWindow-SoftwareUpdate, , from="^-----$", to="^-----$")>>
---> fügt diese Seite in Deutsch zwischen den Horizontalen-Trennern ein.

This page is used to insert into other pages via include macro. Thus, avoid redundant content.

Syntax: <<Include(include/KopterTool/TerminalWindow-SoftwareUpdate, , from="^------$", to="^------$")>>
---> add this page into English between horizontal separators.

Cette page est utilisée pour être insérée dans d'autres via une macro d'insertion. Ceci évitera le contenu redondant.

Syntax: <<Include(include/KopterTool/TerminalWindow-SoftwareUpdate, , from="^-------$", to="^-------$")>>
---> Ajoute la partie française de cette page contenue entre les bandeaux horizontaux.




Deutsch Start



Software-Update

Auf allen MikroKopter Platinen (FlightCtrl, NaviCtrl, etc.) befindet sich ein Bootloader. Dadurch kann einfach (ohne spezielle Programmier-Hardware) ein Software-Update durchgeführt werden.

Zum Updaten benötigt man lediglich das MK-USB (oder für ältere PCs das Sercon), welches ohnehin zur Konfiguration des Kopters braucht wird.
Damit kann man alle Platinen (z.B. FlightCtrl, NaviCtrl, MK3Mag, ...) updaten.
Wie das MK-USB eingerichtet und angeschlossen wird ist hier beschrieben: MK-USB

Das MikroKopterTool erkennt automatisch (am Dateinamen), um welche Datei es sich handelt und für welche Platine diese verwendet wird.
Versucht man also z.B. eine NaviCtrl-Firmware in eine FlightCtrl zu programmieren wird es eine Fehlermeldung geben.

Wichtig

Wird ein Micro SD-Karte in der NaviCtrl genutzt, sollte nach einem Update der NaviCtrl auf eine neuere Version die vorhandene SETTINGS.INI auf der SD Karte gelöscht werden.
In dieser Datei werden für verschiedene Funktionen benötigte Werte hinterlegt. Diese Datei wird durch die neue Software beim nächsten einschalten automatisch neu und passend angelegt.

Woher bekomme ich die Hex-Files?

Die aktuelle Software der einzelnen Baugruppen kann einfach über das KopterTool heruntergeladen werden.
Hier wird beschrieben, wie man über das KopterTool die Files herunterlädt: Software Download

Anschluss der Baugruppen

Um die einzelnen Platinen mit neuer Software zu versehen, gibt es zwei Möglichkeiten:

  • Entweder wird das MK-USB an den Kopter/MK-Turm angeschlossen.

  • Oder es wird das MK-USB direkt an die betreffende Platine gesteckt.

Anschlussbeispiel am MikroKopter/MK-Turm

Ist nur die FlightCtrl am Kopter verbaut, wird das MK-USB an die 10polige Schnittstelle "EXT/SV1" gesteckt.

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=89949&g2_serialNumber=2

Wird hingegen der MK-Turm am MikroKopter eingesetzt (FlightCtrl, NaviCtrl, MK3Mag, MK-GPS), sind die FlightCtrl und die NaviCtrl über ein
6-poliges und ein 10-poliges Kabel miteinander verbunden.
Das MK-USB wird hierbei an der 10poligen Schnittstelle "Debug" der NaviCtrl angeschlossen.

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=89954&g2_serialNumber=2

Der Jumper auf dem MK-USB bleibt hierbei geöffnet. Die Spannungsversorgung des MikroKopters erfolgt wahlweise über den Lipo
oder über ein geregeltes Netzteil.
Ein geregeltes Netzteil empfiehlt sich besonders bei einer ersten Inbetriebnahme des MikroKopters, um Beschädigungen am Kopter zu vermeiden
die durch Löt-/ Montagefehler auftreten könnten.

{i} Wird der Jumper auf dem MK-USB geschlossen und keine Spannungsversorgung (Lipo/Netzteil) angelegt, können die Baugruppen zwar
erkannt werden, es kann aber zu Fehlermeldungen im KopterTool kommen (z.B. zum I2C error) oder zu Programmierabbrüchen.

/!\ Achtung: Ein Update der BL-Ctrl ist über den MikroKopter/MK-Turm nicht möglich!
Für ein Update oder das Auslesen der Software-Version muss der BL-Ctrl direkt an das MK-USB angeschlossen werden.
Auch um im Fehlerfall den Fehlercode aus dem BL-Ctrl auszulesen muss der BL-Ctrl direkt an das MK-USB angeschlossen werden.
(siehe Anschluss einzelne Baugruppen).

Anschlussbeispiel der einzelnen Baugruppen

Jede einzelne Baugruppe kann auch durch den direkten Anschluss des MK-USB aktualisiert werden.
Hier einige Beispiele, wie die Baugruppen an das MK-USB angeschlossen werden können:

/!\ Das 10polige Flachbandkabel muss mit dem Anschluss "1" (rot markierte Seite) an den Anschluss "1" der jeweiligen Platine verbunden werden!
Der Kontakt "1" ist auf den Platinen mit einem Aufdruck gekennzeichnet.

http://gallery.mikrokopter.de/main.php/v/tech/IMG_5010.JPG.html

Die roten Pfeile markieren jeweils Pin "1"

FlightCtrl:

NaviCtrl:

BL-Ctrl:

MK3Mag:

http://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=77836&g2_serialNumber=1

http://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=77848&g2_serialNumber=1

http://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=77840&g2_serialNumber=1

http://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=77844&g2_serialNumber=1


{i} Werden die Platinen, wie in den Bildern zu sehen, einzeln angeschlossen, kann die Spannungsversorgung der Bauteile über das MK-USB erfolgen.
Hierzu wird der Jumper auf dem MK-USB geschlossen.

{i} Die neuen BL-Ctrl V3.0 werden an den vorderen Anschluss des MK-USB für ein Update angeschlossen.

Das Updaten

FlightCtrl / NaviCtrl / MK3Mag

Nachdem der Kopter/die Baugruppen über das MK-USB (oder Sercon) mit dem KopterTool verbunden wurde, ist alles bereit für ein Update.

{i} Wird das MK3Mag direkt an das MK-USB angeschlossen, muss darauf geachtet werden, dass die Verbindung zwischen MK3Mag und dem Pfostenstecker am Flachbandkabel richtig hergestellt ist. Hier kommt es aufgrund einer meist zu kurzen 10pol Stiftleiste am MK3Mag eventuell zu Kontaktschwierigkeiten.

Im Terminalfenster wird beim Versorgen der Baugruppen mit Spannung normalerweise folgendes Initialisierungsfenster angezeigt:

||<rowbgcolor="#fCC000"style="text-align:center">Anzeige Turm
(FlightCtrl + NaviCtrl + Kompass + GPS)||<style="text-align:center">Anzeige FlightCtrl
(einzeln angeschlossen)||

http://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90174&g2_serialNumber=3

http://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90162&g2_serialNumber=3

(Zum Vergrößern -> Bild anklicken)

Anzeige NaviCtrl
(einzeln angeschlossen)

Anzeige MK3Mag
(einzeln angeschlossen)

http://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90166&g2_serialNumber=3

http://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90198&g2_serialNumber=3

(Zum Vergrößern -> Bild anklicken)

Nun kann durch einen "klick" auf die Schaltfläche Update Software (serial)... das Auswahlfenster geöffnet werden.

Hier wird nun die vorher heruntergeladene Software für die Platine ausgewählt:

http://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=77569&g2_serialNumber=3
(Zum Vergrößern -> Bild anklicken)

Mit einem "klick" auf Öffnen startet das Update:

Anzeige Update FlightCtrl

Anzeige Update NaviCtrl

http://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90190&g2_serialNumber=4

http://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90194&g2_serialNumber=4

(Zum Vergrößern -> Bild anklicken)

Anzeige Update MK3Mag

http://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90202&g2_serialNumber=3

(Zum Vergrößern -> Bild anklicken)

Nach dem Update wird ein automatischer Reset der Baugruppe durchgeführt und diese neu gestartet. Es erscheint dann im Terminalfenster unter dem Update die Initialisierung der betreffenden Baugruppe.
Diese sieht dann so aus, wie in den oberen Bildern der Initialisierung zu sehen ist.

{i} Es kann sein, dass nach der Initialisierung laufend Zeichen (#D=====rwerEW==fesf== o.ä.) im Terminal angezeigt werden. Das ist normal und kein Fehler.

BL-Ctrl

Für ein Update (oder der Anzeige von eventuellen Fehlermeldungen am BL-Ctrl) muss der BL-Ctrl direkt an den seitlichen Anschluss des MK-USB (oder an das Sercon) angeschlossen werden.
Hierfür kann z.B. ein ausrangierter Slotstecker genutzt, oder mit einer Stiftleiste ein Adapter selber gebaut werden (Siehe auch: Anschluss des BL-Reglers an das MK-USB).
Dies kann dann so aussehen:

http://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90274&g2_serialNumber=2
(Zum Vergrößern -> Bild anklicken)

{i} Die obere Leiste enthält die ungeraden Nummern, die untere die geraden Nummern.

Eine weitere Möglichkeit:
Die vier benötigten Leitungen für Rx (Pin 8),Tx (Pin 3), Gnd (Pin 10) und +5V (Pin 2) vorübergehend direkt an den Regler anzulöten.
Die Versorgung erfolgt hierbei über das MK-USB mit geschlossenem Jumper.

/!\ ACHTUNG: Bleibt der BL-Ctrl am Kopter eingebaut, kann er mit dem Lipo / einem Netzteil versorgt werden. Hierbei muss der Jumper auf dem MK-USB offen sein.

Ist der BL-Ctrl über das MK-USB (oder Sercon) mit dem KopterTool verbunden, ist alles bereit für ein Update.
Im Terminalfenster wird beim Versorgen der Baugruppen mit Spannung normalerweise folgendes Initialisierungsfenster angezeigt:

Anzeige BL-Ctrl 1.2

Anzeige BL-Ctrl 2.0

http://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90258&g2_serialNumber=2

http://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90262&g2_serialNumber=2


Nun kann durch einen "klick" auf die Schaltfläche Update Software (serial)... das Auswahlfenster geöffnet werden.

Hier wird nun die vorher heruntergeladene Software für die Platine ausgewählt:
http://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=77569&g2_serialNumber=3
(Zum Vergrößern -> Bild anklicken)

Mit einem "klick" auf Öffnen startet das Update:

Anzeige Update BL-Ctrl 1.2

Anzeige Update BL-Ctrl 2.0

http://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90266&g2_serialNumber=2

http://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90270&g2_serialNumber=2



Nach dem Update wird ein automatischer Reset der Baugruppe durchgeführt und diese neu gestartet. Es erscheint dann im Terminalfenster unter dem Update die Initialisierung der betreffenden Baugruppe.
Diese sieht dann so aus, wie in den oberen Bildern der Initialisierung zu sehen ist.


Update fehlgeschlagen - was nun?

Sollte ein Update während der Übertragung abbrechen oder das Update anderweitig fehlgeschlagen sein, ist das Programm im Prozessor unbrauchbar. Hiernach hat die Baugruppe dann keine Funktion mehr und die LEDs sind aus.
Es kann auch sein, dass nach einem fehlerhaften Update z.B. die FlightCtrl ein Dauerpiepen über den angeschlossenen Summer abgibt.

{i} Aber keine Panik: Der Bootloader ist dann trotzdem noch drin.

Beim erneuten Anschließen der Baugruppe (oder direkt nach einem fehlgeschlagenem Update) wird dann in der Regel anstelle der Initialisierung der Software der Bootloader angezeigt:
(in seltenen Fällen wird der Bootloader nicht angezeigt, obwohl dieser noch vorhanden ist!)

Anzeige Bootloader - Beispiel: FlightCtrl

http://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90170&g2_serialNumber=3

(Zum Vergrößern -> Bild anklicken)

Ein Fehlerhaftes Update sieht dann meist so oder so ähnlich aus:

Beispiel von fehlerhaften Updateversuchen:

http://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90186&g2_serialNumber=3

http://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90178&g2_serialNumber=3



Was kann überprüft werden? Folgendes kann die Ursache sein:

Datei fehlerhaft
Es kann z.B. sein, dass die Software-Datei beim herunterladen beschädigt wurde.
Dies kann man leicht prüfen. Nach dem Starten des Update ist im Terminalfenster die Überprüfung der Datei zu sehen:
https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90293&g2_serialNumber=1

Hier muss nach dem Reading File... ein OK erscheinen und die jeweilige Programmgröße (z.B. Programsize: 63070 Bytes) angezeigt werden.
Wird etwas anderes angezeigt, muss die Datei neu heruntergeladen werden.

Oder es besteht ein Verbindungsproblem
Es sollte für das Update ein Windows PC/Laptop genutzt werden. Ein MAC oder Linux PC mit Emulatorprogramm kann z.B. während der Übertragung die Verbindung zum Kopter verlieren.
Wird ein Laptop genutzt und man steckt den Jumper auf dem MK-USB um die Platinen am Kopter mit Spannung zu versorgen, kann die 5V Spannung des USB Port zusammenbrechen und ebenfalls eine Unterbrechung verursachen.
Oder man nutzt eine Funktverbindung zum Kopter (Bluetooth, Wi.232 etc.). Dabei kann ebenfalls die Verbindung während der Übertragung abreißen.

Hierbei wird dann ein Timeout angezeigt:
https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=140002&g2_serialNumber=2

Abhilfe nach fehlerhaftem Update

Ist ein Updaten der Software fehlgeschlagen und die Software kann nicht mehr eingespielt werden, kann man wie folgt vorgehen.

Für das folgende Beispiel sind die Platinen am MikroKopter montiert und die Versorgung erfolgt über den LiPo.
INFO: Die Propeller vom Kopter entfernen, damit dieser nicht unbeabsichtigt abheben kann.

WICHTIG:

  • Es wird ein Windows PC/Laptop eingesetzt.
  • Das MK-USB (Link) wird für die Verbindung zwischen KopterTool und Kopter genutzt.

  • Der Jumper auf dem MK-USB wird nicht gesteckt!

  • Die Spannungsversorgung erfolgt entweder über den Lipo oder ein geregeltes Netzteil.

  • Es wird vorausgesetzt, dass das MK-USB bereits am Windows PC/Laptop genutzt wurde und die benötigten Treiber sowie der richtige COM-Port im KopterTool eingestellt sind.



Das Updaten:

  • Aktuelle Software- und KopterTool Version hier herunterladen: Link.

  • Das MK-USB mit dem PC und direkt mit der upzudatenden Platine verbinden.

  • Das KopterTool starten und in das Terminalfenster wechseln.

  • Die Platine mit Spannung versorgen (Lipo am Kopter anstecken).
  • Das Update wie gewohnt starten.
  • Erscheint hinter Connecting (try to reset hardware and start bootloader) kein "OK" hinter ~3-4 Punkten ...
    https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90325&g2_serialNumber=2

  • ... die Spannungsversorgung von der Platine kurz trennen und direkt wieder anstecken (Lipo ab- und wieder anstecken). Nun sollte ein OK hinter den Punkten erscheinen ...
    https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90328&g2_serialNumber=2

  • ... und das Update erfolgen.
  • Wiederholen falls es nicht geklappt hat. Es ist eine Frage des Timings.

Sollte dies nicht funktionieren und ein Updaten unmöglich sein, kann eine RMA Nr. für die Einsendung der Platine bei HiSystems beantragt werden.




Deutsch Stop





Englisch Start



Software-Update

On all MikroKopter boards (FlightCtrl, NaviCtrl, etc.) there is a boot loader. This make's it simple to update the software.

You only need a MK-USB (or for older PC's the SerCon) for the update.
So you can update easy all the boards (like FlightCtrl, NaviCtrl, MK3Mag, ...).
How to set up and connect the MK-USB it is described here: MK-USB

If you open a updatefile, the KopterTool detects automatically (on the file name) which file it is and for what this board is used.
So for example if you try to program the NaviCtrl firmware into the FlightCtrl, it will give you an error message.

Important

If you use a Micro SD-Card in your NaviCtrl, clear after an Update of the NaviCtrl the SETTINGS.INI on the SD-Card.
This .ini contains some needed values. The new Software will set a new file with the needed values automatically after a restart.

Here a Video who show's you the update:

Where to get the Hex-Files?

The current software of the individual components can be downloaded easily over the KopterTool.
This describes how to download the files via the KopterTool: Software Download

Connecting the modules

To provide the individual boards with new software, there are two possibilities:

  • Either the MK-USB is attached to the Kopter/MK-Tower.

  • Or the MK-USB is connected directly to the relevant board.

Connection example at MikroKopter / MK-Tower

Is only the FlightCtrl installed, the MK-USB is plugged into the 10-pin interface "EXT/SV1" of the FlightCtrl.

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=89949&g2_serialNumber=2

However, if the MK-Tower is used at the MikroKopter (FlightCtrl, NaviCtrl, MK3Mag, MK-GPS), the FlightCtrl and the NaviCtrl are connected over
a 6-pin and one 10-pin cable.
The MK-USB is plugged into the 10 pole interface "Debug" at the NaviCtrl.

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=89954&g2_serialNumber=2

The jumper on the MK-USB is still open. To power the MikroKopter, please use the lipo or a power supply.
A regulated power supply is particularly recommended for the first start of the MikroKopter to avoid damage to the Kopter
which could occur due to a soldering / assembly error.

{i} If the jumper on the MK-USB is closed and no power supply (Lipo / AC adapter) is applied, the modules can
be detected but it can lead to errors in the KopterTool (e.g. a I2C error) or to programming interruptions.

/!\ Attention: An update of the BL-Ctrl is over the MikroKopter/MK-Tower NOT possible!
For an update or to control the software version, the BL-Ctrl must be connected directly to the MK-USB.
Even if you have an error on a BL-Ctrl. To read the error code from the BL-Ctrl, the BL-Ctrl must be connected directly to the MK-USB.
(see: Connecting individual modules)

Examples for connecting individual modules

Each module can also be updated if you connecting it directly to the MK-USB.
Here are some examples of how the modules can be connected to the MK-USB:

/!\ The 10pole ribbon cable must be hooked up with the connector "1" (red marked side) to the connector "1" of the individual module board!
The connecting pin "1" is marked on the board.
http://gallery.mikrokopter.de/main.php/v/tech/IMG_5010.JPG.html

The red arrows are marking pin "1"

FlightCtrl:

NaviCtrl:

BL-Ctrl:

MK3Mag:

http://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=77836&g2_serialNumber=1

http://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=77848&g2_serialNumber=1

http://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=77840&g2_serialNumber=1

http://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=77844&g2_serialNumber=1


{i} If the boards, as shown in the pictures, are individually connected, the voltage supply is supported by the MK-USB.
Therefor the jumper on the MK-USB has to be closed.

{i} For an Update the new BL-Ctrl V3.0 are also connected on the front pin strip of the MK-USB.

The Updates

FlightCtrl / NaviCtrl / MK3Mag

After the Kopter / the modules are connected over the the MK-Tower (or Sercon) to the KopterTool, everything is ready for an update.

  • {i} If the MK3Mag is directly connected to the MK-USB, take care that the connection between the jack of the ribbon cable and

the MK3Mag connector is correctly.
If the 10-pin plug connector of the MK3Mag is to short, you doesn't have a connection and you can't update it.

After you power on the board, you see this in the terminal window of the KopterTool:

Display Tower
(FlightCtrl + NaviCtrl + Compass + GPS)

Display FlightCtrl
(single connected)

http://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90174&g2_serialNumber=3

http://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90162&g2_serialNumber=3

(Zum Vergrößern -> Bild anklicken)

Display NaviCtrl
(single connected)

Display MK3Mag
(single connected)

http://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90166&g2_serialNumber=3

http://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90198&g2_serialNumber=3

(Zum Vergrößern -> Bild anklicken)

Through a "click" on the button Update Software (serial)... the selection window will open up.

There you can chose the software for your unit:

http://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=77569&g2_serialNumber=3
(Zum Vergrößern -> Bild anklicken)

With a "click" on open the update will start:

Display Update FlightCtrl

Display Update NaviCtrl

http://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90190&g2_serialNumber=4

http://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90194&g2_serialNumber=4

(Zum Vergrößern -> Bild anklicken)

Display Update MK3Mag

http://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90202&g2_serialNumber=3

(Zum Vergrößern -> Bild anklicken)

After the update an automatic reset is performed and the unit restarts. In the Terminal Window you can see now the initialization of the module.
The initialization looks like as shown in the pictures above.

{i} It may be that after running the initialization characters like (# D ===== rwerEW == == fesf etc.) are displayed in the terminal. This is normal and not an error.

BL-Ctrl

For an update (or the display of any error messages at the BL-Ctrl), the BL-Ctrl must be connected right on the side of the MK-USB (or at the Sercon).
For this purpose a Slot-connector can be used or a pin-connector built by yourself. (See also: Connect BL-Ctrl to MK-USB).
It could look like in this way:

http://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90274&g2_serialNumber=2
(Zum Vergrößern -> Bild anklicken)

{i} The upper bar contains the odd numbers, the lower the even numbers.

Another possibility:
The four required lines, for Rx (Pin 8), Tx (pin 3) Gnd (Pin 10) and +5 V (pin 2) can temporarily soldered directly to the regulator.
The power will be supplied via the MK-USB and a closed jumper.

/!\ ATTENTION: If the BL-Ctrl is still mounted in the Kopter, power can be supplied with the lipo or an external power supply. In this case the jumper on the MK-USB must be open.
Please Note: You have to disconnect the FlightCtrl if the BL-Ctrl are still mounted on the Kopter.

Is the BL-Ctrl over the MK-USB (or Sercon) connected with the KopterTool, everything is ready for an update.
After powering the BL-Ctrl you will see this in the terminal window of the KopterTool:

Display BL-Ctrl 1.2

Display BL-Ctrl 2.0

|http://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90258&g2_serialNumber=2||http://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90262&g2_serialNumber=2|| (Zum Vergrößern -> Bild anklicken)

Through a "click" on the button Update Software (serial)... the selection window will open up.

There you can chose the software for your unit:
http://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=77569&g2_serialNumber=3
(Zum Vergrößern -> Bild anklicken)

With a "click" on Open the update will start:

Display Update BL-Ctrl 1.2

Display Update BL-Ctrl 2.0

http://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90266&g2_serialNumber=2

http://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90270&g2_serialNumber=2

(Zum Vergrößern -> Bild anklicken)

After the update an automatic reset is performed and the unit restarts. In the Terminal Window you can see now the initialization of the module.
The initialization looks like as shown in the pictures above.

Update failed - what now?

If an update failed or is cancelled during the transfer, the software on the processor is cleared or useless.
Thereafter, the board has maybe no function anymore and the lights are off.
Also it can happen, that the buzzer (if connected) will continuous beeping.

{i} BUT DON'T PANIC!: The Bootloader is still there.

When reconnecting the module (or immediately after a failed update) the bootloader will be displayed instead of the initialization of the software:
(In rare cases, the bootloader is not displayed, although this is still available!)

Display Bootloader - Example: FlightCtrl

http://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90170&g2_serialNumber=3

(Zum Vergrößern -> Bild anklicken)

A faulty update usually looks something like this:

Example of failed updates:

http://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90186&g2_serialNumber=3

http://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90178&g2_serialNumber=3

(Zum Vergrößern -> Bild anklicken)

What can be checked first? The following can be the cause:

File corrupted

It can be that way that the download of the software file was corrupted and therefore the file itself is damaged.
In review of the file is in the terminal window the update to see from the program path of the file:
https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90293&g2_serialNumber=1

Here must after the Reading File... a OK been displayed and the respective program size (e.g. Program Size: 63 070 bytes ) should be displayed.
If you see something else, downloaded the file again.

Or there is a Connection problem
Please use a Windows PC / Laptop. If you use a MAC or Linux PC with an EMU program you can have problems during the update.
If you use a Laptop and if you use the Jumper on the MK-USB to power up the PCB's, the 5V of the USB port can break down. This can also clear the software on the PCB.
Or if you use w wireless connection between Kopter and PC. Also here the connection can get lost and clear the Software.

Here a Timeout will be displayed:
https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=140002&g2_serialNumber=2

Solution after faulty update

If the Software is lost after a failty update and you can not update the PCB again, please try as described here.

For the following example, the boards are mounted on the MikroKopter and we power up the PCB's via the LiPo.
INFO: Remove the Propeller from the copter that he can not start if something goes wrong.

IMPORTANT:

  • Use a Windows PC / Laptop.
  • Use a MK-USB (Link).

  • Do not close the jumper on the MK-USB!

  • To power up the PCB'S we use the LiPo or a power supply.

  • It is assumed that the MK-USB was allready in use on a Windows PC / Laptop and the required drivers and the correct COM port is set in the KopterTool.



The Update:

  • Download the latest Software Version here: Link.

  • Connect the MK-USB with the PC and directly with the PCB which is to be updated.
  • Start the KopterTool and open the terminal window.

  • Power up the PCB / Kopter (connect the LiPo).

  • Start the update as usual.
  • Now you see Connecting (try to reset hardware and start bootloader). If there is no "OK" after ~3-4 points ...
    https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90325&g2_serialNumber=2

  • ... remove the power supply and connect it again (LiPo disconnect / connect). Now you should see an OK after the points ...
    https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90328&g2_serialNumber=2

  • ... and the update should go on.
  • If it is not working at the first time - try it again.

If it is not possible to update the software again, please contact HiSystems to get a RMA Nr. that you can send the PCB back for a check.




Englisch Stop





French Start



Mise à Jour logiciel

Tous les Modules MK (FlightCtrl, NaviCtrl, etc.) disposent d'un "boot loader". Cela simplifie la procédure de MàJ des logiciels.

Pour la MàJ, seul un MK-USB est nécessaire (ou pour les plus anciens PC, un SerCon).
Vous trouverez ici comment configurer et connecter le MK-USB

Si vous ouvrez un Firmware MK avec le terminal de MKTool, il détectera automatiquement (grâce au nom du fichier) de quel fichier il s'agit et à quel module il est destiné.
Donc par exemple, si vous essayez de charger la FlightCtrl avec le firmware de la NaviCtrl, vous obtiendrez un message d'erreur.

Important

Si vous utilisez une Carte MicroSD dans votre NaviCtrl, après une mise la mise-à-jour de la NaviCtrl, effacer sur la µSD le fichier SETTINGS.INI, il contient des données necessaire à la NC; une version compatible serat automatiquement régénérée au prochain démarage.

Voici une vidéo qui vous montre une MàJ !

Où trouver les fichiers•Hex?

Les fichiers actuellement utilisés peuvent facilement être téléchargés via MKTool.
Voici comment procéder: téléchargement via MKTool

Connexion au module

Il y a deux possibilités pour charger un firmware sur un des modules:

  • soit le MK-USB est relié au MK/MK-Tower.

  • Ou le MK-USB est relié directement à la Carte en question.

Exemple de connexion au MK / MK-Tower

Si seule est installée la FlightCtrl, le MK-USB est connecté au 2x5 broches de l'interface "EXT/SV1" de la FC.

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=89949&g2_serialNumber=2

Par contre, si une Tour-MK est constituée (FlightCtrl, NaviCtrl, MK3Mag, MK-GPS), la FlightCtrl et la NaviCtrl sont reliées par deux nappes: Une 10 brins et une 6 brins
Le MK-USB est branché sur le port 2x5 broches de l'interface "Debug" de la NaviCtrl.

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=89954&g2_serialNumber=2

Le cavalier du MK-USB est encore "ouvert". pour alimenter le MK, veuillez utiliser une lipo,
ou une alimentation stabilisée.
Une alimentation stabilisée est particulièrement recommandée pour la première mise sous tension du MK pour éviter d'endommager des composants, ce qui est toujours possible en cas de défaillances de soudures et/ou du montage

{i} Si le cavalier du MK-USB est fermé (en place) et qu'aucune autre alimentation (Lipo / AC adapter) n'est connectée, la carte peut être reconnue, mais cela peut entrainer des erreurs dans MKTool (p.e. erreurs I2C) ou des interruptions de transfert.

/!\ Attention: La MàJ d'un BL-Ctrl via la tour-MK n'est PAS possible!
Pour une MàJ ou un contrôle de version sur un BL-Ctrl il doit être connecté directement au MK-USB.
Ainsi, si vous avez une erreur sur un BL-Ctrl, vous ne pourrez la lire que si il est connecté directement au MK-USB.
(Voir ci-dessous: Connexion de modules isolés)

Connexion de modules isolés - Examples

Chaque module peut également être MàJ connecté directement au MK-USB.
Voici quelques exemples de connexion directe au MK-USB:

/!\ La nappe 10 brins doit être branchée de telle sorte que le connecteur N°1 (le brin rouge) soit connecté de part et d'autre (sur chaque carte) à la broche N°1 (sérigraphié sur les PCB)
http://gallery.mikrokopter.de/main.php/v/tech/IMG_5010.JPG.html

La flèche rouge indique la broche N° "1"

FlightCtrl:

NaviCtrl:

BL-Ctrl:

MK3Mag:

http://gallery.mikrokopter.de/main.php/v/tech/MKUSB-FlightCtrl.jpg.html

http://gallery.mikrokopter.de/main.php/v/tech/MKUSB-NaviCtrl.jpg.html

http://gallery.mikrokopter.de/main.php/v/tech/MKUSB-BL-Ctrl.jpg.html

http://gallery.mikrokopter.de/main.php/v/tech/MKUSB-MK3Mag.jpg.html


{i} Si, comme illustré sur ces images, les cartes sont connectées individuellement, l'alimentation peut être fournie par le MK-USB.
Pour cela fermez le cavalier (en place) du MK-USB.

{i} For an Update the new BL-Ctrl V3.0 are also connected on the front pin strip of the MK-USB.

La Mise à Jour

FlightCtrl / NaviCtrl / MK3Mag

Une fois que le MK et/ou les modules sont connectés via la MK-USB (ou Sercon) à MKTool, tout est prêt pour une MàJ.

  • {i} Si le MK3Mag est directement connecté au MK-USB, prenez garde à la connexion entre la nappe et le connecteur de la carte.

Si le connecteur de la carte n'est pas assez long, la connexion sera défectueuse et entravera la MàJ.

A l'alimentation de la carte, vous verrez ceci dans la fenêtre terminal de MKTool:

Représente la Tour-MKr
(FlightCtrl + NaviCtrl + Compass + GPS)

Représente FlightCtrl
(connectée seule)

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90176&g2_serialNumber=2

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90164&g2_serialNumber=2


Représente la NaviCtrl
(connectée seule)

Représente le MK3Mag
(connecté seul)

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90168&g2_serialNumber=2

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90200&g2_serialNumber=4



D'un "clic" du bouton Mise à Jour (serie)… une fenêtre de sélection s'ouvre

où vous pouvez choisir la version convenant à votre module:

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=77571&g2_serialNumber=2

Cliquer Ouvrir pour lancer la MàJ:

Affichage MàJ de la FlightCtrl

Affichage MàJ de la NaviCtrl

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90192&g2_serialNumber=2

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90196&g2_serialNumber=2

Affichage MàJ du MK3Mag

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90204&g2_serialNumber=2



Après une Mise à jour une initialisation automatique est exécutée et le module redémarre . On peut constater l'initialisation dans la fenêtre du terminal, cela ressemble à l'illustration ci-dessus.

{i} Après l'initialisation des caractères du genre: (# D ===== rwerEW == == fesf etc.) son affichés dans le terminal. C'est normale et ne constitue pas un défaut.

BL-Ctrl

Pour une Mise à Jour ou l'affichage d'un quelconque message d'erreur d'un BL-Ctrl, Il doit être raccordé au connecteur sur le côté du MK-USB (ou à un Sercon).
Pour cela on peut utiliser un connecteur enfichable ou un connecteur à broches (un peu modifié). (Voir également: Connecter le BL-Ctrl to MK-USB).
Cela ressemble à ca:

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90278&g2_serialNumber=2

{i} La rangée supérieure accueille les brins "impairs", et celle du bas les brins "pairs".

Autre possibilité:
Les quatre fils nécessaires, pour Rx (Pin 8), Tx (pin 3) Gnd (Pin 10) and +5 V (pin 2) peuvent être temporairement soudés au régulateur.
L'alimentation sera fournie via le cavalier du MK-USB.

/!\ ATTENTION: Si le BlCtrl est câblé sur un MK l'alimentation peut provenir de La lipo ou d'une alimentation stabilisée, dans ce cas le cavalier doit être enlevé.
veuillez noter: Il est nécessaire de le déconnecter (I2C) de la FlightCtrl

une fois le BlCtrl connecté via le MK-USB (ou Sercon) à MKTool, tout est prêt pour la mise à jour.
Après l'alimentation du BlCtrl vous verrez ceci dans la fenêtre du terminal:

Affichage BL-Ctrl 1.2

Affichage BL-Ctrl 2.0

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90260&g2_serialNumber=2

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90264&g2_serialNumber=2


D'un "clic" du bouton Mise à Jour (serie)… une fenêtre de sélection s'ouvre

où vous pouvez choisir la version convenant à votre module:

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=77571&g2_serialNumber=2

Cliquer Ouvrir pour lancer la MàJ:

Affichage MàJ BL-Ctrl 1.2

Affichage MàJ BL-Ctrl 2.0

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90268&g2_serialNumber=2

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90272&g2_serialNumber=2



Après une Mise à jour une initialisation automatique est exécutée et le module redémarre . On peut constater l'initialisation dans la fenêtre du terminal, cela ressemble à l'illustration ci-dessus.

La Mise à jour à échouée ! Et maintenant ??

Si une MàJ échoue ou est interrompue, Le soft sur le processeur est effacé ou inutilisable.
c'est pourquoi, la carte peut ne plus fonctionner du tout et les leds rester éteintes.
Il peut aussi arriver, si le buzer est connecté, qu'il bip en continu.

{i} PAS DE PANIQUE !: Le Bootloader est toujours là.

En re-connectant le module (ou immédiatement après un échec de MàJ) Le bootloader s'affiche au lieu de l'initialisation du logiciel:
(Dans de rare cas, le bootloader ne s'affiche pas, mais il est bien là et disponible !)

Affichage Bootloader - Exemple: FlightCtrl

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90172&g2_serialNumber=2



Un échec de MàJ ressemble le plus souvent à quelque chose comme ca:

Exemple d'échec de MàJ:

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90188&g2_serialNumber=4

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90180&g2_serialNumber=4



Que contrôler en premier? Ce qui suit peut être le coupable:

Fichier corrompu

Il peut arriver parfois que le fichier soit endommagé pendant le téléchargement.
En regardant dans la fenêtre du terminal juste en dessous de chemin d'accès au fichier:
https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90293&g2_serialNumber=1

A la suite de Reading File... un OK et la taille du fichier. (p.e. Program Size: 63 070 bytes ) doivent être affichés.
Si ce n'est pas le cas ou si la taille du fichier est trop petite (p.e. 130 bytes / 0 bytes) ou si Unexpected character ..... FILE damaged! apparait… Le fichier doit être à nouveau téléchargé.

Ou:

Problème de connexion

Si p.e. après une MàJ via la NaviCtrl, le MK3Mag ne fonctionne pas, un problème de connexion est signalé.
Dans ce cas le MK3Mag devra être directement connecté au MK-USB et la MàJ ré-exécutée (Voir illustration de connexion plus haut).

  • {i} Si le MK3Mag est directement connecté au MK-USB, prenez garde à la connexion entre la nappe et le connecteur de la carte.

Les broches mâles du MK3Mag sont relativement courtes et peuvent ne pas offrir une connexion fiable avec le connecteur femelle de la nappe.

Il peut arriver que le module ne soit pas détecté. La raison la plus probable est une mauvaise soudure sur une des broches du MK-USB ou une inversion de sens de la nappe
(Le brin rouge de la nappe, sur les broches N°1 de part et d'autre, Module et MK-USB), vérifier également le bon sertissage des connecteurs sur la nappe.

Dans ces cas un Timeout est signalé:
https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90297&g2_serialNumber=2

Ou:

Reset Manuel

La connexion est bonne mais la MàJ ne démarre pas automatiquement ?
Si après "Connecting (try to reset hardware and start bootloader)..." le "OK" n'apparait pas après ~3 ou 4 points, on peut procéder de la façon suivante:

  • Brancher le PCB (p.e. la FC) via la nappe directement au MK-USB (Pas en liaison sans fil!). Pour un BL-Ctrl utiliser le connecteur du coté du MK-USB!

  • retirer le Cavalier du MK-USB
  • dans MKTool sélectionner le fichiers à charger et lancer la MàJ.
  • Pendant que les points • • • sont en train de s'afficher Remettre le cavalier.
    https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90325&g2_serialNumber=2

  • Le OK devrait maintenant s'afficher après les points.
    https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90328&g2_serialNumber=2
    (Après la mise sous tension de la carte c'est toujours le bootloader qui se charge en premier - puis détecte la MàJ en provenance de MKTool et exécute le chargement.)

  • répéter la procédure jusqu'à la réussite. le Timing de re-connexion du cavalier est critique…
  • Si cela ne marche Pas, veuillez tenir compte des recommandations de la boite d'info ci-dessous.


Important

  • Le Reset Manuel est plus simple et plus rapide avec un interrupteur qu'avec le cavalier du MK-USB. Alimentez le PCB avec une alimentation stabilisée, éventuellement via le MK et Basculez l'interrupteur au moment opportun, pour obtenir le "OK"!.




  • {i} Si des interruptions avec messages d'erreur surviennent trop fréquemment, le micro-ordinateur peut également être le coupable.

Dans le cas d'un portable et en utilisant l'alim du port usb (cavalier sur MK-USB), la puissance peut être insuffisante et/ou perturbée.

  • Il faut alors envisager une autre source d'alimentation.


    Si vous utilisez un MAC ou un autre system d'exploitation (que windows), vous pouvez également rencontrer des problèmes.
    Dans la majorité des cas seul une machine "réellement" Windows-PC vous aidera en cas de défaillance de mise-à-jour.

Bootloader

Vous pouvez trouver des informations "Expert" sur les Bootloader ici: Bootloader



French Stop


Diese Seite dient zum Einfügen in andere Seiten per Include-Macro. So wird redundanter Inhalt vermieden.

Syntax: <<Include(include/KopterTool/TerminalWindow-SoftwareUpdate, , from="^-----$", to="^-----$")>>
---> fügt diese Seite in Deutsch zwischen den Horizontalen-Trennern ein.

This page is used to insert into other pages via include macro. Thus, avoid redundant content.

Syntax: <<Include(include/KopterTool/TerminalWindow-SoftwareUpdate, , from="^------$", to="^------$")>>
---> add this page into English between horizontal separators.

Cette page est utilisée pour être insérée dans d'autres via une macro d'insertion. Ceci évitera le contenu redondant.

Syntax: <<Include(include/KopterTool/TerminalWindow-SoftwareUpdate, , from="^-------$", to="^-------$")>>
---> Ajoute la partie française de cette page contenue entre les bandeaux horizontaux.




Deutsch Start



Software-Update

Auf allen MikroKopter Platinen (FlightCtrl, NaviCtrl, etc.) befindet sich ein Bootloader. Dadurch kann einfach (ohne spezielle Programmier-Hardware) ein Software-Update durchgeführt werden.

Zum Updaten benötigt man lediglich das MK-USB (oder für ältere PCs das Sercon), welches ohnehin zur Konfiguration des Kopters braucht wird.
Damit kann man alle Platinen (z.B. FlightCtrl, NaviCtrl, MK3Mag, ...) updaten.
Wie das MK-USB eingerichtet und angeschlossen wird ist hier beschrieben: MK-USB

Das MikroKopterTool erkennt automatisch (am Dateinamen), um welche Datei es sich handelt und für welche Platine diese verwendet wird.
Versucht man also z.B. eine NaviCtrl-Firmware in eine FlightCtrl zu programmieren wird es eine Fehlermeldung geben.

Wichtig

Wird ein Micro SD-Karte in der NaviCtrl genutzt, sollte nach einem Update der NaviCtrl auf eine neuere Version die vorhandene SETTINGS.INI auf der SD Karte gelöscht werden.
In dieser Datei werden für verschiedene Funktionen benötigte Werte hinterlegt. Diese Datei wird durch die neue Software beim nächsten einschalten automatisch neu und passend angelegt.

Woher bekomme ich die Hex-Files?

Die aktuelle Software der einzelnen Baugruppen kann einfach über das KopterTool heruntergeladen werden.
Hier wird beschrieben, wie man über das KopterTool die Files herunterlädt: Software Download

Anschluss der Baugruppen

Um die einzelnen Platinen mit neuer Software zu versehen, gibt es zwei Möglichkeiten:

  • Entweder wird das MK-USB an den Kopter/MK-Turm angeschlossen.

  • Oder es wird das MK-USB direkt an die betreffende Platine gesteckt.

Anschlussbeispiel am MikroKopter/MK-Turm

Ist nur die FlightCtrl am Kopter verbaut, wird das MK-USB an die 10polige Schnittstelle "EXT/SV1" gesteckt.

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=89949&g2_serialNumber=2

Wird hingegen der MK-Turm am MikroKopter eingesetzt (FlightCtrl, NaviCtrl, MK3Mag, MK-GPS), sind die FlightCtrl und die NaviCtrl über ein
6-poliges und ein 10-poliges Kabel miteinander verbunden.
Das MK-USB wird hierbei an der 10poligen Schnittstelle "Debug" der NaviCtrl angeschlossen.

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=89954&g2_serialNumber=2

Der Jumper auf dem MK-USB bleibt hierbei geöffnet. Die Spannungsversorgung des MikroKopters erfolgt wahlweise über den Lipo
oder über ein geregeltes Netzteil.
Ein geregeltes Netzteil empfiehlt sich besonders bei einer ersten Inbetriebnahme des MikroKopters, um Beschädigungen am Kopter zu vermeiden
die durch Löt-/ Montagefehler auftreten könnten.

{i} Wird der Jumper auf dem MK-USB geschlossen und keine Spannungsversorgung (Lipo/Netzteil) angelegt, können die Baugruppen zwar
erkannt werden, es kann aber zu Fehlermeldungen im KopterTool kommen (z.B. zum I2C error) oder zu Programmierabbrüchen.

/!\ Achtung: Ein Update der BL-Ctrl ist über den MikroKopter/MK-Turm nicht möglich!
Für ein Update oder das Auslesen der Software-Version muss der BL-Ctrl direkt an das MK-USB angeschlossen werden.
Auch um im Fehlerfall den Fehlercode aus dem BL-Ctrl auszulesen muss der BL-Ctrl direkt an das MK-USB angeschlossen werden.
(siehe Anschluss einzelne Baugruppen).

Anschlussbeispiel der einzelnen Baugruppen

Jede einzelne Baugruppe kann auch durch den direkten Anschluss des MK-USB aktualisiert werden.
Hier einige Beispiele, wie die Baugruppen an das MK-USB angeschlossen werden können:

/!\ Das 10polige Flachbandkabel muss mit dem Anschluss "1" (rot markierte Seite) an den Anschluss "1" der jeweiligen Platine verbunden werden!
Der Kontakt "1" ist auf den Platinen mit einem Aufdruck gekennzeichnet.
http://gallery.mikrokopter.de/main.php/v/tech/IMG_5010.JPG.html

Die roten Pfeile markieren jeweils Pin "1"

FlightCtrl:

NaviCtrl:

BL-Ctrl:

MK3Mag:

http://gallery.mikrokopter.de/main.php/v/tech/MKUSB-FlightCtrl.jpg.html

http://gallery.mikrokopter.de/main.php/v/tech/MKUSB-NaviCtrl.jpg.html

http://gallery.mikrokopter.de/main.php/v/tech/MKUSB-BL-Ctrl.jpg.html

http://gallery.mikrokopter.de/main.php/v/tech/MKUSB-MK3Mag.jpg.html


{i} Werden die Platinen, wie in den Bildern zu sehen, einzeln angeschlossen, kann die Spannungsversorgung der Bauteile über das MK-USB erfolgen.
Hierzu wird der Jumper auf dem MK-USB geschlossen.

Das Updaten

FlightCtrl / NaviCtrl / MK3Mag


Nachdem der Kopter/die Baugruppen über das MK-USB (oder Sercon) mit dem KopterTool verbunden wurde, ist alles bereit für ein Update.

{i} Wird das MK3Mag direkt an das MK-USB angeschlossen, muss darauf geachtet werden, dass die Verbindung zwischen MK3Mag und dem Pfostenstecker am Flachbandkabel
richtig hergestellt ist. Hier kommt es aufgrund einer meist zu kurzen 10pol Stiftleiste am MK3Mag eventuell zu Kontaktschwierigkeiten.

Im Terminalfenster wird beim Versorgen der Baugruppen mit Spannung normalerweise folgendes Initialisierungsfenster angezeigt:

Anzeige Turm
(FlightCtrl + NaviCtrl + Kompass + GPS)

Anzeige FlightCtrl
(einzeln angeschlossen)

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90176&g2_serialNumber=2

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90164&g2_serialNumber=2


Anzeige NaviCtrl
(einzeln angeschlossen)

Anzeige MK3Mag
(einzeln angeschlossen)

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90168&g2_serialNumber=2

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90200&g2_serialNumber=4



Nun kann durch einen "klick" auf die Schaltfläche Update Software (serial)... das Auswahlfenster geöffnet werden.

Hier wird nun die vorher heruntergeladene Software für die Platine ausgewählt:

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=77571&g2_serialNumber=2

Mit einem "klick" auf Öffnen startet das Update:

Anzeige Update FlightCtrl

Anzeige Update NaviCtrl

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90192&g2_serialNumber=2

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90196&g2_serialNumber=2

Anzeige Update MK3Mag

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90204&g2_serialNumber=2



Nach dem Update wird ein automatischer Reset der Baugruppe durchgeführt und diese neu gestartet. Es erscheint dann im Terminalfenster unter dem Update die Initialisierung der betreffenden Baugruppe.
Diese sieht dann so aus, wie in den oberen Bildern der Initialisierung zu sehen ist.

{i} Es kann sein, dass nach der Initialisierung laufend Zeichen (#D=====rwerEW==fesf== o.ä.) im Terminal angezeigt werden. Das ist normal und kein Fehler.

BL-Ctrl

Für ein Update (oder der Anzeige von eventuellen Fehlermeldungen am BL-Ctrl) muss der BL-Ctrl direkt an den seitlichen Anschluss des MK-USB (oder an das Sercon) angeschlossen werden.
Hierfür kann z.B. ein ausrangierter Slotstecker genutzt, oder mit einer Stiftleiste ein Adapter selber gebaut werden (Siehe auch: Anschluss des BL-Reglers an das MK-USB).
Dies kann dann so aussehen:

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90278&g2_serialNumber=2

{i} Die obere Leiste enthält die ungeraden Nummern, die untere die geraden Nummern.

Eine weitere Möglichkeit:
Die vier benötigten Leitungen für Rx (Pin 8),Tx (Pin 3), Gnd (Pin 10) und +5V (Pin 2) vorübergehend direkt an den Regler anzulöten.
Die Versorgung erfolgt hierbei über das MK-USB mit geschlossenem Jumper.

/!\ ACHTUNG: Bleibt der BL-Ctrl am Kopter eingebaut, kann er mit dem Lipo / einem Netzteil versorgt werden. Hierbei muss der Jumper auf dem MK-USB offen sein.

Ist der BL-Ctrl über das MK-USB (oder Sercon) mit dem KopterTool verbunden, ist alles bereit für ein Update.
Im Terminalfenster wird beim Versorgen der Baugruppen mit Spannung normalerweise folgendes Initialisierungsfenster angezeigt:

Anzeige BL-Ctrl 1.2

Anzeige BL-Ctrl 2.0

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90260&g2_serialNumber=2

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90264&g2_serialNumber=2


Nun kann durch einen "klick" auf die Schaltfläche Update Software (serial)... das Auswahlfenster geöffnet werden.

Hier wird nun die vorher heruntergeladene Software für die Platine ausgewählt:

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=77571&g2_serialNumber=2

Mit einem "klick" auf Öffnen startet das Update:

Anzeige Update BL-Ctrl 1.2

Anzeige Update BL-Ctrl 2.0

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90268&g2_serialNumber=2

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90272&g2_serialNumber=2



Nach dem Update wird ein automatischer Reset der Baugruppe durchgeführt und diese neu gestartet. Es erscheint dann im Terminalfenster unter dem Update die Initialisierung der betreffenden Baugruppe.
Diese sieht dann so aus, wie in den oberen Bildern der Initialisierung zu sehen ist.


Update fehlgeschlagen - was nun?

Sollte ein Update während der Übertragung abbrechen oder das Update anderweitig fehlgeschlagen sein, ist das Programm im Prozessor unbrauchbar. Hiernach hat die Baugruppe dann keine Funktion mehr und die LEDs sind aus.
Es kann auch sein, dass nach einem fehlerhaften Update z.B. die FlightCtrl ein Dauerpiepen über den angeschlossenen Summer abgibt.

{i} Aber keine Panik: Der Bootloader ist dann trotzdem noch drin.

Beim erneuten Anschließen der Baugruppe (oder direkt nach einem fehlgeschlagenem Update) wird dann anstelle der Initialisierung der Software der Bootloader angezeigt:
(in seltenen Fällen wird der Bootloader nicht angezeigt, obwohl dieser noch vorhanden ist!)

Anzeige Bootloader - Beispiel: FlightCtrl

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90172&g2_serialNumber=2



Ein Fehlerhaftes Update sieht meist so oder so ähnlich aus:

Beispiel von fehlerhaften Updateversuchen:

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90188&g2_serialNumber=4

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90180&g2_serialNumber=4



Was kann überprüft werden? Folgendes kann die Ursache sein:

Datei fehlerhaft

Es kann z.B. sein, dass der Download der Software-Datei fehlerhaft war und somit diese Datei selber beschädigt ist.
Im Terminalfenster ist bei dem Update nach dem Programmpfad der Datei die Überprüfung der Datei zu sehen:
https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90293&g2_serialNumber=1

Hier muss nach dem Reading File... ein OK erscheinen und die jeweilige Programmgröße (z.B. Programsize: 63070 Bytes) angezeigt werden.
Wird hier ein Fehler, eine zu kleine Zahl (z.B. 130 Bytes / 0 Bytes) oder Unexpected character ..... FILE damaged! angezeigt, muss die Datei neu downgeloadet werden.

Oder:

Verbindungsproblem

Ist z.B. das MK3Mag nach einem Update über die NaviCtrl ohne Funktion, kann ein Übertragungsproblem vorliegen.
Hier sollte das MK3Mag dann direkt an das MK-USB angeschlossen und das Update erneut ausgeführt werden (Anschluss siehe Bild oben).

{i} Wird das MK3Mag direkt an das MK-USB angeschlossen, muss darauf geachtet werden, dass die Verbindung zwischen MK3Mag und dem Pfostenstecker am Flachbandkabel
richtig hergestellt ist. Hier kommt es aufgrund einer meist zu kurzen 10pol Stiftleiste am MK3Mag eventuell zu Kontaktschwierigkeiten.

Es kann auch sein, das die Baugruppe nicht erkannt wird. Ursache hierfür ist eventuell eine nicht richtig an der Baugruppe oder dem MK-USB aufgelötete Stiftleiste, das Flachbandkabel wurde falsch herum aufgesteckt
(rote Seite des Kabel zeigt jeweils zum Pin 1 der Baugruppe/MK-USB), oder die Pfostenstecker am Flachbandkabel geben keine richtige Verbindung.

Hierbei wird dann ein Timeout angezeigt:
https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90297&g2_serialNumber=2

Oder:

Manueller Reset

Die Verbindung ist in Ordnung aber ein automatisches Update funktioniert trotzdem nicht?
Wenn hinter "Connecting (try to reset hardware and start bootloader)..." kein "OK" nach ~3-4 punkten kommt, kann man auch folgendes machen:

  • die Platine (z.B. FC) über das Flachbandkabel direkt an das MK-USB anschließen (nicht über eine drahtlose Verbindung!). Beim BL-Regler den seitlichen Anschluss des MK-USB verwenden!

  • Jumper vom MK-USB abziehen
  • Im Koptertool die passende Datei auswählen und das Update starten
  • Den Jumper stecken während die Punkte eingeblendet werden
    https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90325&g2_serialNumber=2

  • Nun sollte ein OK hinter den Punkten erscheinen.
    https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90328&g2_serialNumber=2
    (Nach dem Einschalten der Platine startet immer zuerst der Bootloder - der erkennt dann die Update-Anforderung vom KopterTool und führt das Update durch.)

  • Wiederholen falls es nicht geklappt hat. Es ist eine Frage des Timings.


Wichtig

  • Der manuelle Reset klappt meist besser und schneller, wenn die Baugruppe über den Kopter oder ein Netzteil versorgt wird und nicht über den Jumper des MK-USB.
    Anstelle des Jumpers wird dann kurz die Spannungsversorgung unterbrochen um das "OK" zu erhalten.


    {i} Kommt es zu häufigen Abbrüchen mit error-Meldungen, kann auch der genutzte Computer schuld hieran haben.
    Wird z.B. ein Laptop genutzt und die Versorgung der Baugruppen wird über das MK-USB hergestellt, kann hier die Spannung eventuell nicht ausreichend sein.
    Hier sollte man entweder die Baugruppe extern mit dem Lipo oder einem Netzteil versorgen. Oder es wird ein PC für das Update genutzt.


    Nutzer eines MAC oder eines anderen Betriebssystems können auch Probleme beim Updaten bekommen.
    Hier hilft dann meist erst ein Windows-PC.

Bootloader

Informationen zur Expertenfunktion Bootloader einspielen können hier nachgelesen werden: Bootloader



Deutsch Stop





Englisch Start



Software-Update

On all MikroKopter boards (FlightCtrl, NaviCtrl, etc.) there is a boot loader. This make's it simple to update the software.

You only need a MK-USB (or for older PC's the SerCon) for the update.
So you can update easy all the boards (like FlightCtrl, NaviCtrl, MK3Mag, ...).
How to set up and connect the MK-USB it is described here: MK-USB

If you open a updatefile, the KopterTool detects automatically (on the file name) which file it is and for what this board is used.
So for example if you try to program the NaviCtrl firmware into the FlightCtrl, it will give you an error message.

Important

If you use a Micro SD-Card in your NaviCtrl, clear after an Update of the NaviCtrl the SETTINGS.INI on the SD-Card.
This .ini contains some needed values. The new Software will set a new file with the needed values automatically after a restart.

Here a Video who show's you the update:

Where to get the Hex-Files?

The current software of the individual components can be downloaded easily over the KopterTool.
This describes how to download the files via the KopterTool: Software Download

Connecting the modules

To provide the individual boards with new software, there are two possibilities:

  • Either the MK-USB is attached to the Kopter/MK-Tower.

  • Or the MK-USB is connected directly to the relevant board.

Connection example at MikroKopter / MK-Tower

Is only the FlightCtrl installed, the MK-USB is plugged into the 10-pin interface "EXT/SV1" of the FlightCtrl.

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=89949&g2_serialNumber=2

However, if the MK-Tower is used at the MikroKopter (FlightCtrl, NaviCtrl, MK3Mag, MK-GPS), the FlightCtrl and the NaviCtrl are connected over
a 6-pin and one 10-pin cable.
The MK-USB is plugged into the 10 pole interface "Debug" at the NaviCtrl.

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=89954&g2_serialNumber=2

The jumper on the MK-USB is still open. To power the MikroKopter, please use the lipo
or a power supply.
A regulated power supply is particularly recommended for the first start of the MikroKopter to avoid damage to the Kopter
which could occur due to a soldering / assembly error.

{i} If the jumper on the MK-USB is closed and no power supply (Lipo / AC adapter) is applied, the modules can
be detected but it can lead to errors in the KopterTool (e.g. a I2C error) or to programming interruptions.

/!\ Attention: An update of the BL-Ctrl is over the MikroKopter/MK-Tower NOT possible!
For an update or to control the software version, the BL-Ctrl must be connected directly to the MK-USB.
Even if you have an error on a BL-Ctrl. To read the error code from the BL-Ctrl, the BL-Ctrl must be connected directly to the MK-USB.
(see: Connecting individual modules)

Examples for connecting individual modules

Each module can also be updated if you connecting it directly to the MK-USB.
Here are some examples of how the modules can be connected to the MK-USB:

/!\ The 10pole ribbon cable must be hooked up with the connector "1" (red marked side) to the connector "1" of the individual module board!
The connecting pin "1" is marked on the board.
http://gallery.mikrokopter.de/main.php/v/tech/IMG_5010.JPG.html

The red arrows are marking pin "1"

FlightCtrl:

NaviCtrl:

BL-Ctrl:

MK3Mag:

http://gallery.mikrokopter.de/main.php/v/tech/MKUSB-FlightCtrl.jpg.html

http://gallery.mikrokopter.de/main.php/v/tech/MKUSB-NaviCtrl.jpg.html

http://gallery.mikrokopter.de/main.php/v/tech/MKUSB-BL-Ctrl.jpg.html

http://gallery.mikrokopter.de/main.php/v/tech/MKUSB-MK3Mag.jpg.html


{i} If the boards, as shown in the pictures, are individually connected, the voltage supply is supported by the MK-USB.
Therefor the jumper on the MK-USB has to be closed.

The Updates

FlightCtrl / NaviCtrl / MK3Mag

After the Kopter / the modules are connected over the the MK-Tower (or Sercon) to the KopterTool, everything is ready for an update.

  • {i} If the MK3Mag is directly connected to the MK-USB, take care that the connection between the jack of the ribbon cable and

the MK3Mag connector is correctly.
If the 10-pin plug connector of the MK3Mag is to short, you doesn't have a connection and you can't update it.

After you power on the board, you see this in the terminal window of the KopterTool:

Display Tower
(FlightCtrl + NaviCtrl + Compass + GPS)

Display FlightCtrl
(single connected)

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90176&g2_serialNumber=2

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90164&g2_serialNumber=2


Display NaviCtrl
(single connected)

Display MK3Mag
(single connected)

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90168&g2_serialNumber=2

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90200&g2_serialNumber=4



Through a "click" on the button Update Software (serial)... the selection window will open up.

There you can chose the software for your unit:

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=77571&g2_serialNumber=2

With a "click" on open the update will start:

Display Update FlightCtrl

Display Update NaviCtrl

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90192&g2_serialNumber=2

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90196&g2_serialNumber=2

Display Update MK3Mag

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90204&g2_serialNumber=2



After the update an automatic reset is performed and the unit restarts. In the Terminal Window you can see now the initialization of the module.
The initialization looks like as shown in the pictures above.

{i} It may be that after running the initialization characters like (# D ===== rwerEW == == fesf etc.) are displayed in the terminal. This is normal and not an error.

BL-Ctrl

For an update (or the display of any error messages at the BL-Ctrl), the BL-Ctrl must be connected right on the side of the MK-USB (or at the Sercon).
For this purpose a Slot-connector can be used or a pin-connector built by yourself. (See also: Connect BL-Ctrl to MK-USB).
It could look like in this way:

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90278&g2_serialNumber=2

{i} The upper bar contains the odd numbers, the lower the even numbers.

Another possibility:
The four required lines, for Rx (Pin 8), Tx (pin 3) Gnd (Pin 10) and +5 V (pin 2) can temporarily soldered directly to the regulator.
The power will be supplied via the MK-USB and a closed jumper.

/!\ ATTENTION: If the BL-Ctrl is still mounted in the Kopter, power can be supplied with the lipo or an external power supply. In this case the jumper on the MK-USB must be open.
Please Note: You have to disconnect the FlightCtrl if the BL-Ctrl are still mounted on the Kopter.

Is the BL-Ctrl over the MK-USB (or Sercon) connected with the KopterTool, everything is ready for an update.
After powering the BL-Ctrl you will see this in the terminal window of the KopterTool:

Display BL-Ctrl 1.2

Display BL-Ctrl 2.0

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90260&g2_serialNumber=2

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90264&g2_serialNumber=2


Through a "click" on the button Update Software (serial)... the selection window will open up.

There you can chose the software for your unit:

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=77571&g2_serialNumber=2

With a "click" on Open the update will start:

Display Update BL-Ctrl 1.2

Display Update BL-Ctrl 2.0

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90268&g2_serialNumber=2

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90272&g2_serialNumber=2



After the update an automatic reset is performed and the unit restarts. In the Terminal Window you can see now the initialization of the module.
The initialization looks like as shown in the pictures above.

Update failed - what now?

If an update failed or is cancelled during the transfer, the software on the processor is cleared or useless.
Thereafter, the board has maybe no function anymore and the lights are off.
Also it can happen, that the buzzer (if connected) will continuous beeping.

{i} BUT DON'T PANIC!: The Bootloader is still there.

When reconnecting the module (or immediately after a failed update) the bootloader will be displayed instead of the initialization of the software:
(In rare cases, the bootloader is not displayed, although this is still available!)

Display Bootloader - Example: FlightCtrl

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90172&g2_serialNumber=2



A faulty update usually looks something like this:

Example of failed updates:

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90188&g2_serialNumber=4

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90180&g2_serialNumber=4



What can be checked first? The following can be the cause:

File corrupted

It can be that way that the download of the software file was corrupted and therefore the file itself is damaged.
In review of the file is in the terminal window the update to see from the program path of the file:
https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90293&g2_serialNumber=1

Here must after the Reading File... a OK been displayed and the respective program size (e.g. Program Size: 63 070 bytes ) should be displayed.
Is there a bug or a too small number (eg 130 bytes / 0 bytes) or Unexpected character ..... FILE damaged! appears the file must be downloaded again.

Or:

Connection problem

Is e.g. the MK3Mag after an update over the NaviCtrl without function, a transmission problem is indicated.
Here the MK3Mag should be connected directly to the MK-USB and the update will run again (Connection see upper picture).

{i} If the MK3Mag is directly connected to the MK-USB you need to take care that the connection between the pin-header and the MK3Mag connector on the ribbon cable
is correct. Here it is perhaps possible due to a short 10-pin male connector on the MK3Mag that you will have poor contact.

It may be also that the module is not detected. The reason for this is possibly an improperly soldered plug connector of the MK-USB or the ribbon cable is plugged in upside down
(red side of the cable shows each of the pin 1 of the module / MK-USB), or the sockets on the ribbon cable have not a good connection.

Here a Timeout will be displayed:
https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90297&g2_serialNumber=2

Or:

Manual reset

The connection is fine but the automatic update does not work anyway?
If after "Connecting (try to reset hardware and start bootloader)..." is not an "OK" coming up after ~3 to 4 dots than you can do as follows:

  • connect the PCB (i.e. FC) over the ribbon cable direct to the MK-USB (not over a wireless connection!). For the BL-Ctrl use the connector on the side of the MK-USB!

  • remove jumper from MK-USB
  • In the KopterTool select the appropriate file and start the update

  • place the jumper while the dots been displayed
    https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90325&g2_serialNumber=2

  • Now a OK should be behind the dots.
    https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90328&g2_serialNumber=2
    (After switching on the board always the bootloader starts first - then detects the update from the KopterTool and performs the update.)

  • Repeat if it don't work. Timing is the matter of fact.


Important

  • The manual reset is easier and faster if you connect the PCB directly to the Kopter or a power supply and not with a closed jumper on the MK-USB.
    Instead of the jumper on the MK-USB, you can disconnect/connect the power supply to get the needed "OK".


    {i} If it comes to frequent interruptions with error-messages the computer can be also the problem.
    If a laptop is used and the power for the modules is supplied over the MK-USB the power can be not sufficient.
    Here you should either provide the module with an external power supply or a lipo. Or a PC is used for the update.


    If you use a MAC or a other operation system, you can have problems too.
    In most cases only a "real" Windows-PC will then help if an update fails.

Bootloader

Information for Expert function Import Bootloader you can read here: Bootloader



Englisch Stop





French Start



Mise à Jour logiciel

Tous les Modules MK (FlightCtrl, NaviCtrl, etc.) disposent d'un "boot loader". Cela simplifie la procédure de MàJ des logiciels.

Pour la MàJ, seul un MK-USB est nécessaire (ou pour les plus anciens PC, un SerCon).
Vous trouverez ici comment configurer et connecter le MK-USB

Si vous ouvrez un Firmware MK avec le terminal de MKTool, il détectera automatiquement (grâce au nom du fichier) de quel fichier il s'agit et à quel module il est destiné.
Donc par exemple, si vous essayez de charger la FlightCtrl avec le firmware de la NaviCtrl, vous obtiendrez un message d'erreur.

Important

If you use a Micro SD-Card in your NaviCtrl, clear after an Update of the NaviCtrl the SETTINGS.INI on the SD-Card.
This .ini contains some needed values. The new Software will set a new file with the needed values automatically after a restart.

Voici une vidéo qui vous montre une MàJ !

Où trouver les fichiers•Hex?

Les fichiers actuellement utilisés peuvent facilement être téléchargés via MKTool.
Voici comment procéder: téléchargement via MKTool

Connexion au module

Il y a deux possibilités pour charger un firmware sur un des modules:

  • soit le MK-USB est relié au MK/MK-Tower.

  • Ou le MK-USB est relié directement à la Carte en question.

Exemple de connexion au MK / MK-Tower

Si seule est installée la FlightCtrl, le MK-USB est connecté au 2x5 broches de l'interface "EXT/SV1" de la FC.

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=89949&g2_serialNumber=2

Par contre, si une Tour-MK est constituée (FlightCtrl, NaviCtrl, MK3Mag, MK-GPS), la FlightCtrl et la NaviCtrl sont reliées par deux nappes: Une 10 brins et une 6 brins
Le MK-USB est branché sur le port 2x5 broches de l'interface "Debug" de la NaviCtrl.

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=89954&g2_serialNumber=2

Le cavalier du MK-USB est encore "ouvert". pour alimenter le MK, veuillez utiliser une lipo,
ou une alimentation stabilisée.
Une alimentation stabilisée est particulièrement recommandée pour la première mise sous tension du MK pour éviter d'endommager des composants, ce qui est toujours possible en cas de défaillances de soudures et/ou du montage

{i} Si le cavalier du MK-USB est fermé (en place) et qu'aucune autre alimentation (Lipo / AC adapter) n'est connectée, la carte peut être reconnue, mais cela peut entrainer des erreurs dans MKTool (p.e. erreurs I2C) ou des interruptions de transfert.

/!\ Attention: La MàJ d'un BL-Ctrl via la tour-MK n'est PAS possible!
Pour une MàJ ou un contrôle de version sur un BL-Ctrl il doit être connecté directement au MK-USB.
Ainsi, si vous avez une erreur sur un BL-Ctrl, vous ne pourrez la lire que si il est connecté directement au MK-USB.
(Voir ci-dessous: Connexion de modules isolés)

Connexion de modules isolés - Examples

Chaque module peut également être MàJ connecté directement au MK-USB.
Voici quelques exemples de connexion directe au MK-USB:

/!\ La nappe 10 brins doit être branchée de telle sorte que le connecteur N°1 (le brin rouge) soit connecté de part et d'autre (sur chaque carte) à la broche N°1 (sérigraphié sur les PCB)
http://gallery.mikrokopter.de/main.php/v/tech/IMG_5010.JPG.html

La flèche rouge indique la broche N° "1"

FlightCtrl:

NaviCtrl:

BL-Ctrl:

MK3Mag:

http://gallery.mikrokopter.de/main.php/v/tech/MKUSB-FlightCtrl.jpg.html

http://gallery.mikrokopter.de/main.php/v/tech/MKUSB-NaviCtrl.jpg.html

http://gallery.mikrokopter.de/main.php/v/tech/MKUSB-BL-Ctrl.jpg.html

http://gallery.mikrokopter.de/main.php/v/tech/MKUSB-MK3Mag.jpg.html


{i} Si, comme illustré sur ces images, les cartes sont connectées individuellement, l'alimentation peut être fournie par le MK-USB.
Pour cela fermez le cavalier (en place) du MK-USB.

La Mise à Jour

FlightCtrl / NaviCtrl / MK3Mag

Une fois que le MK et/ou les modules sont connectés via la MK-USB (ou Sercon) à MKTool, tout est prêt pour une MàJ.

  • {i} Si le MK3Mag est directement connecté au MK-USB, prenez garde à la connexion entre la nappe et le connecteur de la carte.

Si le connecteur de la carte n'est pas assez long, la connexion sera défectueuse et entravera la MàJ.

A l'alimentation de la carte, vous verrez ceci dans la fenêtre terminal de MKTool:

Représente la Tour-MKr
(FlightCtrl + NaviCtrl + Compass + GPS)

Représente FlightCtrl
(connectée seule)

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90176&g2_serialNumber=2

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90164&g2_serialNumber=2


Représente la NaviCtrl
(connectée seule)

Représente le MK3Mag
(connecté seul)

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90168&g2_serialNumber=2

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90200&g2_serialNumber=4



D'un "clic" du bouton Mise à Jour (serie)… une fenêtre de sélection s'ouvre

où vous pouvez choisir la version convenant à votre module:

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=77571&g2_serialNumber=2

Cliquer Ouvrir pour lancer la MàJ:

Affichage MàJ de la FlightCtrl

Affichage MàJ de la NaviCtrl

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90192&g2_serialNumber=2

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90196&g2_serialNumber=2

Affichage MàJ du MK3Mag

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90204&g2_serialNumber=2



Après une Mise à jour une initialisation automatique est exécutée et le module redémarre . On peut constater l'initialisation dans la fenêtre du terminal, cela ressemble à l'illustration ci-dessus.

{i} Après l'initialisation des caractères du genre: (# D ===== rwerEW == == fesf etc.) son affichés dans le terminal. C'est normale et ne constitue pas un défaut.

BL-Ctrl

Pour une Mise à Jour ou l'affichage d'un quelconque message d'erreur d'un BL-Ctrl, Il doit être raccordé au connecteur sur le côté du MK-USB (ou à un Sercon).
Pour cela on peut utiliser un connecteur enfichable ou un connecteur à broches (un peu modifié). (Voir également: Connecter le BL-Ctrl to MK-USB).
Cela ressemble à ca:

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90278&g2_serialNumber=2

{i} La rangée supérieure accueille les brins "impairs", et celle du bas les brins "pairs".

Autre possibilité:
Les quatre fils nécessaires, pour Rx (Pin 8), Tx (pin 3) Gnd (Pin 10) and +5 V (pin 2) peuvent être temporairement soudés au régulateur.
L'alimentation sera fournie via le cavalier du MK-USB.

/!\ ATTENTION: Si le BlCtrl est câblé sur un MK l'alimentation peut provenir de La lipo ou d'une alimentation stabilisée, dans ce cas le cavalier doit être enlevé.
veuillez noter: Il est nécessaire de le déconnecter (I2C) de la FlightCtrl

une fois le BlCtrl connecté via le MK-USB (ou Sercon) à MKTool, tout est prêt pour la mise à jour.
Après l'alimentation du BlCtrl vous verrez ceci dans la fenêtre du terminal:

Affichage BL-Ctrl 1.2

Affichage BL-Ctrl 2.0

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90260&g2_serialNumber=2

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90264&g2_serialNumber=2


D'un "clic" du bouton Mise à Jour (serie)… une fenêtre de sélection s'ouvre

où vous pouvez choisir la version convenant à votre module:

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=77571&g2_serialNumber=2

Cliquer Ouvrir pour lancer la MàJ:

Affichage MàJ BL-Ctrl 1.2

Affichage MàJ BL-Ctrl 2.0

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90268&g2_serialNumber=2

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90272&g2_serialNumber=2



Après une Mise à jour une initialisation automatique est exécutée et le module redémarre . On peut constater l'initialisation dans la fenêtre du terminal, cela ressemble à l'illustration ci-dessus.

La Mise à jour à échouée ! Et maintenant ??

Si une MàJ échoue ou est interrompue, Le soft sur le processeur est effacé ou inutilisable.
c'est pourquoi, la carte peut ne plus fonctionner du tout et les leds rester éteintes.
Il peut aussi arriver, si le buzer est connecté, qu'il bip en continu.

{i} PAS DE PANIQUE !: Le Bootloader est toujours là.

En re-connectant le module (ou immédiatement après un échec de MàJ) Le bootloader s'affiche au lieu de l'initialisation du logiciel:
(Dans de rare cas, le bootloader ne s'affiche pas, mais il est bien là et disponible !)

Affichage Bootloader - Exemple: FlightCtrl

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90172&g2_serialNumber=2



Un échec de MàJ ressemble le plus souvent à quelque chose comme ca:

Exemple d'échec de MàJ:

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90188&g2_serialNumber=4

https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90180&g2_serialNumber=4



Que contrôler en premier? Ce qui suit peut être le coupable:

Fichier corrompu

Il peut arriver parfois que le fichier soit endommagé pendant le téléchargement.
En regardant dans la fenêtre du terminal juste en dessous de chemin d'accès au fichier:
https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90293&g2_serialNumber=1

A la suite de Reading File... un OK et la taille du fichier. (p.e. Program Size: 63 070 bytes ) doivent être affichés.
Si ce n'est pas le cas ou si la taille du fichier est trop petite (p.e. 130 bytes / 0 bytes) ou si Unexpected character ..... FILE damaged! apparait… Le fichier doit être à nouveau téléchargé.

Ou:

Problème de connexion

Si p.e. après une MàJ via la NaviCtrl, le MK3Mag ne fonctionne pas, un problème de connexion est signalé.
Dans ce cas le MK3Mag devra être directement connecté au MK-USB et la MàJ ré-exécutée (Voir illustration de connexion plus haut).

  • {i} Si le MK3Mag est directement connecté au MK-USB, prenez garde à la connexion entre la nappe et le connecteur de la carte.

Les broches mâles du MK3Mag sont relativement courtes et peuvent ne pas offrir une connexion fiable avec le connecteur femelle de la nappe.

Il peut arriver que le module ne soit pas détecté. La raison la plus probable est une mauvaise soudure sur une des broches du MK-USB ou une inversion de sens de la nappe
(Le brin rouge de la nappe, sur les broches N°1 de part et d'autre, Module et MK-USB), vérifier également le bon sertissage des connecteurs sur la nappe.

Dans ces cas un Timeout est signalé:
https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90297&g2_serialNumber=2

Ou:

Reset Manuel

La connexion est bonne mais la MàJ ne démarre pas automatiquement ?
Si après "Connecting (try to reset hardware and start bootloader)..." le "OK" n'apparait pas après ~3 ou 4 points, on peut procéder de la façon suivante:

  • Brancher le PCB (p.e. la FC) via la nappe directement au MK-USB (Pas en liaison sans fil!). Pour un BL-Ctrl utiliser le connecteur du coté du MK-USB!

  • retirer le Cavalier du MK-USB
  • dans MKTool sélectionner le fichiers à charger et lancer la MàJ.
  • Pendant que les points • • • sont en train de s'afficher Remettre le cavalier.
    https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90325&g2_serialNumber=2

  • Le OK devrait maintenant s'afficher après les points.
    https://gallery.mikrokopter.de/main.php?g2_view=core.DownloadItem&g2_itemId=90328&g2_serialNumber=2
    (Après la mise sous tension de la carte c'est toujours le bootloader qui se charge en premier - puis détecte la MàJ en provenance de MKTool et exécute le chargement.)

  • répéter la procédure jusqu'à la réussite. le Timing de re-connexion du cavalier est critique…


Important

  • Le Reset Manuel est plus simple et plus rapide avec un interrupteur qu'avec le cavalier du MK-USB. Alimentez le PCB avec une alimentation stabilisée, éventuellement via le MK et Basculez l'interrupteur au moment opportun, pour obtenir le "OK"!.




  • {i} Si des interruptions avec messages d'erreur surviennent trop fréquemment, le micro-ordinateur peut également être le coupable.

Dans le cas d'un portable et en utilisant l'alim du port usb (cavalier sur MK-USB), la puissance peut être insuffisante et/ou perturbée.

  • Il faut alors envisager une autre source d'alimentation.


    If you use a MAC or a other operation system, you can have problems too.
    In most cases only a "real" Windows-PC will then help if an update fails.

Bootloader

Vous pouvez trouver des informations "Expert" sur les Bootloader ici: Bootloader



French Stop