Reference manual for STM32G071 is RM0444, you will find a description for BOOT_LOCK there: regarding your initial question, @Houda GHABRI 's proposals in this question may help you. -Amel To give better visibility on the answered topics, please click on Accept as Solution on the repl...