Why does my call to FLASH_Erase_Sector fail all of a sudden?
I am working with the STM32F446 microcontroller and for over a year I've successfully been able to erase sectors from within my code using FLASH_Erase_Sector. Now all of a sudden my code gets stuck whenever I call it! I have looked at the Option Bytes using STM32 ST-LINK Utility and everything looks fine, nothing is write protected. I'm also able to re-program the microcontroller from another microcontroller using the build-it STM bootloader. What on earth has happened to my microcontroller, why does it refuse to erase sectors from within its source code, but not from externally?