FreeRTOS Lecture 9 : ST-Link Driver Installation

 

ST-Link Driver Installation

 

 

Once you have your ST board that may be either discovery, Nucleo, or any other board from ST, which is based on ST-Link in-circuit debugger and programmer, then in order to talk to the board successfully, you have to install the ST-Link drivers.

The ST-Link driver means the driver for the ST-Link in-circuit debugger and programmer interface, as  depicted in Figure 1.

ST-Link in-circuit debugger and programmer
Figure 1. ST-Link in-circuit debugger and programmer.

 

ST-LINK Driver for Windows (32/ 64-bit versions 7, 8, and 10):

It is available on the STs website.

  • Visit the ST website and navigate to STSW-LINK009, as indicated in Figure 2. You will get a USB driver for those boards with ST-LINK/V2 and ST-LINK/V2-1 ST-Link circuitry.

At the end of the website, you will find the driver link (Figure 3), and proceed to download it.

ST-Link Driver Installation
Figure 2. ST-Link driver installation link for Windows.

 

ST-Link driver for Windows.
Figure 3. ST-Link driver for Windows.

 

  • Upon downloading, access the folder where the driver is stored. Within it, you’ll find two applications (Figure 4), one for 32-bit and the other for 64-bit systems.
Downloaded applications.
Figure 4. Downloaded applications.

 

  • Now connect your board. 

It could be either discovery or Nucleo. Launch the downloaded driver software. A popup window (Figure 5) appears. Proceed by clicking “Next.”

Popup window.
Figure 5. Popup window.

 

  • The software will install the WinUSB driver (Figure 6), which is required in order to talk to the ST-Link, and it also installs other drivers. Upon completion of the installation, click “Finish” (Figure 7).
WinUSB driver installed on the computer
Figure 6. WinUSB driver installed on the computer.

 

ST-Link Driver Installation
Figure 7. Installation completion.

 

  • See your device manager. When your Nucleo board is connected, a COM port will be visible under “Ports,” and the “STMicroelectronics STLink dongle” option will appear in “USB devices” (Figure 8)
ST-Link Driver Installation
Figure 8. Device manager.

In order to communicate with the board over UART, you use the ST-Link Virtual COM Port interface, and your host application or host IDE uses STMicroelectronics STLink dongle interface, which is an interface used for debugging.

Remember, the correct installation of the ST-Link driver is of utmost importance upon obtaining your board.

 

ST-LINK Driver for Ubuntu:

For Ubuntu users:

  • Follow the commands displayed in Figure 9 using your command prompt to install the necessary packages. Notably, ST doesn’t offer specific drivers for Ubuntu or MAC, hence Ubuntu users should proceed with package installations as indicated.
ST-Link Driver Installation
Figure 9. Commands for installation of packages in Ubuntu.

 

ST-LINK Driver for MAC:

Fortunately, no driver installation is required for MAC systems.

 

In the following article, let’s learn ST Link Firmware Upgrade.

 

FastBit Embedded Brain Academy Courses

click here:https://fastbitlab.com/course1

FastBitLab

The FastBit Embedded Brain Academy uses the power of internet to bring the online courses related to the field of embedded system programming, Real time operating system, Embedded Linux systems, etc at your finger tip with very low cost. Backed with strong experience of industry, we have produced lots of courses with the customer enrolment over 3000+ across 100+ countries.