Skip to main content
Associate II
August 13, 2026
Question

STM32L433 stuck in bootloader after updating with CubeProgrammer

  • August 13, 2026
  • 1 reply
  • 20 views

Hi,

 

I have a custom product/board that has an embedded STM32L433. The STM32 is powered with an external battery. It is also connect through USB to a COM board that runs Windows.

 

The COM controls the boot0 and reset pins of the STM32 which allows me to update the chip using CubeProgrammer API. I created a custom application in C# that worked fine until I tried to activate RDP level 1.

 

Since I cannot do a POR, I implemented the activation of RDP in the STM32 software using the enter standby mode method.

 

When I try to update with the RDP already active, I use the connectDfuBootloader2 method with rdu = true. This properly downgrade RDP from level 1 to level 0 and I am able to update the STM32 using the downloadFile method afterward.

 

The issue is that after downloading the new software, the STM32 gets stuck in bootloader. The only way to get it unstuck is to call another time the connectDfuBootloader2 with rdu = true. This does not downgrade the RDP level, it only restarts the STM32 which does not make much sense to me.

 

Do you know why I have to do this and if there is anything I could do to fix this?

 

On a side note, the update works fine when I do it using a ST-Link module when the COM is off (no external power), but behave the same way when using the ST-Link and COM is on.

 

Thank you,

 

Antoine

1 reply

STOne-32
ST Technical Moderator
August 14, 2026

Dear ​@antoinej 

 

May be this article will help on the behavior observed : 

Regards,

STOne-32