FreeRTOS Lecture 10 – ST Link Firmware Upgrade

 

ST Link Firmware Upgrade

 

 

 Look at the Figure 1, here you Download the ST-Link firmware upgrade software.

ST Link Firmware Upgrade
Figure 1. Web page to download the ST Link firmware upgrade software.

 

This is the software given to all the platforms such as Windows, Mac, and Ubuntu in order to do the firmware upgrade of the ST-Link.

  1. Software Versatility: Discover the software’s compatibility across various platforms, including Windows, Mac, and Ubuntu.
  2. Firmware Range: Observe that at the top of the web page  the firmware upgrade covers ST-Link, ST-Link/V2, and ST-Link/V2-1. .

In the beginning, they say it is ST-Link/V2-1, and in some other places, they say it as ST-Link/V2-A. Here is a naming mismatch, but please note that the V2-A is nothing but V2-1.

 

Access the end of the web page to initiate the software download (Figure 2). Click “Get Software” to proceed.

Software download option
Figure 2. Software download option.

 

After that, accept the agreement shown in Figure 3.

Then you have to login to download the software. If you don’t have an account, then you have to create one (Figure 4).

License Agreement
Figure 3. License Agreement.

 

Login/ Register option
Figure 4. Login/ Register option.

 

Upon download, you’ll receive an archive file (Figure 5).,

Downloaded archive
Figure 5. Downloaded archive.

 

For Windows users, execute the downloaded ST-Link upgrade software (Figure 6).

Linux and Mac users can run the executable Jar file (Figure 7) by simply double-clicking on it. Since it is a Jar file, it can run on Linux as well as on MACs.

ST-Link upgrade software for Windows
Figure 6. ST-Link upgrade software for Windows.

 

Executable Jar file for Linux and MAC
Figure 7. Executable Jar file for Linux and MAC.

 

For example, consider that you are on Windows and have not connected your board to the PC. Now just run the Executable Jar file shown in Figure 7.

Now observe Figure 8; it is not showing anything.

ST Link Firmware Upgrade
Figure 8. Result of running an Executable Jar file when no board is connected.

 

Connect your board to the PC and click “Refresh Device List” option (Figure 9).

Now it has been detected that the board connected to the PC is actually the old board, which contains the ST-LINK/V2 version (Figure 10).

ST Link Firmware Upgrade
Figure 9. Refreshing the device list.

 

ST Link Firmware Upgrade
Figure 10. Result of running an Executable Jar file after connecting the board.

 

Then Click “Open in Update Mode” option (Figure 11) to proceed..

When you do this?

You can see that the firmware version running on the board is V2J2950, and the latest available version is also that one only since it has already been updated. You may see a mismatch here.

In case of a version mismatch, click “Upgrade” to update the firmware (Figure 12).

This will upgrade the firmware, which is running on the ST-Link microcontroller, and if you are using a newer board, then it may show you V2-1 instead of V2.

ST Link Firmware Upgrade
Figure 11. Opening update mode.

 

ST Link Firmware Upgrade
Figure 12. Updating ST-Link firmware.

 

Now the upgrade is successful, now close the popup window and restart your microcontroller. This is the firmware upgrade procedure for discovery.

 

If you have a Nucleo board, then also the procedure is the same, and the software is also the same.

The Nucleo board is based on the ST-LINK/V2-1 debugger and programmer. Nucleo came after the discovery. That’s why it comes with V2-1.

Now for Nucleo, also let’s run the ST-Link once again. Connect your board to the PC and click on the refresh device list. From Figure 13, you can see that it is showing V2-1.

ST Link Firmware Upgrade
Figure 13. Result of running an Executable Jar file after connecting the board.

 

It is showing that the firmware version is unknown. So, just click on the open in update mode option and wait until it installs some drivers. Now it is saying that the current firmware version on the board is 28, available is 29. Just click on upgrade to the newer firmware version (Figure 14).

ST Link Firmware Upgrade
Figure 14. Updating ST-Link firmware.

 

Upon successful upgrade, close the popup window and restart your microcontroller. . 

These firmware upgrade steps have to be done in order to use your board successfully with this course.

Note: Similar firmware upgrade steps apply to Nucleo boards as well, ensuring consistency across platforms.

In the next article, let’s Download the Open STM32 System Workbench.

 

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.