I'm trying to get the mflash_drv.c to work, which seems to be be able to write to the hyperflash while XIP from it.
I found the driver in SDK_2.6.1_EVKB-IMXRT1050\rtos\amazon-freertos\lib\third_party\mcu_vendor\nxp\mflash\mimxrt1052
I'm on the EVKB running from hyperflash.
I've put all the mflash_drv.c functions into ITCM (verified by looking at the PC), as well as all the fsl_flexspi.c functions.
I'm calling mflash_drv_init(); first and then mflash_drv_write_page();.
The mflash_drv_write_page() always results in a reset after calling CLOCK_DisableClock(kCLOCK_FlexSpi); in mflash_drv_write_page_internal().
I don't really understand why.
Any idea what I'm doing wrong? Is it possible that my clocks or pins are wrong? How is this driver supposed to be used?