PCROP activation with STM32G0B1
Hello,
My device contains both a bootloader and an application. I’m currently trying to protect the bootloader using PCROP on the STM32G0B1.
As a first approach, I attempted to configure PCROP using STM32CubeProgrammer. However, this failed — once PCROP was activated for the bootloader region, the bootloader was unexpectedly erased.
Here’s what I did:
- Flashed the bootloader to address range 0x08000000–0x0800BFFF.
- Activated PCROP by setting the start and end addresses for the bootloader region (see screenshot below).
After this, the bootloader was erased.
Even when I deactivated PCROP_END, the result remained the same — the bootloader was still erased.
I would greatly appreciate any insights into why this is happening and how to properly activate PCROP without losing the bootloader.
Best regards,
Alexander
