2025-09-22 7:51 AM
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:
Solved! Go to Solution.
2025-09-22 7:58 AM
Hi BKara,
In your debug configuration you should have the attribute:
"imagesAndSymbols": [
{
"imageFileName": "${command:st-stm32-ide-debug-launch.get-projects-binary-from-context1}",
}
]"imagesAndSymbols": [
{
"symbolFileName": "${command:st-stm32-ide-debug-launch.get-projects-binary-from-context1}"
}
]2025-09-22 7:58 AM
Hi BKara,
In your debug configuration you should have the attribute:
"imagesAndSymbols": [
{
"imageFileName": "${command:st-stm32-ide-debug-launch.get-projects-binary-from-context1}",
}
]"imagesAndSymbols": [
{
"symbolFileName": "${command:st-stm32-ide-debug-launch.get-projects-binary-from-context1}"
}
]2025-09-25 2:53 AM
Hi Florent,
Yes, that was that.
Just to confirm, if there are multiple entries like:
"imagesAndSymbols": [
{
"symbolFileName": "${workspaceFolder}/build_s/bin/bl2.elf"
},
{
"symbolFileName": "${workspaceFolder}/build_s/bin/tfm_s.elf"
}
]debugger will load all entries?
Thanks
Branko
2025-09-25 4:08 AM
Hi,
Exactly, and in the same order of declaration.
BR,
Flo
2025-10-16 7:42 AM
Flo,
One more time, thank you for your answer.
We had some problems to run multiple images this way with JLink debugger in VS Code.
I do not know how to report, it's just not work, debugging want even start. Maybe it's the problem in our configuration (we are debugging 3 projects, BL2, TFM_S and TFM_NS), but in classic STM32CubeIDE this was working flawlessly.
We will try to formalize bug report, but could I kindly ask you to give comments if JLink multiple images are tested/proven working.
Thanks
Branko
2025-10-17 2:55 AM
Hi BKara,
We have tested okay multiple elf with JLink, the order is important just like in STM32CubeIDE.
I understand you have migrated your STM32CubeIDE project to CMake VSCode, and rebuilt it inside VSCode. In that case I guess you have to reload VSCode generated images onto your board.
Which device are you using?
BR,
Ludovic