Cannot upload Blackpill F411 v3.0 from Arduino IDE

Post Reply
AlainBo26
Posts: 6
Joined: Sat Jul 15, 2023 5:10 pm

Cannot upload Blackpill F411 v3.0 from Arduino IDE

Post by AlainBo26 »

Hello,
I already uploaded a sketch to my Blackpill F411 v3.0 board few months ago with Arduino 2 and it continues to execute this sketch.
Anyway, I now want to update it and I cannot do it anymore.
Maybe, setting has changed, don't really know, I 've read many posts about such kind of problem but that didn't solve my problem.
My current setting is:
Image

Get Board Info replies:

BN: Uknown board
VID: 0x0483
PID: 0x5740
SN: 356F346D3336

And when I try to upload my sketch, I get the following message:

-------------------------------------------------------------------
STM32CubeProgrammer v2.14.0
-------------------------------------------------------------------

Error: Target device not found
Establishing connection with the device failed
Failed uploading: uploading error: exit status 1

STM32CubeProgrammer doesn't detect any DFU mode.

After reading tons of threads, I'm completely lost about what to use and set in Arduino IDE 2.1.1.
I'm using STM32 MCU based boards 2.6.0

Could you please help me?

Regards,
Alain
ag123
Posts: 1655
Joined: Thu Dec 19, 2019 5:30 am
Answers: 24

Re: Cannot upload Blackpill F411 v3.0 from Arduino IDE

Post by ag123 »

for STM32F401 / F411, "blackpill" type devices.

Normally, you need to set the boot0 pin like as follows:
- press both reset and boot0
- hold boot0, release reset
- release boot0 1 sec later

then try to upload from the app etc.
updating using USB DFU upload require setting boot0 (i.e. pressing those buttons).
AlainBo26
Posts: 6
Joined: Sat Jul 15, 2023 5:10 pm

Re: Cannot upload Blackpill F411 v3.0 from Arduino IDE

Post by AlainBo26 »

Hello,
Thanks but unfortunately, that doesn't work...
GonzoG
Posts: 403
Joined: Wed Jan 15, 2020 11:30 am
Answers: 27
Location: Prudnik, Poland

Re: Cannot upload Blackpill F411 v3.0 from Arduino IDE

Post by GonzoG »

Ground UART1 RX (PA10) pin while you reset board.
If MCU gets anything on UART it will start bootloader with UART enabled, not USB.
AlainBo26
Posts: 6
Joined: Sat Jul 15, 2023 5:10 pm

Re: Cannot upload Blackpill F411 v3.0 from Arduino IDE

Post by AlainBo26 »

Thanks but I already did that.
I Wonder if I still have a bootloader...
ag123
Posts: 1655
Joined: Thu Dec 19, 2019 5:30 am
Answers: 24

Re: Cannot upload Blackpill F411 v3.0 from Arduino IDE

Post by ag123 »

STM32F411 / F401 don't need a bootloader, it is built-in on the chip

in a worse case, get a st-link dongle
https://www.adafruit.com/product/2548
https://www.st.com/en/development-tools/st-link-v2.html
https://octopart.com/search?q=st-link+v ... SD&specs=0

or a 3.3v usb-uart dongle
https://www.amazon.com/s/ref=nb_sb_noss ... s=usb+uart
(this still requires that BOOT0 setting)
https://www.sgbotic.com/index.php?dispa ... page_id=48
and you are all set
AlainBo26
Posts: 6
Joined: Sat Jul 15, 2023 5:10 pm

Re: Cannot upload Blackpill F411 v3.0 from Arduino IDE

Post by AlainBo26 »

Hum well ok, I'm going to try with STLink dongle...
I'll let you know.
Thanks.
AlainBo26
Posts: 6
Joined: Sat Jul 15, 2023 5:10 pm

Re: Cannot upload Blackpill F411 v3.0 from Arduino IDE

Post by AlainBo26 »

Ok, I successfully uploaded my sketch with a STLink V2 dongle.
Thanks a lot.

Regards,
Alain
Post Reply

Return to “STM32F4 based boards”