Failed to erase memory on Nucleo-FR446RE
Hello,
A small disclaimer before beginning, this is my very first project on STM32, and my experience (currently being a student) with embedded systems as a whole is quite limited, so if I omit any important information, please indicate it for me.
I'm currently trying to familiarize myself with the Nucleo-FR446RE, building the project seems to go on pretty nicely, but whenever I try to debug the code in order to flash it on the FR446, I get the following error :
Problem during debugging (1)
More specifically I get the following error related to the failure to erase the memory :
Debugging error (2)
Other, maybe unrelated potential solutions that I've tried would be :
- Use STM32CubeProgrammer in order to verify the flash memory protection, I have correctly disabled the protection
- The ST-LINK firmware is up-to-date (tried downgrading it as well)
- I have replaced the cable numerous times, and verified the correct placement of jumpers on the board
- Tried debugging on an entirely new board and on a new, completely unrelated project
What's weird is that whenever I try to flash the .elf file using STM32CubeProgrammer for the first time after connecting the ST-LINK, it works correctly. However, if I attempt to flash it again later, the aforementioned error occurs.
If anyone could provide some pointers on other potential solutions, I would greatly appreciate it.
On a sidenote, the debugging settings are as follows :
Debugging settings

