Modify MIMXRT1170_SFDP_QSPI.cfx for alternative flexspi pins

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

Modify MIMXRT1170_SFDP_QSPI.cfx for alternative flexspi pins

Jump to solution
1,159 Views
Stulinaz
Contributor II

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)

Stulinaz_0-1677079766255.png

 

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 

https://community.nxp.com/t5/i-MX-RT-Knowledge-Base/How-to-create-a-new-Flash-driver-of-the-MCUXPres...

i have opened the project iMXRT117x_FlexSPI_SFDP.zip

Cattura.PNG

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

Stulinaz_1-1677079765844.png

 

and this is my custom board based on rt1176 microcontroller

Stulinaz_2-1677079765675.png

 

Thank you very much.

Enrico.

@jeremyzhou 

0 Kudos
Reply
1 Solution
1,126 Views
jingpan
NXP TechSupport
NXP TechSupport

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.

jingpan_0-1677423043596.png

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

 

View solution in original post

0 Kudos
Reply
2 Replies
1,114 Views
Stulinaz
Contributor II

@jingpan Thank you very much for the support!

0 Kudos
Reply
1,127 Views
jingpan
NXP TechSupport
NXP TechSupport

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.

jingpan_0-1677423043596.png

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

 

0 Kudos
Reply