STM32 PWM Setup - Bare Metal in CubeIDE
The GPIO Alternative function configuration is incorrect:
GPIOE-&gt;MODER |= ~GPIO_MODER_MODER14_1;

The correct configuration is:
GPIOE-&gt;MODER |= GPIO_MODER_MODER14_1;