ST-LINK utility update

From Miosix Wiki
Revision as of 08:36, 16 December 2016 by Silseva (talk | contribs) (added page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Recently ST Microelectronics has updated the firmware used for the ST-LINK utility that is present on all the STM32 Discovery boards. Unfortunately this update in not compatible with the QStlink GUI tool recommended in this wiki to upload your firmware into the Discovery board's microcontroller.

The boards with the new firmware are identified by one of these facts:

  • the board order code has the word "DISC1" at its end, as an example: "STM32F429I-DISC1"
  • the ST-LINK firmware version is "ST-LINK/V2-B"
  • when the board is connected to a computer is seen by the operating system as an USB key.

Luckily a new procedure to flash the board using QStlink has been found, even if at this moment it has been tested only under Linux (if someone manages to flash a board with this procedure under other operating systems, please report it to us and we will update this page).

New flashing procedure
  • Connect the board to the PC
  • Ignore the fact that it's recognised as an USB key, but don't unmount it
  • Open the terminal
  • Move to the folder that contains the .bin file you wish to upload
  • Type sudo qstlink2 -cwV [filename].bin, where [filename] is the name of the new firmware's file
  • If the board doesn't execute the firmware you have just uploaded press the reset button or try resetting the power unplugging and reconnecting the USB cable