F0 HAL库 Flash option bytes 问题
请问有HAL库的FLash Option读写问题,FLASH_OBProgramInitTypeDef flash_ob_init;
HAL_FLASHEx_OBGetConfig(&flash_ob_init);
if(flash_ob_init.RDPLevel!=SET)
{
printf("Device is readable %d \r\n",flash_ob_init.RDPLevel);
//flash_ob_init.RDPLevel = OB_RDP_LEVEL_1;
//flash_ob_init.OptionType =OPTIONBYTE_RDP;
HAL_FLASH_Unlock();
HAL_FLASH_OB_Unlock();
HAL_FLASH_OB_RDP_Config(OB_RDP_LEVEL_1);
HAL_FLASH_OB_Lock();
HAL_FLASH_Lock();
HAL_FLASH_OB_Launch();
}
******************************************************************************
* @file stm32f0xx_hal_flash_ex.c
* @authorMCD Application Team
* @version V1.2.1
* @date 09-January-2015
各位大侠有遇到过类似的情况吗?
;P;P;P;P;P;P ~~~~~~~~~~:o 帮顶 ;P
有遇到类似的问题吗? 还没更新hal版本,不知道新的会不会也这样
用std库是可以的
页:
[1]