If the program needs to access the dflash, it really involves read-while-write. But we are erasing dflash, the code is stored in cflash. When erasing dflash, we can not access the dflash. I don't know if this can make the code continue to run while erasing the dflash.
The problem we are having now is that we have done a flash emulate EEPROM function with reference to the NXP documentation.When used, it needs to write data to the dflash frequently and erase it when the data is full. The problem now is that there is a 200ms delay when erasing dflash. However, the vehicle may be running at this time and there is no long pause. So is there a way to make the code work properly when erasing dflash?