cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to restart STM32L412 while connected via USB/DFU?

SSchl.2
Associate

For production we need an uploading scheme without any user interaction (no reset, power cycle etc.) except USB insert. Is this possible?

What I have tried so far:

The (empty) controller starts up into STM32 bootloader the first time (boot pin = 0). Connecting via CubeProgrammer CLI (USB) and flashing the application is no problem. Sending a start command does nothing. Sending -detach raises an error.

But: changing any option byte will reboot the controller and it will than execute application as expected. The problem with this is that the option byte programming ends with timeout error - because reading back fails - the controller directly starts inbetween.

Best regards,

Sven

0 REPLIES 0