Question
Flash and run without debug
Here is my current approach to perform flash and run without debug:
- install st-link utility
- in stm32cubeide open Project->Properties->C/C++ Build->Settings-> tab "Tool Settings" -> MCU Post build outputs check "Convert to Intel Hex file"
- Run -> Debug Configurations double-click on first line "C/C++ Application" to create new configuration. Under the tab "Main" set "C/C++ Application" to C:\Program Files (x86)\STMicroelectronics\STM32 ST-LINK Utility\ST-LINK Utility\ST-LINK_CLI.exe, under the tab "Arguments" set "Program arguments" to -c SWD -P ${project_loc}\${config_name:${project_name}}\${project_name}.hex -Rst, under the tab "Common" check "Display in favorites menu" - "Run"
- Window -> Preferences -> General -> Keys set Command "Run" Binding to Ctrl+F11
With this configuration it is possible to quickly perform build and run by pressing Ctrl+B and then Ctrl+F11. Maybe there are better methods to perform flash and run without debug? Also interested in performing reset without flash using SWD.
