2021-09-15 02:42 AM
2021-09-15 06:41 AM
TIM5 is initialized in the IOC file you sent, and channels are able to be changed. Be more specific in your question.
2021-09-15 08:13 AM
2021-09-15 08:25 AM
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.