cancel
Showing results for 
Search instead for 
Did you mean: 

G431needs hard reset after power-up (Nucleo-32)

LCE
Principal II

Heyho,

I'm working with a STM32G431 on a Nucleo-32.

I've played with it before some years ago, so I already put on a 24 MHz crystal "HSE".

I'm using only the in-built ST-Link's USB power as a source.

Problem:

after connecting USB, the reset button must be toggled to start the controller.

Any ideas how this can be prevented?

We want to use the Nucleo for some in-house testing, and it would be nice if the controller started instantly at power-up without the reset button (which might be "hidden" in a small case).

Google and search here didn't really show this problem.

Thanks!

3 REPLIES 3
Ozone
Principal II

Perhaps you could try to connect to the system bootloader with an appropriate tool.
If that succeeds, there is probably an issue with the BOOT0 pin level.

Or there is either a power supply or clock setup issue related to the crystal.
Does it not properly start up with a firmware that tries to enable HSE ?

Just guessing here ...

waclawek.jan
Super User

> I already put on a 24 MHz crystal "HSE".

And does the program use HSE? Isn't it set as HSE Bypass? How are the Solder bridges around the HSE crystal connected/disconnected?

JW

LCE
Principal II

Thanks so far guys!

HSE - not in bypass mode for oscillator : 24 MHz crystal

When I plug in the USB = power, then:

- the STM32's oscillator for the HSE starts, I see the 24 MHz with ~ 1Vpp on the scope

- NRST is high

- the program doesn't seem to start - or hangs somewhere after clock configuration (?)

When I press the on-board reset button, the program starts as it should, and I can check that it's actually using the 24 MHz.

I tried several voltage scaling settings, BOR levels, flash latency, HSI -> no change in behavior.

I just created a quick CubeMX project and that does the same (also switched between HSE and HSI)!