stm32duino / Arduino_Core_STM32

STM32 core support for Arduino
https://github.com/stm32duino/Arduino_Core_STM32/wiki
Other
2.83k stars 973 forks source link

Automatic restart in DFU Bootloader mode #706

Open ladyada opened 5 years ago

ladyada commented 5 years ago

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

stas2z commented 5 years ago

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

fpistm commented 5 years ago

I have a first working version :wink:

akamensky commented 4 years ago

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

matthijskooijman commented 4 years ago

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).

fpistm commented 4 years ago

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

ramboerik commented 3 years ago

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.

fpistm commented 3 years ago

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

ramboerik commented 3 years ago

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

BCsabaEngine commented 3 years ago

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