Hi,
I have found what I belive is a bug in:
Function: uint32_t CLOCK_GetFlexCommClkFreq(uint32_t id)
File: fsl_clock.c
Package: SDK_2.4.1_LPC54606J512
This line: freq = CLOCK_GetFroHfFreq();
Should be replaced by this line: freq = CLOCK_GetFroHfFreq() / ((SYSCON->FROHFCLKDIV & 0xffu) + 1U);
As it is fro_hf_div and not fro_hf that can be the source for the FlexComm moduls.
Regards
Viggo