Servo buzzing and not working with STM32G030C8T6
Hi, I encountered a problem while trying to control servo motor(SG90) with my custom STM32G030C8T6 board. Servo is not moving at all and only buzzing quietly. I am supplying servo from 5V, board and servo have same GND. I checked servo power supply with potentiometer and voltage seems good. I designed power supply to be able to work with 3A so it should not be a problem either. At first I thought there was a problem with frequency of generated PWM signal (servo is working with 50Hz) but I cannot see any mistake in calculations. APB freq is set to 16MHz. I've tried many combinations of prescaler and ARR values (16-1 prescaler and 20000-1 ARR for example) none of it worked. I have tried with other servos and every try failed. I would be very grateful if someone has any ideas how to deal with this problem.



