Thinkdo.Noto 发表于 2015-10-28 10:45:03

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


各位大侠有遇到过类似的情况吗?

Thinkdo.Noto 发表于 2015-10-28 10:58:33

;P;P;P;P;P;P

无线传感器啊 发表于 2015-10-28 13:08:32

~~~~~~~~~~:o

你好我好大家好! 发表于 2015-10-28 15:08:33

帮顶                  

Thinkdo.Noto 发表于 2015-10-28 17:04:09

;P
有遇到类似的问题吗?

Thinkdo.Noto 发表于 2015-10-28 17:04:34

还没更新hal版本,不知道新的会不会也这样
用std库是可以的
页: [1]
查看完整版本: F0 HAL库 Flash option bytes 问题