ERROR: A Flash failure has occurred, most likely due to locked flash.
when debugging ，I meet this error.
You need to provide more detailed information.
1. you see only 1 bit changed. or a whole page changed.
2. the bit flip from '1' to '0' or '0' to '1'.
3. what device you see the issue on, EFM8xxx or C8051Fxxx?