Ok, thanks a lot, but during the disable stage it doesn’t work as I think it should.
Disable all the pages of bank memory.
As I also said before, I tried to give the ProtectedPAGE variable different values, such as 0 or 0xFFFFFFFF, or others, but the result is always the sam: disable all the pages of bank memory.
For now I do not know what to think. Sigh!
It does not work, I write any value in the register ProtectedPAGE, after resetting the meeting FLASH_WRPR register to 0xFFFFFFFF, all pages without protection. I think there is something wrong in the function HAL_FLASHEx_OBProgram.