Skip to main content
Visitor II
December 20, 2024
Question

stm32l562e-dk board can not be connected by stm32cubeprogrammer after setting nSWBOOT0 to 0 when TZEN=1

  • December 20, 2024
  • 1 reply
  • 539 views

I get a stm32l562e-dk board, when I use the following figure setting to connect to the board and modify nSWBOOT0 bit to 0(TZEN=1). I found that I can not connect to the board using "Hot plug" or "Normal" mode.

ynliu_0-1734678366553.png

whether I FOREVER lost the device?  In addition, I also make a "mass erase" operation using stm32cubeprogammer when TZEN=0.

If no lost the device, how to restore connection to the board and adjust the setting in option byte?

BTW,  I get  the following connection prompt when connecting to PC usb port.

 

ynliu_2-1734679405830.png

 

 

 

1 reply

Jocelyn RICARD
ST Employee
December 20, 2024

Hello @ynliu,

I checked with an empty board. Setting these 2 option bytes does not prevent any connection to the target.

You may have other option bytes also set that lead to this behaviour, like RDP for instance.

If you have RDP level 1 set, with TrustZone enabled, you can only connect if firmware is jumping to non secure.

Best regards

Jocelyn