Clock configuration
Hello,
I have a problem verifying the HCLK frequency for Nucleo-C562RE. I configure the clock to 144MHz (see image below).

When I start the application I print the HCLK frequency:
SEGGER_RTT_printf("---- MCU started at %lu[Hz] ----\n", HAL_RCC_GetHCLKFreq());
I get 48MHz:
---- MCU started at 48000000[Hz] ----
While stepping through the HAL_Init code I see that the code thinks that the clock source is LL_RCC_SYS_CLKSOURCE_STATUS_HSIDIV3 (48MHz)
uint32_t HAL_RCC_GetSYSCLKFreq(void)
{
uint32_t sysclockfreq;
uint32_t sysclk_source;
sysclk_source = LL_RCC_GetSysClkSource();
if (sysclk_source == LL_RCC_SYS_CLKSOURCE_STATUS_HSIS)
{
/* HSIS used as system clock source */
sysclockfreq = HSI_VALUE;
}
else if (sysclk_source == LL_RCC_SYS_CLKSOURCE_STATUS_HSIDIV3)
{
/* HSIS used as system clock source */
sysclockfreq = HSI_VALUE / 3U;
}
#if defined(HSE_VALUE)
else if (sysclk_source == LL_RCC_SYS_CLKSOURCE_STATUS_HSE)
{
/* HSE used as system clock source */
sysclockfreq = HSE_VALUE;
}
#endif /* HSE_VALUE */
else
{
sysclockfreq = HAL_RCC_GetPSIClockFreq();
}
return sysclockfreq;
}
However the clock diagram indicates HSIS as the source of clock for System Mux.
Help would be appreciated,
Gil

Edited to apply source code formatting - please see How to insert source code for future reference.
