Difference between revisions of "STLink"

From wiki.emacinc.com
Jump to: navigation, search
Line 25: Line 25:
  
 
2 Open the STLink Utility
 
2 Open the STLink Utility
[[File:STLinkUtility.PNG|500px|thumb|left|STLink Utility]]
+
[[File:STLinkUtility.PNG|800px|thumb|left|STLink Utility]]
 
<br clear=all>
 
<br clear=all>
  
 
3 Click on the 'Binary File' tab in the upper left. A file browser should appear. Navigate to the directory that contains the binary file you plan to use and click 'Open'
 
3 Click on the 'Binary File' tab in the upper left. A file browser should appear. Navigate to the directory that contains the binary file you plan to use and click 'Open'
[[File:STLinkFileBrowse.PNG|500px|thumb|left|STLink File Browse]]
+
[[File:STLinkFileBrowse.PNG|800px|thumb|left|STLink File Browse]]
 
<br clear=all>
 
<br clear=all>
  
 
4 [Optional] Before programming the unit, it is recommended to erase the chip. In the upper left, click 'Target' and then click 'Erase Chip'. You should see the following message if it completes successfully.
 
4 [Optional] Before programming the unit, it is recommended to erase the chip. In the upper left, click 'Target' and then click 'Erase Chip'. You should see the following message if it completes successfully.
[[File:STLinkEraseChip.PNG|500px|thumb|left|STLink Erase Chip]]
+
[[File:STLinkEraseChip.PNG|800px|thumb|left|STLink Erase Chip]]
 
<br clear=all>
 
<br clear=all>
  
 
5. In the upper left, click 'Target', then 'Program & Verify'. The following window should appear. Click 'Start'.
 
5. In the upper left, click 'Target', then 'Program & Verify'. The following window should appear. Click 'Start'.
[[File:STLinkProgram.PNG|500px|thumb|left|STLink Program]]
+
[[File:STLinkProgram.PNG|800px|thumb|left|STLink Program]]
 
<br clear=all>
 
<br clear=all>
  

Revision as of 11:12, 29 May 2018

The STLink is a debugger and programmer for the STM8 and STM32 microcontroller families.

General Information

Tools Required

Setup

STLink on Windows

1 Start by downloading the STLink utility software here: http://www.st.com/en/development-tools/stsw-link004.html

2 Open the STLink Utility

STLink Utility


3 Click on the 'Binary File' tab in the upper left. A file browser should appear. Navigate to the directory that contains the binary file you plan to use and click 'Open'

STLink File Browse


4 [Optional] Before programming the unit, it is recommended to erase the chip. In the upper left, click 'Target' and then click 'Erase Chip'. You should see the following message if it completes successfully.

STLink Erase Chip


5. In the upper left, click 'Target', then 'Program & Verify'. The following window should appear. Click 'Start'.

STLink Program


STLink on Linux

Pages with Related Content