Hello,
I want to configure GPIO_EMC_B2_18 as FLEXSPI1_A_DQS and set the clock frequency to 133 MHz on the i.MX RT1175.
I understand that GPIO_EMC_B2_18 cannot be set to FLEXSPI1_A_DQS during boot.
Therefore, I’m trying to run it at 60 MHz during boot and change it to 133 MHz in the application, but it doesn’t work.
I am using the evkbmimxrt1170_flexspi_nor_polling_transfer project and have modified the relevant section of `flexspi_nor_flash_init()` in `flexspi_nor_flash_ops.c`.
```
IOMUXC_SetPinMux(IOMUXC_GPIO_EMC_B2_18_FLEXSPI1_A_DQS, 1U);
IOMUXC_SetPinConfig(IOMUXC_GPIO_EMC_B2_18_FLEXSPI1_A_DQS, 0x0AU);
CLOCK_SetRootClockDiv(kCLOCK_Root_Flexspi1, 4);
CLOCK_SetRootClockMux(kCLOCK_Root_Flexspi1, 5);
config.rxSampleClock = kFLEXSPI_ReadSampleClkLoopbackFromDqsPad;
```
The system hangs when the clock frequency is set to 133MHz.
```
CLOCK_SetRootClockDiv(kCLOCK_Root_Flexspi1, 5);
CLOCK_SetRootClockMux(kCLOCK_Root_Flexspi1, 5);
```
It works when the clock frequency is set to 105MHz.
How can I configure GPIO_EMC_B2_18 to FLEXSPI1_A_DQS and set the clock frequency to 133 MHz?
Hi @Shuhei_D ,
Thank you so much for your interest in our products and for using our community.
https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT-1176-FlexSPI-RW-frequency-DQS/m-p/1871808
According to the RT1170 Reference Manual, when using the secondary pin group, the maximum supported FlexSPI flash frequency is 100 MHz.
Could you please check your project configuration and confirm whether it matches the scenario described in the link above?
Wish it helps you
Best Regards
May
It seems you want to switch the SPI clock freq from 60MHz to 133MHz to drive the NOR flash external. But 105MHz seems ok so you may need to check the layout side according to signal integrity with SPI high frequncey. Do you review the schematics?