2025-09-10 8:22 AM - last edited on 2025-09-10 8:46 AM by Andrew Neil
Split from STM32H5 SWO debugging.
I want use SWO pin like standalone debug. Send data by "ITM_SendChar('A');" and want to read data from SWO pin by USB-UART dongle, SWO pin => Rx pin UART-USB on PC.
I try blue and black pill (STM32F103 and STM32F411), in stm32 cube ide I configured SysremCore->SYS->Debug: Trace Asynchronus Sw. In "Debug configuration" is Enable for SWV and clock core 8Mhz (SYSCLK and HCLK = 8MHz).
In main sycle:
while (1)
{
/* USER CODE END WHILE */
HAL_GPIO_TogglePin(Led_GPIO_Port, Led_Pin);
HAL_Delay(1000);
for (int i = 0; i < 10000; ++i) ITM_SendChar('A');
HAL_GPIO_TogglePin(Led_GPIO_Port, Led_Pin);
HAL_Delay(1000);
/* USER CODE BEGIN 3 */
}
LED is blinking, but SWO pin out is NO SIGNAL (Checking by oscillograph).
Where is it possible problem?
Solved! Go to Solution.
2025-09-11 1:19 AM
>Can anyone help me find something? Thanks in advance.
As the debug unit is created by Arm ....look there.
@Andrew Neil posted the link...
2025-09-11 6:40 AM
Thanks. O, mama mia... So many, huge amount stm docs (milion pages) + arm docs in specific "black format" :) It is signalize - even not try to understand me.
2025-09-11 6:44 AM
This is why ST et al create tools like ST-Link and CubeIDE - so you don't have to wade through all that and do it all yourself...
As others have said, for a simple solution - just use a UART
2025-09-12 10:26 AM - edited 2025-09-12 10:27 AM
Yea, but idea is good, but maybe "mission impossible". I see info, that it is working, but is no info how to do it. But, it is one more but ... :)
This display terminal working on 3Mbit via UART, it's quite enough for SWO clock:
https://github.com/mkprogigor/mkigor_terminal_p
https://www.youtube.com/watch?v=TVSalgKr5aE