STM32F11CEU6 Black upload error Arduino IDE

Post here first, or if you can't find a relevant section!
Post Reply
justinjools
Posts: 41
Joined: Thu May 02, 2024 11:10 am

STM32F11CEU6 Black upload error Arduino IDE

Post by justinjools »

Hi, I have been using Arduino IDE with STM32F11CEU6 Black MCU for several months with no errors and suddenly today I can't upload anymore. All the IDE settings are correct. I tested with a brand new one (unopened packet) and it also doesn't connect.

So I tried with the STM32F103C6 Blue and it connects every time without errors. I have re-installed STM32 boards, STM32Cubeprogrammer and updated STM-LINK V2 driver using STM-LINK utility.

The error I am getting:

Selected interface: swd

STM32CubeProgrammer v2.17.0

ST-LINK SN : 066AFF373841423043133520

ST-LINK FW : V2J37M26

Board : --

Voltage : 3.23V

Error: No STM32 target found! If your product embeds Debug Authentication, please perform a discovery using Debug Authentication

Failed uploading: uploading error: exit status 1
Attachments
STM32_upload_error.jpg
STM32_upload_error.jpg (94.57 KiB) Viewed 4163 times
STM32ardui
Posts: 142
Joined: Mon May 06, 2024 1:46 pm
Answers: 1
Location: Germany

Re: STM32F411CEU6 Black upload error Arduino IDE

Post by STM32ardui »

1. Disconnect and connect cable again.
2. Use flexible jumper wires made with silicon isolation instead of rigid "normal" jumper wires. There are also jumper cables without black DuPont-housing, so you can use pliers to squeeze contacts, if they are too loose.

Since corona quality of jumper wires is getting worser and you will have often loose connections.
If STM32F411CEU6 boards are not all damaged and ArduinoIDE/STM32CubeProgrammer/STLink are working with other boards, loose connections are the most probably reason.
justinjools
Posts: 41
Joined: Thu May 02, 2024 11:10 am

Re: STM32F11CEU6 Black upload error Arduino IDE

Post by justinjools »

I am using WeActStudio.MiniDebugger ST-LINK V2.1. I tried wigglling the connectors and using male to female dupont connectors but no difference. I am sure this is not the reason though as when I connect to STM32F103C6 Blue it works.

I have been trying the ST-LINK utility to connect. It connects to STM32F103C6 Blue but not STM32F11CEU6 Black MCU. I have also tried with brand new STM32F11CEU6 and it doesn't connect either. I suspect it's something to do with the ST-LINK driver but have updated this to latest version or it's STM32Cube software but have reinstalled this as well.

13:45:02 : Can not connect to target!
Please select "Connect Under Reset" mode from Target->Settings menu and try again.
If you're trying to connect to a low frequency application , please select a lower SWD Frequency mode from Target->Settings menu.
13:45:05 : No target connected
Last edited by justinjools on Sun Sep 22, 2024 12:45 pm, edited 1 time in total.
STM32ardui
Posts: 142
Joined: Mon May 06, 2024 1:46 pm
Answers: 1
Location: Germany

Re: STM32F11CEU6 Black upload error Arduino IDE

Post by STM32ardui »

justinjools wrote: Sun Sep 22, 2024 10:24 am I am using WeActStudio.MiniDebugger ST-LINK V2.1.
Yes it has flexible wires ...

I have impression, that MiniDebugger is getting really warm under shrinking tube when a STM32Hxxx is connected.
First upload works, after a while running the sketch a new upload don't work, second try don't work, third upload succeeded. After an hour no more upload possible. I disconnected MiniDebugger from USB and let it cool down. After some hours I can upload a different sketch again.

MiniDebugger has LDO ME6216A33XG , that should be able to deliver 300 mA.

Do you have something connected to your BlackPill like TFT display (with LED backlight), motor driver or something else?
"Voltage : 3.23V" form STM32CubeProgrammer messages looks normal ... sorry I don't have any idea, what went wrong on your system.
justinjools
Posts: 41
Joined: Thu May 02, 2024 11:10 am

Re: STM32F11CEU6 Black upload error Arduino IDE

Post by justinjools »

I left it a day and tried again today, no difference. It connects to STM32F103C6 Blue every time. I also re-installed STM32 boards to Arduino IDE, STM32Cubeprogrammer and updated and downgraded STM-LINK V2 driver using STM-LINK utility but no difference. Also I tried with a brand new sealed one STM32F11CEU6 Black and it can't connect either.

Using ST-LINK utility connects to the STM32F103C6 Blue but not STM32F11CEU6 Black. I also have nothing connected to them. I have an FTDI device I have never used so I might try this to identify the culprit.

It seems odd that it can't connect to different STM32F11CEU6 Black MCU's that says to me it might be some software.
STM32ardui
Posts: 142
Joined: Mon May 06, 2024 1:46 pm
Answers: 1
Location: Germany

Re: STM32F411CEU6 Black upload error Arduino IDE

Post by STM32ardui »

BTW:
I don't think it's the reason for the problem. But if you want to use a BlackPill, you should select a BlackPill and not a generic F411.
BlackPill.jpg
BlackPill.jpg (57.08 KiB) Viewed 4019 times
justinjools
Posts: 41
Joined: Thu May 02, 2024 11:10 am

Re: STM32F11CEU6 Black upload error Arduino IDE

Post by justinjools »

I just discovered it connects if I hold the reset button down and do "Connect under reset" using ST-LINK utility.

I tried again with blink sketch on Arduino IDE and got it working:
holding down reset button while compiling then releasing just before uploading.

Now it connects every time - I guess it resets the board.
Post Reply

Return to “General discussion”