Flash write interrupted by XRES

Question: What happens if PSoC gets reset in the middle of a block write function?

 

Answer:

An active high XRES causes all operation of the CPU and blocks to stop and return to a pre-defined state.  So, in the middle of a flash block write if XRES is asserted, the block that the WriteFlash API is accessing will be corrupted.