Hi,
Can you please elaborate on the description of the problems?
I suppose you use S12DP512. This flash consists from 4 flash blocks.
There is one restriction, it is not possible to read from a flash block while it is being erased or programmed.
Therefore, the flash commands are execured from RAM.
Regards,
Daniel