[ABANDONED] How to use JLink in VSCode with the STM32 VSCode extension

  • [ABANDONED] How to use JLink in VSCode with the STM32 VSCode extension

    I am trying to move my STM32 development away from STM32CubeIDe and I have installed the ST STM32 VSCode extension in my VSCode. After some issues I was able to import my CubeIDE project into VSCode and get it built. Now, I need to set up a launch task to VSCode to debug my code. I am using a JLink Ultra with CubeIDE and need to do the same from VSCode. Can anyone provide a launch.json file that achieves this?
    Sid
  • Not sure if it applies to the STM32 VsCode extension but at least a start:
    wiki.segger.com/J-Link_Visual_Studio_Code
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.
  • Hi @SEGGER - Alex, thank you for the reply. I am quite familiar with getting JLink running in VSCode. The issue I am facing is related to the ST STM32 VSCode Extension. I have raised a support ticket with them. Basically, my CubeIDE project uses JLink, I use it every day, but, when the STM32 extension imports that project it fails to import the use of JLink.

    While the ticket is being worked upon, I have set up the JLink with the Cortex Debug extension, so I have a work-around for now.

    I was hoping that perhaps someone on the forum here had run across this and had a solution.

    Many thanks,
    Sid