LPC55S6x - Flexcomm clock source

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPC55S6x - Flexcomm clock source

ソリューションへジャンプ
766件の閲覧回数
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 解決策
722件の閲覧回数
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 返答(返信)
723件の閲覧回数
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 件の賞賛
722件の閲覧回数
jirikerestes
Contributor I

Hi Ricardo,

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

Cheers,

Jiri

0 件の賞賛