Since this is a custom board, I'd first verify that the PWM pin is actually configured for the correct alternate function and that the timer clock is enabled. A quick test is to toggle the same pin as a GPIO to confirm the hardware path is working. If the GPIO works but PWM doesn't, sharing the timer configuration, GPIO settings, and the relevant CubeMX configuration would make it much easier to identify the issue.