2024-01-08 01:20 PM
Hi
I need this set up to debug harder issue I encountered. I tried to search through available post but can't find anything similar enough. In the past I used SWV on STM32F411 and it worked well so I have a bit experience.
Anyway:
-debug setup in CubeMX looks little bit different, I have chosen this:
-clock is set up to 480MHz:
- firmware of ST Link V3 is (I seen some posts on other problems suggesitng to downgrade, I don't know if it is a case here, moreover, I don't know how to dongrade to selected version):
-debug config seems to be recognizing proper clock:
-I try to set up SWV to see just uwTick, nothing happens in SWV data window when running the SW:
- surprisingly sometimes, when playing with sampling setting, I see sometimes few values displayed in trace window but it hangs up anyway and is randomly working = completely useless
Does anyone know if I am doing anything wrong or does any workaround exist?
Greetings
Wojt
Solved! Go to Solution.
2024-01-08 01:30 PM - edited 2024-01-08 01:35 PM
Hi,
You set core clk to 480MHz - but in debug SWV you write 240MHz ;
if not giving korrekt frequency , swv dont work. So set 480, if core is at 480.
+
I choose this (its working):
2024-01-08 01:30 PM - edited 2024-01-08 01:35 PM
Hi,
You set core clk to 480MHz - but in debug SWV you write 240MHz ;
if not giving korrekt frequency , swv dont work. So set 480, if core is at 480.
+
I choose this (its working):
2024-01-08 02:17 PM - edited 2024-01-08 02:20 PM
The number you give as the "Core clock" in the dialog is the value of global variable SystemCoreClock after you call SystemClock_Config() divided by a million. For example, 240000000 -> 240.0
(by the way - this is why the SWV/ITM trace won't work until SystemClock_Config returns ;)
2024-01-09 01:42 PM
Thank you for quick help!