cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F446 starting squence

fab04
Senior

Hi everybody,

I've two cards with a STM32F446 on them.

My first one works very well, the µc starts a each time.

On the second card, the µc starts sometimes (I have a LED on my card that blinks at start).

I've checked Vcap (2.2µF), the 3V3 rising (1ms), boot is well connected to GND with a 10k resistor.

I cannot see what happens in debug mode, because in debug mode , it starts everytime.

Is there a mean to check something else ?

I don't understand what happens.

If you have some ideas...

Thank you.

 

1 ACCEPTED SOLUTION

Accepted Solutions
fab04
Senior

I think I've found the solution. I put two capacitors for LSE (22pF).

But the crystal that I choose needs 12pF. I've made the modification and now it starts each time.

View solution in original post

7 REPLIES 7
mƎALLEm
ST Employee

Hello,


@fab04 wrote:

Hi everybody,

I've two cards with a STM32F446 on them.


Which board? custom board? ST board?

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.
TDK
Super User

Usually this is due to a hardware issue. Perhaps bad design, perhaps manufacturing defect such as a cold solder joint.

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

Hi,

 

No, it's a custom board. I think something happens on my power supply. I'll check it.

> because in debug mode , it starts everytime.

Do you mean while using a debugger (STLink,etc.)?  That is because the debuggers bypass the "power on reset" sequence - manually loading the PC/SP from the reset vector and then starting the CPU.

You don't mention what you have connected to the NRST pin, nor the crystal or oscillator circuit.  Can you post portions of your schematic related to power, reset and external crystal (if you are using one).

Thank you for your reply.

Yes, it's when  I use a debugger - ST LINK V2.

The only thing That I've connected to the NRST pin is a 100nF capacitor.

I've also made some measures (in yellow the card which starts everytime and in blue, the one which starts sometimes).

NRST : 

NRSTNRST

VCAP :

VCAPVCAP

 VDD :

VDDVDD

DESIGN : 

design.png

TDK
Super User

Perhaps blink an LED before SystemClock_Config and then again after. Perhaps it's getting stuck in there.

If power is valid and NRST is high, which it looks to be, the chip is running something.

If you feel a post has answered your question, please click "Accept as Solution".
fab04
Senior

I think I've found the solution. I put two capacitors for LSE (22pF).

But the crystal that I choose needs 12pF. I've made the modification and now it starts each time.