Skip to main content
SSchl.2
Visitor II
April 26, 2023
Question

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

  • April 26, 2023
  • 0 replies
  • 869 views

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

This topic has been closed for replies.