STM32F411RE (Nucleo) PWM TIM1_CH1 - PA8 appears shorted to 5V when powered, unaffected by BOOT0 or NRST.
Hello everyone. I was trying to implement the 6 Step PWM using STM32F411RE Nucleo board to drive a BLDC motor via 3 half bridges. Each half bridge was driven by signals from TIM1, using 3 of it's channels along with their complementary output for HIN and LIN of IR2110.
TIM1_CH1 is located at PA8 for this board. This pin is shows continuity towards the 5V and U5V pins. The voltage for PA8 in reference to GND is around 2.8V.
I have tried almost everything including disabling the TIM1, disable the GPIO pins, setting the PA8 as analog pin, disabling the peripheral clock, disable MCO, cleared MODER and AFR, tried NVIC_SystemReset, RCC clock reset, Timer Reset, shorted BOOT0 and VDD - power cycling the board, lastly I also pulled NRST low, did all of these separately, but still it showed a short between PA8 and 5V-U5V pins.
This pin worked fine before. It was only after I accidentally set LOCK to level 2 in BDTR register of TIM1 that I saw weird behaviour from this TIM1 Channel. I was getting opposite polarity of what I had set in TIM1_CH1 and CH1N.
Although, I did set lock back to default, but since then CH1N went back to normal but, PA8 is constantly high.
When the board is not powered, the pin doesn't show a short.
I would love to know if this problem is solvable and what can I further do to solve this problem?
If the PIN is dead, what alternatives can I explore? Because I really need this board to work so I can complete my project. I was also thinking to use TIM1_CH4 and TIM1_CH1N and add a software based deadtime.
Thank you!
