Skip to content

MIMXRT1166 FlexSPI driver stuck in FLEXSPI_UpdateDllValue #84927

Answered by DerekSnell
rtborg asked this question in General
Discussion options

You must be logged in to vote

Hi @rtborg ,

I also suspect the FlexSPI clock here. Your STS2 register read above of 0xb082b580 shows both the AREFLOCK and ASLVLOCK bits are clear. You mentioned you are "not explicitly setting" the clock. But it sounds like you have an MCUXpresso project without Zephyr working with this flash, which is likely using a different clock configuration.

Confirming the FlexSPI hardware clock at the pins is ideal. But the fsl_flexspi driver does provide the CLOCK_GetRootClockFreq() API the app can use to read the frequency. I tested this on the MIMXRT1160-EVK board with Zephyr, and it confirmed this EVK clocks the QSPI flash at 132 MHz, which also matched what I measured at the pin.

#include <f…

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

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

Comment options

You must be logged in to vote
0 replies
Answer selected by rtborg
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: OSPI Octo SPI platform: NXP Drivers NXP Semiconductors, drivers
2 participants