Skip to main content
MBrow.13
Associate II
March 26, 2019
Question

ITM_SendChar on NUCLEO-F767ZI with ST-Link Utility

  • March 26, 2019
  • 1 reply
  • 808 views

Hi,

I've got a NUCLEO-F767ZI and I've just tried calling ITM_SendChar and watching for the output using ST-Link Utility SWO Viewer.

I see some strange characters in the SWO Viewer but not what I've sent.

It looks like it is sort of working but that the clock frequency is wrong or something. I've set the frequency to 216 MHz and tried various other possible frequencies.

I thought it should be simple to use ITM_SendChar but perhaps there's some initialisation or some thing that needs doing. I'm not using the HAL, I've got my application up and running just using the LL drivers.

I've got the latest ST-Link Utility and updated the firmware on the ST-LINK/V2-1.

Any thoughts greatly appreciated!

Matt

This topic has been closed for replies.

1 reply

Tesla DeLorean
Guru
March 27, 2019

Try not initializing the clocks, ie don't call SystemClock_Config()

Select 16 MHz as the clock in the SWO Viewer

If that works then printf() SystemCoreClock out via a USART when you do initialize the clocks.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..