Hi @markus4work,
I hope you are doing well.
Please mention where you are making a call to CLOCK_InitSirc().
- CLOCK_SetSircAsyncClkDiv is defined as below in SDK.
static inline void CLOCK_SetSircAsyncClkDiv(scg_async_clk_t asyncClk, scg_async_clk_div_t divider)
{
uint32_t reg = SCG->SIRCDIV;
switch (asyncClk)
{
case kSCG_AsyncDiv3Clk:
reg = (reg & ~SCG_SIRCDIV_SIRCDIV3_MASK) | SCG_SIRCDIV_SIRCDIV3(divider);
break;
case kSCG_AsyncDiv2Clk:
reg = (reg & ~SCG_SIRCDIV_SIRCDIV2_MASK) | SCG_SIRCDIV_SIRCDIV2(divider);
break;
default:
reg = (reg & ~SCG_SIRCDIV_SIRCDIV1_MASK) | SCG_SIRCDIV_SIRCDIV1(divider);
break;
}
SCG->SIRCDIV = reg;
}
- SIRCDIV is configured in CLOCK_InitSirc as below:
SCG->SIRCDIV =
SCG_SIRCDIV_SIRCDIV1(config->div1) | SCG_SIRCDIV_SIRCDIV2(config->div2) | SCG_SIRCDIV_SIRCDIV3(config->div3);
So I don't think CLOCK_InitSirc implementation could be the issue.
Thanks & Regards,
Dhruvit Vasavada.