Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: inverted to reversed and caution about flashing clone STLink dongle

...

Section
Column
width60%
 

This page describes how to recover a board using ST-Link dongle, this procedure can be applied to all boards like CC3D, Revolution, RevoNano or Sparky2 boards.

Most boards have the SWD port already populated, if not you may need to solder directly the required wires.

Column
width40%
Panel
titleIn this page
Table of Contents

 

 


...


Section

Building a SWD cable

Column
width40%
Column
width20%

Column
width20%

SWD port pinout

#

Function

1GND
2NONE
3IO
4CLK

Connect the GND, IO and CLK wires between the SWD port and the STLink dongle, the pin2 is not used. 

 



Warning
titleSparky2

Please note the IO and CLK lines are inverted reversed for Sparky2 board !

pin3 is CLK and pin4 is IO

Column
width70%

 


...

Software setup

 


Download the required software from the ST website, need registration: ST website download page

...

Update STLink dongle firmware

If you have problems you may try updating the dongle firmware, but be aware that this can brick a clone STLink dongle.

Connect the STLink dongle and start the ST-Link Utility software.

...

  • Disconnect the STLink dongle.

 


...

Bootloader binaries

Here is the bootloader binaries for various boards, to be used with STLink utility:

...

For bu_* files to be flashed using GCS, see the Downloads page instead.

 

 



Section


Column
width50%

Flash Bootloader with STLink Utility

Connect and apply power

  • Connect the STLink dongle to a USB port.
  • Connect the JST connector to the board's SWD port.
  • Power the board: can be using external +5V on Output connector, or using the USB port
Column
width50%

 

  • Connect the device using the icon

...


  • At this point memory content should be populated and device characteristics displayed, here is a CC3D example:

...

  • Click Start to flash device

 


  • Device is now flashed with the new bootloader file.

 


  • Disconnect the device using the Disconnect button:

 


...

Update the firmware

Section
Column
width40%

After the bootloader is restored, you can flash the firmware using GCS and "manual" method:

  1. Disconnect board from USB port
  2. Hit Upgrade&Erase button
  3. Connect board to USB port
  4. Wait the flash process, reboot and erase flash, this can take up to 30s.
 


Column
width60%

 

 

 

 

 

 

 

 

 

...



...