"some flash pages are read protected" error STM32
I have an STM32 microcontroller on a device, which I program using ST-link. Due to a power issue, or something, suddenly few flash pages have become read protected. I don't know how to reverse this. I use the ST-link Utility tool in windows, and I tried to perform full chip erase, but it throws the error as "some flash pages are read protected". I am able to program the microcontroller, but some things are not working, like it is supposed to store accelerometer data in a buffer, but I only get zeros on reading the buffer. So, I suspect this read protection is the problem. Can anyone please let me know how to disable this read protection, so that I can perform a full chip erase and load the program again.
Thanks in advance
