Page 3 of 4

Re: F411 (and F401) bootloaders

Posted: Wed Jun 17, 2020 12:08 pm
by Kenjutsu
stevestrong wrote: Thu Mar 19, 2020 8:52 am
Hackswell wrote: Thu Mar 19, 2020 1:24 am *STM32duino-bootloader [available on github from mfgr]
Can you please post a link to this? I could not find it.
I see they do now have an HID Bootloader: WeAct_HID_Bootloader_F4x1 base on STM32_HID_Bootloader

The actual .hex file is here: https://github.com/WeActTC/MiniF4-STM32 ... Bootloader

I am still awaiting my F411 boards so I can not currently do any tests :(

Re: F411 (and F401) bootloaders

Posted: Sun Jul 19, 2020 11:15 am
by GonzoG
Their (WeAct) bootloaders do not work with Arduino and stm core.
HID bootloader upload searches for device 1209:BEBA and WeAct set their to 0483:572a

Re: F411 (and F401) bootloaders

Posted: Sun Jul 19, 2020 2:52 pm
by roboticboyer
You need to use their uploader sofware called WeAct_HID_Flash-CLI, to be downloaded from https://github.com/WeActTC/MiniF4-STM32 ... Bootloader

Re: F411 (and F401) bootloaders

Posted: Sat Jul 25, 2020 10:00 pm
by GonzoG
Does it work with Arduino IDE ??

Re: F411 (and F401) bootloaders

Posted: Sun Jul 26, 2020 1:41 pm
by roboticboyer
Yes but you need to modify some Arduino IDE boards files to add the WeAct uploader software in the IDE menu

A work around is to compile the sketch e create the shetck.bin file e then upload it in a console using:

Code: Select all

./WeAct_HID_Flash-CLI Sketch.bin
under linux or

Code: Select all

./WeAct_HID_Flash-CLI.exe Sketch.bin
under Windows


Some my notes https://hardwareliberopinerolo.github.i ... blackpill/

Re: F411 (and F401) bootloaders

Posted: Wed Sep 14, 2022 12:55 am
by dextream
I see that this post is quite old, but I would like to know if any progress was made for BlackPill STM32F401
From bootloaders I tried I didn't find any usb HID bootloader except WeAct_HID_Bootloader that would work with this board.
Maybe someone has different solutions, tired to press button every time want to flash )

Re: F411 (and F401) bootloaders

Posted: Wed Sep 14, 2022 4:46 am
by ag123
you can search in the reference manual, look for registers that can possibly set a 'soft boot0', i.e. it starts the internal DFU bootloader at the next reset.
then it is simply set that register in your code and do a HAL_NVIC_SystemReset()

alternative, get a st-link v2 dongle
https://www.adafruit.com/product/2548
https://www.st.com/en/development-tools/st-link-v2.html

that doesn't need boot0 after it is wired up

Re: F411 (and F401) bootloaders

Posted: Wed Sep 14, 2022 11:34 am
by dextream
First option tried before working but still needs DFU Drivers, HID is much nicer. also used stlink but every project need to solder 4 pins for it and use wires. USB HID is much more practivcal I think and saves lot of time.

Re: F411 (and F401) bootloaders

Posted: Sat Jan 14, 2023 12:08 pm
by r1s8k
Hi,

I'm working to get my black pill to its normal state. Out of the box I was able to program it with Arduino IDE. But I know my mistake, when using STM32CubeProgrammer, I select erase entire flash memory.

As the original bootloader was at 0x08000000, and I should program it at 0x08004000.

My question is where to get the bootloader that came with the board ? isn't there any official or standard bootloader ?

Re: F411 (and F401) bootloaders

Posted: Sat Jan 14, 2023 1:24 pm
by r1s8k
Hi guys I really don't know what to do ? there's no direct solution for setting the standard binary for any specific board.

Like now, I'm searching for the black pill bootloader from WeAct, I check the seller product page in Aliexpress, and there's information but it's either not direct or not working.

https://vi.aliexpress.com/item/10050047 ... pt=glo2vnm

It's asking me to download a Chinese program in order to download files and I don't know what mess following that ??! Why the seller not just put the binary file and problem solved ?

I want to re-install the proprietary bootloader came with the board.

I can program the board with the ST Link in STM32CubeProgrammer. But I want to get the board to work with Arduino IDE.