How to exit/reset STM32 DFU bootloader
Both dfu-util and dfu-tool can flash firmware, but their current versions can’t reset the STM32 from DFU mode to run the application.
I found that using MicroPython’s pydfu.py is able to reset the. Note that currently I use pydfu.py only for resetting, not for flashing (but that might change in the future).
Download using
download_pydfu.sh
wget https://raw.githubusercontent.com/micropython/micropython/master/tools/pydfu.pyInstall the PyUSB dependency using
install_pyusb.sh
pip install -U pyusbAnd then reset the STM32 in DFU mode:
pydfu_reset.sh
python3 pydfu.py -xCheck out similar posts by category:
STM32
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow