Page 1 of 1

Cannot upload Blackpill F411 v3.0 from Arduino IDE

Posted: Sat Jul 15, 2023 5:37 pm
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

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

Posted: Sat Jul 15, 2023 8:10 pm
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).

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

Posted: Sun Jul 16, 2023 7:39 am
by AlainBo26
Hello,
Thanks but unfortunately, that doesn't work...

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

Posted: Sun Jul 16, 2023 9:01 pm
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.

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

Posted: Mon Jul 17, 2023 6:14 am
by AlainBo26
Thanks but I already did that.
I Wonder if I still have a bootloader...

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

Posted: Mon Jul 17, 2023 6:33 am
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

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

Posted: Mon Jul 17, 2023 6:45 am
by AlainBo26
Hum well ok, I'm going to try with STLink dongle...
I'll let you know.
Thanks.

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

Posted: Wed Jul 19, 2023 7:00 pm
by AlainBo26
Ok, I successfully uploaded my sketch with a STLink V2 dongle.
Thanks a lot.

Regards,
Alain