How to set backlight - stm32n6570-dk
Hi everyone,
I’m trying to control the backlight brightness of the display on my STM32N6570-DK using TIM8, channel 2 complementary (CH2N) in PWM mode (it's correct?).
Current setup:
TIM8 clock: 100 MHz (APB2 peripherals)
Prescaler: 49
Auto-reload (ARR): 99 → theoretically 100 brightness steps
PWM mode: PWMN (CH2N)
Output: connected directly to the display BL pin
Timer started with HAL_TIM_PWMN_Start(&htim8, TIM_CHANNEL_2)
Problem:
PWM only works when using very high PSC and ARR values (e.g., PSC=512, ARR=3126), but then the PWM frequency is very low (~60 Hz).
With proper values for ~20 kHz PWM and 1000 brightness steps (PSC=4, ARR=999), the display is either fully on or fully off — no intermediate steps are visible.
The display pin seems to accept only CH2N, not CH2 normal.
Questions for the ST community:
Is there an “official” way to drive the STM32N6570-DK backlight using PWMN with linear, visible steps?
Are there any STM examples for backlight PWM on this DK board using TIM8_CH2N?
Thanks in advance for any suggestions or examples!


