cancel
Showing results for 
Search instead for 
Did you mean: 

Connection Problems with Custom Board, STM32F411RE7

Loaphs
Associate II

Been working on this for a few weeks now, I'm losing my mind. In STM32CubeIDE, only time I can get anywhere is in hardware reset, and there it times out. In STM32CubeProgrammer, it does connect. It can read the MCU name, flash size, all of that. All addresses read 00000000. However, I can't write in the programmer, and I just can't figure out why. Write to memory failed. Failed to erase data. Failed to download data. This is my first time doing something like this, so maybe I'm missing something. But nothing I've looked up has helped.

13 REPLIES 13

Assume no one here is familiar with the specifics of your custom design.

Perhaps a minimal schematic of what you've built?

Check the voltage and capacitors on VCAP pin(s). Should have 4U7 on bonded pins, or 2U2 on each individually. Expect around 1.25V if properly powered.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
TDK
Super User

Sounds like a hardware issue with your custom board.

In addition to what @Tesla DeLorean says above, some common issues:

  • All VSSA and VSS pins need to be connected to ground.
  • All VDDA and VDD pins need to be connected to power.
  • If you are using a knock-off usb dongle style programmer, expect it not to work well with STM32CubeIDE. Genuine programmers are relatively cheap.
If you feel a post has answered your question, please click "Accept as Solution".

Don't know how much this will compress, but this is what I've got. All VCC connected, and reading 1.12 across the 4.7 cap.

Loaphs_1-1767408216297.png

 

TDK
Super User

Only see 1 VSS pin in the schematic. Are the other 3 VSS pins 31, 47, 63 connected to ground? Where?

Otherwise things look good.

If you feel a post has answered your question, please click "Accept as Solution".
Loaphs
Associate II

They are all also connected to ground, with the 100nf caps. That long line to the left of the chip.

I only see VDD pins on the left side of the chip, not VSS.

If you feel a post has answered your question, please click "Accept as Solution".
Loaphs
Associate II

Screenshot 2026-01-02 at 8.42.22 PM.png

 They're all connected like this. Sorry, I think the footprint just combined the pins into one output. But I have all 4 VSS and the one VSSA pins connected to ground.

TDK
Super User

Probably an issue with power then. Monitor NRST if you can, maybe it's resetting. Perhaps bad solder joints or some other workmanship issue is the cause. Schematic otherwise seems good.

All signs point to a hardware issue. Not going to be able to solve that with STM32CubeProgrammer settings.

If you feel a post has answered your question, please click "Accept as Solution".
Loaphs
Associate II

On the programmer, it updated every second or so, as in some connection information in the console. Would that be the board resetting? or is that just how the programmer works?