2024-10-07 07:07 AM
I am unable to get ITM debug working via either CubeIDE or Cube programmer.
I have checked the sysclock matches the sysclock configured for the system.
I have tried various limits and auto for the SWV clock.
I have enabled SWV in the debugger config.
In cubeIDE I see no data (port 0 is enabled on the ITM Data Console).
Looking at the log in cubeprogrammer I can see that SWV connects and then disconnects instantly when I click Start on the SWV tab.
Logging and analysing the signals I can see that SWDIO drops at about this time.
Any ideas?
2024-10-08 07:00 AM
Hello @tstokes
First let me thank you for posting.
Here are a few steps you can take to troubleshoot and resolve this problem:
1- Update Software and Firmware:
Ensure that you are using the latest version of CubeIDE 1.16.1 and Cube Programmer. Updates often include bug fixes and improvements that could address your issue.
2- Reset and Restart:
Try resetting your development board, debugger, and computer. Sometimes a simple restart can resolve communication issues.
3- Take a look at those posts, it could aid you in resolving the problem
Solved: Debugging with ITM not working with SWV in STM32Cu... - STMicroelectronics Community
SWV ITM Data Console is empty - STMicroelectronics Community
THX
Ghofrane
2024-10-08 10:00 AM
What hardware are you using? Is this a dev board? If so, which one?
What ST/Link debugger/programmer are you using?