佚名通过本文主要向大家介绍了stm32l0,stm32l0固件库,stm32l0中文资料,stm32l0 hal库,stm32l0教程等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
问题:[STM32L0] STM32LO5读保护设置出错
描述:
if(SET != FLASH_OB_GetRDP())
{
printf("Flash read protection not set, protection.....\n");
FLASH_Unlock();
FLASH_OB_Unlock();
//FLASH_OB_WRPConfig();
FLASH_OB_RDPConfig(OB_RDP_Level_1);
//FLASH_OB_UserConfig();
//FLASH_OB_BORConfig();
printf("protection done\n");
FLASH_OB_Launch();
FLASH_OB_Lock();
FLASH_Lock();
}
/* Flash read protection */
描述:
stm32L05系列读保护
在使用STM32L05系列单片机时,当设置为读保护时,读保护生效但程序无法运行,读保护取消后程序正常运行,仿真结果option byte读保护设置也是按照手册正确设置。求大神知道。if(SET != FLASH_OB_GetRDP())
{
printf("Flash read protection not set, protection.....\n");
FLASH_Unlock();
FLASH_OB_Unlock();
//FLASH_OB_WRPConfig();
FLASH_OB_RDPConfig(OB_RDP_Level_1);
//FLASH_OB_UserConfig();
//FLASH_OB_BORConfig();
printf("protection done\n");
FLASH_OB_Launch();
FLASH_OB_Lock();
FLASH_Lock();
}
/* Flash read protection */