I'm trying to run the evkmimxrt1020_flash_component_nor SDK demo on the RT1020-EVK, and I get a hardfault. See attached screenshort of MCUXpresso IDE.
The demo is unchanged from default.
The RT1020-EVK is unchanged from out-of-the-box.
The hard fault occurs in the call to FLEXSPI_SoftwareReset.
It seems to me that the problem might be that the demo is running from flash XIP and is also manipulating the FlexSPI interface. Later on it will also erase the flash chip. So I'm struggling to understand how this demo ever worked running XIP. Was it originally developed to run from SRAM or SDRAM perhaps?
Many thanks for your help.