- make sure the mainboard is NOT in contact with any conductive surface (e.g. metal case of your notebook, carbon fiber)
- locate the port, UART1, on the mainboard. "VTRG" can be found beside "UART1".
V - Vcc
T - Tx
R - Rx
G - Gnd - connect uart to port UART1 with:
5V to V
RXD to T
TXD to R
GND to G - plug the uart to any COM port of your computer. UNPLUG it at once if there is a SHORT CIRCUIT or when NO LED IS ON
- locate Flash loader on your computer:
C:\Program Files (x86)\STMicroelectronics\Software\Flash Loader Demo\STMFlashLoader Demo.exe - create a shortcut on desktop because it is hard to find...
- ensure Flash loader is not operating before plugging the uart in
- you can now plug the uart in
- plug the uart into the COM port you are going to use
- check which COM port is it in
Windows Setting\Devices - go back to Keil and select
Flash > Configure Flash Tools... - select
Utilitiesat the top and then selectUse External Tool for Flash Programming - change the setting
./Objects/ustrobo17_internal.hex [your COM port id] 115200 STM32F1_Med-density_128K. e.g. 4 if you are using COM4
- set the mainboard to BOOT mode by toggling the BOOT mode switch
- check the BOOT mode led to see if it is on or not. If NOT, UNPLUG the uart at once and check the wire connection.
- press the SW1 button, which is the reset button for mainboard.
- switch on Flash loader
- select the corresponding COM port ID that the uart is connected to in the drop dowm menu
Port Name. - press
Next- if it is
Not responding, Here are some possible cause and their solution:- the mainboard is not in BOOT mode -> set it to BOOT mode, press reset button and go to 1.
- if you have not press reset button -> press reset button and go to 1.
- incorrect COM port is being selected -> go to 1. and select the correct COM port
- wire connection is loose -> fix the wire connection and go to 1.
- the Tx and Rx cables are flipped -> flip them back and go to 1.
- you may try to switch to another COM port
- if it moves on to the next page, go to 6.
- if it is
- press
Next - press
Next - select
Downloadand press...at the right to select the address - select
.hexfile at the bottom-right corner - select
ustrobo17_internal\Objects\ustrobo17_internal.hexand pressNext - wait for it to finish flashing and press
Close
- ensure Flash loader is not running
- press F7 to compile the program
- press F8 to flash the program
- if it stops flashing somewhere, check the error message to debug. Here are some possible cause and their solution:
- the mainboard is not in BOOT mode -> set it to BOOT mode, press reset button and press F8
- if you have not press reset button -> press reset button and press F8 - the uart is not connected to the COM port set in the configuration -> connect it to the correct one / set it to current one and press F8
- there might be an error in your program -> fix the error, press F7 and then F8
- the Tx and Rx cables are flipped -> flip them back, press F7 and then F8
- if there are a lot of
[OK], it is flashed successfully
- if it stops flashing somewhere, check the error message to debug. Here are some possible cause and their solution:
- exit BOOT mode by the toggling the BOOT mode switch
- press reset button