Hi, Alice, thanks for your reply but I am afraid that demo isn't helpful for us. We are currently able to do XIP but our problem is specifically that we cannot do an Erase/Write within another partition of the same physical flash while we are XIP from that same flash part.
I am now exploring if we can execute our code from Board SDRAM which will then allow us to manipulate the SPI Flash while in application.