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?

This discussion is locked. Please start a new topic to ask your question.
1 ACCEPTED SOLUTION

Accepted Solutions
mƎALLEm
ST Employee

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 on "Accept as Solution" on the reply which solved your issue or answered your question.

View solution in original post

5 REPLIES 5
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.


@AkshayMR wrote:

blackpill board. 


It's almost certain that the STM32 on that will not be genuine ...

https://community.st.com/t5/stm32-mcus-products/stm32f103c8-blue-pill-high-power-consumption/m-p/621444/highlight/true#M230609

https://community.st.com/t5/stm32-mcus-products/blue-pill-stm32f1-board-gets-programmed-through-arduino-ide-but/m-p/667923

 

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.

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.

 

 

mƎALLEm
ST Employee

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 on "Accept as Solution" on the reply which solved your issue or answered your question.