Skip to content

NXP RT1061 FlexSPI2 Clock Frequency Configuration Issue #87232

Closed Answered by DerekSnell
ofirshe asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @ofirshe ,

I saw your related discussion on Discord. You shared you are already selecting CONFIG_FLASH=y. And you already found that some flash drivers call flexspi_clock_set_freq(). In your case, the driver flash_mcux_flexspi_nor.c does this by calling memc_flexspi_update_clock(), passing the spi-max-frequency as the desired frequency.

It seems like your issue is related to the clock divider. flexspi_clock_set_freq() will not change the clock source to the FlexSPI peripheral, but attempts to calculate a divider to program in CCM_CBCMR[FLEXSPI2_PODF]. I did some debugging on the MIMXRT1060-EVKC board, and stepped through this code. I see the FlexSPI2 clock is set twice using this flash…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ofirshe
Comment options

Answer selected by ofirshe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants