Posted on May 02, 2016 at 08:23While programming the flash memory cannot provide instructions to the processor for execution. So you can only run programs from cache (which you processor doesn't have) or RAM.
I expect that your code writes a group of data to the flash memory. Then between each write there is a very small time window where the interrupt can fire. and prevent execution of the next flash write (for a short while). That's why the interrupts happen at all...