Hallo,
I need to change the MIMXRT1170_SFDP_QSPI.cfx flash driver from the default location present on evaluation kit to another flesxpi compatible pins (Flexspi port B instance 2)
Based on other topics in this forum:
https://community.nxp.com/t5/i-MX-RT/How-to-change-SPI-FLASH-on-i-MXRT117x/m-p/1351697
and
i have opened the project iMXRT117x_FlexSPI_SFDP.zip
but i cannot find any reference to pins setup function call.
Is someone manage to do anything like this?
those are default pins in MIMXRT1170-EVK
and this is my custom board based on rt1176 microcontroller
Thank you very much.
Enrico.
Solved! Go to Solution.
Hi @Stulinaz ,
Unlike those RT10xx_flexspi_spdf project, RT1170 project use ROM API to initialize the flash. You can see that from line 189 to line 202 in FlashPrg.c is to use ROM API to initialize flash. Table 10-65 in reference manual is what option0 means and table 10-66 is about pin group select. So, you can modify this field to select pin group and let ROM API to initialize the pins.
To tell ROM API which pin group is used, you must burn the eFuse.
When boot up, efuse is still needed to tell boot ROM where is the QSPI flash.
So, you must burn the fuse.
Please refer to table 10-10 in RM.
Regards,
Jing
@jingpan Thank you very much for the support!
Hi @Stulinaz ,
Unlike those RT10xx_flexspi_spdf project, RT1170 project use ROM API to initialize the flash. You can see that from line 189 to line 202 in FlashPrg.c is to use ROM API to initialize flash. Table 10-65 in reference manual is what option0 means and table 10-66 is about pin group select. So, you can modify this field to select pin group and let ROM API to initialize the pins.
To tell ROM API which pin group is used, you must burn the eFuse.
When boot up, efuse is still needed to tell boot ROM where is the QSPI flash.
So, you must burn the fuse.
Please refer to table 10-10 in RM.
Regards,
Jing