title: How to Debug in STMCubeIDE?
body: <p>I am new to STM32. I have recently installed STM32CUBEIDE. I have written basic code . connected ST-Link v2 (STM8 &amp; STM32) to my laptop and pressed F11 (to debug).
  I get the following error</p>
  <pre><code>
  Error in initializing ST-LINK device.
  Reason: ST-LINK firmware upgrade required. Please upgrade the ST-LINK firmware using the upgrade tool.
  
  </code></pre>
  <p>I get the following pop-ups.
  <a href="https://i.stack.imgur.com/fGFx6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fGFx6.png" alt="enter image description here" /></a></p>
  <p>After clicking yes.</p>
  <p>ST link upgrade shows error as shown below
  <a href="https://i.stack.imgur.com/hw0lp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hw0lp.png" alt="enter image description here" /></a></p>
  <p>Now the version of st link upgrade is 3.37.
  I manually downloaded St link upgrader of version V2.J36.S7
  <a href="https://i.stack.imgur.com/HyVM6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HyVM6.png" alt="enter image description here" /></a></p>
  <p>Here after manually upgrading the firmware of ST link I get the same error with the same reason. What I could gather is that latest version of ST link upgrader does not work with my
  ST link dongle but to debug and upload code I need to upgrade it via STMCubeIDE but that does not happen.</p>
  <p>If I missed something please guide me.
  Thanks for helping me.</p>