2024-07-29 11:29 PM
Hello,
I am getting an error in HAL_FLASH_Program, error: 'FLASH_TYPEPROGRAM_BYTE' undeclared (first use in this function); did you mean 'TYPEPROGRAM_BYTE'?
why is this programming type not supported FLASH_TYPEPROGRAM_BYTE. Can anyone suggest a solution for this issue.
Attached the screenshot below,
Thank you in advance for your assistance!
Solved! Go to Solution.
2024-07-30 04:17 AM - edited 2024-07-30 04:18 AM
This is not a bug. Flash can only be written to in double-words. This is due to the ECC calculation.
Solution is to write the entire flash word padded with 0x00 or 0xFF.
2024-07-30 04:17 AM - edited 2024-07-30 04:18 AM
This is not a bug. Flash can only be written to in double-words. This is due to the ECC calculation.
Solution is to write the entire flash word padded with 0x00 or 0xFF.