User Tools

Site Tools


doc:hw_bootloader

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
doc:hw_bootloader [2014/08/08 21:21] wsauerdoc:hw_bootloader [2014/08/10 12:25] (current) wsauer
Line 123: Line 123:
  
  
-Das All-in-One Package (Flashloader_Package.zip) ist in aktueller Version immer hier zu finden [[http://code.google.com/p/oobd/downloads/list|http://code.google.com/p/oobd/downloads/list]]+You can find  the All-in-One Package (Flashloader_Package.zip) everytime in an actual version here[[http://code.google.com/p/oobd/downloads/list|http://code.google.com/p/oobd/downloads/list]]
  
  
-In diesem Paket sind neben dem aktuellen Flashloaderund Firmwarefile das eigentliche Flashtool stm32flash sowie drei Batchdateien für Windows enthaltenDas Flashtool stm32flash gibt es neben der hier gezeigten und vorgestellten Version für Windows auch als Binary für Linux.+Contained in the package you will find the actual flashloaderand firmwarefile the flashtool stm32flash and thre batchfiles for windowsThe flashtool stm32flash is available for a windows surrounding an as an binary for linux.
  
  
-Die drei Batchdateien sind an den jeweiligen Anwendungsfällen "Flashen Flashloader only" (stm32flash_bootloader_only.bat), "Flashen Firmware only" (stm32flash_firmware_only.bat) und "Flashen Flashloader und Firmware - All-in-One" (stm32flash_all.bat) orientiert.+Three batchfiles are in regards of the purpose as "flash flashloader only" (stm32flash_bootloader_only.bat), "flashen firmware only" (stm32flash_firmware_only.bat) and "flash flashloader und firmware - All-in-One" (stm32flash_all.bat).
  
  
-Für den initialen Flashvorgang nach Hardwarebestückung und/oder Kauf eines DXM-BT Moduls wird die "stm32flash_all.bat COMx" Variante empfohlenda mit diesem Batchaufruf gleich der Bootloader und die Firmware auf den OOBD-Cup v5 NG oder DXM-BT geflasht werden.+For the initial flashprocess after hardware assembly and or buying of an DXM-BT module we advise to use "stm32flash_all.bat COMx" variantbecause with the call of the batchfile the bootloader and the firmware will be flashed in one go on the OOBD-Cup v5 NG or DXM-BT.
  
  
-Hinweis \\ Bei der obigen Hardwarebeschreibung für ein mögliches USB-UART Interface ist nur die notwendige Jumperleiste des OOBD-Cup v5 NG zur Kontaktierungsübersicht dargestellt.+NoteIn regards of the hardwaredescription for a possible USB-UART interface you can only see the necessary jumper bridge of the OOBD-Cup v5 NG as an overview.
  
  
-===== Flashen von Flashloader und Firmware mit dem Batchaufruf stm32flash_all.bat =====+===== Flashing of flashloader and firmware with calling the batchfile stm32flash_all.bat =====
  
  
-Nachdem im ersten Schritt das All-in-One Package besorgt und abgelegt wurdewird im nächsten Schritt der Flashvorgang durch Aufruf von+After as an first you got the all-in-one package and this has been saved,the next step is to call the 
  
  
Line 147: Line 147:
  
  
-…gestartetWobei hier als Platzhalter für den jeweiligen COM-Port des USB-UART Interfaces darstelltIn unserem Beispiel ist dies COM5+batch. x is standing for the number of the COM-port of the USB-UART interfaceHere in the example it is COM5
  
  
-Hinweis:+Note:
  
  
-Bevor der Flashvorgang gestartet werden kann ist sicherzustellen, dass das USB-UART Interface einerseits mit dem PC/Laptop, der für den Flashvorgang genutzt wird, verbunden ist und andererseits die Verbindungen der RxD/TxD/GND-Leitungen zwischen USB-UART und DXM-Modul des OOBD-Cup v5 hergestellt sindWeiterhin muss der Boot0-Jumper (Pin 1/2) des Jumperblocks JP2 gesteckt sein.+Before the flashprocess can be started you have to assure that the USB-UART interface is on the one hand connected with the PC/Laptop that is used for the flashprocess and on the other hand the connections to the RxD/TxD/GND wires between USB-UART and DXM-module of the OOBD-Cup v5 have been establishedFurthermore the Boot0-Jumper (Pin 1/2) of the jumper block JP2 has to fit.
  
  
Line 159: Line 159:
  
  
-===== Auslesen der Hardwarekennung - Step1 =====+===== Readout of the hardwarerecognition - Step1 =====
  
  
-Nachdem die stm32flash_all.bat ausgeführt wurde wird im ersten Step versucht die Hardwarekennung des STM32F103C8 auszulesenWenn dies erfolgreich geschehen ist, sollte sich ein Bild mit den folgenden Informationen zeigen.+After processing the stm32flash_all.bat in a first step the batch tries to readout the hardwarerecognition of the STM32F103C8. If this was successfull you should see an output with the following informations.
  
  
-**Wichtig:** +**Important:** 
  
  
-Die ersten Zeilen des Bildes zeigen einen Flash-Versuchwenn die Verbindung zwischen USB-UART und DXM-Modul nicht erfolgreich hergestellt werden konnte.+The first rows of the output show the result on an not succesfull flash attemptwere the connection between the USB-UART and the DXM-module could not be established.
  
  
-Nach dem ersten Drittel des Bildschirmes wird mit erneutem Aufruf von stm32flash_all.bat COM5 dargestellt, welche Informationen bei erfolgreicher Verbindung mit dem DXM-Modul ausgegeben werden.+After the first third of the output you can see the information given out in regards of an succesfull  connection from the stm32flash_all.bat on COM5 with the DXM-module.
  
  
Line 177: Line 177:
  
  
-===== Flashen des Flashloader/Bootloader - Step2 =====+===== Flashing of the flashloader/bootloader - Step2 =====
  
  
-Nach Bestätigung der Eingabeaufforderung mit einer beliebigen Taste wird der Flashvorgang mit dem Flashloader gestartet.+After pressing any key the flashprocess will be started.
  
  
Line 189: Line 189:
  
  
-===== Flashen der Firmware - Step 3 =====+===== Flashing of the firmware - Step 3 =====
  
  
-Nachdem der Flashvorgang mit dem Flashloader  erfolgreich beendet wurde (100% Done) wird nun im nächsten Schritt nach Bestätigung der Eingabeaufforderung mit beliebiger Taste der Flashvorgang mit der Firmware fortgeführt.+After successful completion of the flashprocess with the flashloader (100% Done) the next step is in regards pressing any key to start the flashprocess of the firmware.
  
  
Line 204: Line 204:
  
  
-===== Ende des Flashvorgangs =====+===== End of the flashprocess =====
  
  
-Nachdem der Flashvorgang der Firmware erfolgreich abgeschlossen wurde (100% Done) wird die Firmware automatisch gestartet (Starting execution…). Hierbei sollte nach wenigen Sekunden ein doppelter "Beep" des Buzzer wahrnehmbar seinFalls dies nicht der Fall ist und es sich um einen OOBD-Cup v5 NG handeltmuss in einem nächsten Schritt die Bestückung des Signalgebers/Buzzer (SG1) überprüft werden.+After the sucessfull flashing of the firmware (100% Done) the firmware will be started automatically (Starting execution…). Hereby you should hear a double beep of the buzzerIf this is not the case and the device is an OOBD-Cup v5 NG, then the mounting of the buzzer (SG1) and the correct junctions has to be varified.
  
  
-===== Flashen der Firmware mit dem integrierten Bootloader via Hyperterm =====+===== Flashing of the firmware with integrated bootloader via Hyperterm =====
  
  
Line 216: Line 216:
  
  
-====== Änderung UART-Schnittstellengeschwindigkeit BTM182 / BTM222 ======+====== Change of UART-Interfacespeed of the  BTM182 / BTM222 ======
  
  
-Dieser Schritt wird nur für die Vollständigkeit und zur Darstellung der UART-Schnittstellengeschwindigkeits-Umstellung des BTM182/BTM222 aufgezeigtNachdem im Kapitel beschriebenen initialen Flashvorgang wird der BTM182/BTM222 automatisch beim Starten der Firmware auf die neue Schnittstellengeschwindigkeit umgestelltsodass dieser Schritt für die Erst-Inbetriebnahme nicht erforderlich ist.+This step is only for completeness to the change of UART-Interfacespeed of the  BTM182 / BTM222. After the initial flashprocess (see chapter 1) the interfacespeed si set automaticallyso that this is not needed for the first bringing into service.
  
  
-Zum Programmieren des BT- Chips muß der USB-Seriell Adapter wie oben gezeigt an die **BT-PINS!!**  angeschlossen werden.+To program the BT- chip you need to connect the USB-serial Adapter as shown above to the **BT-PINS!!**.
  
  
-Im Auslieferzustand ist der BTM182/BTM222 auf der Default-Baudrate von 19200 bit/s eingestelltDiese wird beim Firmwarestart automatisch auf 115200 bit/s umgestelltda der OOBD-Cup v5 NG mit 115200 bit/s auf der UART-Schnittstelle des BTM182/BT;222 < DXM-Modul arbeitetWie im Bild dargestellt kann dies optional bzw. bei Bedarf auch manuell erfolgen durch Eingabe von "atl5" und Bestätigung mit Enter/Return mithilfe eines Terminalprogramss (hier: Hyperterm). atl?  Ausgabe der aktuellen UART-Schnittstellengeschwindigkeit+In delivery status the BTM182/BTM222 is set to the default-baudrate of 19200 bit/s. This will be changed on firmwarestart automatically to 115200 bit/s, because the OOBD-Cup v5 NG is working with 115200 bit/s to the UART-interface of the BTM182/BT222 DXM-moduleAs you can see in the picture it can be handled optional or manual with giving the command "atl5" and pressing return afterwards on an terminalprogram (eg. hypertherm or Putty). atl?  shows the actual UART-interfacespeed
  
  
doc/hw_bootloader.txt · Last modified: 2014/08/10 12:25 by wsauer