I am trying to write a custom flashdriver application for the I.MX RT1166. I have been using the iMXRT117x_FlexSPI_SFDP project that can be found in the ide/Examples/Flashdrivers/NXP/iMXRT subfolder of the Mcuxpresso installation as it is my understanding that the 1170 and the M7 of the 1166 have the same peripheral addresses.
My issue arises once I am running the flashdriver on the 1166 eval kit. Without modifying anything in the example I am getting a hardfault in the flexspi_nor_get_config call. I have tried to change the CONFIG_OPTION0 value to the various different speeds supported and it still doesn't work.
Is there anything obvious I am missing or?