cancel
Showing results for 
Search instead for 
Did you mean: 

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 ?

LMyle.1
Associate III

Please see .ioc test attatched.

3 REPLIES 3
TDK
Guru

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
Associate III

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

TDK
Guru

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