cancel
Showing results for 
Search instead for 
Did you mean: 

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

TravelCat
Visitor

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
1 REPLY 1
Ethan HUANG
ST Employee

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.