2026-01-29 7:48 PM
Hi,
I’m new to using the STM32 plugin for VS Code, as well as to VS Code itself. I’m currently using a J-Link programmer and have successfully set it up for debugging.
Could you please advise on how to setup and configure VS Code and the STM32 plugin to flash firmware onto the microcontroller for a production release (i.e., programming the device not for/in debugging mode)?
Thank you for your help.
Solved! Go to Solution.
2026-01-29 10:01 PM
2026-01-29 10:01 PM
2026-02-01 6:06 PM
Thank you @Cartu38 OpenDev
2026-02-03 8:40 PM - edited 2026-02-03 9:26 PM
After trying that I went back to the debug preset and out of the three buttons on the bottom bar (build, debug and run - see screenshot below) only the build works. The debug button and run button don't. But the main menu's F5 ("Start Debugging" and CTRL+F5 ("Run without debugging") do work correctly.
When I press the bar's debug button it gives this error:
And when I press the bar's run button it tried to open the .elf file which does exist and the location is correct. But not sure what is trying to open it and most importantly why...
Any suggestions/help would be very much appreciated as always. :smiling_face_with_smiling_eyes:
Thank you
2026-02-03 9:34 PM
Looking at notification details source is CMake Tools extension. Nothing STM32Cube may do / being involved here i guess.