Skip to main content
Associate
December 5, 2024
Solved

STM32F405RGT6 Custom Board LED not working anymore

  • December 5, 2024
  • 3 replies
  • 1414 views

huhuhaha_0-1733390115026.png

I'm currently working on my custom STM32F405RGT6. I've soldered the minimum systems (STM32F405RGT6 + Necesary Resistor n Capacitor + LED ). I've been able to program the MCU to blink the LED at first. So i start to adding other components

huhuhaha_1-1733390234842.png

I've been adding the MIC5504-3.3v LDO by alternatively change the components using AP2112-3.3V LDO. I've compared both datasheets and it should be working properly. Also, i've been soldered the LM7805 Ic too. After soldered that two ic's, i reprogram the STM32. The result is my led now can't working (blinking) anymore, but the STM32F405RGT6 seems had no problem (because it still managed to be debuged and programmed). What makes this happen ?

Best answer by Tesla DeLorean

Each of the VCAP capacitors should be 2.2uF

3 replies

mƎALLEm
Technical Moderator
December 5, 2024

Hello @huhuhaha and welcome to the community,

You can program the MCU but you cannot toggle the LED? if you succeeded to program the MCU, from my stand point,  this is no more a regulator issue.

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question."
huhuhahaAuthor
Associate
December 5, 2024

I also think of that. but i still finding the problem of my blinking led

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
December 5, 2024

Each of the VCAP capacitors should be 2.2uF

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
mƎALLEm
Technical Moderator
December 5, 2024

@Tesla DeLorean wrote:

Each of the VCAP capacitors should be 2.2uF


Indeed and with low ESR. From AN4488:

SofLit_0-1733394201712.png

 

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question."
huhuhahaAuthor
Associate
December 5, 2024

Thanks for the reference, i will try it

Andrew Neil
Super User
December 5, 2024

@huhuhaha wrote:

the STM32F405RGT6 seems had no problem (because it still managed to be debuged and programmed). 


What, exactly, do you mean by "debugged" here?

Have you stepped through the LED-blinking code? Does it successfully go through the code to set the pin high & low?

What do you see if you probe the pin externally?

 

If you set the PC13 output low, and then externally short the LED cathode to GND - does it light?

PC13,14,15 and PI8 are subject to limitations:

AndrewNeil_0-1733395199478.png

https://www.st.com/resource/en/datasheet/stm32f405rg.pdf#page=205

 

You should be OK with sinking the current for your LED D1:

https://community.st.com/t5/stm32-mcus-products/stm32f030-pc13-14-15-current-sink-limits/m-p/717014

But what does REF_DIR do on PC14 ?

AndrewNeil_1-1733395348174.png

 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.