cancel
Showing results for 
Search instead for 
Did you mean: 

CubeIDE v 1.1 - problem with SWO debug output

Pavel A.
Evangelist III

It looks like the CubeIDE debugger (GDB server) has issues with SWO output.

When I enable SWO output in debug config and actually print something, only first few lines appear in the SWV ITM data window.

Then one of following occurs:

  • Debugger loses connection to target
  • Hard fault occurs because of unaligned access. But unaligned access exception is disabled in debug config, and I don't see any unaligned access in the code (it crashes somewhere inside HAL_Delay)

When the same firmware runs freely without debugger, I can connect ST-LINK utility and see the SWO output. It is as expected and can run for long time without exceptions.

After the ST-LINK utility I again try to debug with Cube IDE but now it does not let to enable the SWO trace. It says "SWO trace already running on another core".

But there's no another core, it is a H750.

The board is STM32H750 with external ST-LINKv2.

May be related to this issue.

0 REPLIES 0