You can find the example FLASH_WriteProtection that also includes writing and reading FLASH, either in your local repository or on Github.
Regards and good luck!
/Peter
In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.