TrueSTUDIO 9.0.1 Flash and run without debugging

  1. go to Run > External Tools > External Tools Configurations
  2. right-click on Program > click New
  3. set Location and Working directory to ST-LINK_CLI.exe
  4. for ST-LINK / ST-LINK v2, set Arguments to:
    -c SWD -P ${project_loc}\${config_name:${project_name}}\${project_name}.hex -Rst
    or with flash erase (-ME) and veryfy (-V), which is slower:
    -c SWD -ME -P ${project_loc}\${config_name:${project_name}}\${project_name}.hex -V -Rst
    for ST-LINK v2 with connect under reset (UR):
    -c SWD UR -P ${project_loc}\${config_name:${project_name}}\${project_name}.hex -Rst
    or with flash erase:
    -c SWD UR -ME -P ${project_loc}\${config_name:${project_name}}\${project_name}.hex -V -Rst

After configuration is done, Flash and run already may be used from Run > External Tools.

Next, open Run > Run Configurations…, right-click on Launch Group, click New..
Click “Add…” on the right side and choose external tool you’ve just created for ST-LINK_CLI.EXE:

Build-and-run may be done this way:
Press Ctrl+B to build your project, and then press Ctrl+F11 to flash and run.

 

One Reply to “TrueSTUDIO 9.0.1 Flash and run without debugging”

Leave a Reply

Your email address will not be published. Required fields are marked *