库读专题

STM32f103 HAL库读保护以及解除

读保护 void Flash_EnableReadProtection(void){FLASH_OBProgramInitTypeDef OBInit;__HAL_FLASH_PREFETCH_BUFFER_DISABLE();HAL_FLASHEx_OBGetConfig(&OBInit);if(OBInit.RDPLevel == OB_RDP_LEVEL_0){OBInit.Optio