2020-02-26 01:48 AM
In the code it says the following:
/**
* @brief This function writes a data buffer in flash (data are 32-bit aligned).
* @note After writing data buffer, the flash content is checked.
* @param pFlashStatus: FLASH_StatusTypeDef
* @param pDestination: Start address for target location
* @param pSource: pointer on buffer with data to write
* @param Length: number of bytes (it has to be 64-bit aligned).
* @retval SFU_ErrorStatus SFU_SUCCESS if successful, SFU_ERROR otherwise.
*/
SFU_ErrorStatus SFU_LL_FLASH_Write(SFU_FLASH_StatusTypeDef *pFlashStatus, void *pDestination, const void *pSource, uint32_t Length)
{
...
}
The brief says 32-bit aligned and the length parameter says 64-bit aligned so which one is it? I thought I read it is either 32 or 64 depending on platform, based on sizeof of SFU_LL_FLASH_write_t.
Thanks,
Arno
Solved! Go to Solution.
2020-02-26 02:37 AM
Hello Arno,
yes the brief is misleading.
The actual alignment depends on the sizeof SFU_LL_FLASH_write_t for target platform.
Best regards
Jocelyn
2020-02-26 02:37 AM
Hello Arno,
yes the brief is misleading.
The actual alignment depends on the sizeof SFU_LL_FLASH_write_t for target platform.
Best regards
Jocelyn