Set up St-Link

ST-LINK Utility is used for programming STM32 microcontrollers.

{Bare metal device preferences for St-Link}

To set preferences for St-Link:

  1. Go to Preferences > Devices > Bare Metal.
  2. Select Add.
  3. Select St-Link.
  4. In Name, enter a name for the connection.
  5. In Startup mode, select the mode to start the debug server provider in.
  6. In Peripheral description file, specify a path to a file that describes the peripherals on the device.
  7. In Host, select the host name and port number to connect to the debug server provider.
  8. In Executable file, enter the path to the debug server provider executable.
  9. In Verbosity level, enter the level of verbose logging.
  10. Select Extended mode to continue listening for connection requests after the connection is closed.
  11. Select Reset on connection to reset the board when the connection is created.
  12. In Version, select the transport layer type supported by the device.
  13. In Init commands, enter the commands to execute when initializing the connection.
  14. In Reset commands, enter the commands to execute when resetting the connection.
  15. Select Apply to add the debug server provider.

See also How To: Develop for Bare Metal and Developing for Bare Metal Devices.