cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to read and write STM32F411CEU6 blackpill board flash memory

AkshayMR
Associate II

Respected sir/madam,

We are using STM32F411CEU6 blackpill board. When we try to put our code into the flash, it says it the memory is protected. Can you suggest possible solution to solve the issue?

4 REPLIES 4
Muhammed Güler
Senior III

Have you tried connecting to your board using STM32CubeProgrammer?
You can disable write protection by reprogramming the option bytes with STM32CubeProgrammer.

We used STM32CubeProgrammer and tried to disable write protection by providing "AA" in optional bytes. But, "AA" is not taken and it shows only "FF" in optional bytes. How to overcome this issue?

warningyukihyo
Associate III
  • Make sure that the firmware on ST-Link is up to date. (CubeProgrammer, too)
  • Enter bootloader mode with the BOOT0 button and try the operation.
  • Try changing the RDP flags after launch ERASE ALL in CubeProgrammer.