-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Enhancement] Feature/softdfu upload #69
base: main
Are you sure you want to change the base?
Conversation
Hi @ekawahyu It requires some clean up and rebase but should be less invasive. |
The changes is not that much, but it was mainly due to missing If you want, I can do the cleanup on the core and merge the required changes to STM32F072B-DISCOVERY before doing PR for the core. I will also look at #710. What is BL mode? BL as in BootLoader mode? |
By the way, when I worked on this thing in the past, I believe the |
Honestly, I don't know core |
FYI, got minimal changes merged with STM32F072B-DISCO variant here: https://github.com/SnapBloks/Arduino_Core_STM32/tree/feature/STM32F072B-DISCO-softdfu-upload Will do PR for the core soon. Please review and comments. Thank you. |
The current built-in STM32 DFU upload requires user to pull BOOT0 pin to 3.3V and perform system reset. With this enhancement, users do not require to press reset button nor pulling BOOT0 pin to 3.3V to upload new binary. The protocol is based on reading magic number over USBCDC (same magic number as Maple board '1EAF') and then it jumps to built-in DFU mode and ready to accept binary from there.
This enhancement script has been tested to work on STM32F072B Discovery board with my branch develop:
https://github.com/SnapBloks/Arduino_Core_STM32/tree/develop
Board part number is STM32F072B-DISC-SOFTDFU and it has not been merged into STM32F072B-DISCOVERY yet. The enhancement scripts are available for Linux, macOS, and Windows.