Skip to main content
Associate II
Aug 2, 2024 12:41 PM UTC
Solved

Unable to read and write STM32F411CEU6 blackpill board flash memory

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?

This topic has been closed for replies.
mƎALLEm
mƎALLEmBest answer
ST Technical Moderator
Apr 14, 2025 3:02 PM UTC

Hello,

ST resources are dedicated to supporting genuine ST products. We are not committed to ensuring that clones/fakes work properly with the firmware we provide.

Thank you for your understanding.

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.

5 replies

Muhammed Güler
Senior III
Aug 2, 2024 12:48 PM UTC

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

AkshayMRAuthor
Associate II
Aug 3, 2024 4:35 AM UTC

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?

Andrew Neil
Super User
Aug 2, 2024 1:06 PM UTC
A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
warningyukihyo
Associate II
Aug 3, 2024 10:53 AM UTC
  • 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.

 

 

mƎALLEm
mƎALLEmBest answer
ST Technical Moderator
Apr 14, 2025 3:02 PM UTC

Hello,

ST resources are dedicated to supporting genuine ST products. We are not committed to ensuring that clones/fakes work properly with the firmware we provide.

Thank you for your understanding.

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.