STM32 programmer failed PCB not working afterwards
I'm trying to flash my custom STM32L152RET6 board using the command-line version of CubeProgrammer. Initially, everything seemed fine, but I wanted to ensure the firmware couldn't be read out. So, I set the option bytes with -ob RDP=1 to enable read protection. However, after doing this, the flashing process failed, and now my program no longer runs.
I was able to flash it again using a Segger debugger, but when I try to run the program, it crashes at startup. The voltages all seem normal, so I don't suspect a hardware issue. Could this be due to some incorrectly set registers or option bytes in the CPU?
Here’s the command I used:
STM32_Programmer_CLI.exe -c port=usb1 -ob RDP=1 -d firmware.hex -v
Any advice would be greatly appreciated!


