[ Prev ] [ Index ] [ Next ]

Debug after loading to RAM

Created Saturday 11 November 2023


In this example, MCU application is dynamically loaded to STM32 ram from Windows PC using custom GUI application. We can't use default Debug arrangements or STM32_Programmer_CLI.exe utility, because it will overwrite RAM contents.


Solution is to disable "Reset" and "Download" for debug configuration:

  1. Go to Run → Debug configurations...
  2. Double-click on "STM32 C/C++ Application" to create new debug configuration
  3. Open configuration → Debugger tab set "Reset behaviour" to None
  4. Open startup tab click on "Edit..." button and uncheck "Download" check box