Use ST-Link in Embedded Studio

From SEGGER Wiki
Revision as of 18:05, 14 February 2024 by Nino (talk | contribs) (Created page with "This article will explain how a ST-Link can be used for debugging in Embedded Studio. == Minimum Requirements == * Embedded Studio V8.10 or later * ST-Link V2 or later * STM...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This article will explain how a ST-Link can be used for debugging in Embedded Studio.

Minimum Requirements

  • Embedded Studio V8.10 or later
  • ST-Link V2 or later
  • STM32CubeProgrammer V2.14.0 or later

How to configure Embedded Studio to use ST-Link

  1. Install the STM32CubeProgrammer (we recommend to use the default path)
  2. Install Embedded Studio
  3. Create new Embedded Studio project or open existing one
  4. In Embedded Studio go to Tools->Options->Building->Build->Global Macros
  5. Set a global macro as follows: STM32CUBEPROGDIR=<path>
    1. Where <path> equals to the installation folder of the STM32CubeProgrammer. Default on Windows systems is: C:/Program Files/STMicroelectronics/STM32Cube/STM32CubeProgrammer
  6. Open the project settings of your Embedded Studio project and set option Debug > Debugger > Target Connection > ST-Link
  7. Next set option Debug > ST-Link > STM32CubeProgrammer directory > $(STM32CUBEPROGDIR)

That should be it. Now you should be able to debug with your ST-Link probe like you are used to with your J-Link probe.