-
Notifications
You must be signed in to change notification settings - Fork 973
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
Legacy Maple DFU boot loader support #525
Conversation
ddd8382
to
0add3a3
Compare
@fpistm what should I do with the other PR? Don't want to delete mine if it will remove the entire thread, I guess it may be useful historically? |
It will be only closed. History will be kept. |
Just tested against Maple Mini clone, and the same forced hardware reset requirement persists that I was attempting to track down with no luck... ie, upload works fine but the board does not do it's eventual toggle back to the newly flashed code - not sure if this is disc pin or what. (tested BL 2.0 on Blackpill and the board recycles fine). This on Windows 10 I'll attempt some HID loads on blue/blackpill next. |
HID tested and working with BlackPill 👍 |
OK, so I just deleted a previous post - I couldn't get the maple mini behaviour to repeat so had thought it was due to the previously flashed CDC handling being overwritten on first reflash.... 5 flashes in a row with no issue. Then it started again, so it looks like there's potentially something iffy in the disc pin handling OR these clones don't like the code (this issue first arose when you refactored the disc pin handling btw, the very crude code I had included seemed to work without issue but was admittedly v ugly). |
A few days ago I started working on adapting HID Bootloader (HID-BL) to the Official STM Core. I know @BennehBoy is working on it, but I have not seen the source code (any link is welcome). There is a new feature in the Arduino-IDE 1.8.9 Pluggable Discovery I'm working on. |
@BennehBoy, unfortunately, I didn't see this behavior. @Serasidis , I saw that on your forum. Seems promising. Do not hesitate to share and ask support. |
@Serasidis I'm not really doing anything with this at the moment, the dtr/magic word handling code was a direct copy of your STM32GENERIC code. Feel free to augment in whatever way. I didn't make any changes to the bootloader code itself at all. |
I would love to help test this, but I use PlatformIO. I'm not exactly sure how to merge this PR with the tools already implemented there. Does anyone here know how that would work? I could always ask around in the PlatformIO community if the answer is no. |
Can't help you there, I've avoided PlatformIO because the tool config just seems so obfuscated. |
@neilbalch unfortunately no. |
Enabled thanks: DTR_TOGGLING_SEQ User can redefine its own hook by redefining: dtr_togglingHook(uint8_t *buf, uint32_t *len) Signed-off-by: BennehBoy <bennyboy@benneh.net>
Co-authored-by: BennehBoy <bennyboy@benneh.net> Co-authored-by: Vassilis Serasidis <avrsite@yahoo.gr> Co-authored-by: Frederic.Pillon <frederic.pillon@st.com> Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
👍 🎊 |
This PR enable only the Legacy Maple DFU boot loader support, STM32 HID bootloader from @Serasidis will come in an other PR. We currently discuss/work on it.
Should supersede #415
Require stm32duino/Arduino_Tools#35
DFU bootloader 2.0 tested under windows and linux.
Any help to test are welcome.
Cc @BennehBoy , @Serasidis
Fix #411