Is this correct, is there no way to do this, so can we not read while the writing process is going on for the same partitions?
- Yes, correct.
Is there a way to prevent the reading process to avoid making mistakes while writing for the same partitions? Even if I receive the request to read, can I not respond to this request and prevent an error?
- Such attempt will cause bus error (leading in core exception) and in the flash controller RWW error is set and operation is stopped.
If we can not prevent this situation, how can we keep the program running when an error occurs? (I get this error in my work and I can't run the program again. Unfortunately, reading request can come while writing is in progress. this is not under my control. I need to solve this problem, somehow I have to keep the program executable.)
- It is needed to avoid RWW error. The simple solution is to execute code from SRAM. Or you can have certain area dedicated to user flash programming and just to have SW written the way it does not access the area when it is being programmed or erased. It is basically up to you.