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