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.
Using the FRDM-K22F, the inherited component is added:
But a problem occurs in the fsl_dspi component. Is not accepted any clock value, like you can see in figure below:
Even using the timing dialogue box, to choose a predetermined clock, doesn't work:
The same problem occurs using FRDM KL25Z, however, the inherited component add is the fsl_spi.
Any advice?
Solved! Go to Solution.
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:
In the top of the timing dialog box for fsl_dspi you can see that all the clock configurations are enabled by default:
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:
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!
-----------------------------------------------------------------------------------------------------------------------
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:
In the top of the timing dialog box for fsl_dspi you can see that all the clock configurations are enabled by default:
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:
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!
-----------------------------------------------------------------------------------------------------------------------
Thanks Jorge,
It worked!