So using ublox-iris-w101 and running XIP
Added littlefs and an image at 0x08600000
I can see the image in the flash and open a file to read so all is good but when i try and write a file i get a 7002 when calling the erase function.
I have added these 2 lines in to the linker script into the EXCLUDE_FILE part
*mflash_drv.c.obj
*fsl_flexspi.c.obj
and added these 2 into the the data section
*mflash_drv.c.obj(.text .text* .rodata .rodata*)
*fsl_flexspi.c.obj(.text .text* .rodata .rodata*)
The failing call is
mflash_drv_sector_erase(0x08600000);
I have checked and the code is on 0x2xxxxxxx block, so ram.
Any ideas?