Hey. I think I may have killed the flash of my STM32F401... The last normal signs of life was successful flashing of the device, and then when i pressed reset on the board and the board did not perform the function it was set to do. I tried flashing it again and the target was not found. Switched to ST-LINK Utility, which was able to salvage the device ID and the family name, which makes me think that the flash may have some signs of life. But after that it pops out a message that it can't read memory and that read out protection is enabled. The option bytes show memory protection of level 1, but I can't change it, which gives out error, that it can't set the option bytes. I have tried full erase, have tried booting from BOOT0 being HIGH, no success. Same program works on other board. Currently, I'm suspecting some direct-finger-lightning to the chip once i pressed the button, but assuming this and not exploring other possibilities may lead to killing more STM32, which I really, really don't prefer. Voltage levels on power pins all ok - VDD is 3.3V, core voltage stable 1.2V
So my main questions are: May there be additional things I could try to do to salvage the dead MCU or verify that it is truly dead? What could be the possible reasons for this kind of "dead response"? Can there be something fundamentally wrong with my code that bricks the device to this state?(have to note, that the program sources clock from external crystal and the debug functionality pins are not altered.)