the clock_config file generated by MCUXpresso Config Tools includes the following code
/* In SDK projects, external flash (configured by FLEXSPI) will be initialized by dcd.
* With this macro XIP_EXTERNAL_FLASH, usb1 pll (selected to be FLEXSPI clock source in SDK projects) will be left unchanged.
* Note: If another clock source is selected for FLEXSPI, user may want to avoid changing that clock as well.*/
#if !(defined(XIP_EXTERNAL_FLASH) && (XIP_EXTERNAL_FLASH == 1))
/* Disable Flexspi clock gate. */
/* Set FLEXSPI_PODF. */
/* Set Flexspi clock source. */
The note mentions that for SDK projects the external flash will be initialized by dcd. Is that correct? I thought the Boot ROM initializes the FlexSPI based on the XIP data flexspi_nor_config_t qspiflash_config stored in Flash.
Do I have to initialize FlexSPI in DCD for correct function or is qspiflash_config enough?