LPC55S6x - Flexcomm clock source

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

LPC55S6x - Flexcomm clock source

跳至解决方案
1,605 次查看
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 项奖励
回复
1 解答
1,561 次查看
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 项奖励
回复
2 回复数
1,562 次查看
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 项奖励
回复
1,561 次查看
jirikerestes
Contributor I

Hi Ricardo,

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

Cheers,

Jiri

0 项奖励
回复