How to write protect STM32L4RZI internal flash
Hi!
I'm trying to lock internal flash on STM32L4RZI MCU from writing, to disallow software to write on itself.
I use ST-Link utility, and when I lock at least one sector(In option bytes window), The flash is erased and then lock the wanted sector.
I tried the same method on another MCU - STM32L433RC, and it works fine.
I'm not sure what the problem is, but if there is any solution, or locking flash is impossible in this MCU, i would like to know.
Thank you!