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
Hi,
Thank you for your feedback, we will check this internally in order to fix the issue.
Have a great day,
Sol
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------