HELLO I USE STM32F100RB
I WANT write and read from flash mem : /********************FLASH
MEMORY******************************/ //WRITE DATA TO FLASH
MEMORY
/* Unlock the Flash to enable the flash control register access
*************/ HAL_FLASH_Unlock(); /* Unlock the Options Bytes
*************************************************/
HAL_FLASH_OB_Unlock();
FLASH_PageErase(0);//uint32_t PageAddress HAL_FLASHEx_OBErase();
test3=FLASH_OB_ProgramData(0x080000FFU,0x12);
//HAL_F
↧