F411 (and F401) bootloaders

Kenjutsu
Posts: 27
Joined: Tue Apr 07, 2020 10:58 am
Answers: 2

Re: F411 (and F401) bootloaders

Post 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 :(
Pieter

OSX: 11.6.8
Arduino IDE: 1.8.19
PlatformIO: 6.1.4
STM32 Core: 2.3.0
Get a $5 off coupon on your first purchase at Kaiweets
Kaiweets Affordable & Smart Electrical Testing Tools
GonzoG
Posts: 403
Joined: Wed Jan 15, 2020 11:30 am
Answers: 27
Location: Prudnik, Poland

Re: F411 (and F401) bootloaders

Post 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
roboticboyer
Posts: 4
Joined: Sun Jun 07, 2020 6:29 pm

Re: F411 (and F401) bootloaders

Post 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
GonzoG
Posts: 403
Joined: Wed Jan 15, 2020 11:30 am
Answers: 27
Location: Prudnik, Poland

Re: F411 (and F401) bootloaders

Post by GonzoG »

Does it work with Arduino IDE ??
roboticboyer
Posts: 4
Joined: Sun Jun 07, 2020 6:29 pm

Re: F411 (and F401) bootloaders

Post 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/
dextream
Posts: 2
Joined: Wed Sep 14, 2022 12:51 am

Re: F411 (and F401) bootloaders

Post 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 )
ag123
Posts: 1655
Joined: Thu Dec 19, 2019 5:30 am
Answers: 24

Re: F411 (and F401) bootloaders

Post 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
dextream
Posts: 2
Joined: Wed Sep 14, 2022 12:51 am

Re: F411 (and F401) bootloaders

Post 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.
r1s8k
Posts: 15
Joined: Tue Mar 10, 2020 7:14 pm
Answers: 1

Re: F411 (and F401) bootloaders

Post 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 ?
r1s8k
Posts: 15
Joined: Tue Mar 10, 2020 7:14 pm
Answers: 1

Re: F411 (and F401) bootloaders

Post 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.
Post Reply

Return to “STM32F4 based boards”