Hello,
I found out that FLEXCOMM_Init() does not initialize Flexcomm clock source (FCCLKSELx), as described in UM11126, Section 32.4, step 2. I did not find any API function to do that either. SDK version is 2.7.0 (included in Zephyr RTOS as a NXP HAL).
Is that a bug, am I missing something, or should the FCCLKSELx register value be set directly?
Solved! Go to Solution.
Hi jirikerestes,
Hope you are doing well. The function you are looking for is this one:
The parameter you need come from this enumeration, you just need to select the correct value:
For example, if you need to select the 12MHz clock to the Flexcomm4, the function is used like this:
Hope this helps. If you have any further question please let me know.
Best Regards,
Ricardo
Hi jirikerestes,
Hope you are doing well. The function you are looking for is this one:
The parameter you need come from this enumeration, you just need to select the correct value:
For example, if you need to select the 12MHz clock to the Flexcomm4, the function is used like this:
Hope this helps. If you have any further question please let me know.
Best Regards,
Ricardo
Hi Ricardo,
thanks for clarification! I was searching the code for "FCCLKSEL" and missed that function.
Cheers,
Jiri