2025-12-04 11:04 PM
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!
2025-12-04 11:54 PM
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 ...
2025-12-05 12:29 AM
> 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
2025-12-05 3:31 AM - edited 2025-12-05 3:35 AM
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)!
2025-12-05 3:55 AM
Hello,
Check C20 capacitor: already there? kept its value?
2025-12-05 4:13 AM
C20 still there, never touched / changed it, soldering looks good.
PCB version is MB1430A - any known issues with that?
The on-board ST-Link was updated by CubeIDE.
2025-12-05 4:48 AM
Ok and what about R15 (boot pin)?
2025-12-05 4:56 AM
And what tool are you using to upload your application? CubeIDE or CubeProgrammer?