Hi Marizonne,
how did you partitioned the device?
Let me copy here from the reference manual some reasons why the PRAM is locked:
lukaszadrapa_0-1622027606240.png
And:
lukaszadrapa_1-1622027669913.png
So, I would check the content of FSTAT register as a first step.
Regards,
Lukas