Skip to main content
Graduate
November 6, 2025
Question

How to implement the function of downloading only the compiled firmware in VSCode?

  • November 6, 2025
  • 2 replies
  • 260 views

How can I use VS Code to download only the firmware? I can do it using debug mode, but I don't want to trigger debug. Is it possible to run it automatically after downloading, like CubePRG? I'm not very familiar with CMake. Thank you.

-----------------------------------------------------------------

Erasing internal memory sectors [0 6]
Download in Progress:
2
File download complete
Time elapsed during download operation: 00:00:06.418
-------------------------------------------------------------------
Just take out this part separately
    This topic has been closed for replies.

    2 replies

    ST Employee
    November 6, 2025

    One of the options is using "task" as shown below:

    EthanHUANG_0-1762404271900.png

    1. Unzip the attached zip to get the file tasks.json.
    2. Assign the paths in the file tasks.json based on your environment.
    3. Put tasks.json into folder .vscode in your project
    4. Press "Ctrl+Shift+P" to bring up Command Palette and choose "Tasks: Run Task" as shown in the picture above, and then select "Flash STM32 (CubeProgrammer)" which is assigned in the tasks.json.

     

    TravelCatAuthor
    Graduate
    November 6, 2025

    Thank you very much, it works very well. Have you considered integrating it into an extension in the future? I feel it would be very useful.

    ST Employee
    November 6, 2025

    This is also in my wish list.

     

    TravelCatAuthor
    Graduate
    November 6, 2025

    iヾ(≧▽≦*)o I am looking forward to the update going live.