cancel
Showing results for 
Search instead for 
Did you mean: 

stm32cubeMX bug???

dqsh06
Associate III

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?

dqsh06_0-1729747045042.png

please confirm.

Thanks

@GMA 

 

2 REPLIES 2
SofLit
ST Employee

Hello,

Check the generated code. Is there something weird in it?

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

hello, @SofLit 

I have changed chip to STM32G030C8T6, because STM32G030F6P6 cannot use HSE.

but for STM32G030C8T6, the cubeMX is also something strange. 

dqsh06_0-1729755233025.png

tim1, channel2 is a PWM output, but the GPIO setting, just like a input capture.

dqsh06_1-1729755359288.png

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.