STM32L152RET6 - BOR Setup failed
Hi folks, this is my first post here on this forum and I expect to find an answer to this issue I currently have.
Just so you know, my current hardware setup involves an STM32L152RET6 MCU on our custom board which we have been able program using a Nucleo board in ST LINK mode.
The problem is that I haven´t been able to set the BOR level using the STM32CubeProgrammer software and also tried to set the BOR through our firmware using some code I found somewhere on this forum involving HAL_FLASHEx_OBGetConfig, HAL_FLASHEx_OBProgram and HAL_FLASH_OB_Launch functions. Results were the same for both methods: The MCU restarts after OB Launch and gets stuck un lockup mode with no ability to flash any firmware .bin or mass erase the MCU.
When reading option bytes register in STM32CubeProgrammer an error appears saying that I have to check memory protection. RDP was set to AA before trying to set the BOR value. After setting the BOR level value the STM32CubeProgrammer shows "0" on the RDP field and BOR shows value "0" as well. It is as if all values were cleared to "0" or that the read protection does not allow me to read such values.
Also, MCU flash mass erase fails as well.
Has somebody found a solution to this?
Thanks
