AnsweredAssumed Answered

problem with  FLASH_OB_ProgramData stm 32

Question asked by TARHAN SAMAH on Sep 22, 2017
Latest reply on Oct 12, 2017 by TARHAN SAMAH

HELLO I USE STM32F100RB

I WANT write and read from flash mem :

static HAL_StatusTypeDef FLASH_OB_ProgramData(uint32_t Address, uint8_t Data);

 

static HAL_StatusTypeDef test3;

 

 

 

/********************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_FLASH_OB_Launch();//reserts the system

HAL_FLASH_OB_Lock(); HAL_FLASH_Lock(); //READ THE DATA FROM FLASH MEMORY flash_data=HAL_FLASHEx_OBGetUserData(0x080000FFU);

/********************FLASH MEMORY******************************/

but the software doesnt compile

SDT_LCD_KEYPAD\SDT_LCD_KEYPAD.axf: Error: L6218E: Undefined symbol FLASH_OB_ProgramData (referred from main.o). ?????

is there someone leaved this situation can u help me find solution pl zdid i forget something

Outcomes