STM32H7 stuck on read protect
Hi,
I am using STMH755ZI chip and i have a custom board created using this. I have code which receives a character through UART and jumps to DFU mode for flashing. I am not using ST LINK and in case of emergency, i kept BOOT0 pin open so that i can go to DFU mode in case UART is not working. My normal work flow is build code, get the ELF file, Jump to DFU mode, use Cube Programmer for uploading the ELF file. It's been working fine for months now, and i never had any problem with it, till now. I uploaded a code as usual and i noticed that the board is not booting up. So i tried using BOOT0 pin for jumping to DFU mode for uploading a new code. But when i try to connect to the board using cube programmer it asks whether i should disable read protection or not. So i clicked OK. Then when i try to upload a code, or even erase the flash it gives me "Error: RDP level is set to 1, try using Read UnProtect (-rdu) command in order to remove the Read Out Protection.". I tried using command prompt to do the same, but it is giving me the same result.


I haven't done anything to turn ON read protection, it happened on its own. Every time i try to disable read protection it says, that it is disabled successfully, but when it try to upload a code or erase flash it asks me to disable read protection again. Is there anyway i reset the chip back to normal?
Note : The only recent changes i've made are i increased the clock speed to 480MHz and i enabled I cache and D cache as i was using a neural network in the code. It was working fine and i was able to reduce loop time a lot. The last change i made is just a for loop resetting an array to its initial value 0. Which has nothing to do with read protect.
Thanks
Kiran
