<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://www.olliw.eu/storm32bgc-v1-wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Lasakro</id>
	<title>STorM32-BGC Wiki V1 - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://www.olliw.eu/storm32bgc-v1-wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Lasakro"/>
	<link rel="alternate" type="text/html" href="http://www.olliw.eu/storm32bgc-v1-wiki/Special:Contributions/Lasakro"/>
	<updated>2026-04-29T00:03:49Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.3</generator>
	<entry>
		<id>http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=How_to_flash_NT_Modules&amp;diff=2908</id>
		<title>How to flash NT Modules</title>
		<link rel="alternate" type="text/html" href="http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=How_to_flash_NT_Modules&amp;diff=2908"/>
		<updated>2015-10-05T18:21:27Z</updated>

		<summary type="html">&lt;p&gt;Lasakro: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is for instruction on how to flash NT modules.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If your NT module runs already a NT firmware, this is the canonical procedure for upgrading:&lt;br /&gt;
&lt;br /&gt;
* [[Updating the Firmware of NT Modules]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If your NT module has not yet been flashed with a NT firmware, or runs a different firmware, one needs to use the more grass roots flashing methods via the system bootloader or SWD. For details see here: &lt;br /&gt;
&lt;br /&gt;
* [[Mini CC3D Atom]]&lt;br /&gt;
* [[CC3D Atom]]&lt;br /&gt;
* [[NT Motor v1.1]]&lt;br /&gt;
* [[NT IMU Mini MPU9250 v1.0]]&lt;br /&gt;
* [[NT IMU MPU9250 v1.0]]&lt;/div&gt;</summary>
		<author><name>Lasakro</name></author>
	</entry>
	<entry>
		<id>http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=How_to_flash_NT_Modules&amp;diff=2906</id>
		<title>How to flash NT Modules</title>
		<link rel="alternate" type="text/html" href="http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=How_to_flash_NT_Modules&amp;diff=2906"/>
		<updated>2015-10-05T18:19:45Z</updated>

		<summary type="html">&lt;p&gt;Lasakro: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is for instruction on how to flash NT modules.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If your NT module runs already a NT firmware, this is the canonical procedure for upgrading:&lt;br /&gt;
&lt;br /&gt;
* [[Updating the Firmware of NT Modules]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If your NT module has not yet been flashed with a NT firmware, or runs a different firmware, one needs to use the more grass roots flashing methods via the system bootloader or SWD. For details see here: &lt;br /&gt;
&lt;br /&gt;
* [[Mini CC3D Nano Atom]]&lt;br /&gt;
* [[Mini CC3D Atom]]&lt;br /&gt;
* [[CC3D Nano Atom]]&lt;br /&gt;
* [[NT Motor v1.1]]&lt;br /&gt;
* [[NT IMU Mini MPU9250 v1.0]]&lt;br /&gt;
* [[NT IMU MPU9250 v1.0]]&lt;/div&gt;</summary>
		<author><name>Lasakro</name></author>
	</entry>
	<entry>
		<id>http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=How_to_flash_NT_Modules&amp;diff=2904</id>
		<title>How to flash NT Modules</title>
		<link rel="alternate" type="text/html" href="http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=How_to_flash_NT_Modules&amp;diff=2904"/>
		<updated>2015-10-05T18:18:05Z</updated>

		<summary type="html">&lt;p&gt;Lasakro: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is for instruction on how to flash NT modules.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If your NT module runs already a NT firmware, this is the canonical procedure for upgrading:&lt;br /&gt;
&lt;br /&gt;
* [[Updating the Firmware of NT Modules]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If your NT module has not yet been flashed with a NT firmware, or runs a different firmware, one needs to use the more grass roots flashing methods via the system bootloader or SWD. For details see here: &lt;br /&gt;
&lt;br /&gt;
* [[Mini CC3D Nano Atom]]&lt;br /&gt;
* [[Mini CC3D Atom]]&lt;br /&gt;
* [[CC3D Atom]]&lt;br /&gt;
* [[NT Motor v1.1]]&lt;br /&gt;
* [[NT IMU Mini MPU9250 v1.0]]&lt;br /&gt;
* [[NT IMU MPU9250 v1.0]]&lt;/div&gt;</summary>
		<author><name>Lasakro</name></author>
	</entry>
	<entry>
		<id>http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=How_to_flash_NT_Modules&amp;diff=2903</id>
		<title>How to flash NT Modules</title>
		<link rel="alternate" type="text/html" href="http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=How_to_flash_NT_Modules&amp;diff=2903"/>
		<updated>2015-10-05T18:16:51Z</updated>

		<summary type="html">&lt;p&gt;Lasakro: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is for instruction on how to flash NT modules.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If your NT module runs already a NT firmware, this is the canonical procedure for upgrading:&lt;br /&gt;
&lt;br /&gt;
* [[Updating the Firmware of NT Modules]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If your NT module has not yet been flashed with a NT firmware, or runs a different firmware, one needs to use the more grass roots flashing methods via the system bootloader or SWD. For details see here: &lt;br /&gt;
&lt;br /&gt;
* [[Mini CC3D Nano Atom]]&lt;br /&gt;
* [[CC3D Atom]]&lt;br /&gt;
* [[NT Motor v1.1]]&lt;br /&gt;
* [[NT IMU Mini MPU9250 v1.0]]&lt;br /&gt;
* [[NT IMU MPU9250 v1.0]]&lt;/div&gt;</summary>
		<author><name>Lasakro</name></author>
	</entry>
	<entry>
		<id>http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=How_to_flash_NT_Modules&amp;diff=2902</id>
		<title>How to flash NT Modules</title>
		<link rel="alternate" type="text/html" href="http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=How_to_flash_NT_Modules&amp;diff=2902"/>
		<updated>2015-10-05T18:16:06Z</updated>

		<summary type="html">&lt;p&gt;Lasakro: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is for instruction on how to flash NT modules.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If your NT module runs already a NT firmware, this is the canonical procedure for upgrading:&lt;br /&gt;
&lt;br /&gt;
* [[Updating the Firmware of NT Modules]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If your NT module has not yet been flashed with a NT firmware, or runs a different firmware, one needs to use the more grass roots flashing methods via the system bootloader or SWD. For details see here: &lt;br /&gt;
&lt;br /&gt;
* [[Mini CC3D Atom]]&lt;br /&gt;
* [[CC3D Atom]]&lt;br /&gt;
* [[NT Motor v1.1]]&lt;br /&gt;
* [[NT IMU Mini MPU9250 v1.0]]&lt;br /&gt;
* [[NT IMU MPU9250 v1.0]]&lt;/div&gt;</summary>
		<author><name>Lasakro</name></author>
	</entry>
	<entry>
		<id>http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=How_to_flash_NT_Modules&amp;diff=2896</id>
		<title>How to flash NT Modules</title>
		<link rel="alternate" type="text/html" href="http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=How_to_flash_NT_Modules&amp;diff=2896"/>
		<updated>2015-10-05T08:40:17Z</updated>

		<summary type="html">&lt;p&gt;Lasakro: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is for instruction on how to flash NT modules.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If your NT module runs already a NT firmware, this is the canonical procedure for upgrading:&lt;br /&gt;
&lt;br /&gt;
* [[Updating the Firmware of NT Modules]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If your NT module has not yet been flashed with a NT firmware, or runs a different firmware, one needs to use the more grass roots flashing methods via the system bootloader or SWD. For details see here: &lt;br /&gt;
&lt;br /&gt;
* [[Mini CC3D Nano Atom]]&lt;br /&gt;
* [[CC3D Nano Atom]]&lt;br /&gt;
* [[NT Motor v1.1]]&lt;br /&gt;
* [[NT IMU Mini MPU9250 v1.0]]&lt;br /&gt;
* [[NT IMU MPU9250 v1.0]]&lt;/div&gt;</summary>
		<author><name>Lasakro</name></author>
	</entry>
	<entry>
		<id>http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=How_to_flash_NT_Modules&amp;diff=2895</id>
		<title>How to flash NT Modules</title>
		<link rel="alternate" type="text/html" href="http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=How_to_flash_NT_Modules&amp;diff=2895"/>
		<updated>2015-10-05T08:05:19Z</updated>

		<summary type="html">&lt;p&gt;Lasakro: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is for instruction on how to flash NT modules.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If your NT module runs already a NT firmware, this is the canonical procedure for upgrading:&lt;br /&gt;
&lt;br /&gt;
* [[Updating the Firmware of NT Modules]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If your NT module has not yet been flashed with a NT firmware, or runs a different firmware, one needs to use the more grass roots flashing methods via the system bootloader or SWD. For details see here: &lt;br /&gt;
&lt;br /&gt;
* [[Mini CC3D Nano Atom]]&lt;br /&gt;
* [[CC3D Nano Atom]]&lt;br /&gt;
* [[NT Breakout v1.0]]&lt;br /&gt;
* [[NT Motor v1.1]]&lt;br /&gt;
* [[NT IMU Mini MPU9250 v1.0]]&lt;br /&gt;
* [[NT IMU MPU9250 v1.0]]&lt;/div&gt;</summary>
		<author><name>Lasakro</name></author>
	</entry>
	<entry>
		<id>http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=NT_Pins_and_Connectors&amp;diff=2894</id>
		<title>NT Pins and Connectors</title>
		<link rel="alternate" type="text/html" href="http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=NT_Pins_and_Connectors&amp;diff=2894"/>
		<updated>2015-10-05T07:23:06Z</updated>

		<summary type="html">&lt;p&gt;Lasakro: Created page with &amp;quot;:640px&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;:[[File:NT_Pinout.jpg|640px]]&lt;/div&gt;</summary>
		<author><name>Lasakro</name></author>
	</entry>
	<entry>
		<id>http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=File:NT_Pinout.jpg&amp;diff=2893</id>
		<title>File:NT Pinout.jpg</title>
		<link rel="alternate" type="text/html" href="http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=File:NT_Pinout.jpg&amp;diff=2893"/>
		<updated>2015-10-05T07:21:34Z</updated>

		<summary type="html">&lt;p&gt;Lasakro: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Lasakro</name></author>
	</entry>
	<entry>
		<id>http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=File:GUI_Flash_4.jpg&amp;diff=2852</id>
		<title>File:GUI Flash 4.jpg</title>
		<link rel="alternate" type="text/html" href="http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=File:GUI_Flash_4.jpg&amp;diff=2852"/>
		<updated>2015-10-02T23:24:39Z</updated>

		<summary type="html">&lt;p&gt;Lasakro: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Lasakro</name></author>
	</entry>
	<entry>
		<id>http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=File:GUI_Flash_3.jpg&amp;diff=2851</id>
		<title>File:GUI Flash 3.jpg</title>
		<link rel="alternate" type="text/html" href="http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=File:GUI_Flash_3.jpg&amp;diff=2851"/>
		<updated>2015-10-02T23:23:58Z</updated>

		<summary type="html">&lt;p&gt;Lasakro: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Lasakro</name></author>
	</entry>
	<entry>
		<id>http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=How_to_flash_firmware&amp;diff=2831</id>
		<title>How to flash firmware</title>
		<link rel="alternate" type="text/html" href="http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=How_to_flash_firmware&amp;diff=2831"/>
		<updated>2015-10-01T03:18:35Z</updated>

		<summary type="html">&lt;p&gt;Lasakro: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following describes the process of flashing firmware onto v1.1/v1.2/v1.3/v1.31 boards.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==Flashing Firmware using a USB-TTL Adapter ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1.&#039;&#039;&#039; You need a standard usb-ttl adapter (FTDI, CP2102, ..., {{WARNING|&#039;&#039;&#039;not&#039;&#039;&#039;}} PL2303). Ensure that it is working (drivers installed, etc.).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;2.&#039;&#039;&#039; You don&#039;t have to worry if it is a 5 V adapter or not, the pins on the STorM32-BGC board we are going to connect the adapter to are 5 V tolerant.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;3.&#039;&#039;&#039; The adapter has to be connected to UART1, which is {{WARNING|&#039;&#039;&#039;not&#039;&#039;&#039;}} the port labelled UART on the board, the correct pins are found on the port labelled RC! Namely:&lt;br /&gt;
&lt;br /&gt;
:RC-GND = GND -&amp;gt; connect it to GND of the usb-ttl adapter&lt;br /&gt;
&lt;br /&gt;
:RC-0 = Uart1-Rx -&amp;gt; connect it to Tx of the usb-ttl adapter&lt;br /&gt;
&lt;br /&gt;
:RC-1 = Uart1-Tx -&amp;gt; connect it to Rx of the usb-ttl adapter&lt;br /&gt;
&lt;br /&gt;
The connections between adapter and board are shown for v1.2/v1.3/v1.31 and v1.1 boards in the scheme below.&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|Neither a 5 V nor a 3.3 V nor any other power pin on the usb-ttl adapter is used... only three wires running from adapter to board.}}&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:[[File:Stom32-bgc-flashing-w-usbttladapter-connections-02.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;4.&#039;&#039;&#039; The board should be powered via the USB plug or through a battery/power supply connected to the &amp;quot;+&amp;quot; and &amp;quot;-&amp;quot; pads.&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|If the board has already a firmware installed and this is the first-time it is connected via USB to a PC, then Win 7 will start installing the USB driver. {{WARNING|&#039;&#039;&#039;Do NOT interrupt the install process&#039;&#039;&#039;}}. See also the comments under point &#039;&#039;&#039;12&#039;&#039;&#039; below.}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;5.&#039;&#039;&#039; Run the GUI and go to the {{GUI|Flash Firmware}} tab (see the screenshot).&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|In principle you can use any GUI version to flash any version of the firmware. However, a GUI which is of the same or higher version than the firmware provides easy access to the firmware via the selector fields on the {{GUI|Flash Firmware}} window.}}&lt;br /&gt;
&lt;br /&gt;
:[[File:Stom32-wiki-flash-firmware-01.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;6.&#039;&#039;&#039; Select the correct board and desired firmware version from the selectors.&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|With these two selectors the correct firmware .hex file is chosen in the {{GUI|Selected Firmware Hex File}} field.}}&amp;lt;br/&amp;gt;&lt;br /&gt;
{{COMMENT|It is {{WARNING|&#039;&#039;&#039;important&#039;&#039;&#039;}} to choose the correct board version; otherwise the board will not functions correctly.}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;7.&#039;&#039;&#039; Select {{GUIPARAM|System Bootloader @ UART1}} in the {{GUI|STM32 Programmer}} field.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;8.&#039;&#039;&#039; In the {{GUI|Com Port}} field select the COM port which your usb-ttl adapter is connected to.&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|We are talking here about the {{GUI|Com Port}} field in the {{GUI|Flash Firmware}} tab, not the {{GUI|Port}} field in the lower left of the main window.}}&amp;lt;br/&amp;gt;&lt;br /&gt;
{{COMMENT|If you are not sure which the correct COM port is, then disconnect the usb-ttl adapter from the PC, inspect the drop-down list and memorize the available COM ports, connect your adapter and wait until its enumerated by Win, and finally inspect the drop-down list and chose the newly added COM port.}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;9.&#039;&#039;&#039; If required or desired check the {{GUI|Perform full chip erase}} check button.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;10.&#039;&#039;&#039; This is now {{WARNING|&#039;&#039;&#039;important&#039;&#039;&#039;}}: Before hitting the {{GUI|Flash Firmware}} button one has to ready the board for being flashed. For that, with the board connected to power, one has to&lt;br /&gt;
* press and hold down both the Reset and Boot0 buttons (the exact sequence of when which button is pressed is irrelevant, as long as they&#039;re both hold down)&lt;br /&gt;
* then, release the Reset button while still holding down the Boot0 button&lt;br /&gt;
* then, release also the Boot0 button&lt;br /&gt;
This may sound complicated, but one will quickly realize that this can be done by &amp;quot;rolling&amp;quot; the finger tip from the left to right.&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|Both LEDs will go off; they should appear &amp;quot;dead&amp;quot;.}}&lt;br /&gt;
&lt;br /&gt;
:[[File:Storm32-wiki-flash-firmware-key-sequence-01.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;11.&#039;&#039;&#039; Finally, hit the {{GUI|Flash Firmware}} button.&lt;br /&gt;
&lt;br /&gt;
Now a black window (DOS console) should open and run the flash loader program, as shown in the screenshot. Wait until it&#039;s finished (takes some seconds). If the program doesn&#039;t proceed and asks to &amp;quot;Press any key to continue&amp;quot; the board is write protected. See &amp;quot;Removing Write Protection&amp;quot; below.&lt;br /&gt;
&lt;br /&gt;
:[[File:flash.png|640px]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;12.&#039;&#039;&#039; The STorM32 board will be reset and start running. If this is the first-time flash of the firmware and if the board is connected via USB to a PC, then Win 7 will immediately start with installing the appropriate USB driver. This takes quite a while (several minutes). Please, be patient and wait until Win 7 reports that the device is ready for use. {{WARNING|&#039;&#039;&#039;Do not disconnect the board from the PC or otherwise interrupt the driver installation process before it is completed&#039;&#039;&#039;}}. This can mess up things quite considerably, and installing the driver later can be a challenge.&lt;br /&gt;
&lt;br /&gt;
=== Flashing the Micro STorM32 Board ===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
The Micro STorM32 board doesn&#039;t provide BOOT0 and RESET buttons. Here, BOOT0 must be shortcut to 3.3 V by e.g. soldering a wire as shown in the picture below, and powering up the board to bring it into bootloader mode.&lt;br /&gt;
 &lt;br /&gt;
:[[File:MicroStorm32.png|387px]]&lt;br /&gt;
&lt;br /&gt;
=== Flashing Procedure for Win XP ===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1.&#039;&#039;&#039; Download and install the Flash Loader Demonstrator from [http://www.st.com/web/en/catalog/tools/PF257525].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;2.&#039;&#039;&#039; Do step 1 to 4 under [[#Flashing Firmware using a USB-TTL Adapter|Flashing Firmware using a USB-TTL Adapter]].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;3.&#039;&#039;&#039; Start the Flash Loader Demonstrator, choose the correct COM port and then press the Boot0 and Reset buttons on the controller as described in step 10 under [[#Flashing Firmware using a USB-TTL Adapter|Flashing Firmware using a USB-TTL Adapter]]. Click next. &lt;br /&gt;
&lt;br /&gt;
{{COMMENT|The usb-ttl adapter needs to be connected to the PC before the Flash Loader Demonstrator is started}}.&lt;br /&gt;
&lt;br /&gt;
:[[File:XPFirmware1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;4.&#039;&#039;&#039; If you have connected the usb-ttl adapter correctly and pressed the buttons you should see a green light and it should say that the target is readable. Click next.&lt;br /&gt;
&lt;br /&gt;
:[[File:XPFirmware2.jpg]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;5.&#039;&#039;&#039; The target on the next page should be correct, otherwise you will have to choose the controller and click next.&lt;br /&gt;
&lt;br /&gt;
:[[File:XPFirmware3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;6.&#039;&#039;&#039; Browse to the correct firmware file and click next. The upgrade will start.&lt;br /&gt;
&lt;br /&gt;
:[[File:XPFirmware4.jpg]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;7.&#039;&#039;&#039; After the firmware is downloaded to the controller you must restart it and it is now ready for use.&lt;br /&gt;
&lt;br /&gt;
:[[File:ready.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Removing Read&amp;amp;Write Protections ===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Some boards are unfortunately shipped with a read/write protection on the flash. As a result, storing parameters permanently in the board and flashing new firmware will fail. To remove the protections do the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1.&#039;&#039;&#039; Follow steps 1-3 of [[#Flashing Procedure for Win XP|Flashing Procedure for Win XP]] for downloading, installing and starting the Flash Loader Demonstrator of STMicroelectronics.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;2.&#039;&#039;&#039; Do also step 4, you will now however see the message &#039;&#039;&#039;WARNING: When you click &amp;quot;Remove Protection&amp;quot; the flash will be mass erased and all data will be lost.&#039;&#039;&#039;. Click on &#039;&#039;&#039;Remove Protection&#039;&#039;&#039;. This will remove the protections, as well as fully erase the flash memory.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;3.&#039;&#039;&#039; Close the Flash Loader Demonstrator after it has completed and restart the STorM32 board. The LEDs are not operational since also any firmware got erased in the previous step. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;4.&#039;&#039;&#039; Go back to the [[#Flashing Firmware using a USB-TTL Adapter|Flashing Firmware using a USB-TTL Adapter]] section in the above and flash the firmware anew.&lt;br /&gt;
&lt;br /&gt;
=== Trouble Shooting ===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
* In order to test if the usb-ttl adapter is working properly, you can connect its Rx and Tx pins with each other, and use a terminal program, such as Hterm. When you send characters they should be immediately received.&lt;br /&gt;
* If the USB is not working, please double-check that you&#039;ve selected the correct board version in the {{GUI|STorM32-BGC board}} field.&lt;br /&gt;
* In case you have troubles with the USB driver, see the [[STorM32_FAQ#Which_drivers_are_needed_for_the_USB.3F|FAQ: Which drivers are needed for the USB?]].&lt;br /&gt;
* In case the black DOS box doesn&#039;t show up, check if the firmware .zip file was extracted.&lt;br /&gt;
* In case the black DOS box shows the [OK] messages, but the downloading and verifying message lines are not present, go to [[#Removing Read&amp;amp;Write Protections|Removing Read&amp;amp;Write Protections]].&lt;br /&gt;
* On Win XP flashing via the GUI using the usb-ttl adapter will fail (the compiled .exe version of the flashloader doesn&#039;t work on XP, sorry for that). See the next sub section [[#Flashing Procedure for Win XP|Flashing Procedure for Win XP]].&lt;br /&gt;
* If the verify fails then first check that you are not using an outdated GUI version. Otherwise, check the {{GUI|Perform full chip erase}} check button and repeat. This will however also erase any setting which you might have stored before. In that case save the settings to a file beforehand using the option in the &amp;quot;Setting&amp;quot; menu. &lt;br /&gt;
&lt;br /&gt;
== Flashing Firmware using a STLink/V2 (SWD) Programmer ==&lt;br /&gt;
&lt;br /&gt;
PLEASE ADD&lt;/div&gt;</summary>
		<author><name>Lasakro</name></author>
	</entry>
	<entry>
		<id>http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=How_to_flash_firmware&amp;diff=2830</id>
		<title>How to flash firmware</title>
		<link rel="alternate" type="text/html" href="http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=How_to_flash_firmware&amp;diff=2830"/>
		<updated>2015-10-01T03:17:52Z</updated>

		<summary type="html">&lt;p&gt;Lasakro: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following describes the process of flashing firmware onto v1.1/v1.2/v1.3/v1.31 boards.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==1. Flashing Firmware using a USB-TTL Adapter ==&lt;br /&gt;
&lt;br /&gt;
:{===1.1. Flashing the Full Size STorM32 Board ===}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1.&#039;&#039;&#039; You need a standard usb-ttl adapter (FTDI, CP2102, ..., {{WARNING|&#039;&#039;&#039;not&#039;&#039;&#039;}} PL2303). Ensure that it is working (drivers installed, etc.).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;2.&#039;&#039;&#039; You don&#039;t have to worry if it is a 5 V adapter or not, the pins on the STorM32-BGC board we are going to connect the adapter to are 5 V tolerant.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;3.&#039;&#039;&#039; The adapter has to be connected to UART1, which is {{WARNING|&#039;&#039;&#039;not&#039;&#039;&#039;}} the port labelled UART on the board, the correct pins are found on the port labelled RC! Namely:&lt;br /&gt;
&lt;br /&gt;
:RC-GND = GND -&amp;gt; connect it to GND of the usb-ttl adapter&lt;br /&gt;
&lt;br /&gt;
:RC-0 = Uart1-Rx -&amp;gt; connect it to Tx of the usb-ttl adapter&lt;br /&gt;
&lt;br /&gt;
:RC-1 = Uart1-Tx -&amp;gt; connect it to Rx of the usb-ttl adapter&lt;br /&gt;
&lt;br /&gt;
The connections between adapter and board are shown for v1.2/v1.3/v1.31 and v1.1 boards in the scheme below.&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|Neither a 5 V nor a 3.3 V nor any other power pin on the usb-ttl adapter is used... only three wires running from adapter to board.}}&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:[[File:Stom32-bgc-flashing-w-usbttladapter-connections-02.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;4.&#039;&#039;&#039; The board should be powered via the USB plug or through a battery/power supply connected to the &amp;quot;+&amp;quot; and &amp;quot;-&amp;quot; pads.&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|If the board has already a firmware installed and this is the first-time it is connected via USB to a PC, then Win 7 will start installing the USB driver. {{WARNING|&#039;&#039;&#039;Do NOT interrupt the install process&#039;&#039;&#039;}}. See also the comments under point &#039;&#039;&#039;12&#039;&#039;&#039; below.}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;5.&#039;&#039;&#039; Run the GUI and go to the {{GUI|Flash Firmware}} tab (see the screenshot).&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|In principle you can use any GUI version to flash any version of the firmware. However, a GUI which is of the same or higher version than the firmware provides easy access to the firmware via the selector fields on the {{GUI|Flash Firmware}} window.}}&lt;br /&gt;
&lt;br /&gt;
:[[File:Stom32-wiki-flash-firmware-01.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;6.&#039;&#039;&#039; Select the correct board and desired firmware version from the selectors.&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|With these two selectors the correct firmware .hex file is chosen in the {{GUI|Selected Firmware Hex File}} field.}}&amp;lt;br/&amp;gt;&lt;br /&gt;
{{COMMENT|It is {{WARNING|&#039;&#039;&#039;important&#039;&#039;&#039;}} to choose the correct board version; otherwise the board will not functions correctly.}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;7.&#039;&#039;&#039; Select {{GUIPARAM|System Bootloader @ UART1}} in the {{GUI|STM32 Programmer}} field.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;8.&#039;&#039;&#039; In the {{GUI|Com Port}} field select the COM port which your usb-ttl adapter is connected to.&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|We are talking here about the {{GUI|Com Port}} field in the {{GUI|Flash Firmware}} tab, not the {{GUI|Port}} field in the lower left of the main window.}}&amp;lt;br/&amp;gt;&lt;br /&gt;
{{COMMENT|If you are not sure which the correct COM port is, then disconnect the usb-ttl adapter from the PC, inspect the drop-down list and memorize the available COM ports, connect your adapter and wait until its enumerated by Win, and finally inspect the drop-down list and chose the newly added COM port.}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;9.&#039;&#039;&#039; If required or desired check the {{GUI|Perform full chip erase}} check button.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;10.&#039;&#039;&#039; This is now {{WARNING|&#039;&#039;&#039;important&#039;&#039;&#039;}}: Before hitting the {{GUI|Flash Firmware}} button one has to ready the board for being flashed. For that, with the board connected to power, one has to&lt;br /&gt;
* press and hold down both the Reset and Boot0 buttons (the exact sequence of when which button is pressed is irrelevant, as long as they&#039;re both hold down)&lt;br /&gt;
* then, release the Reset button while still holding down the Boot0 button&lt;br /&gt;
* then, release also the Boot0 button&lt;br /&gt;
This may sound complicated, but one will quickly realize that this can be done by &amp;quot;rolling&amp;quot; the finger tip from the left to right.&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|Both LEDs will go off; they should appear &amp;quot;dead&amp;quot;.}}&lt;br /&gt;
&lt;br /&gt;
:[[File:Storm32-wiki-flash-firmware-key-sequence-01.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;11.&#039;&#039;&#039; Finally, hit the {{GUI|Flash Firmware}} button.&lt;br /&gt;
&lt;br /&gt;
Now a black window (DOS console) should open and run the flash loader program, as shown in the screenshot. Wait until it&#039;s finished (takes some seconds). If the program doesn&#039;t proceed and asks to &amp;quot;Press any key to continue&amp;quot; the board is write protected. See &amp;quot;Removing Write Protection&amp;quot; below.&lt;br /&gt;
&lt;br /&gt;
:[[File:flash.png|640px]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;12.&#039;&#039;&#039; The STorM32 board will be reset and start running. If this is the first-time flash of the firmware and if the board is connected via USB to a PC, then Win 7 will immediately start with installing the appropriate USB driver. This takes quite a while (several minutes). Please, be patient and wait until Win 7 reports that the device is ready for use. {{WARNING|&#039;&#039;&#039;Do not disconnect the board from the PC or otherwise interrupt the driver installation process before it is completed&#039;&#039;&#039;}}. This can mess up things quite considerably, and installing the driver later can be a challenge.&lt;br /&gt;
&lt;br /&gt;
=== Flashing the Micro STorM32 Board ===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
The Micro STorM32 board doesn&#039;t provide BOOT0 and RESET buttons. Here, BOOT0 must be shortcut to 3.3 V by e.g. soldering a wire as shown in the picture below, and powering up the board to bring it into bootloader mode.&lt;br /&gt;
 &lt;br /&gt;
:[[File:MicroStorm32.png|387px]]&lt;br /&gt;
&lt;br /&gt;
=== Flashing Procedure for Win XP ===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1.&#039;&#039;&#039; Download and install the Flash Loader Demonstrator from [http://www.st.com/web/en/catalog/tools/PF257525].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;2.&#039;&#039;&#039; Do step 1 to 4 under [[#Flashing Firmware using a USB-TTL Adapter|Flashing Firmware using a USB-TTL Adapter]].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;3.&#039;&#039;&#039; Start the Flash Loader Demonstrator, choose the correct COM port and then press the Boot0 and Reset buttons on the controller as described in step 10 under [[#Flashing Firmware using a USB-TTL Adapter|Flashing Firmware using a USB-TTL Adapter]]. Click next. &lt;br /&gt;
&lt;br /&gt;
{{COMMENT|The usb-ttl adapter needs to be connected to the PC before the Flash Loader Demonstrator is started}}.&lt;br /&gt;
&lt;br /&gt;
:[[File:XPFirmware1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;4.&#039;&#039;&#039; If you have connected the usb-ttl adapter correctly and pressed the buttons you should see a green light and it should say that the target is readable. Click next.&lt;br /&gt;
&lt;br /&gt;
:[[File:XPFirmware2.jpg]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;5.&#039;&#039;&#039; The target on the next page should be correct, otherwise you will have to choose the controller and click next.&lt;br /&gt;
&lt;br /&gt;
:[[File:XPFirmware3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;6.&#039;&#039;&#039; Browse to the correct firmware file and click next. The upgrade will start.&lt;br /&gt;
&lt;br /&gt;
:[[File:XPFirmware4.jpg]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;7.&#039;&#039;&#039; After the firmware is downloaded to the controller you must restart it and it is now ready for use.&lt;br /&gt;
&lt;br /&gt;
:[[File:ready.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Removing Read&amp;amp;Write Protections ===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Some boards are unfortunately shipped with a read/write protection on the flash. As a result, storing parameters permanently in the board and flashing new firmware will fail. To remove the protections do the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1.&#039;&#039;&#039; Follow steps 1-3 of [[#Flashing Procedure for Win XP|Flashing Procedure for Win XP]] for downloading, installing and starting the Flash Loader Demonstrator of STMicroelectronics.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;2.&#039;&#039;&#039; Do also step 4, you will now however see the message &#039;&#039;&#039;WARNING: When you click &amp;quot;Remove Protection&amp;quot; the flash will be mass erased and all data will be lost.&#039;&#039;&#039;. Click on &#039;&#039;&#039;Remove Protection&#039;&#039;&#039;. This will remove the protections, as well as fully erase the flash memory.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;3.&#039;&#039;&#039; Close the Flash Loader Demonstrator after it has completed and restart the STorM32 board. The LEDs are not operational since also any firmware got erased in the previous step. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;4.&#039;&#039;&#039; Go back to the [[#Flashing Firmware using a USB-TTL Adapter|Flashing Firmware using a USB-TTL Adapter]] section in the above and flash the firmware anew.&lt;br /&gt;
&lt;br /&gt;
=== Trouble Shooting ===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
* In order to test if the usb-ttl adapter is working properly, you can connect its Rx and Tx pins with each other, and use a terminal program, such as Hterm. When you send characters they should be immediately received.&lt;br /&gt;
* If the USB is not working, please double-check that you&#039;ve selected the correct board version in the {{GUI|STorM32-BGC board}} field.&lt;br /&gt;
* In case you have troubles with the USB driver, see the [[STorM32_FAQ#Which_drivers_are_needed_for_the_USB.3F|FAQ: Which drivers are needed for the USB?]].&lt;br /&gt;
* In case the black DOS box doesn&#039;t show up, check if the firmware .zip file was extracted.&lt;br /&gt;
* In case the black DOS box shows the [OK] messages, but the downloading and verifying message lines are not present, go to [[#Removing Read&amp;amp;Write Protections|Removing Read&amp;amp;Write Protections]].&lt;br /&gt;
* On Win XP flashing via the GUI using the usb-ttl adapter will fail (the compiled .exe version of the flashloader doesn&#039;t work on XP, sorry for that). See the next sub section [[#Flashing Procedure for Win XP|Flashing Procedure for Win XP]].&lt;br /&gt;
* If the verify fails then first check that you are not using an outdated GUI version. Otherwise, check the {{GUI|Perform full chip erase}} check button and repeat. This will however also erase any setting which you might have stored before. In that case save the settings to a file beforehand using the option in the &amp;quot;Setting&amp;quot; menu. &lt;br /&gt;
&lt;br /&gt;
== Flashing Firmware using a STLink/V2 (SWD) Programmer ==&lt;br /&gt;
&lt;br /&gt;
PLEASE ADD&lt;/div&gt;</summary>
		<author><name>Lasakro</name></author>
	</entry>
	<entry>
		<id>http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=How_to_flash_firmware&amp;diff=2829</id>
		<title>How to flash firmware</title>
		<link rel="alternate" type="text/html" href="http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=How_to_flash_firmware&amp;diff=2829"/>
		<updated>2015-10-01T03:16:33Z</updated>

		<summary type="html">&lt;p&gt;Lasakro: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following describes the process of flashing firmware onto v1.1/v1.2/v1.3/v1.31 boards.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==1. Flashing Firmware using a USB-TTL Adapter ==&lt;br /&gt;
&lt;br /&gt;
:===1.1. Flashing the Full Size STorM32 Board ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1.&#039;&#039;&#039; You need a standard usb-ttl adapter (FTDI, CP2102, ..., {{WARNING|&#039;&#039;&#039;not&#039;&#039;&#039;}} PL2303). Ensure that it is working (drivers installed, etc.).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;2.&#039;&#039;&#039; You don&#039;t have to worry if it is a 5 V adapter or not, the pins on the STorM32-BGC board we are going to connect the adapter to are 5 V tolerant.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;3.&#039;&#039;&#039; The adapter has to be connected to UART1, which is {{WARNING|&#039;&#039;&#039;not&#039;&#039;&#039;}} the port labelled UART on the board, the correct pins are found on the port labelled RC! Namely:&lt;br /&gt;
&lt;br /&gt;
:RC-GND = GND -&amp;gt; connect it to GND of the usb-ttl adapter&lt;br /&gt;
&lt;br /&gt;
:RC-0 = Uart1-Rx -&amp;gt; connect it to Tx of the usb-ttl adapter&lt;br /&gt;
&lt;br /&gt;
:RC-1 = Uart1-Tx -&amp;gt; connect it to Rx of the usb-ttl adapter&lt;br /&gt;
&lt;br /&gt;
The connections between adapter and board are shown for v1.2/v1.3/v1.31 and v1.1 boards in the scheme below.&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|Neither a 5 V nor a 3.3 V nor any other power pin on the usb-ttl adapter is used... only three wires running from adapter to board.}}&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:[[File:Stom32-bgc-flashing-w-usbttladapter-connections-02.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;4.&#039;&#039;&#039; The board should be powered via the USB plug or through a battery/power supply connected to the &amp;quot;+&amp;quot; and &amp;quot;-&amp;quot; pads.&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|If the board has already a firmware installed and this is the first-time it is connected via USB to a PC, then Win 7 will start installing the USB driver. {{WARNING|&#039;&#039;&#039;Do NOT interrupt the install process&#039;&#039;&#039;}}. See also the comments under point &#039;&#039;&#039;12&#039;&#039;&#039; below.}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;5.&#039;&#039;&#039; Run the GUI and go to the {{GUI|Flash Firmware}} tab (see the screenshot).&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|In principle you can use any GUI version to flash any version of the firmware. However, a GUI which is of the same or higher version than the firmware provides easy access to the firmware via the selector fields on the {{GUI|Flash Firmware}} window.}}&lt;br /&gt;
&lt;br /&gt;
:[[File:Stom32-wiki-flash-firmware-01.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;6.&#039;&#039;&#039; Select the correct board and desired firmware version from the selectors.&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|With these two selectors the correct firmware .hex file is chosen in the {{GUI|Selected Firmware Hex File}} field.}}&amp;lt;br/&amp;gt;&lt;br /&gt;
{{COMMENT|It is {{WARNING|&#039;&#039;&#039;important&#039;&#039;&#039;}} to choose the correct board version; otherwise the board will not functions correctly.}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;7.&#039;&#039;&#039; Select {{GUIPARAM|System Bootloader @ UART1}} in the {{GUI|STM32 Programmer}} field.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;8.&#039;&#039;&#039; In the {{GUI|Com Port}} field select the COM port which your usb-ttl adapter is connected to.&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|We are talking here about the {{GUI|Com Port}} field in the {{GUI|Flash Firmware}} tab, not the {{GUI|Port}} field in the lower left of the main window.}}&amp;lt;br/&amp;gt;&lt;br /&gt;
{{COMMENT|If you are not sure which the correct COM port is, then disconnect the usb-ttl adapter from the PC, inspect the drop-down list and memorize the available COM ports, connect your adapter and wait until its enumerated by Win, and finally inspect the drop-down list and chose the newly added COM port.}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;9.&#039;&#039;&#039; If required or desired check the {{GUI|Perform full chip erase}} check button.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;10.&#039;&#039;&#039; This is now {{WARNING|&#039;&#039;&#039;important&#039;&#039;&#039;}}: Before hitting the {{GUI|Flash Firmware}} button one has to ready the board for being flashed. For that, with the board connected to power, one has to&lt;br /&gt;
* press and hold down both the Reset and Boot0 buttons (the exact sequence of when which button is pressed is irrelevant, as long as they&#039;re both hold down)&lt;br /&gt;
* then, release the Reset button while still holding down the Boot0 button&lt;br /&gt;
* then, release also the Boot0 button&lt;br /&gt;
This may sound complicated, but one will quickly realize that this can be done by &amp;quot;rolling&amp;quot; the finger tip from the left to right.&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|Both LEDs will go off; they should appear &amp;quot;dead&amp;quot;.}}&lt;br /&gt;
&lt;br /&gt;
:[[File:Storm32-wiki-flash-firmware-key-sequence-01.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;11.&#039;&#039;&#039; Finally, hit the {{GUI|Flash Firmware}} button.&lt;br /&gt;
&lt;br /&gt;
Now a black window (DOS console) should open and run the flash loader program, as shown in the screenshot. Wait until it&#039;s finished (takes some seconds). If the program doesn&#039;t proceed and asks to &amp;quot;Press any key to continue&amp;quot; the board is write protected. See &amp;quot;Removing Write Protection&amp;quot; below.&lt;br /&gt;
&lt;br /&gt;
:[[File:flash.png|640px]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;12.&#039;&#039;&#039; The STorM32 board will be reset and start running. If this is the first-time flash of the firmware and if the board is connected via USB to a PC, then Win 7 will immediately start with installing the appropriate USB driver. This takes quite a while (several minutes). Please, be patient and wait until Win 7 reports that the device is ready for use. {{WARNING|&#039;&#039;&#039;Do not disconnect the board from the PC or otherwise interrupt the driver installation process before it is completed&#039;&#039;&#039;}}. This can mess up things quite considerably, and installing the driver later can be a challenge.&lt;br /&gt;
&lt;br /&gt;
=== Flashing the Micro STorM32 Board ===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
The Micro STorM32 board doesn&#039;t provide BOOT0 and RESET buttons. Here, BOOT0 must be shortcut to 3.3 V by e.g. soldering a wire as shown in the picture below, and powering up the board to bring it into bootloader mode.&lt;br /&gt;
 &lt;br /&gt;
:[[File:MicroStorm32.png|387px]]&lt;br /&gt;
&lt;br /&gt;
=== Flashing Procedure for Win XP ===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1.&#039;&#039;&#039; Download and install the Flash Loader Demonstrator from [http://www.st.com/web/en/catalog/tools/PF257525].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;2.&#039;&#039;&#039; Do step 1 to 4 under [[#Flashing Firmware using a USB-TTL Adapter|Flashing Firmware using a USB-TTL Adapter]].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;3.&#039;&#039;&#039; Start the Flash Loader Demonstrator, choose the correct COM port and then press the Boot0 and Reset buttons on the controller as described in step 10 under [[#Flashing Firmware using a USB-TTL Adapter|Flashing Firmware using a USB-TTL Adapter]]. Click next. &lt;br /&gt;
&lt;br /&gt;
{{COMMENT|The usb-ttl adapter needs to be connected to the PC before the Flash Loader Demonstrator is started}}.&lt;br /&gt;
&lt;br /&gt;
:[[File:XPFirmware1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;4.&#039;&#039;&#039; If you have connected the usb-ttl adapter correctly and pressed the buttons you should see a green light and it should say that the target is readable. Click next.&lt;br /&gt;
&lt;br /&gt;
:[[File:XPFirmware2.jpg]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;5.&#039;&#039;&#039; The target on the next page should be correct, otherwise you will have to choose the controller and click next.&lt;br /&gt;
&lt;br /&gt;
:[[File:XPFirmware3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;6.&#039;&#039;&#039; Browse to the correct firmware file and click next. The upgrade will start.&lt;br /&gt;
&lt;br /&gt;
:[[File:XPFirmware4.jpg]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;7.&#039;&#039;&#039; After the firmware is downloaded to the controller you must restart it and it is now ready for use.&lt;br /&gt;
&lt;br /&gt;
:[[File:ready.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Removing Read&amp;amp;Write Protections ===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Some boards are unfortunately shipped with a read/write protection on the flash. As a result, storing parameters permanently in the board and flashing new firmware will fail. To remove the protections do the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1.&#039;&#039;&#039; Follow steps 1-3 of [[#Flashing Procedure for Win XP|Flashing Procedure for Win XP]] for downloading, installing and starting the Flash Loader Demonstrator of STMicroelectronics.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;2.&#039;&#039;&#039; Do also step 4, you will now however see the message &#039;&#039;&#039;WARNING: When you click &amp;quot;Remove Protection&amp;quot; the flash will be mass erased and all data will be lost.&#039;&#039;&#039;. Click on &#039;&#039;&#039;Remove Protection&#039;&#039;&#039;. This will remove the protections, as well as fully erase the flash memory.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;3.&#039;&#039;&#039; Close the Flash Loader Demonstrator after it has completed and restart the STorM32 board. The LEDs are not operational since also any firmware got erased in the previous step. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;4.&#039;&#039;&#039; Go back to the [[#Flashing Firmware using a USB-TTL Adapter|Flashing Firmware using a USB-TTL Adapter]] section in the above and flash the firmware anew.&lt;br /&gt;
&lt;br /&gt;
=== Trouble Shooting ===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
* In order to test if the usb-ttl adapter is working properly, you can connect its Rx and Tx pins with each other, and use a terminal program, such as Hterm. When you send characters they should be immediately received.&lt;br /&gt;
* If the USB is not working, please double-check that you&#039;ve selected the correct board version in the {{GUI|STorM32-BGC board}} field.&lt;br /&gt;
* In case you have troubles with the USB driver, see the [[STorM32_FAQ#Which_drivers_are_needed_for_the_USB.3F|FAQ: Which drivers are needed for the USB?]].&lt;br /&gt;
* In case the black DOS box doesn&#039;t show up, check if the firmware .zip file was extracted.&lt;br /&gt;
* In case the black DOS box shows the [OK] messages, but the downloading and verifying message lines are not present, go to [[#Removing Read&amp;amp;Write Protections|Removing Read&amp;amp;Write Protections]].&lt;br /&gt;
* On Win XP flashing via the GUI using the usb-ttl adapter will fail (the compiled .exe version of the flashloader doesn&#039;t work on XP, sorry for that). See the next sub section [[#Flashing Procedure for Win XP|Flashing Procedure for Win XP]].&lt;br /&gt;
* If the verify fails then first check that you are not using an outdated GUI version. Otherwise, check the {{GUI|Perform full chip erase}} check button and repeat. This will however also erase any setting which you might have stored before. In that case save the settings to a file beforehand using the option in the &amp;quot;Setting&amp;quot; menu. &lt;br /&gt;
&lt;br /&gt;
== Flashing Firmware using a STLink/V2 (SWD) Programmer ==&lt;br /&gt;
&lt;br /&gt;
PLEASE ADD&lt;/div&gt;</summary>
		<author><name>Lasakro</name></author>
	</entry>
	<entry>
		<id>http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=How_to_flash_firmware&amp;diff=2828</id>
		<title>How to flash firmware</title>
		<link rel="alternate" type="text/html" href="http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=How_to_flash_firmware&amp;diff=2828"/>
		<updated>2015-10-01T03:16:05Z</updated>

		<summary type="html">&lt;p&gt;Lasakro: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following describes the process of flashing firmware onto v1.1/v1.2/v1.3/v1.31 boards.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==1. Flashing Firmware using a USB-TTL Adapter ==&lt;br /&gt;
&lt;br /&gt;
===:1.1. Flashing the Full Size STorM32 Board ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1.&#039;&#039;&#039; You need a standard usb-ttl adapter (FTDI, CP2102, ..., {{WARNING|&#039;&#039;&#039;not&#039;&#039;&#039;}} PL2303). Ensure that it is working (drivers installed, etc.).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;2.&#039;&#039;&#039; You don&#039;t have to worry if it is a 5 V adapter or not, the pins on the STorM32-BGC board we are going to connect the adapter to are 5 V tolerant.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;3.&#039;&#039;&#039; The adapter has to be connected to UART1, which is {{WARNING|&#039;&#039;&#039;not&#039;&#039;&#039;}} the port labelled UART on the board, the correct pins are found on the port labelled RC! Namely:&lt;br /&gt;
&lt;br /&gt;
:RC-GND = GND -&amp;gt; connect it to GND of the usb-ttl adapter&lt;br /&gt;
&lt;br /&gt;
:RC-0 = Uart1-Rx -&amp;gt; connect it to Tx of the usb-ttl adapter&lt;br /&gt;
&lt;br /&gt;
:RC-1 = Uart1-Tx -&amp;gt; connect it to Rx of the usb-ttl adapter&lt;br /&gt;
&lt;br /&gt;
The connections between adapter and board are shown for v1.2/v1.3/v1.31 and v1.1 boards in the scheme below.&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|Neither a 5 V nor a 3.3 V nor any other power pin on the usb-ttl adapter is used... only three wires running from adapter to board.}}&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:[[File:Stom32-bgc-flashing-w-usbttladapter-connections-02.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;4.&#039;&#039;&#039; The board should be powered via the USB plug or through a battery/power supply connected to the &amp;quot;+&amp;quot; and &amp;quot;-&amp;quot; pads.&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|If the board has already a firmware installed and this is the first-time it is connected via USB to a PC, then Win 7 will start installing the USB driver. {{WARNING|&#039;&#039;&#039;Do NOT interrupt the install process&#039;&#039;&#039;}}. See also the comments under point &#039;&#039;&#039;12&#039;&#039;&#039; below.}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;5.&#039;&#039;&#039; Run the GUI and go to the {{GUI|Flash Firmware}} tab (see the screenshot).&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|In principle you can use any GUI version to flash any version of the firmware. However, a GUI which is of the same or higher version than the firmware provides easy access to the firmware via the selector fields on the {{GUI|Flash Firmware}} window.}}&lt;br /&gt;
&lt;br /&gt;
:[[File:Stom32-wiki-flash-firmware-01.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;6.&#039;&#039;&#039; Select the correct board and desired firmware version from the selectors.&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|With these two selectors the correct firmware .hex file is chosen in the {{GUI|Selected Firmware Hex File}} field.}}&amp;lt;br/&amp;gt;&lt;br /&gt;
{{COMMENT|It is {{WARNING|&#039;&#039;&#039;important&#039;&#039;&#039;}} to choose the correct board version; otherwise the board will not functions correctly.}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;7.&#039;&#039;&#039; Select {{GUIPARAM|System Bootloader @ UART1}} in the {{GUI|STM32 Programmer}} field.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;8.&#039;&#039;&#039; In the {{GUI|Com Port}} field select the COM port which your usb-ttl adapter is connected to.&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|We are talking here about the {{GUI|Com Port}} field in the {{GUI|Flash Firmware}} tab, not the {{GUI|Port}} field in the lower left of the main window.}}&amp;lt;br/&amp;gt;&lt;br /&gt;
{{COMMENT|If you are not sure which the correct COM port is, then disconnect the usb-ttl adapter from the PC, inspect the drop-down list and memorize the available COM ports, connect your adapter and wait until its enumerated by Win, and finally inspect the drop-down list and chose the newly added COM port.}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;9.&#039;&#039;&#039; If required or desired check the {{GUI|Perform full chip erase}} check button.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;10.&#039;&#039;&#039; This is now {{WARNING|&#039;&#039;&#039;important&#039;&#039;&#039;}}: Before hitting the {{GUI|Flash Firmware}} button one has to ready the board for being flashed. For that, with the board connected to power, one has to&lt;br /&gt;
* press and hold down both the Reset and Boot0 buttons (the exact sequence of when which button is pressed is irrelevant, as long as they&#039;re both hold down)&lt;br /&gt;
* then, release the Reset button while still holding down the Boot0 button&lt;br /&gt;
* then, release also the Boot0 button&lt;br /&gt;
This may sound complicated, but one will quickly realize that this can be done by &amp;quot;rolling&amp;quot; the finger tip from the left to right.&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|Both LEDs will go off; they should appear &amp;quot;dead&amp;quot;.}}&lt;br /&gt;
&lt;br /&gt;
:[[File:Storm32-wiki-flash-firmware-key-sequence-01.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;11.&#039;&#039;&#039; Finally, hit the {{GUI|Flash Firmware}} button.&lt;br /&gt;
&lt;br /&gt;
Now a black window (DOS console) should open and run the flash loader program, as shown in the screenshot. Wait until it&#039;s finished (takes some seconds). If the program doesn&#039;t proceed and asks to &amp;quot;Press any key to continue&amp;quot; the board is write protected. See &amp;quot;Removing Write Protection&amp;quot; below.&lt;br /&gt;
&lt;br /&gt;
:[[File:flash.png|640px]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;12.&#039;&#039;&#039; The STorM32 board will be reset and start running. If this is the first-time flash of the firmware and if the board is connected via USB to a PC, then Win 7 will immediately start with installing the appropriate USB driver. This takes quite a while (several minutes). Please, be patient and wait until Win 7 reports that the device is ready for use. {{WARNING|&#039;&#039;&#039;Do not disconnect the board from the PC or otherwise interrupt the driver installation process before it is completed&#039;&#039;&#039;}}. This can mess up things quite considerably, and installing the driver later can be a challenge.&lt;br /&gt;
&lt;br /&gt;
=== Flashing the Micro STorM32 Board ===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
The Micro STorM32 board doesn&#039;t provide BOOT0 and RESET buttons. Here, BOOT0 must be shortcut to 3.3 V by e.g. soldering a wire as shown in the picture below, and powering up the board to bring it into bootloader mode.&lt;br /&gt;
 &lt;br /&gt;
:[[File:MicroStorm32.png|387px]]&lt;br /&gt;
&lt;br /&gt;
=== Flashing Procedure for Win XP ===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1.&#039;&#039;&#039; Download and install the Flash Loader Demonstrator from [http://www.st.com/web/en/catalog/tools/PF257525].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;2.&#039;&#039;&#039; Do step 1 to 4 under [[#Flashing Firmware using a USB-TTL Adapter|Flashing Firmware using a USB-TTL Adapter]].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;3.&#039;&#039;&#039; Start the Flash Loader Demonstrator, choose the correct COM port and then press the Boot0 and Reset buttons on the controller as described in step 10 under [[#Flashing Firmware using a USB-TTL Adapter|Flashing Firmware using a USB-TTL Adapter]]. Click next. &lt;br /&gt;
&lt;br /&gt;
{{COMMENT|The usb-ttl adapter needs to be connected to the PC before the Flash Loader Demonstrator is started}}.&lt;br /&gt;
&lt;br /&gt;
:[[File:XPFirmware1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;4.&#039;&#039;&#039; If you have connected the usb-ttl adapter correctly and pressed the buttons you should see a green light and it should say that the target is readable. Click next.&lt;br /&gt;
&lt;br /&gt;
:[[File:XPFirmware2.jpg]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;5.&#039;&#039;&#039; The target on the next page should be correct, otherwise you will have to choose the controller and click next.&lt;br /&gt;
&lt;br /&gt;
:[[File:XPFirmware3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;6.&#039;&#039;&#039; Browse to the correct firmware file and click next. The upgrade will start.&lt;br /&gt;
&lt;br /&gt;
:[[File:XPFirmware4.jpg]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;7.&#039;&#039;&#039; After the firmware is downloaded to the controller you must restart it and it is now ready for use.&lt;br /&gt;
&lt;br /&gt;
:[[File:ready.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Removing Read&amp;amp;Write Protections ===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Some boards are unfortunately shipped with a read/write protection on the flash. As a result, storing parameters permanently in the board and flashing new firmware will fail. To remove the protections do the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1.&#039;&#039;&#039; Follow steps 1-3 of [[#Flashing Procedure for Win XP|Flashing Procedure for Win XP]] for downloading, installing and starting the Flash Loader Demonstrator of STMicroelectronics.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;2.&#039;&#039;&#039; Do also step 4, you will now however see the message &#039;&#039;&#039;WARNING: When you click &amp;quot;Remove Protection&amp;quot; the flash will be mass erased and all data will be lost.&#039;&#039;&#039;. Click on &#039;&#039;&#039;Remove Protection&#039;&#039;&#039;. This will remove the protections, as well as fully erase the flash memory.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;3.&#039;&#039;&#039; Close the Flash Loader Demonstrator after it has completed and restart the STorM32 board. The LEDs are not operational since also any firmware got erased in the previous step. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;4.&#039;&#039;&#039; Go back to the [[#Flashing Firmware using a USB-TTL Adapter|Flashing Firmware using a USB-TTL Adapter]] section in the above and flash the firmware anew.&lt;br /&gt;
&lt;br /&gt;
=== Trouble Shooting ===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
* In order to test if the usb-ttl adapter is working properly, you can connect its Rx and Tx pins with each other, and use a terminal program, such as Hterm. When you send characters they should be immediately received.&lt;br /&gt;
* If the USB is not working, please double-check that you&#039;ve selected the correct board version in the {{GUI|STorM32-BGC board}} field.&lt;br /&gt;
* In case you have troubles with the USB driver, see the [[STorM32_FAQ#Which_drivers_are_needed_for_the_USB.3F|FAQ: Which drivers are needed for the USB?]].&lt;br /&gt;
* In case the black DOS box doesn&#039;t show up, check if the firmware .zip file was extracted.&lt;br /&gt;
* In case the black DOS box shows the [OK] messages, but the downloading and verifying message lines are not present, go to [[#Removing Read&amp;amp;Write Protections|Removing Read&amp;amp;Write Protections]].&lt;br /&gt;
* On Win XP flashing via the GUI using the usb-ttl adapter will fail (the compiled .exe version of the flashloader doesn&#039;t work on XP, sorry for that). See the next sub section [[#Flashing Procedure for Win XP|Flashing Procedure for Win XP]].&lt;br /&gt;
* If the verify fails then first check that you are not using an outdated GUI version. Otherwise, check the {{GUI|Perform full chip erase}} check button and repeat. This will however also erase any setting which you might have stored before. In that case save the settings to a file beforehand using the option in the &amp;quot;Setting&amp;quot; menu. &lt;br /&gt;
&lt;br /&gt;
== Flashing Firmware using a STLink/V2 (SWD) Programmer ==&lt;br /&gt;
&lt;br /&gt;
PLEASE ADD&lt;/div&gt;</summary>
		<author><name>Lasakro</name></author>
	</entry>
	<entry>
		<id>http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=How_to_flash_firmware&amp;diff=2827</id>
		<title>How to flash firmware</title>
		<link rel="alternate" type="text/html" href="http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=How_to_flash_firmware&amp;diff=2827"/>
		<updated>2015-10-01T03:15:20Z</updated>

		<summary type="html">&lt;p&gt;Lasakro: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following describes the process of flashing firmware onto v1.1/v1.2/v1.3/v1.31 boards.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==1. Flashing Firmware using a USB-TTL Adapter ==&lt;br /&gt;
&lt;br /&gt;
=== 1.1. Flashing the Full Size STorM32 Board ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1.&#039;&#039;&#039; You need a standard usb-ttl adapter (FTDI, CP2102, ..., {{WARNING|&#039;&#039;&#039;not&#039;&#039;&#039;}} PL2303). Ensure that it is working (drivers installed, etc.).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;2.&#039;&#039;&#039; You don&#039;t have to worry if it is a 5 V adapter or not, the pins on the STorM32-BGC board we are going to connect the adapter to are 5 V tolerant.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;3.&#039;&#039;&#039; The adapter has to be connected to UART1, which is {{WARNING|&#039;&#039;&#039;not&#039;&#039;&#039;}} the port labelled UART on the board, the correct pins are found on the port labelled RC! Namely:&lt;br /&gt;
&lt;br /&gt;
:RC-GND = GND -&amp;gt; connect it to GND of the usb-ttl adapter&lt;br /&gt;
&lt;br /&gt;
:RC-0 = Uart1-Rx -&amp;gt; connect it to Tx of the usb-ttl adapter&lt;br /&gt;
&lt;br /&gt;
:RC-1 = Uart1-Tx -&amp;gt; connect it to Rx of the usb-ttl adapter&lt;br /&gt;
&lt;br /&gt;
The connections between adapter and board are shown for v1.2/v1.3/v1.31 and v1.1 boards in the scheme below.&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|Neither a 5 V nor a 3.3 V nor any other power pin on the usb-ttl adapter is used... only three wires running from adapter to board.}}&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:[[File:Stom32-bgc-flashing-w-usbttladapter-connections-02.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;4.&#039;&#039;&#039; The board should be powered via the USB plug or through a battery/power supply connected to the &amp;quot;+&amp;quot; and &amp;quot;-&amp;quot; pads.&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|If the board has already a firmware installed and this is the first-time it is connected via USB to a PC, then Win 7 will start installing the USB driver. {{WARNING|&#039;&#039;&#039;Do NOT interrupt the install process&#039;&#039;&#039;}}. See also the comments under point &#039;&#039;&#039;12&#039;&#039;&#039; below.}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;5.&#039;&#039;&#039; Run the GUI and go to the {{GUI|Flash Firmware}} tab (see the screenshot).&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|In principle you can use any GUI version to flash any version of the firmware. However, a GUI which is of the same or higher version than the firmware provides easy access to the firmware via the selector fields on the {{GUI|Flash Firmware}} window.}}&lt;br /&gt;
&lt;br /&gt;
:[[File:Stom32-wiki-flash-firmware-01.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;6.&#039;&#039;&#039; Select the correct board and desired firmware version from the selectors.&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|With these two selectors the correct firmware .hex file is chosen in the {{GUI|Selected Firmware Hex File}} field.}}&amp;lt;br/&amp;gt;&lt;br /&gt;
{{COMMENT|It is {{WARNING|&#039;&#039;&#039;important&#039;&#039;&#039;}} to choose the correct board version; otherwise the board will not functions correctly.}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;7.&#039;&#039;&#039; Select {{GUIPARAM|System Bootloader @ UART1}} in the {{GUI|STM32 Programmer}} field.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;8.&#039;&#039;&#039; In the {{GUI|Com Port}} field select the COM port which your usb-ttl adapter is connected to.&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|We are talking here about the {{GUI|Com Port}} field in the {{GUI|Flash Firmware}} tab, not the {{GUI|Port}} field in the lower left of the main window.}}&amp;lt;br/&amp;gt;&lt;br /&gt;
{{COMMENT|If you are not sure which the correct COM port is, then disconnect the usb-ttl adapter from the PC, inspect the drop-down list and memorize the available COM ports, connect your adapter and wait until its enumerated by Win, and finally inspect the drop-down list and chose the newly added COM port.}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;9.&#039;&#039;&#039; If required or desired check the {{GUI|Perform full chip erase}} check button.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;10.&#039;&#039;&#039; This is now {{WARNING|&#039;&#039;&#039;important&#039;&#039;&#039;}}: Before hitting the {{GUI|Flash Firmware}} button one has to ready the board for being flashed. For that, with the board connected to power, one has to&lt;br /&gt;
* press and hold down both the Reset and Boot0 buttons (the exact sequence of when which button is pressed is irrelevant, as long as they&#039;re both hold down)&lt;br /&gt;
* then, release the Reset button while still holding down the Boot0 button&lt;br /&gt;
* then, release also the Boot0 button&lt;br /&gt;
This may sound complicated, but one will quickly realize that this can be done by &amp;quot;rolling&amp;quot; the finger tip from the left to right.&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|Both LEDs will go off; they should appear &amp;quot;dead&amp;quot;.}}&lt;br /&gt;
&lt;br /&gt;
:[[File:Storm32-wiki-flash-firmware-key-sequence-01.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;11.&#039;&#039;&#039; Finally, hit the {{GUI|Flash Firmware}} button.&lt;br /&gt;
&lt;br /&gt;
Now a black window (DOS console) should open and run the flash loader program, as shown in the screenshot. Wait until it&#039;s finished (takes some seconds). If the program doesn&#039;t proceed and asks to &amp;quot;Press any key to continue&amp;quot; the board is write protected. See &amp;quot;Removing Write Protection&amp;quot; below.&lt;br /&gt;
&lt;br /&gt;
:[[File:flash.png|640px]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;12.&#039;&#039;&#039; The STorM32 board will be reset and start running. If this is the first-time flash of the firmware and if the board is connected via USB to a PC, then Win 7 will immediately start with installing the appropriate USB driver. This takes quite a while (several minutes). Please, be patient and wait until Win 7 reports that the device is ready for use. {{WARNING|&#039;&#039;&#039;Do not disconnect the board from the PC or otherwise interrupt the driver installation process before it is completed&#039;&#039;&#039;}}. This can mess up things quite considerably, and installing the driver later can be a challenge.&lt;br /&gt;
&lt;br /&gt;
=== Flashing the Micro STorM32 Board ===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
The Micro STorM32 board doesn&#039;t provide BOOT0 and RESET buttons. Here, BOOT0 must be shortcut to 3.3 V by e.g. soldering a wire as shown in the picture below, and powering up the board to bring it into bootloader mode.&lt;br /&gt;
 &lt;br /&gt;
:[[File:MicroStorm32.png|387px]]&lt;br /&gt;
&lt;br /&gt;
=== Flashing Procedure for Win XP ===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1.&#039;&#039;&#039; Download and install the Flash Loader Demonstrator from [http://www.st.com/web/en/catalog/tools/PF257525].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;2.&#039;&#039;&#039; Do step 1 to 4 under [[#Flashing Firmware using a USB-TTL Adapter|Flashing Firmware using a USB-TTL Adapter]].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;3.&#039;&#039;&#039; Start the Flash Loader Demonstrator, choose the correct COM port and then press the Boot0 and Reset buttons on the controller as described in step 10 under [[#Flashing Firmware using a USB-TTL Adapter|Flashing Firmware using a USB-TTL Adapter]]. Click next. &lt;br /&gt;
&lt;br /&gt;
{{COMMENT|The usb-ttl adapter needs to be connected to the PC before the Flash Loader Demonstrator is started}}.&lt;br /&gt;
&lt;br /&gt;
:[[File:XPFirmware1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;4.&#039;&#039;&#039; If you have connected the usb-ttl adapter correctly and pressed the buttons you should see a green light and it should say that the target is readable. Click next.&lt;br /&gt;
&lt;br /&gt;
:[[File:XPFirmware2.jpg]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;5.&#039;&#039;&#039; The target on the next page should be correct, otherwise you will have to choose the controller and click next.&lt;br /&gt;
&lt;br /&gt;
:[[File:XPFirmware3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;6.&#039;&#039;&#039; Browse to the correct firmware file and click next. The upgrade will start.&lt;br /&gt;
&lt;br /&gt;
:[[File:XPFirmware4.jpg]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;7.&#039;&#039;&#039; After the firmware is downloaded to the controller you must restart it and it is now ready for use.&lt;br /&gt;
&lt;br /&gt;
:[[File:ready.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Removing Read&amp;amp;Write Protections ===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Some boards are unfortunately shipped with a read/write protection on the flash. As a result, storing parameters permanently in the board and flashing new firmware will fail. To remove the protections do the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1.&#039;&#039;&#039; Follow steps 1-3 of [[#Flashing Procedure for Win XP|Flashing Procedure for Win XP]] for downloading, installing and starting the Flash Loader Demonstrator of STMicroelectronics.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;2.&#039;&#039;&#039; Do also step 4, you will now however see the message &#039;&#039;&#039;WARNING: When you click &amp;quot;Remove Protection&amp;quot; the flash will be mass erased and all data will be lost.&#039;&#039;&#039;. Click on &#039;&#039;&#039;Remove Protection&#039;&#039;&#039;. This will remove the protections, as well as fully erase the flash memory.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;3.&#039;&#039;&#039; Close the Flash Loader Demonstrator after it has completed and restart the STorM32 board. The LEDs are not operational since also any firmware got erased in the previous step. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;4.&#039;&#039;&#039; Go back to the [[#Flashing Firmware using a USB-TTL Adapter|Flashing Firmware using a USB-TTL Adapter]] section in the above and flash the firmware anew.&lt;br /&gt;
&lt;br /&gt;
=== Trouble Shooting ===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
* In order to test if the usb-ttl adapter is working properly, you can connect its Rx and Tx pins with each other, and use a terminal program, such as Hterm. When you send characters they should be immediately received.&lt;br /&gt;
* If the USB is not working, please double-check that you&#039;ve selected the correct board version in the {{GUI|STorM32-BGC board}} field.&lt;br /&gt;
* In case you have troubles with the USB driver, see the [[STorM32_FAQ#Which_drivers_are_needed_for_the_USB.3F|FAQ: Which drivers are needed for the USB?]].&lt;br /&gt;
* In case the black DOS box doesn&#039;t show up, check if the firmware .zip file was extracted.&lt;br /&gt;
* In case the black DOS box shows the [OK] messages, but the downloading and verifying message lines are not present, go to [[#Removing Read&amp;amp;Write Protections|Removing Read&amp;amp;Write Protections]].&lt;br /&gt;
* On Win XP flashing via the GUI using the usb-ttl adapter will fail (the compiled .exe version of the flashloader doesn&#039;t work on XP, sorry for that). See the next sub section [[#Flashing Procedure for Win XP|Flashing Procedure for Win XP]].&lt;br /&gt;
* If the verify fails then first check that you are not using an outdated GUI version. Otherwise, check the {{GUI|Perform full chip erase}} check button and repeat. This will however also erase any setting which you might have stored before. In that case save the settings to a file beforehand using the option in the &amp;quot;Setting&amp;quot; menu. &lt;br /&gt;
&lt;br /&gt;
== Flashing Firmware using a STLink/V2 (SWD) Programmer ==&lt;br /&gt;
&lt;br /&gt;
PLEASE ADD&lt;/div&gt;</summary>
		<author><name>Lasakro</name></author>
	</entry>
	<entry>
		<id>http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=How_to_flash_firmware&amp;diff=2824</id>
		<title>How to flash firmware</title>
		<link rel="alternate" type="text/html" href="http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=How_to_flash_firmware&amp;diff=2824"/>
		<updated>2015-10-01T02:44:35Z</updated>

		<summary type="html">&lt;p&gt;Lasakro: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following describes the process of flashing firmware onto v1.1/v1.2/v1.3/v1.31 boards.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Flashing Firmware using a USB-TTL Adapter ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1.&#039;&#039;&#039; You need a standard usb-ttl adapter (FTDI, CP2102, ..., {{WARNING|&#039;&#039;&#039;not&#039;&#039;&#039;}} PL2303). Ensure that it is working (drivers installed, etc.).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;2.&#039;&#039;&#039; You don&#039;t have to worry if it is a 5 V adapter or not, the pins on the STorM32-BGC board we are going to connect the adapter to are 5 V tolerant.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;3.&#039;&#039;&#039; The adapter has to be connected to UART1, which is {{WARNING|&#039;&#039;&#039;not&#039;&#039;&#039;}} the port labelled UART on the board, the correct pins are found on the port labelled RC! Namely:&lt;br /&gt;
&lt;br /&gt;
:RC-GND = GND -&amp;gt; connect it to GND of the usb-ttl adapter&lt;br /&gt;
&lt;br /&gt;
:RC-0 = Uart1-Rx -&amp;gt; connect it to Tx of the usb-ttl adapter&lt;br /&gt;
&lt;br /&gt;
:RC-1 = Uart1-Tx -&amp;gt; connect it to Rx of the usb-ttl adapter&lt;br /&gt;
&lt;br /&gt;
The connections between adapter and board are shown for v1.2/v1.3/v1.31 and v1.1 boards in the scheme below.&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|Neither a 5 V nor a 3.3 V nor any other power pin on the usb-ttl adapter is used... only three wires running from adapter to board.}}&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:[[File:Stom32-bgc-flashing-w-usbttladapter-connections-02.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;4.&#039;&#039;&#039; The board should be powered via the USB plug or through a battery/power supply connected to the &amp;quot;+&amp;quot; and &amp;quot;-&amp;quot; pads.&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|If the board has already a firmware installed and this is the first-time it is connected via USB to a PC, then Win 7 will start installing the USB driver. {{WARNING|&#039;&#039;&#039;Do NOT interrupt the install process&#039;&#039;&#039;}}. See also the comments under point &#039;&#039;&#039;12&#039;&#039;&#039; below.}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;5.&#039;&#039;&#039; Run the GUI and go to the {{GUI|Flash Firmware}} tab (see the screenshot).&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|In principle you can use any GUI version to flash any version of the firmware. However, a GUI which is of the same or higher version than the firmware provides easy access to the firmware via the selector fields on the {{GUI|Flash Firmware}} window.}}&lt;br /&gt;
&lt;br /&gt;
:[[File:Stom32-wiki-flash-firmware-01.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;6.&#039;&#039;&#039; Select the correct board and desired firmware version from the selectors.&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|With these two selectors the correct firmware .hex file is chosen in the {{GUI|Selected Firmware Hex File}} field.}}&amp;lt;br/&amp;gt;&lt;br /&gt;
{{COMMENT|It is {{WARNING|&#039;&#039;&#039;important&#039;&#039;&#039;}} to choose the correct board version; otherwise the board will not functions correctly.}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;7.&#039;&#039;&#039; Select {{GUIPARAM|System Bootloader @ UART1}} in the {{GUI|STM32 Programmer}} field.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;8.&#039;&#039;&#039; In the {{GUI|Com Port}} field select the COM port which your usb-ttl adapter is connected to.&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|We are talking here about the {{GUI|Com Port}} field in the {{GUI|Flash Firmware}} tab, not the {{GUI|Port}} field in the lower left of the main window.}}&amp;lt;br/&amp;gt;&lt;br /&gt;
{{COMMENT|If you are not sure which the correct COM port is, then disconnect the usb-ttl adapter from the PC, inspect the drop-down list and memorize the available COM ports, connect your adapter and wait until its enumerated by Win, and finally inspect the drop-down list and chose the newly added COM port.}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;9.&#039;&#039;&#039; If required or desired check the {{GUI|Perform full chip erase}} check button.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;10.&#039;&#039;&#039; This is now {{WARNING|&#039;&#039;&#039;important&#039;&#039;&#039;}}: Before hitting the {{GUI|Flash Firmware}} button one has to ready the board for being flashed. For that, with the board connected to power, one has to&lt;br /&gt;
* press and hold down both the Reset and Boot0 buttons (the exact sequence of when which button is pressed is irrelevant, as long as they&#039;re both hold down)&lt;br /&gt;
* then, release the Reset button while still holding down the Boot0 button&lt;br /&gt;
* then, release also the Boot0 button&lt;br /&gt;
This may sound complicated, but one will quickly realize that this can be done by &amp;quot;rolling&amp;quot; the finger tip from the left to right.&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|Both LEDs will go off; they should appear &amp;quot;dead&amp;quot;.}}&lt;br /&gt;
&lt;br /&gt;
:[[File:Storm32-wiki-flash-firmware-key-sequence-01.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;11.&#039;&#039;&#039; Finally, hit the {{GUI|Flash Firmware}} button.&lt;br /&gt;
&lt;br /&gt;
Now a black window (DOS console) should open and run the flash loader program, as shown in the screenshot. Wait until it&#039;s finished (takes some seconds). If the program doesn&#039;t proceed and asks to &amp;quot;Press any key to continue&amp;quot; the board is write protected. See &amp;quot;Removing Write Protection&amp;quot; below.&lt;br /&gt;
&lt;br /&gt;
:[[File:flash.png|640px]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;12.&#039;&#039;&#039; The STorM32 board will be reset and start running. If this is the first-time flash of the firmware and if the board is connected via USB to a PC, then Win 7 will immediately start with installing the appropriate USB driver. This takes quite a while (several minutes). Please, be patient and wait until Win 7 reports that the device is ready for use. {{WARNING|&#039;&#039;&#039;Do not disconnect the board from the PC or otherwise interrupt the driver installation process before it is completed&#039;&#039;&#039;}}. This can mess up things quite considerably, and installing the driver later can be a challenge.&lt;br /&gt;
&lt;br /&gt;
=== Flashing the Micro STorM32 Board ===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
The Micro STorM32 board doesn&#039;t provide BOOT0 and RESET buttons. Here, BOOT0 must be shortcut to 3.3 V by e.g. soldering a wire as shown in the picture below, and powering up the board to bring it into bootloader mode.&lt;br /&gt;
 &lt;br /&gt;
:[[File:MicroStorm32.png|387px]]&lt;br /&gt;
&lt;br /&gt;
=== Flashing Procedure for Win XP ===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1.&#039;&#039;&#039; Download and install the Flash Loader Demonstrator from [http://www.st.com/web/en/catalog/tools/PF257525].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;2.&#039;&#039;&#039; Do step 1 to 4 under [[#Flashing Firmware using a USB-TTL Adapter|Flashing Firmware using a USB-TTL Adapter]].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;3.&#039;&#039;&#039; Start the Flash Loader Demonstrator, choose the correct COM port and then press the Boot0 and Reset buttons on the controller as described in step 10 under [[#Flashing Firmware using a USB-TTL Adapter|Flashing Firmware using a USB-TTL Adapter]]. Click next. &lt;br /&gt;
&lt;br /&gt;
{{COMMENT|The usb-ttl adapter needs to be connected to the PC before the Flash Loader Demonstrator is started}}.&lt;br /&gt;
&lt;br /&gt;
:[[File:XPFirmware1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;4.&#039;&#039;&#039; If you have connected the usb-ttl adapter correctly and pressed the buttons you should see a green light and it should say that the target is readable. Click next.&lt;br /&gt;
&lt;br /&gt;
:[[File:XPFirmware2.jpg]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;5.&#039;&#039;&#039; The target on the next page should be correct, otherwise you will have to choose the controller and click next.&lt;br /&gt;
&lt;br /&gt;
:[[File:XPFirmware3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;6.&#039;&#039;&#039; Browse to the correct firmware file and click next. The upgrade will start.&lt;br /&gt;
&lt;br /&gt;
:[[File:XPFirmware4.jpg]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;7.&#039;&#039;&#039; After the firmware is downloaded to the controller you must restart it and it is now ready for use.&lt;br /&gt;
&lt;br /&gt;
:[[File:ready.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Removing Read&amp;amp;Write Protections ===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Some boards are unfortunately shipped with a read/write protection on the flash. As a result, storing parameters permanently in the board and flashing new firmware will fail. To remove the protections do the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1.&#039;&#039;&#039; Follow steps 1-3 of [[#Flashing Procedure for Win XP|Flashing Procedure for Win XP]] for downloading, installing and starting the Flash Loader Demonstrator of STMicroelectronics.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;2.&#039;&#039;&#039; Do also step 4, you will now however see the message &#039;&#039;&#039;WARNING: When you click &amp;quot;Remove Protection&amp;quot; the flash will be mass erased and all data will be lost.&#039;&#039;&#039;. Click on &#039;&#039;&#039;Remove Protection&#039;&#039;&#039;. This will remove the protections, as well as fully erase the flash memory.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;3.&#039;&#039;&#039; Close the Flash Loader Demonstrator after it has completed and restart the STorM32 board. The LEDs are not operational since also any firmware got erased in the previous step. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;4.&#039;&#039;&#039; Go back to the [[#Flashing Firmware using a USB-TTL Adapter|Flashing Firmware using a USB-TTL Adapter]] section in the above and flash the firmware anew.&lt;br /&gt;
&lt;br /&gt;
=== Trouble Shooting ===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
* In order to test if the usb-ttl adapter is working properly, you can connect its Rx and Tx pins with each other, and use a terminal program, such as Hterm. When you send characters they should be immediately received.&lt;br /&gt;
* If the USB is not working, please double-check that you&#039;ve selected the correct board version in the {{GUI|STorM32-BGC board}} field.&lt;br /&gt;
* In case you have troubles with the USB driver, see the [[STorM32_FAQ#Which_drivers_are_needed_for_the_USB.3F|FAQ: Which drivers are needed for the USB?]].&lt;br /&gt;
* In case the black DOS box doesn&#039;t show up, check if the firmware .zip file was extracted.&lt;br /&gt;
* In case the black DOS box shows the [OK] messages, but the downloading and verifying message lines are not present, go to [[#Removing Read&amp;amp;Write Protections|Removing Read&amp;amp;Write Protections]].&lt;br /&gt;
* On Win XP flashing via the GUI using the usb-ttl adapter will fail (the compiled .exe version of the flashloader doesn&#039;t work on XP, sorry for that). See the next sub section [[#Flashing Procedure for Win XP|Flashing Procedure for Win XP]].&lt;br /&gt;
* If the verify fails then first check that you are not using an outdated GUI version. Otherwise, check the {{GUI|Perform full chip erase}} check button and repeat. This will however also erase any setting which you might have stored before. In that case save the settings to a file beforehand using the option in the &amp;quot;Setting&amp;quot; menu. &lt;br /&gt;
&lt;br /&gt;
== Flashing Firmware using a STLink/V2 (SWD) Programmer ==&lt;br /&gt;
&lt;br /&gt;
PLEASE ADD&lt;/div&gt;</summary>
		<author><name>Lasakro</name></author>
	</entry>
	<entry>
		<id>http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=File:GUI_Flash_2.jpg&amp;diff=2822</id>
		<title>File:GUI Flash 2.jpg</title>
		<link rel="alternate" type="text/html" href="http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=File:GUI_Flash_2.jpg&amp;diff=2822"/>
		<updated>2015-10-01T01:07:25Z</updated>

		<summary type="html">&lt;p&gt;Lasakro: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Lasakro</name></author>
	</entry>
	<entry>
		<id>http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=File:GUI_Flash_1.jpg&amp;diff=2821</id>
		<title>File:GUI Flash 1.jpg</title>
		<link rel="alternate" type="text/html" href="http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=File:GUI_Flash_1.jpg&amp;diff=2821"/>
		<updated>2015-10-01T01:07:00Z</updated>

		<summary type="html">&lt;p&gt;Lasakro: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Lasakro</name></author>
	</entry>
	<entry>
		<id>http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=File:ST_Programmer_8.jpg&amp;diff=2812</id>
		<title>File:ST Programmer 8.jpg</title>
		<link rel="alternate" type="text/html" href="http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=File:ST_Programmer_8.jpg&amp;diff=2812"/>
		<updated>2015-09-30T23:37:34Z</updated>

		<summary type="html">&lt;p&gt;Lasakro: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Lasakro</name></author>
	</entry>
	<entry>
		<id>http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=File:ST_Programmer_2.jpg&amp;diff=2808</id>
		<title>File:ST Programmer 2.jpg</title>
		<link rel="alternate" type="text/html" href="http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=File:ST_Programmer_2.jpg&amp;diff=2808"/>
		<updated>2015-09-30T23:20:53Z</updated>

		<summary type="html">&lt;p&gt;Lasakro: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Lasakro</name></author>
	</entry>
	<entry>
		<id>http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=File:ST_Programmer_4.jpg&amp;diff=2803</id>
		<title>File:ST Programmer 4.jpg</title>
		<link rel="alternate" type="text/html" href="http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=File:ST_Programmer_4.jpg&amp;diff=2803"/>
		<updated>2015-09-30T23:01:56Z</updated>

		<summary type="html">&lt;p&gt;Lasakro: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Lasakro</name></author>
	</entry>
	<entry>
		<id>http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=File:ST_Programmer_3.jpg&amp;diff=2802</id>
		<title>File:ST Programmer 3.jpg</title>
		<link rel="alternate" type="text/html" href="http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=File:ST_Programmer_3.jpg&amp;diff=2802"/>
		<updated>2015-09-30T23:01:37Z</updated>

		<summary type="html">&lt;p&gt;Lasakro: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Lasakro</name></author>
	</entry>
	<entry>
		<id>http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=File:ST_Programmer_1.jpg&amp;diff=2799</id>
		<title>File:ST Programmer 1.jpg</title>
		<link rel="alternate" type="text/html" href="http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=File:ST_Programmer_1.jpg&amp;diff=2799"/>
		<updated>2015-09-30T22:51:45Z</updated>

		<summary type="html">&lt;p&gt;Lasakro: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Lasakro</name></author>
	</entry>
	<entry>
		<id>http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=File:ST_Link_V2.jpg&amp;diff=2789</id>
		<title>File:ST Link V2.jpg</title>
		<link rel="alternate" type="text/html" href="http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=File:ST_Link_V2.jpg&amp;diff=2789"/>
		<updated>2015-09-30T21:35:57Z</updated>

		<summary type="html">&lt;p&gt;Lasakro: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Lasakro</name></author>
	</entry>
	<entry>
		<id>http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=File:Atom_Nano_case.jpg&amp;diff=2779</id>
		<title>File:Atom Nano case.jpg</title>
		<link rel="alternate" type="text/html" href="http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=File:Atom_Nano_case.jpg&amp;diff=2779"/>
		<updated>2015-09-30T19:56:48Z</updated>

		<summary type="html">&lt;p&gt;Lasakro: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Lasakro</name></author>
	</entry>
	<entry>
		<id>http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=File:Atom_Nano_Top.jpg&amp;diff=2771</id>
		<title>File:Atom Nano Top.jpg</title>
		<link rel="alternate" type="text/html" href="http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=File:Atom_Nano_Top.jpg&amp;diff=2771"/>
		<updated>2015-09-30T19:42:44Z</updated>

		<summary type="html">&lt;p&gt;Lasakro: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Lasakro</name></author>
	</entry>
	<entry>
		<id>http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=File:Atom_Nano_Bot.jpg&amp;diff=2770</id>
		<title>File:Atom Nano Bot.jpg</title>
		<link rel="alternate" type="text/html" href="http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=File:Atom_Nano_Bot.jpg&amp;diff=2770"/>
		<updated>2015-09-30T19:42:09Z</updated>

		<summary type="html">&lt;p&gt;Lasakro: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Lasakro</name></author>
	</entry>
	<entry>
		<id>http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=How_to_flash_NT_Modules&amp;diff=2767</id>
		<title>How to flash NT Modules</title>
		<link rel="alternate" type="text/html" href="http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=How_to_flash_NT_Modules&amp;diff=2767"/>
		<updated>2015-09-30T19:30:51Z</updated>

		<summary type="html">&lt;p&gt;Lasakro: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is for instruction on how to flash NT Modules.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [[Mini CC3D Nano Atom]]&lt;br /&gt;
* [[CC3D Nano Atom]]&lt;br /&gt;
* [[NT Breakout v1.0]]&lt;br /&gt;
* [[NT Logger v1.0]]&lt;br /&gt;
* [[NT Motor v1.1]]&lt;br /&gt;
* [[NT IMU Mini MPU9250 v1.0]]&lt;br /&gt;
* [[NT IMU MPU9250 v1.0]]&lt;/div&gt;</summary>
		<author><name>Lasakro</name></author>
	</entry>
	<entry>
		<id>http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=Overview_of_NT_Modules&amp;diff=2766</id>
		<title>Overview of NT Modules</title>
		<link rel="alternate" type="text/html" href="http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=Overview_of_NT_Modules&amp;diff=2766"/>
		<updated>2015-09-30T19:19:28Z</updated>

		<summary type="html">&lt;p&gt;Lasakro: Created page with &amp;quot; :640px&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
:[[File:NT_Family.jpg|640px]]&lt;/div&gt;</summary>
		<author><name>Lasakro</name></author>
	</entry>
	<entry>
		<id>http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=File:NT_Family.jpg&amp;diff=2765</id>
		<title>File:NT Family.jpg</title>
		<link rel="alternate" type="text/html" href="http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=File:NT_Family.jpg&amp;diff=2765"/>
		<updated>2015-09-30T19:10:41Z</updated>

		<summary type="html">&lt;p&gt;Lasakro: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Lasakro</name></author>
	</entry>
	<entry>
		<id>http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=How_to_flash_NT_Modules&amp;diff=2764</id>
		<title>How to flash NT Modules</title>
		<link rel="alternate" type="text/html" href="http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=How_to_flash_NT_Modules&amp;diff=2764"/>
		<updated>2015-09-30T18:50:38Z</updated>

		<summary type="html">&lt;p&gt;Lasakro: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is for instruction on how to flash NT Modules.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [[CC3D Atom Nano]]&lt;br /&gt;
* [[CC3D Atom]]&lt;br /&gt;
* [[NT Breakout v1.0]]&lt;br /&gt;
* [[NT Logger v1.0]]&lt;br /&gt;
* [[NT Motor v1.1]]&lt;br /&gt;
* [[NT IMU Mini MPU9250 v1.0]]&lt;br /&gt;
* [[NT IMU MPU9250 v1.0]]&lt;/div&gt;</summary>
		<author><name>Lasakro</name></author>
	</entry>
	<entry>
		<id>http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=How_to_flash_NT_Modules&amp;diff=2763</id>
		<title>How to flash NT Modules</title>
		<link rel="alternate" type="text/html" href="http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=How_to_flash_NT_Modules&amp;diff=2763"/>
		<updated>2015-09-30T18:48:46Z</updated>

		<summary type="html">&lt;p&gt;Lasakro: Created page with &amp;quot;This page is the entry point for the documentation on the STorM32 NT concept. For the aspects not related to NT please visit Manuals and Tutorials.   * CC3D Atom Nano...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is the entry point for the documentation on the STorM32 NT concept. For the aspects not related to NT please visit [[Manuals and Tutorials]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [[CC3D Atom Nano]]&lt;br /&gt;
* [[CC3D Atom]]&lt;br /&gt;
* [[NT Breakout v1.0]]&lt;br /&gt;
* [[NT Logger v1.0]]&lt;br /&gt;
* [[NT Motor v1.1]]&lt;br /&gt;
* [[NT IMU Mini MPU9250 v1.0]]&lt;br /&gt;
* [[NT IMU MPU9250 v1.0]]&lt;/div&gt;</summary>
		<author><name>Lasakro</name></author>
	</entry>
	<entry>
		<id>http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=How_to_flash_firmware&amp;diff=2683</id>
		<title>How to flash firmware</title>
		<link rel="alternate" type="text/html" href="http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=How_to_flash_firmware&amp;diff=2683"/>
		<updated>2015-08-02T21:00:56Z</updated>

		<summary type="html">&lt;p&gt;Lasakro: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following describes the process of flashing firmware onto v1.1/v1.2/v1.3/v1.31 boards.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Flashing Firmware using a USB-TTL Adapter ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1.&#039;&#039;&#039; You need a standard usb-ttl adapter (FTDI, CP2102, ..., {{WARNING|&#039;&#039;&#039;not&#039;&#039;&#039;}} PL2303). Ensure that it is working (drivers installed, etc.).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;2.&#039;&#039;&#039; You don&#039;t have to worry if it is a 5 V adapter or not, the pins on the STorM32-BGC board we are going to connect the adapter to are 5 V tolerant.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;3.&#039;&#039;&#039; The adapter has to be connected to UART1, which is {{WARNING|&#039;&#039;&#039;not&#039;&#039;&#039;}} the port labelled UART on the board, the correct pins are found on the port labelled RC! Namely:&lt;br /&gt;
&lt;br /&gt;
:RC-GND = GND -&amp;gt; connect it to GND of the usb-ttl adapter&lt;br /&gt;
&lt;br /&gt;
:RC-0 = Uart1-Rx -&amp;gt; connect it to Tx of the usb-ttl adapter&lt;br /&gt;
&lt;br /&gt;
:RC-1 = Uart1-Tx -&amp;gt; connect it to Rx of the usb-ttl adapter&lt;br /&gt;
&lt;br /&gt;
The connections between adapter and board are shown for v1.2/v1.3/v1.31 and v1.1 boards in the scheme below.&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|Neither a 5 V nor a 3.3 V nor any other power pin on the usb-ttl adapter is used... only three wires running from adapter to board.}}&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:[[File:Stom32-bgc-flashing-w-usbttladapter-connections-02.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;4.&#039;&#039;&#039; The board should be powered via the USB plug or through a battery/power supply connected to the &amp;quot;+&amp;quot; and &amp;quot;-&amp;quot; pads.&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|If the board has already a firmware installed and this is the first-time it is connected via USB to a PC, then Win 7 will start installing the USB driver. {{WARNING|&#039;&#039;&#039;Do NOT interrupt the install process&#039;&#039;&#039;}}. See also the comments under point &#039;&#039;&#039;12&#039;&#039;&#039; below.}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;5.&#039;&#039;&#039; Run the GUI and go to the {{GUI|Flash Firmware}} tab (see the screenshot).&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|In principle you can use any GUI version to flash any version of the firmware. However, a GUI which is of the same or higher version than the firmware provides easy access to the firmware via the selector fields on the {{GUI|Flash Firmware}} window.}}&lt;br /&gt;
&lt;br /&gt;
:[[File:Stom32-wiki-flash-firmware-01.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;6.&#039;&#039;&#039; Select the correct board and desired firmware version from the selectors.&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|With these two selectors the correct firmware .hex file is chosen in the {{GUI|Selected Firmware Hex File}} field.}}&amp;lt;br/&amp;gt;&lt;br /&gt;
{{COMMENT|It is {{WARNING|&#039;&#039;&#039;important&#039;&#039;&#039;}} to choose the correct board version; otherwise the board will not functions correctly.}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;7.&#039;&#039;&#039; Select {{GUIPARAM|System Bootloader @ UART1}} in the {{GUI|STM32 Programmer}} field.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;8.&#039;&#039;&#039; In the {{GUI|Com Port}} field select the COM port which your usb-ttl adapter is connected to.&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|We are talking here about the {{GUI|Com Port}} field in the {{GUI|Flash Firmware}} tab, not the {{GUI|Port}} field in the lower left of the main window.}}&amp;lt;br/&amp;gt;&lt;br /&gt;
{{COMMENT|If you are not sure which the correct COM port is, then disconnect the usb-ttl adapter from the PC, inspect the drop-down list and memorize the available COM ports, connect your adapter and wait until its enumerated by Win, and finally inspect the drop-down list and chose the newly added COM port.}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;9.&#039;&#039;&#039; If required or desired check the {{GUI|Perform full chip erase}} check button.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;10.&#039;&#039;&#039; This is now {{WARNING|&#039;&#039;&#039;important&#039;&#039;&#039;}}: Before hitting the {{GUI|Flash Firmware}} button one has to ready the board for being flashed. For that, with the board connected to power, one has to&lt;br /&gt;
* press and hold down both the Reset and Boot0 buttons (the exact sequence of when which button is pressed is irrelevant, as long as they&#039;re both hold down)&lt;br /&gt;
* then, release the Reset button while still holding down the Boot0 button&lt;br /&gt;
* then, release also the Boot0 button&lt;br /&gt;
This may sound complicated, but one will quickly realize that this can be done by &amp;quot;rolling&amp;quot; the finger tip from the left to right.&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|Both LEDs will go off; they should appear &amp;quot;dead&amp;quot;.}}&lt;br /&gt;
&lt;br /&gt;
:[[File:Storm32-wiki-flash-firmware-key-sequence-01.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;11.&#039;&#039;&#039; Finally, hit the {{GUI|Flash Firmware}} button.&lt;br /&gt;
&lt;br /&gt;
Now a black window (DOS console) should open and run the flash loader program, as shown in the screenshot. Wait until it&#039;s finished (takes some seconds). If the program doesn&#039;t proceed and asks to &amp;quot;Press any key to continue&amp;quot; the board is write protected. See &amp;quot;Removing Write Protection&amp;quot; below.&lt;br /&gt;
&lt;br /&gt;
:[[File:flash.png|640px]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;12.&#039;&#039;&#039; The STorM32 board will be reset and start running. If this is the first-time flash of the firmware and if the board is connected via USB to a PC, then Win 7 will immediately start with installing the appropriate USB driver. This takes quite a while (several minutes). Please, be patient and wait until Win 7 reports that the device is ready for use. {{WARNING|&#039;&#039;&#039;Do not disconnect the board from the PC or otherwise interrupt the driver installation process before it is completed&#039;&#039;&#039;}}. This can mess up things quite considerably, and installing the driver later can be a challenge.&lt;br /&gt;
&lt;br /&gt;
=== Trouble Shooting ===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
* In order to test if the usb-ttl adapter is working properly, you can connect its Rx and Tx pins with each other, and use a terminal program, such as Hterm. When you send characters they should be immediately received.&lt;br /&gt;
* If the USB is not working, please double-check that you&#039;ve selected the correct board version in the {{GUI|STorM32-BGC board}} field.&lt;br /&gt;
* In case you have troubles with the USB driver, it can be downloaded from [http://www.st.com/web/en/catalog/tools/PF257938 here], see also the [[STorM32_FAQ#Which_drivers_are_needed_for_the_USB.3F|FAQ: Which drivers are needed for the USB?]].&lt;br /&gt;
* In case the black DOS box doesn&#039;t show up, check if the firmware .zip file was extracted.&lt;br /&gt;
* On Win XP flashing via the GUI using the usb-ttl adapter will fail (the compiled .exe version of the flashloader doesn&#039;t work on XP, sorry for that). See the next sub section [[#Flashing Procedure for Win XP|Flashing Procedure for Win XP]].&lt;br /&gt;
* If the verify fails then first check that you are not using an outdated GUI version. Otherwise, check the {{GUI|Perform full chip erase}} check button and repeat. This will however also erase any setting which you might have stored before. In that case save the settings to a file beforehand using the option in the &amp;quot;Setting&amp;quot; menu.&lt;br /&gt;
&lt;br /&gt;
=== Flashing the Micro STorM32 Board ===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
The Micro STorM32 board doesn&#039;t provide BOOT0 and RESET buttons. Here, BOOT0 must be shortcut to 3.3 V by e.g. soldering a wire as shown in the picture below, and powering up the board to bring it into bootloader mode.&lt;br /&gt;
 &lt;br /&gt;
:[[File:MicroStorm32.png|387px]]&lt;br /&gt;
&lt;br /&gt;
=== Flashing Procedure for Win XP ===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1.&#039;&#039;&#039; Download and install the Flash Loader Demonstrator from [http://www.st.com/web/en/catalog/tools/PF257525].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;2.&#039;&#039;&#039; Do step 1 to 4 under [[#Flashing Firmware using a USB-TTL Adapter|Flashing Firmware using a USB-TTL Adapter]].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;3.&#039;&#039;&#039; Start the Flash Loader Demonstrator, choose the correct COM port and then press the Boot0 and Reset buttons on the controller as described in step 10 under [[#Flashing Firmware using a USB-TTL Adapter|Flashing Firmware using a USB-TTL Adapter]]. Click next. &lt;br /&gt;
&lt;br /&gt;
{{COMMENT|The usb-ttl adapter needs to be connected to the PC before the Flash Loader Demonstrator is started}}.&lt;br /&gt;
&lt;br /&gt;
:[[File:XPFirmware1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;4.&#039;&#039;&#039; If you have connected the usb-ttl adapter correctly and pressed the buttons you should see a green light and it should say that the target is readable. Click next.&lt;br /&gt;
&lt;br /&gt;
:[[File:XPFirmware2.jpg]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;5.&#039;&#039;&#039; The target on the next page should be correct, otherwise you will have to choose the controller and click next.&lt;br /&gt;
&lt;br /&gt;
:[[File:XPFirmware3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;6.&#039;&#039;&#039; Browse to the correct firmware file and click next. The upgrade will start.&lt;br /&gt;
&lt;br /&gt;
:[[File:XPFirmware4.jpg]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;7.&#039;&#039;&#039; After the firmware is downloaded to the controller you must restart it and it is now ready for use.&lt;br /&gt;
&lt;br /&gt;
:[[File:ready.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Removing Write Protection ==&lt;br /&gt;
----&lt;br /&gt;
&#039;&#039;&#039;1.&#039;&#039;&#039; Follow steps 1-3 above under &#039;&#039;&#039;Flashing Procedure for Win XP&#039;&#039;&#039; for downloading, installing and starting the Flash Loader Demonstrator.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;2.&#039;&#039;&#039; At step 4 you will receive a {{WARNING|&#039;&#039;&#039;WARNING: When you click &amp;quot;Remove Protection&amp;quot; the flash will be mass erased and all data will be lost.&#039;&#039;&#039;}} Click on &#039;&#039;&#039;Remove Protection&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;3.&#039;&#039;&#039; Close the Flash Loader Demonstrator after it completes and restart the STorM32 board. The LED&#039;s will not be operational since all the code has now been erased. The LED function will return after loading the firmware.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;4.&#039;&#039;&#039; Return to &#039;&#039;&#039;Flashing Firmware using a USB-TTL Adapter&#039;&#039;&#039; section above and download the firmware as outlined.&lt;br /&gt;
&lt;br /&gt;
== Flashing Firmware using a STLink/V2 (SWD) Programmer ==&lt;br /&gt;
&lt;br /&gt;
PLEASE ADD&lt;/div&gt;</summary>
		<author><name>Lasakro</name></author>
	</entry>
	<entry>
		<id>http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=How_to_flash_firmware&amp;diff=2682</id>
		<title>How to flash firmware</title>
		<link rel="alternate" type="text/html" href="http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=How_to_flash_firmware&amp;diff=2682"/>
		<updated>2015-08-02T20:56:56Z</updated>

		<summary type="html">&lt;p&gt;Lasakro: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following describes the process of flashing firmware onto v1.1/v1.2/v1.3/v1.31 boards.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Flashing Firmware using a USB-TTL Adapter ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1.&#039;&#039;&#039; You need a standard usb-ttl adapter (FTDI, CP2102, ..., {{WARNING|&#039;&#039;&#039;not&#039;&#039;&#039;}} PL2303). Ensure that it is working (drivers installed, etc.).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;2.&#039;&#039;&#039; You don&#039;t have to worry if it is a 5 V adapter or not, the pins on the STorM32-BGC board we are going to connect the adapter to are 5 V tolerant.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;3.&#039;&#039;&#039; The adapter has to be connected to UART1, which is {{WARNING|&#039;&#039;&#039;not&#039;&#039;&#039;}} the port labelled UART on the board, the correct pins are found on the port labelled RC! Namely:&lt;br /&gt;
&lt;br /&gt;
:RC-GND = GND -&amp;gt; connect it to GND of the usb-ttl adapter&lt;br /&gt;
&lt;br /&gt;
:RC-0 = Uart1-Rx -&amp;gt; connect it to Tx of the usb-ttl adapter&lt;br /&gt;
&lt;br /&gt;
:RC-1 = Uart1-Tx -&amp;gt; connect it to Rx of the usb-ttl adapter&lt;br /&gt;
&lt;br /&gt;
The connections between adapter and board are shown for v1.2/v1.3/v1.31 and v1.1 boards in the scheme below.&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|Neither a 5 V nor a 3.3 V nor any other power pin on the usb-ttl adapter is used... only three wires running from adapter to board.}}&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:[[File:Stom32-bgc-flashing-w-usbttladapter-connections-02.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;4.&#039;&#039;&#039; The board should be powered via the USB plug or through a battery/power supply connected to the &amp;quot;+&amp;quot; and &amp;quot;-&amp;quot; pads.&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|If the board has already a firmware installed and this is the first-time it is connected via USB to a PC, then Win 7 will start installing the USB driver. {{WARNING|&#039;&#039;&#039;Do NOT interrupt the install process&#039;&#039;&#039;}}. See also the comments under point &#039;&#039;&#039;12&#039;&#039;&#039; below.}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;5.&#039;&#039;&#039; Run the GUI and go to the {{GUI|Flash Firmware}} tab (see the screenshot).&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|In principle you can use any GUI version to flash any version of the firmware. However, a GUI which is of the same or higher version than the firmware provides easy access to the firmware via the selector fields on the {{GUI|Flash Firmware}} window.}}&lt;br /&gt;
&lt;br /&gt;
:[[File:Stom32-wiki-flash-firmware-01.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;6.&#039;&#039;&#039; Select the correct board and desired firmware version from the selectors.&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|With these two selectors the correct firmware .hex file is chosen in the {{GUI|Selected Firmware Hex File}} field.}}&amp;lt;br/&amp;gt;&lt;br /&gt;
{{COMMENT|It is {{WARNING|&#039;&#039;&#039;important&#039;&#039;&#039;}} to choose the correct board version; otherwise the board will not functions correctly.}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;7.&#039;&#039;&#039; Select {{GUIPARAM|System Bootloader @ UART1}} in the {{GUI|STM32 Programmer}} field.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;8.&#039;&#039;&#039; In the {{GUI|Com Port}} field select the COM port which your usb-ttl adapter is connected to.&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|We are talking here about the {{GUI|Com Port}} field in the {{GUI|Flash Firmware}} tab, not the {{GUI|Port}} field in the lower left of the main window.}}&amp;lt;br/&amp;gt;&lt;br /&gt;
{{COMMENT|If you are not sure which the correct COM port is, then disconnect the usb-ttl adapter from the PC, inspect the drop-down list and memorize the available COM ports, connect your adapter and wait until its enumerated by Win, and finally inspect the drop-down list and chose the newly added COM port.}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;9.&#039;&#039;&#039; If required or desired check the {{GUI|Perform full chip erase}} check button.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;10.&#039;&#039;&#039; This is now {{WARNING|&#039;&#039;&#039;important&#039;&#039;&#039;}}: Before hitting the {{GUI|Flash Firmware}} button one has to ready the board for being flashed. For that, with the board connected to power, one has to&lt;br /&gt;
* press and hold down both the Reset and Boot0 buttons (the exact sequence of when which button is pressed is irrelevant, as long as they&#039;re both hold down)&lt;br /&gt;
* then, release the Reset button while still holding down the Boot0 button&lt;br /&gt;
* then, release also the Boot0 button&lt;br /&gt;
This may sound complicated, but one will quickly realize that this can be done by &amp;quot;rolling&amp;quot; the finger tip from the left to right.&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|Both LEDs will go off; they should appear &amp;quot;dead&amp;quot;.}}&lt;br /&gt;
&lt;br /&gt;
:[[File:Storm32-wiki-flash-firmware-key-sequence-01.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;11.&#039;&#039;&#039; Finally, hit the {{GUI|Flash Firmware}} button.&lt;br /&gt;
&lt;br /&gt;
Now a black window (DOS console) should open and run the flash loader program, as shown in the screenshot. Wait until it&#039;s finished (takes some seconds). If the program doesn&#039;t proceed and asks to &amp;quot;Press any key to continue&amp;quot; the board is write protected. See &amp;quot;Removing Write Protection&amp;quot; below.&lt;br /&gt;
&lt;br /&gt;
:[[File:flash.png|640px]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;12.&#039;&#039;&#039; The STorM32 board will be reset and start running. If this is the first-time flash of the firmware and if the board is connected via USB to a PC, then Win 7 will immediately start with installing the appropriate USB driver. This takes quite a while (several minutes). Please, be patient and wait until Win 7 reports that the device is ready for use. {{WARNING|&#039;&#039;&#039;Do not disconnect the board from the PC or otherwise interrupt the driver installation process before it is completed&#039;&#039;&#039;}}. This can mess up things quite considerably, and installing the driver later can be a challenge.&lt;br /&gt;
&lt;br /&gt;
=== Trouble Shooting ===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
* In order to test if the usb-ttl adapter is working properly, you can connect its Rx and Tx pins with each other, and use a terminal program, such as Hterm. When you send characters they should be immediately received.&lt;br /&gt;
* If the USB is not working, please double-check that you&#039;ve selected the correct board version in the {{GUI|STorM32-BGC board}} field.&lt;br /&gt;
* In case you have troubles with the USB driver, it can be downloaded from [http://www.st.com/web/en/catalog/tools/PF257938 here], see also the [[STorM32_FAQ#Which_drivers_are_needed_for_the_USB.3F|FAQ: Which drivers are needed for the USB?]].&lt;br /&gt;
* In case the black DOS box doesn&#039;t show up, check if the firmware .zip file was extracted.&lt;br /&gt;
* On Win XP flashing via the GUI using the usb-ttl adapter will fail (the compiled .exe version of the flashloader doesn&#039;t work on XP, sorry for that). See the next sub section [[#Flashing Procedure for Win XP|Flashing Procedure for Win XP]].&lt;br /&gt;
* If the verify fails then first check that you are not using an outdated GUI version. Otherwise, check the {{GUI|Perform full chip erase}} check button and repeat. This will however also erase any setting which you might have stored before. In that case save the settings to a file beforehand using the option in the &amp;quot;Setting&amp;quot; menu.&lt;br /&gt;
&lt;br /&gt;
=== Flashing the Micro STorM32 Board ===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
The Micro STorM32 board doesn&#039;t provide BOOT0 and RESET buttons. Here, BOOT0 must be shortcut to 3.3 V by e.g. soldering a wire as shown in the picture below, and powering up the board to bring it into bootloader mode.&lt;br /&gt;
 &lt;br /&gt;
:[[File:MicroStorm32.png|387px]]&lt;br /&gt;
&lt;br /&gt;
=== Flashing Procedure for Win XP ===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1.&#039;&#039;&#039; Download and install the Flash Loader Demonstrator from [http://www.st.com/web/en/catalog/tools/PF257525].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;2.&#039;&#039;&#039; Do step 1 to 4 under [[#Flashing Firmware using a USB-TTL Adapter|Flashing Firmware using a USB-TTL Adapter]].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;3.&#039;&#039;&#039; Start the Flash Loader Demonstrator, choose the correct COM port and then press the Boot0 and Reset buttons on the controller as described in step 10 under [[#Flashing Firmware using a USB-TTL Adapter|Flashing Firmware using a USB-TTL Adapter]]. Click next. &lt;br /&gt;
&lt;br /&gt;
{{COMMENT|The usb-ttl adapter needs to be connected to the PC before the Flash Loader Demonstrator is started}}.&lt;br /&gt;
&lt;br /&gt;
:[[File:XPFirmware1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;4.&#039;&#039;&#039; If you have connected the usb-ttl adapter correctly and pressed the buttons you should see a green light and it should say that the target is readable. Click next.&lt;br /&gt;
&lt;br /&gt;
:[[File:XPFirmware2.jpg]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;5.&#039;&#039;&#039; The target on the next page should be correct, otherwise you will have to choose the controller and click next.&lt;br /&gt;
&lt;br /&gt;
:[[File:XPFirmware3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;6.&#039;&#039;&#039; Browse to the correct firmware file and click next. The upgrade will start.&lt;br /&gt;
&lt;br /&gt;
:[[File:XPFirmware4.jpg]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;7.&#039;&#039;&#039; After the firmware is downloaded to the controller you must restart it and it is now ready for use.&lt;br /&gt;
&lt;br /&gt;
:[[File:ready.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Removing Write Protection ==&lt;br /&gt;
----&lt;br /&gt;
&#039;&#039;&#039;1.&#039;&#039;&#039; Follow steps 1-3 above under &#039;&#039;&#039;Flashing Procedure for Win XP&#039;&#039;&#039; for downloading, installing and starting the Flash Loader Demonstrator.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;2.&#039;&#039;&#039; At step &#039;&#039;&#039;4&#039;&#039;&#039; you will receive a &#039;&#039;&#039;WARNING: When you click &amp;quot;Remove Protection&amp;quot; the flash will be mass erased and all data will be lost.&#039;&#039;&#039; Click on &#039;&#039;&#039;Remove Protection&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;3.&#039;&#039;&#039; Close the Flash Loader Demonstrator after it completes and restart the STorM32 board. The LED&#039;s will not be operational since all the code has now been erased. The LED function will return after loading the firmware.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;4.&#039;&#039;&#039; Return to &#039;&#039;&#039;Flashing Firmware using a USB-TTL Adapter&#039;&#039;&#039; section above and download the firmware as outlined.&lt;br /&gt;
&lt;br /&gt;
== Flashing Firmware using a STLink/V2 (SWD) Programmer ==&lt;br /&gt;
&lt;br /&gt;
PLEASE ADD&lt;/div&gt;</summary>
		<author><name>Lasakro</name></author>
	</entry>
	<entry>
		<id>http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=How_to_flash_firmware&amp;diff=2681</id>
		<title>How to flash firmware</title>
		<link rel="alternate" type="text/html" href="http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=How_to_flash_firmware&amp;diff=2681"/>
		<updated>2015-08-02T20:52:19Z</updated>

		<summary type="html">&lt;p&gt;Lasakro: New section removing write protection. If I knew how to upload a image I could add that. Need instructions...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following describes the process of flashing firmware onto v1.1/v1.2/v1.3/v1.31 boards.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Flashing Firmware using a USB-TTL Adapter ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1.&#039;&#039;&#039; You need a standard usb-ttl adapter (FTDI, CP2102, ..., {{WARNING|&#039;&#039;&#039;not&#039;&#039;&#039;}} PL2303). Ensure that it is working (drivers installed, etc.).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;2.&#039;&#039;&#039; You don&#039;t have to worry if it is a 5 V adapter or not, the pins on the STorM32-BGC board we are going to connect the adapter to are 5 V tolerant.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;3.&#039;&#039;&#039; The adapter has to be connected to UART1, which is {{WARNING|&#039;&#039;&#039;not&#039;&#039;&#039;}} the port labelled UART on the board, the correct pins are found on the port labelled RC! Namely:&lt;br /&gt;
&lt;br /&gt;
:RC-GND = GND -&amp;gt; connect it to GND of the usb-ttl adapter&lt;br /&gt;
&lt;br /&gt;
:RC-0 = Uart1-Rx -&amp;gt; connect it to Tx of the usb-ttl adapter&lt;br /&gt;
&lt;br /&gt;
:RC-1 = Uart1-Tx -&amp;gt; connect it to Rx of the usb-ttl adapter&lt;br /&gt;
&lt;br /&gt;
The connections between adapter and board are shown for v1.2/v1.3/v1.31 and v1.1 boards in the scheme below.&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|Neither a 5 V nor a 3.3 V nor any other power pin on the usb-ttl adapter is used... only three wires running from adapter to board.}}&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:[[File:Stom32-bgc-flashing-w-usbttladapter-connections-02.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;4.&#039;&#039;&#039; The board should be powered via the USB plug or through a battery/power supply connected to the &amp;quot;+&amp;quot; and &amp;quot;-&amp;quot; pads.&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|If the board has already a firmware installed and this is the first-time it is connected via USB to a PC, then Win 7 will start installing the USB driver. {{WARNING|&#039;&#039;&#039;Do NOT interrupt the install process&#039;&#039;&#039;}}. See also the comments under point &#039;&#039;&#039;12&#039;&#039;&#039; below.}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;5.&#039;&#039;&#039; Run the GUI and go to the {{GUI|Flash Firmware}} tab (see the screenshot).&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|In principle you can use any GUI version to flash any version of the firmware. However, a GUI which is of the same or higher version than the firmware provides easy access to the firmware via the selector fields on the {{GUI|Flash Firmware}} window.}}&lt;br /&gt;
&lt;br /&gt;
:[[File:Stom32-wiki-flash-firmware-01.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;6.&#039;&#039;&#039; Select the correct board and desired firmware version from the selectors.&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|With these two selectors the correct firmware .hex file is chosen in the {{GUI|Selected Firmware Hex File}} field.}}&amp;lt;br/&amp;gt;&lt;br /&gt;
{{COMMENT|It is {{WARNING|&#039;&#039;&#039;important&#039;&#039;&#039;}} to choose the correct board version; otherwise the board will not functions correctly.}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;7.&#039;&#039;&#039; Select {{GUIPARAM|System Bootloader @ UART1}} in the {{GUI|STM32 Programmer}} field.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;8.&#039;&#039;&#039; In the {{GUI|Com Port}} field select the COM port which your usb-ttl adapter is connected to.&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|We are talking here about the {{GUI|Com Port}} field in the {{GUI|Flash Firmware}} tab, not the {{GUI|Port}} field in the lower left of the main window.}}&amp;lt;br/&amp;gt;&lt;br /&gt;
{{COMMENT|If you are not sure which the correct COM port is, then disconnect the usb-ttl adapter from the PC, inspect the drop-down list and memorize the available COM ports, connect your adapter and wait until its enumerated by Win, and finally inspect the drop-down list and chose the newly added COM port.}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;9.&#039;&#039;&#039; If required or desired check the {{GUI|Perform full chip erase}} check button.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;10.&#039;&#039;&#039; This is now {{WARNING|&#039;&#039;&#039;important&#039;&#039;&#039;}}: Before hitting the {{GUI|Flash Firmware}} button one has to ready the board for being flashed. For that, with the board connected to power, one has to&lt;br /&gt;
* press and hold down both the Reset and Boot0 buttons (the exact sequence of when which button is pressed is irrelevant, as long as they&#039;re both hold down)&lt;br /&gt;
* then, release the Reset button while still holding down the Boot0 button&lt;br /&gt;
* then, release also the Boot0 button&lt;br /&gt;
This may sound complicated, but one will quickly realize that this can be done by &amp;quot;rolling&amp;quot; the finger tip from the left to right.&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|Both LEDs will go off; they should appear &amp;quot;dead&amp;quot;.}}&lt;br /&gt;
&lt;br /&gt;
:[[File:Storm32-wiki-flash-firmware-key-sequence-01.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;11.&#039;&#039;&#039; Finally, hit the {{GUI|Flash Firmware}} button.&lt;br /&gt;
&lt;br /&gt;
Now a black window (DOS console) should open and run the flash loader program, as shown in the screenshot. Wait until it&#039;s finished (takes some seconds). If the program doesn&#039;t proceed and asks to &amp;quot;Press any key to continue&amp;quot; the board is write protected. See &amp;quot;Removing Write Protection&amp;quot; below.&lt;br /&gt;
&lt;br /&gt;
:[[File:flash.png|640px]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;12.&#039;&#039;&#039; The STorM32 board will be reset and start running. If this is the first-time flash of the firmware and if the board is connected via USB to a PC, then Win 7 will immediately start with installing the appropriate USB driver. This takes quite a while (several minutes). Please, be patient and wait until Win 7 reports that the device is ready for use. {{WARNING|&#039;&#039;&#039;Do not disconnect the board from the PC or otherwise interrupt the driver installation process before it is completed&#039;&#039;&#039;}}. This can mess up things quite considerably, and installing the driver later can be a challenge.&lt;br /&gt;
&lt;br /&gt;
=== Trouble Shooting ===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
* In order to test if the usb-ttl adapter is working properly, you can connect its Rx and Tx pins with each other, and use a terminal program, such as Hterm. When you send characters they should be immediately received.&lt;br /&gt;
* If the USB is not working, please double-check that you&#039;ve selected the correct board version in the {{GUI|STorM32-BGC board}} field.&lt;br /&gt;
* In case you have troubles with the USB driver, it can be downloaded from [http://www.st.com/web/en/catalog/tools/PF257938 here], see also the [[STorM32_FAQ#Which_drivers_are_needed_for_the_USB.3F|FAQ: Which drivers are needed for the USB?]].&lt;br /&gt;
* In case the black DOS box doesn&#039;t show up, check if the firmware .zip file was extracted.&lt;br /&gt;
* On Win XP flashing via the GUI using the usb-ttl adapter will fail (the compiled .exe version of the flashloader doesn&#039;t work on XP, sorry for that). See the next sub section [[#Flashing Procedure for Win XP|Flashing Procedure for Win XP]].&lt;br /&gt;
* If the verify fails then first check that you are not using an outdated GUI version. Otherwise, check the {{GUI|Perform full chip erase}} check button and repeat. This will however also erase any setting which you might have stored before. In that case save the settings to a file beforehand using the option in the &amp;quot;Setting&amp;quot; menu.&lt;br /&gt;
&lt;br /&gt;
=== Flashing the Micro STorM32 Board ===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
The Micro STorM32 board doesn&#039;t provide BOOT0 and RESET buttons. Here, BOOT0 must be shortcut to 3.3 V by e.g. soldering a wire as shown in the picture below, and powering up the board to bring it into bootloader mode.&lt;br /&gt;
 &lt;br /&gt;
:[[File:MicroStorm32.png|387px]]&lt;br /&gt;
&lt;br /&gt;
=== Flashing Procedure for Win XP ===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1.&#039;&#039;&#039; Download and install the Flash Loader Demonstrator from [http://www.st.com/web/en/catalog/tools/PF257525].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;2.&#039;&#039;&#039; Do step 1 to 4 under [[#Flashing Firmware using a USB-TTL Adapter|Flashing Firmware using a USB-TTL Adapter]].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;3.&#039;&#039;&#039; Start the Flash Loader Demonstrator, choose the correct COM port and then press the Boot0 and Reset buttons on the controller as described in step 10 under [[#Flashing Firmware using a USB-TTL Adapter|Flashing Firmware using a USB-TTL Adapter]]. Click next. &lt;br /&gt;
&lt;br /&gt;
{{COMMENT|The usb-ttl adapter needs to be connected to the PC before the Flash Loader Demonstrator is started}}.&lt;br /&gt;
&lt;br /&gt;
:[[File:XPFirmware1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;4.&#039;&#039;&#039; If you have connected the usb-ttl adapter correctly and pressed the buttons you should see a green light and it should say that the target is readable. Click next.&lt;br /&gt;
&lt;br /&gt;
:[[File:XPFirmware2.jpg]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;5.&#039;&#039;&#039; The target on the next page should be correct, otherwise you will have to choose the controller and click next.&lt;br /&gt;
&lt;br /&gt;
:[[File:XPFirmware3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;6.&#039;&#039;&#039; Browse to the correct firmware file and click next. The upgrade will start.&lt;br /&gt;
&lt;br /&gt;
:[[File:XPFirmware4.jpg]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;7.&#039;&#039;&#039; After the firmware is downloaded to the controller you must restart it and it is now ready for use.&lt;br /&gt;
&lt;br /&gt;
:[[File:ready.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Removing Write Protection ==&lt;br /&gt;
----&lt;br /&gt;
&#039;&#039;&#039;1.&#039;&#039;&#039; Follow steps 1-3 above under &#039;&#039;&#039;Flashing Procedure for Win XP&#039;&#039;&#039; for downloading, installing and starting the Flash Loader Demonstrator.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;2.&#039;&#039;&#039; At step &#039;&#039;&#039;4&#039;&#039;&#039; you will receive a &#039;&#039;&#039;WARNING: When you click &amp;quot;Remove Protection&amp;quot; the flash will be mass erased and all data will be lost.&#039;&#039;&#039; Click on &#039;&#039;&#039;Remove Protection&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;3.&#039;&#039;&#039; Close the Flash Loader Demonstrator after it completes and restart the STorM32 board. The LED&#039;s will not be operational since all the code has now been erased. The LED function will return after loading the firmware.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;4.&#039;&#039;&#039; Return to step 10 above by pressing the button sequence required to enter into Flash Firmware mode and continue loading the firmware.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Flashing Firmware using a STLink/V2 (SWD) Programmer ==&lt;br /&gt;
&lt;br /&gt;
PLEASE ADD&lt;/div&gt;</summary>
		<author><name>Lasakro</name></author>
	</entry>
	<entry>
		<id>http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=How_to_flash_firmware&amp;diff=2680</id>
		<title>How to flash firmware</title>
		<link rel="alternate" type="text/html" href="http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=How_to_flash_firmware&amp;diff=2680"/>
		<updated>2015-08-02T20:04:58Z</updated>

		<summary type="html">&lt;p&gt;Lasakro: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following describes the process of flashing firmware onto v1.1/v1.2/v1.3/v1.31 boards.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Flashing Firmware using a USB-TTL Adapter ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1.&#039;&#039;&#039; You need a standard usb-ttl adapter (FTDI, CP2102, ..., {{WARNING|&#039;&#039;&#039;not&#039;&#039;&#039;}} PL2303). Ensure that it is working (drivers installed, etc.).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;2.&#039;&#039;&#039; You don&#039;t have to worry if it is a 5 V adapter or not, the pins on the STorM32-BGC board we are going to connect the adapter to are 5 V tolerant.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;3.&#039;&#039;&#039; The adapter has to be connected to UART1, which is {{WARNING|&#039;&#039;&#039;not&#039;&#039;&#039;}} the port labelled UART on the board, the correct pins are found on the port labelled RC! Namely:&lt;br /&gt;
&lt;br /&gt;
:RC-GND = GND -&amp;gt; connect it to GND of the usb-ttl adapter&lt;br /&gt;
&lt;br /&gt;
:RC-0 = Uart1-Rx -&amp;gt; connect it to Tx of the usb-ttl adapter&lt;br /&gt;
&lt;br /&gt;
:RC-1 = Uart1-Tx -&amp;gt; connect it to Rx of the usb-ttl adapter&lt;br /&gt;
&lt;br /&gt;
The connections between adapter and board are shown for v1.2/v1.3/v1.31 and v1.1 boards in the scheme below.&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|Neither a 5 V nor a 3.3 V nor any other power pin on the usb-ttl adapter is used... only three wires running from adapter to board.}}&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:[[File:Stom32-bgc-flashing-w-usbttladapter-connections-02.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;4.&#039;&#039;&#039; The board should be powered via the USB plug or through a battery/power supply connected to the &amp;quot;+&amp;quot; and &amp;quot;-&amp;quot; pads.&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|If the board has already a firmware installed and this is the first-time it is connected via USB to a PC, then Win 7 will start installing the USB driver. {{WARNING|&#039;&#039;&#039;Do NOT interrupt the install process&#039;&#039;&#039;}}. See also the comments under point &#039;&#039;&#039;12&#039;&#039;&#039; below.}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;5.&#039;&#039;&#039; Run the GUI and go to the {{GUI|Flash Firmware}} tab (see the screenshot).&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|In principle you can use any GUI version to flash any version of the firmware. However, a GUI which is of the same or higher version than the firmware provides easy access to the firmware via the selector fields on the {{GUI|Flash Firmware}} window.}}&lt;br /&gt;
&lt;br /&gt;
:[[File:Stom32-wiki-flash-firmware-01.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;6.&#039;&#039;&#039; Select the correct board and desired firmware version from the selectors.&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|With these two selectors the correct firmware .hex file is chosen in the {{GUI|Selected Firmware Hex File}} field.}}&amp;lt;br/&amp;gt;&lt;br /&gt;
{{COMMENT|It is {{WARNING|&#039;&#039;&#039;important&#039;&#039;&#039;}} to choose the correct board version; otherwise the board will not functions correctly.}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;7.&#039;&#039;&#039; Select {{GUIPARAM|System Bootloader @ UART1}} in the {{GUI|STM32 Programmer}} field.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;8.&#039;&#039;&#039; In the {{GUI|Com Port}} field select the COM port which your usb-ttl adapter is connected to.&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|We are talking here about the {{GUI|Com Port}} field in the {{GUI|Flash Firmware}} tab, not the {{GUI|Port}} field in the lower left of the main window.}}&amp;lt;br/&amp;gt;&lt;br /&gt;
{{COMMENT|If you are not sure which the correct COM port is, then disconnect the usb-ttl adapter from the PC, inspect the drop-down list and memorize the available COM ports, connect your adapter and wait until its enumerated by Win, and finally inspect the drop-down list and chose the newly added COM port.}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;9.&#039;&#039;&#039; If required or desired check the {{GUI|Perform full chip erase}} check button.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;10.&#039;&#039;&#039; This is now {{WARNING|&#039;&#039;&#039;important&#039;&#039;&#039;}}: Before hitting the {{GUI|Flash Firmware}} button one has to ready the board for being flashed. For that, with the board connected to power, one has to&lt;br /&gt;
* press and hold down both the Reset and Boot0 buttons (the exact sequence of when which button is pressed is irrelevant, as long as they&#039;re both hold down)&lt;br /&gt;
* then, release the Reset button while still holding down the Boot0 button&lt;br /&gt;
* then, release also the Boot0 button&lt;br /&gt;
This may sound complicated, but one will quickly realize that this can be done by &amp;quot;rolling&amp;quot; the finger tip from the left to right.&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|Both LEDs will go off; they should appear &amp;quot;dead&amp;quot;.}}&lt;br /&gt;
&lt;br /&gt;
:[[File:Storm32-wiki-flash-firmware-key-sequence-01.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;11.&#039;&#039;&#039; Finally, hit the {{GUI|Flash Firmware}} button.&lt;br /&gt;
&lt;br /&gt;
Now a black window (DOS console) should open and run the flash loader program, as shown in the screenshot. Wait until it&#039;s finished (takes some seconds). If the program doesn&#039;t proceed and asks to &amp;quot;Press any key to continue&amp;quot; the board is write protected. See &amp;quot;Removing Write Protection&amp;quot; below.&lt;br /&gt;
&lt;br /&gt;
:[[File:flash.png|640px]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;12.&#039;&#039;&#039; The STorM32 board will be reset and start running. If this is the first-time flash of the firmware and if the board is connected via USB to a PC, then Win 7 will immediately start with installing the appropriate USB driver. This takes quite a while (several minutes). Please, be patient and wait until Win 7 reports that the device is ready for use. {{WARNING|&#039;&#039;&#039;Do not disconnect the board from the PC or otherwise interrupt the driver installation process before it is completed&#039;&#039;&#039;}}. This can mess up things quite considerably, and installing the driver later can be a challenge.&lt;br /&gt;
&lt;br /&gt;
=== Trouble Shooting ===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
* In order to test if the usb-ttl adapter is working properly, you can connect its Rx and Tx pins with each other, and use a terminal program, such as Hterm. When you send characters they should be immediately received.&lt;br /&gt;
* If the USB is not working, please double-check that you&#039;ve selected the correct board version in the {{GUI|STorM32-BGC board}} field.&lt;br /&gt;
* In case you have troubles with the USB driver, it can be downloaded from [http://www.st.com/web/en/catalog/tools/PF257938 here], see also the [[STorM32_FAQ#Which_drivers_are_needed_for_the_USB.3F|FAQ: Which drivers are needed for the USB?]].&lt;br /&gt;
* In case the black DOS box doesn&#039;t show up, check if the firmware .zip file was extracted.&lt;br /&gt;
* On Win XP flashing via the GUI using the usb-ttl adapter will fail (the compiled .exe version of the flashloader doesn&#039;t work on XP, sorry for that). See the next sub section [[#Flashing Procedure for Win XP|Flashing Procedure for Win XP]].&lt;br /&gt;
* If the verify fails then first check that you are not using an outdated GUI version. Otherwise, check the {{GUI|Perform full chip erase}} check button and repeat. This will however also erase any setting which you might have stored before. In that case save the settings to a file beforehand using the option in the &amp;quot;Setting&amp;quot; menu.&lt;br /&gt;
&lt;br /&gt;
=== Flashing the Micro STorM32 Board ===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
The Micro STorM32 board doesn&#039;t provide BOOT0 and RESET buttons. Here, BOOT0 must be shortcut to 3.3 V by e.g. soldering a wire as shown in the picture below, and powering up the board to bring it into bootloader mode.&lt;br /&gt;
 &lt;br /&gt;
:[[File:MicroStorm32.png|387px]]&lt;br /&gt;
&lt;br /&gt;
=== Flashing Procedure for Win XP ===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1.&#039;&#039;&#039; Download and install the Flash Loader Demonstrator from [http://www.st.com/web/en/catalog/tools/PF257525].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;2.&#039;&#039;&#039; Do step 1 to 4 under [[#Flashing Firmware using a USB-TTL Adapter|Flashing Firmware using a USB-TTL Adapter]].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;3.&#039;&#039;&#039; Start the Flash Loader Demonstrator, choose the correct COM port and then press the Boot0 and Reset buttons on the controller as described in step 10 under [[#Flashing Firmware using a USB-TTL Adapter|Flashing Firmware using a USB-TTL Adapter]]. Click next. &lt;br /&gt;
&lt;br /&gt;
{{COMMENT|The usb-ttl adapter needs to be connected to the PC before the Flash Loader Demonstrator is started}}.&lt;br /&gt;
&lt;br /&gt;
:[[File:XPFirmware1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;4.&#039;&#039;&#039; If you have connected the usb-ttl adapter correctly and pressed the buttons you should see a green light and it should say that the target is readable. Click next.&lt;br /&gt;
&lt;br /&gt;
:[[File:XPFirmware2.jpg]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;5.&#039;&#039;&#039; The target on the next page should be correct, otherwise you will have to choose the controller and click next.&lt;br /&gt;
&lt;br /&gt;
:[[File:XPFirmware3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;6.&#039;&#039;&#039; Browse to the correct firmware file and click next. The upgrade will start.&lt;br /&gt;
&lt;br /&gt;
:[[File:XPFirmware4.jpg]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;7.&#039;&#039;&#039; After the firmware is downloaded to the controller you must restart it and it is now ready for use.&lt;br /&gt;
&lt;br /&gt;
:[[File:ready.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Removing Write Protection ==&lt;br /&gt;
----&lt;br /&gt;
&#039;&#039;&#039;1.&#039;&#039;&#039; Follow steps 1-3 above under &#039;&#039;&#039;Flashing Procedure for Win XP&#039;&#039;&#039; for downloading, installing and starting the Flash Loader Demonstrator.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;2.&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Flashing Firmware using a STLink/V2 (SWD) Programmer ==&lt;br /&gt;
&lt;br /&gt;
PLEASE ADD&lt;/div&gt;</summary>
		<author><name>Lasakro</name></author>
	</entry>
	<entry>
		<id>http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=How_to_flash_firmware&amp;diff=2679</id>
		<title>How to flash firmware</title>
		<link rel="alternate" type="text/html" href="http://www.olliw.eu/storm32bgc-v1-wiki/index.php?title=How_to_flash_firmware&amp;diff=2679"/>
		<updated>2015-08-02T19:56:10Z</updated>

		<summary type="html">&lt;p&gt;Lasakro: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following describes the process of flashing firmware onto v1.1/v1.2/v1.3/v1.31 boards.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Flashing Firmware using a USB-TTL Adapter ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1.&#039;&#039;&#039; You need a standard usb-ttl adapter (FTDI, CP2102, ..., {{WARNING|&#039;&#039;&#039;not&#039;&#039;&#039;}} PL2303). Ensure that it is working (drivers installed, etc.).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;2.&#039;&#039;&#039; You don&#039;t have to worry if it is a 5 V adapter or not, the pins on the STorM32-BGC board we are going to connect the adapter to are 5 V tolerant.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;3.&#039;&#039;&#039; The adapter has to be connected to UART1, which is {{WARNING|&#039;&#039;&#039;not&#039;&#039;&#039;}} the port labelled UART on the board, the correct pins are found on the port labelled RC! Namely:&lt;br /&gt;
&lt;br /&gt;
:RC-GND = GND -&amp;gt; connect it to GND of the usb-ttl adapter&lt;br /&gt;
&lt;br /&gt;
:RC-0 = Uart1-Rx -&amp;gt; connect it to Tx of the usb-ttl adapter&lt;br /&gt;
&lt;br /&gt;
:RC-1 = Uart1-Tx -&amp;gt; connect it to Rx of the usb-ttl adapter&lt;br /&gt;
&lt;br /&gt;
The connections between adapter and board are shown for v1.2/v1.3/v1.31 and v1.1 boards in the scheme below.&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|Neither a 5 V nor a 3.3 V nor any other power pin on the usb-ttl adapter is used... only three wires running from adapter to board.}}&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:[[File:Stom32-bgc-flashing-w-usbttladapter-connections-02.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;4.&#039;&#039;&#039; The board should be powered via the USB plug or through a battery/power supply connected to the &amp;quot;+&amp;quot; and &amp;quot;-&amp;quot; pads.&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|If the board has already a firmware installed and this is the first-time it is connected via USB to a PC, then Win 7 will start installing the USB driver. {{WARNING|&#039;&#039;&#039;Do NOT interrupt the install process&#039;&#039;&#039;}}. See also the comments under point &#039;&#039;&#039;12&#039;&#039;&#039; below.}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;5.&#039;&#039;&#039; Run the GUI and go to the {{GUI|Flash Firmware}} tab (see the screenshot).&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|In principle you can use any GUI version to flash any version of the firmware. However, a GUI which is of the same or higher version than the firmware provides easy access to the firmware via the selector fields on the {{GUI|Flash Firmware}} window.}}&lt;br /&gt;
&lt;br /&gt;
:[[File:Stom32-wiki-flash-firmware-01.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;6.&#039;&#039;&#039; Select the correct board and desired firmware version from the selectors.&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|With these two selectors the correct firmware .hex file is chosen in the {{GUI|Selected Firmware Hex File}} field.}}&amp;lt;br/&amp;gt;&lt;br /&gt;
{{COMMENT|It is {{WARNING|&#039;&#039;&#039;important&#039;&#039;&#039;}} to choose the correct board version; otherwise the board will not functions correctly.}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;7.&#039;&#039;&#039; Select {{GUIPARAM|System Bootloader @ UART1}} in the {{GUI|STM32 Programmer}} field.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;8.&#039;&#039;&#039; In the {{GUI|Com Port}} field select the COM port which your usb-ttl adapter is connected to.&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|We are talking here about the {{GUI|Com Port}} field in the {{GUI|Flash Firmware}} tab, not the {{GUI|Port}} field in the lower left of the main window.}}&amp;lt;br/&amp;gt;&lt;br /&gt;
{{COMMENT|If you are not sure which the correct COM port is, then disconnect the usb-ttl adapter from the PC, inspect the drop-down list and memorize the available COM ports, connect your adapter and wait until its enumerated by Win, and finally inspect the drop-down list and chose the newly added COM port.}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;9.&#039;&#039;&#039; If required or desired check the {{GUI|Perform full chip erase}} check button.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;10.&#039;&#039;&#039; This is now {{WARNING|&#039;&#039;&#039;important&#039;&#039;&#039;}}: Before hitting the {{GUI|Flash Firmware}} button one has to ready the board for being flashed. For that, with the board connected to power, one has to&lt;br /&gt;
* press and hold down both the Reset and Boot0 buttons (the exact sequence of when which button is pressed is irrelevant, as long as they&#039;re both hold down)&lt;br /&gt;
* then, release the Reset button while still holding down the Boot0 button&lt;br /&gt;
* then, release also the Boot0 button&lt;br /&gt;
This may sound complicated, but one will quickly realize that this can be done by &amp;quot;rolling&amp;quot; the finger tip from the left to right.&lt;br /&gt;
&lt;br /&gt;
{{COMMENT|Both LEDs will go off; they should appear &amp;quot;dead&amp;quot;.}}&lt;br /&gt;
&lt;br /&gt;
:[[File:Storm32-wiki-flash-firmware-key-sequence-01.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;11.&#039;&#039;&#039; Finally, hit the {{GUI|Flash Firmware}} button.&lt;br /&gt;
&lt;br /&gt;
Now a black window (DOS console) should open and run the flash loader program, as shown in the screenshot. Wait until it&#039;s finished (takes some seconds). If the program doesn&#039;t proceed and asks to &amp;quot;Press any key to continue&amp;quot; the board is write protected. See &amp;quot;Removing Write Protection&amp;quot; below.&lt;br /&gt;
&lt;br /&gt;
:[[File:flash.png|640px]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;12.&#039;&#039;&#039; The STorM32 board will be reset and start running. If this is the first-time flash of the firmware and if the board is connected via USB to a PC, then Win 7 will immediately start with installing the appropriate USB driver. This takes quite a while (several minutes). Please, be patient and wait until Win 7 reports that the device is ready for use. {{WARNING|&#039;&#039;&#039;Do not disconnect the board from the PC or otherwise interrupt the driver installation process before it is completed&#039;&#039;&#039;}}. This can mess up things quite considerably, and installing the driver later can be a challenge.&lt;br /&gt;
&lt;br /&gt;
=== Trouble Shooting ===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
* In order to test if the usb-ttl adapter is working properly, you can connect its Rx and Tx pins with each other, and use a terminal program, such as Hterm. When you send characters they should be immediately received.&lt;br /&gt;
* If the USB is not working, please double-check that you&#039;ve selected the correct board version in the {{GUI|STorM32-BGC board}} field.&lt;br /&gt;
* In case you have troubles with the USB driver, it can be downloaded from [http://www.st.com/web/en/catalog/tools/PF257938 here], see also the [[STorM32_FAQ#Which_drivers_are_needed_for_the_USB.3F|FAQ: Which drivers are needed for the USB?]].&lt;br /&gt;
* In case the black DOS box doesn&#039;t show up, check if the firmware .zip file was extracted.&lt;br /&gt;
* On Win XP flashing via the GUI using the usb-ttl adapter will fail (the compiled .exe version of the flashloader doesn&#039;t work on XP, sorry for that). See the next sub section [[#Flashing Procedure for Win XP|Flashing Procedure for Win XP]].&lt;br /&gt;
* If the verify fails then first check that you are not using an outdated GUI version. Otherwise, check the {{GUI|Perform full chip erase}} check button and repeat. This will however also erase any setting which you might have stored before. In that case save the settings to a file beforehand using the option in the &amp;quot;Setting&amp;quot; menu.&lt;br /&gt;
&lt;br /&gt;
=== Flashing the Micro STorM32 Board ===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
The Micro STorM32 board doesn&#039;t provide BOOT0 and RESET buttons. Here, BOOT0 must be shortcut to 3.3 V by e.g. soldering a wire as shown in the picture below, and powering up the board to bring it into bootloader mode.&lt;br /&gt;
 &lt;br /&gt;
:[[File:MicroStorm32.png|387px]]&lt;br /&gt;
&lt;br /&gt;
=== Flashing Procedure for Win XP ===&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1.&#039;&#039;&#039; Download and install the Flash Loader Demonstrator from [http://www.st.com/web/en/catalog/tools/PF257525].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;2.&#039;&#039;&#039; Do step 1 to 4 under [[#Flashing Firmware using a USB-TTL Adapter|Flashing Firmware using a USB-TTL Adapter]].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;3.&#039;&#039;&#039; Start the Flash Loader Demonstrator, choose the correct COM port and then press the Boot0 and Reset buttons on the controller as described in step 10 under [[#Flashing Firmware using a USB-TTL Adapter|Flashing Firmware using a USB-TTL Adapter]]. Click next. &lt;br /&gt;
&lt;br /&gt;
{{COMMENT|The usb-ttl adapter needs to be connected to the PC before the Flash Loader Demonstrator is started}}.&lt;br /&gt;
&lt;br /&gt;
:[[File:XPFirmware1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;4.&#039;&#039;&#039; If you have connected the usb-ttl adapter correctly and pressed the buttons you should see a green light and it should say that the target is readable. Click next.&lt;br /&gt;
&lt;br /&gt;
:[[File:XPFirmware2.jpg]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;5.&#039;&#039;&#039; The target on the next page should be correct, otherwise you will have to choose the controller and click next.&lt;br /&gt;
&lt;br /&gt;
:[[File:XPFirmware3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;6.&#039;&#039;&#039; Browse to the correct firmware file and click next. The upgrade will start.&lt;br /&gt;
&lt;br /&gt;
:[[File:XPFirmware4.jpg]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;7.&#039;&#039;&#039; After the firmware is downloaded to the controller you must restart it and it is now ready for use.&lt;br /&gt;
&lt;br /&gt;
:[[File:ready.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Removing Write Protection ==&lt;br /&gt;
&lt;br /&gt;
== Flashing Firmware using a STLink/V2 (SWD) Programmer ==&lt;br /&gt;
&lt;br /&gt;
PLEASE ADD&lt;/div&gt;</summary>
		<author><name>Lasakro</name></author>
	</entry>
</feed>