cancel
Showing results for 
Search instead for 
Did you mean: 

CubeMX: TI1_ED disabled if Channel1 is already set (TIM15 on STM32G431)

MOemu.1
Associate

From the block diagram of TIM15 I think it should be possible to configure both channels to input capture using the outputs of the analog comparator as input signals, activate the XOR block and select the resulting tim_ti1f_ed/TIM1_ED signal as the source signal for the slave mode controller.

I am able to configure both channels to use the comparator output as input and set it to external clock mode 1.

0693W000003OsBhQAK.png

But CubeMX doesn't let me select TI1_ED as the trigger source:

0693W000003OsCGQA0.png

Is that a bug in Cube or did I misread the reference manual?

In other words: to be able to select TI1_ED (or also T1FP1) as a trigger source, CubeMX falsely requires a a pin to be configured as TIM15_CH1. It doesn't seem to know that the input can be a completely internal signal.

3 REPLIES 3
Amel NASRI
ST Employee

Hi @MOemu.1​ ,

Even with some delay, I am coming back to this thread because I consider that what you report is relevant and requires review.

Our STM32CubeMX team is now aware of this and will take care to implement required corrections.

-Amel

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.

MOemu.1
Associate

Thanks for the reply, I'm looking forward!

PKurz.1
Associate II

2 years of watching without results.

I will add that in the case of TIM15 you cannot set the OPM.

0693W00000Y9Q1EQAV.png