Question
Recover bricked STM32 MCU | STM32G041F6P6
During the process of configuring option bytes, we unfortunately got few MCUs bricked (unresponsive).
In these devices, i was getting the following errors when trying to flash using STM32 programmer. (Tried both GUI and CLI with various reset modes and frequencies). All attempts resulted in the same error as shown below.
Error: No STM32 target found! If your product embeds Debug Authentication, please perform a discovery using Debug Authentication
Could you suggest a way to recover these devices from the bricked state?
For your information, these were the option bytes configuration done along with the Flash unlock/lock sequences during runtime

Are there any issues with the Lock/Unlock sequences used here? Should I not Lock the flash after configuring the option bytes?
This made me to think about configuring the option byte at the time of flashing using STM programmer CLI. Is this best way to proceed?
STM32G0 Series IWDG-WWDG
Are there any issues with the Lock/Unlock sequences used here? Should I not Lock the flash after configuring the option bytes?
This made me to think about configuring the option byte at the time of flashing using STM programmer CLI. Is this best way to proceed?
