2024-10-23 10:18 PM
Hello,
I am now using STM32CubeMX to config STM32G030F6P6, I want to use TIM14 to capture pulse, so I configged to Input Capture direct mode, which is obviously input port, but GPIO setting becomes GPIO output Low. is this a stm32cubeMX bug?
please confirm.
Thanks
2024-10-23 10:32 PM
Hello,
Check the generated code. Is there something weird in it?
2024-10-24 01:30 AM
hello, @SofLit
I have changed chip to STM32G030C8T6, because STM32G030F6P6 cannot use HSE.
but for STM32G030C8T6, the cubeMX is also something strange.
tim1, channel2 is a PWM output, but the GPIO setting, just like a input capture.
tim3, channel3 is a input capture, but GPIO setting like a PWM output.
I think it is a bug of cubeMX, I have generated the code. from code, I cant see it is correct or not.
only output pins have GPIO configs.
you can config your cubeMX and see the result.
thanks.