STM32 MCUs Security

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

32F417 - the definitive way to set RDP2?

Is this the right way? if (FLASH_OB_GetRDP() != OB_RDP_LEVEL_2) { HAL_FLASH_Unlock(); // Unlock the flash memory HAL_FLASH_OB_Unlock(); // Unlock the option bytes *(__IO uint8_t*) OPTCR_BYTE1_ADDRESS = OB_RDP_LEVEL_2; // Set RDP2 HAL_FL...

PHolt.1 by Senior III
  • 57 Views
  • 2 replies
  • 0 kudos

Resolved! RDP of STM32G0B1xB/xC/xE

Hello .According to the reference manual, the default RDP level is set to level 1. However, after performing a full erase with ST-Link and then writing the hex file, the RDP level was found to be set to 0.I would like to set the RDP level to 1 at the...

aki49 by Associate II
  • 633 Views
  • 4 replies
  • 2 kudos

Resolved! RDP level2 isn't compatible with WRP

Hello,please I need a confirmation about RDP level2 and WRP combination on stm32g031 chip.Based on RM0444.Rev5 Table 19, if I use my own bootloader and I write-protect the flash sectors, I have to avoid activating RDP level2 or I'll loose the opportu...

S-.1 by Associate II
  • 986 Views
  • 4 replies
  • 3 kudos

Unable to set STM32U5 RDP password via USB interface

Hi,The STM32U5 has a password feature to restrict RDP regression from level 1 to level 0. However it seems that STM32CubeProgrammer CLI is unable to activate this via the USB interface of the built-in bootloader. If I do it via STLink then it works f...

AHugh.2 by Associate II
  • 527 Views
  • 2 replies
  • 0 kudos

STM32F103xx Option bytes getting corrupted

Hello, I am using STM32F103c6 cortex-m3. I am using 100 micro controllers in various boards. In some around 10 micro controllers, I have seen a issue of option bytes getting corrupted. Even though I am writing 0xA5 to RDP to remove read protection wh...