Skip to content

Add support for WeAct HID bootloader v1.x #1134

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

Closed
pawelsky opened this issue Aug 1, 2020 · 4 comments
Closed

Add support for WeAct HID bootloader v1.x #1134

pawelsky opened this issue Aug 1, 2020 · 4 comments
Labels
answered enhancement New feature or request question ❓ Usually converted as a discussion wontfix This will not be worked on

Comments

@pawelsky
Copy link

pawelsky commented Aug 1, 2020

WeAct STM32F401CE and STM32F411CE boards come with a modified HID bootloader (with HID device ID 0483:572A) therefore it is not possible to upload the code with standard HID 2.2 Bootloader (expecting HID device ID 1209:BEBA).

Please add support for WeAct HID Bootloader 1.x. It can be added as yet another bootloader option for Generic F4 variants. Alternatively separate WeAct F4x1CE variants can be created.

@samveen
Copy link

samveen commented Aug 6, 2020

@pawelsky The WeAct bootloader also modifies the mechanism used to trigger the bootloader process (I was trying to get the it to work for my board (see #1118). Not only that, the WeAct folks also forked the WeActTC/STM32_HID_Bootloader, and modified it a bit too (in a similar manner to their bootloader, changing the bootloader check).

I had to do a bit of flailing but I managed to get a working version that works with arduino IDE here

@pawelsky
Copy link
Author

pawelsky commented Aug 6, 2020

@samveen Correct, they did make some more modification, and yes you can change the bootloader on the board, but the goal of this feature request is to have the WeAct bootloader supported in the IDE (even if it means manually putting the board into the bootloader mode), so people who bought WeAct boards with their bootloader do not have to replace it.

@fpistm
Copy link
Member

fpistm commented Aug 13, 2020

Hi @pawelsky

Please add support for WeAct HID Bootloader 1.x. It can be added as yet another bootloader option for Generic F4 variants. Alternatively separate WeAct F4x1CE variants can be created.

There are more and more fork of the HID bootloader and I could not add all of them to not increase the menu and this will add more confusion.
Moreover user can add his own upload menu by adding a platform.local.txt and a boards.local.txt.

@fpistm fpistm closed this as completed Aug 13, 2020
@fpistm fpistm added answered New feature question ❓ Usually converted as a discussion wontfix This will not be worked on labels Aug 13, 2020
@pawelsky
Copy link
Author

Moreover user can add his own upload menu by adding a platform.local.txt and a boards.local.txt.

Yes, I know you can, but the whole point of this ticket was to have it integrated with official releases so people don't have to tinker themselves.

Anyway, for those who want to use it attached is a package that adds the WeActHIDBootloader support. All you need to do is to unpack its contents to your ...\packages\STM32\hardware\stm32\x.y.z directory and restart the Arduino IDE.
WeActHIDBootloader_20200813.zip

You should then have the WeAct HIB Bootloader upload option available

image

Note that if you already have your boards/platforms local files there, you should merge their contents with the ones from zip file.

Only tested on Windows but it should also work on Linux

@fpistm fpistm added enhancement New feature or request and removed Request labels Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered enhancement New feature or request question ❓ Usually converted as a discussion wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants