cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to Debug or Connect STM32L562E-DK After Enabling Read Protection

Sankar_Eswaran
Associate III

Hi,
I am facing an issue with my STM32L562E-DK board. Initially, I was able to debug it using STM32CubeIDE. However, after attempting to configure the controller in UART boot mode, I accidentally enabled read protection (DC:LEVEL 1). Since then, I cannot debug the board or connect to it using STM32CubeProgrammer.

Whenever I try to connect the controller via STM32CubeProgrammer, it fails to establish a connection. I suspect something went wrong during the configuration.

I have attached an image below showing the error that occurs when I try to connect.   

Screenshot 2025-01-30 174748.png

How can I resolve this issue and regain access to my controller?

Edited by ST Moderator to correct the board name STM32L562E-DK (instead STM32L62E-DK)

3 REPLIES 3
STea
ST Employee

Hello @Sankar_Eswaran ,

connect using the hotplug mode in CubeProgrammer .
Regards

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Hi,

i tried every mode but it still not connecting is there any specific documents steps need to be follow ?

Screenshot 2025-01-31 112608.png

 

Thanks & Regards 

Sankar Eswaran.

Imen.D
ST Employee

Hello @Sankar_Eswaran ,

Did you try connecting under reset? Once connected, perform a mass erase to remove the read protection.

Try using the ST-LINK for debugging only and use another power supply source. Apply a power off/on cycle while the ST-LINK USB cable is already plugged in. After that, the tool should be able to connect to the target and launch RDP regression.

Please refer to this article, this will help you What option bytes in STM32 are, and how to use the... - STMicroelectronics Community

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen