STM32G431KB TIMER XOR ON/Hall Sensor Mode Not Triggering the PWM Timer
Hello everyone,
I am working on a project where I need to control a BLDC motor with integrated hall sensors.
I saw this feature on RM0440 Document ‘29.3.28 Timer input XOR function’
I decided to use the TIM2 as the ‘Interfacing Timer’ and TIM1 as the PWM generating/motor driving timer.
I can read the time period between the hall sensor changes via TIM2->CCR1 register but I can not get the COM event with TIM1. Can anyone help?
The following is my CUBEMX setup:




Here are the snippets of my code which I think are the most related. If you need other parts of my code I can provide it.


