LPC55S6x - Flexcomm clock source

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC55S6x - Flexcomm clock source

Jump to solution
752 Views
jirikerestes
Contributor I

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?

0 Kudos
1 Solution
708 Views
nxf58474
NXP Employee
NXP Employee

Hi jirikerestes,

Hope you are doing well. The function you are looking for is this one: 

pastedImage_4.png

 

The parameter you need come from this enumeration, you just need to select the correct value: pastedImage_2.png

For example, if you need to select the 12MHz clock to the Flexcomm4, the function is used like this:

pastedImage_7.png

Hope this helps. If you have any further question please let me know.

 

Best Regards,

Ricardo

View solution in original post

0 Kudos
2 Replies
709 Views
nxf58474
NXP Employee
NXP Employee

Hi jirikerestes,

Hope you are doing well. The function you are looking for is this one: 

pastedImage_4.png

 

The parameter you need come from this enumeration, you just need to select the correct value: pastedImage_2.png

For example, if you need to select the 12MHz clock to the Flexcomm4, the function is used like this:

pastedImage_7.png

Hope this helps. If you have any further question please let me know.

 

Best Regards,

Ricardo

0 Kudos
708 Views
jirikerestes
Contributor I

Hi Ricardo,

thanks for clarification! I was searching the code for "FCCLKSEL" and missed that function.

Cheers,

Jiri

0 Kudos