Hi @danielmartynek and @Guofred ,
Thank you very much for the answer.
I checked the code with the new RTD version and the flash could be read and written several times. It seems that the problem was indeed in the old RTD version.
The strange thing was that I could write several times and could also read the data in memory, but it stopped working once I ran the read function.
However, with the new RTD version everything works fine.
Tank you for the advice!
Regards,
JoDo