Issue with FLASH_ProgramHalfWord Function on STM32F103RET6
Hello everyone,
I hope you're all doing well.
I'm currently working on a project with the STM32F103RET6, and I've encountered an issue when writing data to a page of Flash memory. I'm using the FLASH_ProgramHalfWord function to write half-word data. While this function works correctly about 90% of the time, occasionally it does not return FLASH_COMPLETE.
To resolve the problem, I find that I need to erase the entire page. If I don't perform the page erase, the issue persists.
The device operates on battery power and initializes from scratch each time it is used.
Has anyone experienced a similar problem or have suggestions on how to address this issue? Any insights or advice would be greatly appreciated.
Thank you!
