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.
Step 4. Once connected, load the firmware SG_stm32grbl11.hex from our Github. Note: Ensure you save as plain text with a .hex extension (not as a .txt or HTML extension). The easiest way is to click on RAW, then right click Save As and edit the file ending to .hex Or, you can just download all files as a ZIP file and extract just the one you need, the .hex file.
Returning to the STM Link utility, you might need to erase the existing flashed firmware first via the 5th icon of the left (eraser icon).
Step 5. Flash the firmware via 6th icon (book/pencil icon) on 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!