cancel
Showing results for 
Search instead for 
Did you mean: 

Connection Problems with Custom Board, STM32F411RE7

Loaphs
Visitor

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.

6 REPLIES 6

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".

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".