Configuration problem with fsl_sdcard driver component

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

Configuration problem with fsl_sdcard driver component

ソリューションへジャンプ
565件の閲覧回数
matheuspinto
Contributor II

Hi,

I am trying to use the fsl_sdcard component with KDS 3.0.0 and PE, and the eval boards FDRM K22F and FRDM-KL25Z.

err6.png

Using the FRDM-K22F, the inherited component is added:

err3.png

But a problem occurs in the fsl_dspi component. Is not accepted any clock value, like you can see in figure below:

err2.png

Even using the timing dialogue box, to choose a predetermined clock, doesn't work:

kkk.png

The same problem occurs using FRDM KL25Z, however, the inherited component add is the fsl_spi.

err4.png

err5.png

Any advice?

0 件の賞賛
1 解決策
381件の閲覧回数
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Matheus Pinto:

When you create a project for a board (e.g. FRDM-K22F) Processor Expert provides a set of predefined clock configurations. You can analyze such configurations by opening the settings of the fsl_clock_manager component.

For example the "clockMan1_InitConfig5" corresponds to a Core clock = 100 Mhz and Bus clock = 50 MHz:

pastedImage_4.png

In the top of the timing dialog box for fsl_dspi you can see that all the clock configurations are enabled by default:

pastedImage_2.png

In that case the SPI clock frequency must be achievable with all clock configurations using dividers and prescalers.

To resolve this you can simply disable the configurations that you will not use. e.g. I enabled only Clock cfg. 5 and this lets me set the frequency to 400 kHz:

pastedImage_3.png

I hope this helps. Let me know if you have questions.

Regards!,
Jorge Gonzalez

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

元の投稿で解決策を見る

0 件の賞賛
2 返答(返信)
382件の閲覧回数
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Matheus Pinto:

When you create a project for a board (e.g. FRDM-K22F) Processor Expert provides a set of predefined clock configurations. You can analyze such configurations by opening the settings of the fsl_clock_manager component.

For example the "clockMan1_InitConfig5" corresponds to a Core clock = 100 Mhz and Bus clock = 50 MHz:

pastedImage_4.png

In the top of the timing dialog box for fsl_dspi you can see that all the clock configurations are enabled by default:

pastedImage_2.png

In that case the SPI clock frequency must be achievable with all clock configurations using dividers and prescalers.

To resolve this you can simply disable the configurations that you will not use. e.g. I enabled only Clock cfg. 5 and this lets me set the frequency to 400 kHz:

pastedImage_3.png

I hope this helps. Let me know if you have questions.

Regards!,
Jorge Gonzalez

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
381件の閲覧回数
matheuspinto
Contributor II

Thanks Jorge,

It worked!

0 件の賞賛