Arduino_Core_STM32 icon indicating copy to clipboard operation
Arduino_Core_STM32 copied to clipboard

Automatic restart in DFU Bootloader mode

Open ladyada opened this issue 6 years ago • 9 comments

When using the built in USB DFU bootloader, lets auto-reset into the bootloader mode from USB Serial using something like 1200-baud knocking

ladyada avatar Oct 16 '19 18:10 ladyada

Uh, that will be great, ive tried to implement smth like this with F401 (using maple "LEAF" sequence as a trigger), but stucked cuz it just reboots instead of running bootloader, seems like BL code checks for BOOT0 not pulling up and jumping to fw stored

stas2z avatar Oct 18 '19 08:10 stas2z

I have a first working version :wink:

fpistm avatar Oct 18 '19 08:10 fpistm

Are there any updates on this issue? I've got this Adafruit feather with stm32 on it, and it is a bit of inconvenience that I cannot just straight work from Arduino IDE

akamensky avatar Jan 19 '20 08:01 akamensky

There is an initial working, but rough, version at #710. I've been using that, along with some custom board files to use dfu-util, for a while now (so I'm not sure if that PR works out of the box yet, but it certainly works).

matthijskooijman avatar Jan 22 '20 13:01 matthijskooijman

It works but it is not enough generic and I would avoid the backup register usage.

fpistm avatar Jan 22 '20 14:01 fpistm

Hi @fpistm !

What is the status of this feature? I see that you have pushed some code after your last comment that seems to solve it.

ramboerik avatar May 01 '21 06:05 ramboerik

I have to rebase and test. But IIWR I have some dev to do.

fpistm avatar May 01 '21 07:05 fpistm

Thanks for the info. It would be a nice feature to have 👍

ramboerik avatar May 01 '21 13:05 ramboerik

It would be a great option for testing (test upload etc) with strange sideeffects too. When production upload, I can press the boot0 button.

BCsabaEngine avatar Jun 23 '21 06:06 BCsabaEngine