FLASH_COMPLETE or FLASH_TIMEOUT.
ï‚· To correctly run this function, the FLASH_Unlock() function
must be called before. all the FLASH_Lock() to disable the
flash memory access (recommended to protect the FLASH
memory against possible unwanted operation)
11.2.7.5 FLASH_ProgramWord
FLASH_Status FLASH_ProgramWord ( uint32_t Address,
uint32_t Data)
Programs a word at a specified address.
ï‚· Address : specifies the address to be programmed.
ï‚· Data : specifies the data to be programmed.
ï‚· FLASH Status: The returned value can be:
FLASH_ERROR_PG, FLASH_ERROR_WRP,
FLASH_COMPLETE or FLASH_TIMEOUT.
ï‚· To correctly run this function, the FLASH_Unlock() function
must be called before. Call the FLASH_Lock() to disable the
flash memory access (recommended to protect the FLASH
memory against possible unwanted operation)
11.2.7.6 FLASH_ProgramHalfWord
FLASH_Status FLASH_ProgramHalfWord ( uint32_t Address,
uint16_t Data)
Programs a half word at a specified address.
ï‚· Address : specifies the address to be programmed.
ï‚· Data : specifies the data to be programmed.
ï‚· FLASH Status: The returned value can be:
FLASH_ERROR_PG, FLASH_ERROR_WRP,
FLASH_COMPLETE or FLASH_TIMEOUT.
ï‚· To correctly run this function, the FLASH_Unlock() function
must be called before. Call the FLASH_Lock() to disable the
flash memory access (recommended to protect the FLASH
memory against possible unwanted operation)