Skip to main content

2 replies

Jocelyn RICARD
ST Employee
June 18, 2026

Hello ​@Domy_ST ,

there is no such feature in any STM32.

Erasing the flash memory is performed using mass erase handled through the FLASH peripheral.

The mass erase is also triggered when launching the regression from RDP1 to RDP0.

Some protection removal can require this regression. Everything is described in the reference manual

Best regards

Jocelyn

Domy_STAuthor
Associate III
June 18, 2026

hello ​@Jocelyn RICARD,

Yes, I know this RDP feature. The problem is that I have enabled memory protection and it does not let me connect in any way to ST-LINK to perform RDP regression. So the only way to reset it is to perform some hardware function that allows you to reset the memory protection and/or delete memory.

thanks

Andrew Neil
Super User
June 18, 2026

Are you asking whether this is built-in to the STM32 hardware, or whether this could be implemented in user software ?

 

@Jocelyn RICARD has answered the first case.

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.
Domy_STAuthor
Associate III
June 18, 2026

hello ​@Andrew Neil 

I wonder if this feature is integrated that allows you to reset it