cancel
Showing results for 
Search instead for 
Did you mean: 

VSCode Debugging: How to skip image download to MCU when launching debug session?

BKara.3
Associate II

Hello everyone,

We are exploring a transition from Eclipse based CubeIDE to VSCode. While progress on STM32 VSCode plugin is progressing, there is still some rough edges that should be fixed.

 

One of it is as in subject... How to skip image download to MCU when launching debug session?

 

We are trying to import TF-M project from mainline Trusted Firmware Repository to our vscode environment. We successfully built and run BL2, TFM_S and TFM_NS, but unfortunately we are still struggling with debugging.

 

How to start debug (we are using JLink) but to skip download of the image? TF-M is "fragile" to any flash rewrite, and we would like to just start debug session without any flash download.

Something similar as in Eclipse STM32CubeIDE:

BKara3_0-1758552449247.png

 

1 REPLY 1
Florent V
ST Employee

Hi BKara,

In your debug configuration you should have the attribute:

"imagesAndSymbols": [
    {
       "imageFileName": "${command:st-stm32-ide-debug-launch.get-projects-binary-from-context1}",
    }
]
 
Replace imageFileName attribute by symbolFilename to load only the symbols.
 
"imagesAndSymbols": [
    {
        "symbolFileName": "${command:st-stm32-ide-debug-launch.get-projects-binary-from-context1}"
    }
]

BR,
Flo