FLASH_If_Write() function
This function writes a data buffer in flash (data are 32-bit aligned).
Arguments
Data
pointer on data buffer
DataLength
length of data buffer (unit is 32-bit word)
Return value
0: Data successfully written to Flash memory 1: Error occurred while writing data in Flash memory 2: Written Data in flash memory is different from expected one
Notes
After writing data buffer, the flash content is checked.