Flashing Firmware instructions
May 4, 2019
The firmware can be easily flashed on to the boards via the following flashing firmware instructions.
Step 1. Download the STM Link utility here.
Step 2. Wire up the ST LINK V2 dongle as following. Some Dongles do have different pin layouts and label errors (e.g. SWDIO/SWCLK swapped):
- 3V3 -> Pin 8 of the dongle
- SWDIO -> Pin 4
- SWCLK -> Pin 2
- Ground -> Pin 6
The SG boards have the labels on the silkscreen, jp8 programmer port.
Note: The board does not need to be powered when programming it via the dongle.
Step 3. Start the STM LINK Utility software and configure it as shown in the screen shots below (SWD, Freq 4MHz, Connect under reset, Hardware reset).
Click OK and in the main console of the ST Link Utility click on the icon with the plug Connect.
Note: SG’s need a hardware reset since we use the SWDIO/CLK as GPIO ports. So click on connect followed immediately with a push on SG’s hardware button to avoid setting these to GPIOs via the firmware.
Note: There is a download button with ZIP format that allows you to download all the files. Just grab from the downloaded files the .hex file.
Step 5. Flash the firmware via 6th icon (book/pencil icon) of the left. The firmware is being flashed. Failing to flash can be caused by swapped SWDIO/SWCLK connections (we had a few of those dongles with erred labels), loose Dupont connectors, or reset hardware button pushed first before connect or too early (press it after connect with a 1 sec delay).
Hope you enjoyed the flashing firmware instructions and start experimenting with the firmware, it’s yours!