Hi,
some typical troubles when programming the flash:
- do you check return value of FLASH_DRV_Program function? Is it always STATUS_SUCCESS?
- are you aware that flash start address and size must be aligned to 8 bytes?
- from RM: "A Flash memory location must be in the erased state before
being programmed. Cumulative programming of bits (back-to-
back program operations without an intervening erase) within a
Flash memory location is not allowed. Re-programming of
existing 0s to 0 is not allowed as this overstresses the device."
These are first things to check. More details would be needed if this doesn't help.
Regards,
Lukas