2020-12-07 03:20 AM
I am using STMF746 controller with my customized board. By mistake I set memory protection unit. When I m trying to connect with STM Utility software, I am getting below error.
Can not read memory!
Disable Read Out Protection and retry.
In option bytes, I can see below settings
and When I did below settings , click on apply I get error.
Any help ?
2020-12-07 10:58 AM
Do you have reset connected from your board? If yes, select "connect under reset" option in Target->Settings; if not, try to hold manually NRST low, or BOOT0 high, while attempting to connect.
JW
2020-12-07 11:30 AM
Yes, something on the device is not happy. As Jan indicates let's see how it performs if your code is not run. ie BOOT0 = HIGH
Please also be more specific about what exactly you did/set to get into this predicament.
Have you done a Mass Erase?
2020-12-08 11:11 PM
@Community member @Community member Actually I am programming my bootloader code. Bootloader section is at section 1 so when I program my bootloader, Other section of flash is setting for write protection. I am not sure about reason, Any suggestions?
2020-12-08 11:19 PM
Do you have reset connected from your board? If yes, select "connect under reset" option in Target->Settings; if not, try to hold manually NRST low, or BOOT0 high, while attempting to connect.
JW
2020-12-08 11:46 PM
@Community member
Yes I grounded reset pin and somehow able to erase my previous code. But Facing same issue when I program same bootloader code.
Any suggestions?
2020-12-09 06:25 AM
Make sure your code does not change setting of PA13 and PA14 (i.e. SWD signals) in GPIO.
If you don't set the readout protection, with the same code, can you debug it after a power reset?
JW