Skip to main content
LMyle.1
Associate III
September 15, 2021
Question

Hi I am having issues with cube MX, why am I unable to set timer 5 to anything when I have PA1 and PA1_C in use ?

  • September 15, 2021
  • 3 replies
  • 1325 views

Please see .ioc test attatched.

This topic has been closed for replies.

3 replies

TDK
September 15, 2021

TIM5 is initialized in the IOC file you sent, and channels are able to be changed. Be more specific in your question.

0693W00000DnGNaQAN.png 

"If you feel a post has answered your question, please click ""Accept as Solution""."
LMyle.1
LMyle.1Author
Associate III
September 15, 2021

My question is why am I unable to change PA1_C as timer 5 in my .ioc file thank you !

TDK
September 15, 2021

PA1_C is not a valid pin for TIM5_CH2 directly. PA1 is, but you're already using it for TIM2_CH2.

You can connect PA1_C and PA1 internally, but since one is already in use, that won't help.

If you clear the function on PA1, you can set PA1_C as TIM5_CH2 as expected.

"If you feel a post has answered your question, please click ""Accept as Solution""."