Uncategorized

Flashing Firmware instructions

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.

Dongles – variants do exist. Note the location of the keyed opening and the small bar on the pin picture

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).

ST Link Utility Settings

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.

Third icon on the left – Connect to Target

Step 4. Once connected, load the firmware SG_stm32grbl11.hex from our Github. You might need to erase the existing flashed firmware first via the 5th icon of the left (eraser icon).

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!

Have any Question or Comment?

Leave a Reply

Your email address will not be published. Required fields are marked *