2022-06-29 02:22 PM
2022-06-29 02:31 PM
Ok, need to change the topic into the STM32 MCU forum, and separate the Summary/Title from the body of the question.
>>I tried to modify an example program to put data on the external flash and I have locked it up.
What does that mean? What exactly did you do to it? It's going to be hard to know how to back-out what you did without knowing specifically what you did.
A Security Setting or Mode?
Repetitively over-wrote?
Can you connect with STM32 Cube Programmer, the stand-alone GUI?
Can you Mass-Erase the External Memory?
Has a Macronix MX25LM51245GXDI00, right?
2022-06-29 02:43 PM
2022-06-29 02:44 PM
This is a screen shot when I tried to erase the flash.
2022-06-29 03:03 PM
Ok, that says the core (CM7 presumably) has locked up.
So flip the BOOT0 SW1 to the HIGH position.
Remove all power connectivity to the board.
Then reconnect and try and erase the User Program in the Main/Primary Flash
Repeat, power cycle a second time in necessary.
Once your code is removed, then try doing a Mass Erase or Read on the External Flash