How to flash firmware: Difference between revisions

From STorM32-BGC Wiki V1
Jump to navigation Jump to search
No edit summary
No edit summary
Line 10: Line 10:


RC-GND = GND -> connect it to GND on the usb-ttl adapter
RC-GND = GND -> connect it to GND on the usb-ttl adapter
RC-0 = Uart1-Rx -> connect it to Tx on the usb-ttl adapter
RC-0 = Uart1-Rx -> connect it to Tx on the usb-ttl adapter
RC-1 = Uart1-Tx -> connect it to Rx on the usb-ttl adapter
RC-1 = Uart1-Tx -> connect it to Rx on the usb-ttl adapter


Line 16: Line 18:




notice: neither a 5V nor a 3.3V, nor whatever power pins are there on the usb-ttl adapter, are used... only three wires running from adapter to board
'''Notice:''' neither a 5V nor a 3.3V, nor whatever power pins are there on the usb-ttl adapter, are used... only three wires running from adapter to board


4. the board should be powerd via the USB plug or through a battery/power supply connected to the BAT pins
4. the board should be powerd via the USB plug or through a battery/power supply connected to the BAT pins

Revision as of 15:49, 20 February 2014

How to flash firmware on the board using a usb-ttl adapter

1. one needs a standard usb-ttl adapter (FTDI, CP2102,...), ensure that it's working (drivers installed etc.)

2. one doesn't have to worry if it's a 5V adapter or not, the pins we're going to connect it to are 5V tolerant

3. the adapter has to be connected to UART1, which is NOT the port labelled UART on the board, the correct pins are found on the port labelled RC! Namely:


RC-GND = GND -> connect it to GND on the usb-ttl adapter

RC-0 = Uart1-Rx -> connect it to Tx on the usb-ttl adapter

RC-1 = Uart1-Tx -> connect it to Rx on the usb-ttl adapter

ACHTUNG: bei deinem v1.0 Board ist das anders, da ist's so wie ich dir früher mal geschrieben hatte!


Notice: neither a 5V nor a 3.3V, nor whatever power pins are there on the usb-ttl adapter, are used... only three wires running from adapter to board

4. the board should be powerd via the USB plug or through a battery/power supply connected to the BAT pins (only experts who know what they're doing should use any of the 3.3V pins on the board)

5. run the GUI and go to the "Flash Firmware" tab

  1. select the correct board and desired firmware version from the selectors, or browse to a specific hex file

ACHTUNG: bei deinem v1.0 Board musst du das v0.17 Board mit nem F103RB auswählen!


  1. select "System Bootloader @ UART1" in the STM32 programmer field
  1. select the COM port which your usb-ttl adapter is connected to

(if you're not sure which one it is, disconnect the adapter, inspect the drop-down list and memorize the available COM ports, connect your adapter and wait until its enumerated by Win7, finally inspect the drop-down list and chose the newely added COM port)

  1. if required or desired check the "Perform full chip erase" check button
  1. this is now important: before hitting the "Flash Firmware" button one has to get the board prepared to be ready for being flashed. For that, with the board connected to power, one has to
  • 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're hold down)
  • then, release the Reset button while still holding down the Boot0 button
  • then, release the Boot0 button

remark: this may sound complicated, but one will quickly realise that this can be done by "rolling" the finger tipp from the left to right

  1. finally, hit the "Flash Firmware" button


now a black window (DOS console) will open and run the flash loader program, wait until it's finished (takes a couple of seconds)

remark: if the verify fails then check the "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 beforehand using the option in the "Setting" menu



STMFlashLoaderOlliw Error


Error: mfc110.dll is missing msvcr110.dll is missing Application Was Unable To Start Correctly (0xc000007b)

Solution: ich habe das cpp mit Visual Studio compiliert

ich habe nun ide Info gefunden "If you want the program to run on another computer as well, that computer must have VC++ Runtime libraries installed. C++ programs built using Visual Studio require them. You won't need it on your machine because it gets installed with Visual Studio. But you can't expect your clients to have it. Download Link: http://www.microsoft.com/en-us/download/details.aspx?id=30679"

-> hin gehen: http://www.microsoft.com/en-us/downl....aspx?id=30679 und das installieren auf dem win x64 wo das vorher genau deine Fehler gemacht hatte, habe ich einfach vcredist_x86.exe gestartet, danach startete "mein" Flashloader