2024-07-03 06:58 AM
Heyho,
so I was just checking the MCO1 output of my STM32H733ZGT6 and found some super jittery 64 MHz with full swing between 0V and 3.3V.
Then checked my code and found that I had not set the RCC->CFGR and not even initialized the GPIO.
When I actually set it up it does what it should, but why is there such an output signal without the GPIO having been configured?
This could be some serious EMI source or cause some other trouble if the GPIO is not yet configured, but connected elsewhere (I only have a serial R and a testpoint on my PCB).
Solved! Go to Solution.
2024-07-09 09:54 AM
I was just about to check the GPIO, when I found one of the most embarrassing mistakes I made (here):
The bootloader (which is active for only a few ms) had the MCO configured. Ouch.
Sorry that I have wasted your time! :frowning_face:
2024-07-03 07:31 AM - edited 2024-07-04 02:53 AM
Now I put the GPIO init before any RCC / clock setup, setting the MCO pin to input with pull-up without any alternate function.
After power-up I still see this crappy 64 MHz (HSI) on that pin shortly - which makes sense, but is still terrible.
What's wrong here?
2024-07-04 02:54 AM
2024-07-08 09:44 AM
Nothing from ST? :frowning_face:
2024-07-08 10:00 AM
Hi,
is this mco1 signal there, if holding reset ? (no program started at all)
I have a H733ZI here, so this i could try...if you want.
2024-07-08 10:23 AM
Hello @AScha.3 ,
thanks for your help.
It's actually occurring here if reset is released, the GPIO is not configured, and has no load.
So if you can find the time you could just grab a scope and check if you see anything on that pin.
It's a STM32H733ZGT6 in LQFP-144, pin 100 = PA8.
I just checked on my H723 Nucleo: no signal / clock on the H723-Nucleo MCO pin. As it should be.
2024-07-08 11:02 AM - edited 2024-07-08 11:49 AM
Now -- found : STM32H733ZGT6 , rev. Z ; boot0 : low : nothing on PA8 on power up .
DSO on single shot, just finds a small "pump" , about 1V, at power connection - nothing else.
btw. PA8 is configured as output in program.
Whats your H733 doing, if set it as output, low ?
ed
update : PA8 not configured, unused. power-up : nothing to see.
2024-07-08 12:49 PM
> Then checked my code and found that I had not set the RCC->CFGR and not even initialized the GPIO.
And what's the content of those registers, when the oscillations are ongoing?
JW
2024-07-09 05:01 AM
It doesn't actually matter how the registers are configured, at least I haven't found some "MCO off" bit, there's only the source selection (default HSI = 64MHz) and divider settings (1 = default).
At least I would have expected the same behavior on the H723 Nucleo in the same package (and 99% same source code).
@AScha.3 thanks for testing!
unconfigured GPIO: full 64 MHz (HSI)
configured GPIO (no matter in or out): nothing
So it's only a little bit of noise at start-up until the GPIO is configured - which is still something I don't like!
2024-07-09 05:17 AM
So there remains only : (because "my" H733ZG shows nothing strange) chip version ..? rev. Z here.