Hi Stanislav Silnicki ,
I tried now to set MCO output on PG10 pin and it works correctly (I used CubeMX for code generation). But the condition is that there must be reprogrammed option bits NRST_MODE = 2 (GPIO mode). Then the PG10 pin works as GPIO and there can be enabled MCO function.
As side effect I have found one mistake in HAL function "HAL_RCC_MCOConfig". This function configures always PA8 as MCO output - so the PG10 pin must be configured in "main" function as MCO alternate function (which CubeMX codes correctly). This mistake in "HAL_RCC_MCOConfig" function will be reported (to be corrected). Mistake causes that MCO output will be on both PA8 and PG10 pins.
Please reprogram option bits NRST_MODE to value 2 (for example in STM32CubeProgrammer) and try the code generated by CubeMX again. And please make sure that on PG10 pin is no capacitor connected - because PG10 works usually as NRST and usually is there 100nF capacitor at NRST pin.
Regards
Igor
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
