如何退出/重置 STM32 DFU 引导加载程序
dfu-util 和 dfu-tool 都可以刷写固件,但它们当前版本无法从 DFU 模式重置 STM32 以运行应用程序。
我发现使用 MicroPython 的 pydfu.py 可以重置。注意目前我只用 pydfu.py 来重置,而不是刷写(但这在未来可能会改变)。
使用以下命令下载
download_pydfu.sh
wget https://raw.githubusercontent.com/micropython/micropython/master/tools/pydfu.py使用以下命令安装 PyUSB 依赖
install_pyusb.sh
pip install -U pyusb然后重置 DFU 模式下的 STM32:
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