Set flexspi flash clock frequency to 104Mhz

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Set flexspi flash clock frequency to 104Mhz

98 Views
MCW
Contributor III

Hi all,

 

My project is based on IMXRT1061 with a mx25l25645g nor flash.

The dummy cycle of the nor flash is 8.

Therefore, accroding to the datasheet of the nor flash, the clock frequency should be set to 104Mhz.

And I found the table from this post.

MCW_1-1714646384755.png

Is it correct if I set the clock  with the setting below?

I think it would be 102Mhz.

The other question, is it possible to make the frquency closer to 104Mhz?

 

CLOCK_InitUsb1Pfd(kCLOCK_Pfd0, 21);
CLOCK_SetMux(kCLOCK_FlexspiMux, 3);
CLOCK_SetDiv(kCLOCK_FlexspiDiv, 2);

 

 

 

 

Best regards,

Doris

 

Labels (1)
0 Kudos
1 Reply

51 Views
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @MCW,

I highly recomend you use MCUXpresso's ConfigTools, as this will allow you to set up the clock in a much more detailed and friendly way. From your description, I believe you had to set the FlexSPI divisor to 4 in order to get 102 MHz:

EdwinHz_0-1715029148558.png

This would be a possible solution to the 104MHz requirement. The only other I found was using PLL2 PFD2, with this set to 316.8 MHz, and the FlexSPI divider on /3:

EdwinHz_2-1715029840769.png

 

Further adjusting System PLL can get you closer to 104MHz, but keep in mind that this PLL is used extensivly throuout the chip, so other modules' frequencies will also change slightly:

EdwinHz_3-1715029932513.png

 

BR,
Edwin.

0 Kudos