Flash memory protection in STM32G0B1
Hi Team,
MCU: STM32G0B1
Requirement: Flash memory protection is needed for the MCU code.
I am using stm32g0b1 MCU for my project, where I have completed my development activities.
MCU Flash contains two things. 1) MCU code 2) other important data related to end application.
Now, I want to add memory protection, so that no one can read/access my code. During research, I came across RDP and PCROP features of STM32g0.
1) I checked the RDP feature. It is working fine as per the implementation but there is one issue I am facing with it.
in my end application, we have a feature to upgrade the MCU code using a system bootloader(i am using I2C protocol to upgrade firmware. Find the document here). So when I am setting the RDP level 1 this feature is not working.
So is there any way to do this thing?
2) in my MCU, except for my code, there is no other code that needs to be flashed in the end product. 1) So, can I apply PCROP for full flash memory in my MCU? is that possible in this MCU?
2) If yes, then what are the changes I have to make in the cubeide (I am aware of how we can select the PCROP region using cube-programmer).
3) for PCROP, do we need to change anything in .id file?
4) The issue, I am facing in RDP, same will appear in PCROP or not?
If anyone has any information, please let me know. It will be a great help for me.
Thanks a lot !!
