...
The dedicated option
SKIP_WDT_TASK
is defined inmain.h
in order to quickly enable/disableWDT
in the project. To disableWDT
set this option to1
and rebuild the project:Click the Debug button at the top panel to start debugging:
Select Remember my decision and switch to the Debug Perspective if prompted:
Wait for the STM32CubeIDE to write the firmware image to the target via ST-Link and stop at the
main()
function:.
At this point SDRAM is not initialized yet. Only the code that is located in the internal Flash or internal RAM is available for setting breakpoints. If there were breakpoints set by a previous debug session which refer to SDRAM, they need to be deactivated. The breakpoints in SDRAM can be re-activated later, when the initialization code has been performed.Set a breakpoint after the
MX_QUADSPI_Init()
function is done:Proceed to execute the program.
When the program stops at the breakpoint set in the 2 steps above, the
QUADSPI
interface is initialized and the application code is copied to SDRAM, so you can use breakpoints in the application code. Let's set a breakpoint at theprvHelpCommand()
function in the CLI driver:Proceed to execute the program.
Switch to the terminal with the serial console and type the
help
command:Code Block STM32H7 SOM FreeRTOS CLI, www.emcraft.com Type help to view a list of available commands. CLI> help
Switch back to the debug session in the STM32CubeIDE. Make sure the execution is stopped at the breakpoint in the
prvHelpCommand()
function. Use the Step Over button to proceed the execution in a step-wise fashion:Proceed to execute the program in a step-wise fashion, set up breakpoints, examine variables and so on.
8. Known Problems and Limitations
...