Skip to main content
MOemu.1
Associate
August 10, 2020
Question

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

  • August 10, 2020
  • 3 replies
  • 1629 views

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.

This topic has been closed for replies.

3 replies

Amel NASRI
Technical Moderator
October 8, 2020

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
MOemu.1Author
Associate
October 12, 2020

Thanks for the reply, I'm looking forward!

Associate III
January 29, 2023

2 years of watching without results.

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

0693W00000Y9Q1EQAV.png