Skip to main content
LMyle.1
Associate III
Sep 15, 2021 9:42 AM UTC
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 ?

Please see .ioc test attatched.

This topic has been closed for replies.

3 replies

TDK
Sep 15, 2021 1:41 PM UTC

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
Sep 15, 2021 3:13 PM UTC

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

TDK
Sep 15, 2021 3:25 PM UTC

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""."