Debug Core Clock Frequency

Discussions concerning TrueSTUDIO for STM32 9.0.0 and later versions.

Moderators: Markus Girdland, Mattias Norlander

lamikam
Posts: 6
Joined: Wed Feb 27, 2019 3:22 am

Debug Core Clock Frequency

Postby lamikam » Sat Mar 16, 2019 7:34 pm

I am looking at this blog entry - http://blog.atollic.com/cortex-m-debugg ... itm-part-1 and it says,

Enter the Core Clock frequency. This is H/W board specific.
Enter the desired SWO Clock frequency. The latter depends on the JTAG Probe and must be a multiple of the Core Clock value

WHat is the Core Clock frequency? Is that the default system clock frequency? On my stm32f4-disco board is it 180MHz. Is that the correct value?
Also how to know SWO Clock freq?

THanks

Markus Girdland
Posts: 149
Joined: Thu May 11, 2017 11:27 am

Re: Debug Core Clock Frequency

Postby Markus Girdland » Mon Mar 18, 2019 3:08 pm

The core clock is the frequency the MCU is running at, which is board specific.
I usually do a simple:

Code: Select all

int clock = SystemCoreClock;


Put a breakpoint on it and there you go.

alister
Posts: 38
Joined: Fri Jan 25, 2019 3:18 am

Re: Debug Core Clock Frequency

Postby alister » Fri Mar 29, 2019 4:13 am

You can decide the SWO Clock frequency.

However if you have to configure a SWO divider for your MCU in the linker script or software, as you do for the STM32H7, which is described by a post at https://community.st.com/s/question/0D50X00009XkhURSAZ/stm32h7-swo-printf-not-working, they'll need to be consistent.

lamikam
Posts: 6
Joined: Wed Feb 27, 2019 3:22 am

Re: Debug Core Clock Frequency

Postby lamikam » Mon Apr 08, 2019 1:35 am

Thanks I will take a look.


Return to “TrueSTUDIO for STM32 discussions”

Who is online

Users browsing this forum: No registered users and 2 guests