Hi Pavel,
thank you for your explanation and the documentation.
The problem with this platform is that what I need is to protect a section of the flash with a system as flexible as MPU. MPUs as I understand does protect against common write operation (like assigning a pointer to that area and then writing in that mem section through the pointer) but not via flash functions APIs.
This memory section which I need to protect can be modified during the product life cycle but only in a controlled way. If it is written by mistake it would end up in a non working product.
As I understood, if we need to protect some flash section against flash functions api the only way is to use PFR which would prevent it from being modified during the product life cycle (PFR is locked after boot) which is not what I'd need.
So, my preferred approach (assumming that I processed all the information right) would be to create a wrapper for the flash API functions which checks the MPU configuration before flash write usage operations and modify only non protected pages.