PA8 (TIM1_CH1) PWM not outputting in my CubeMX project (works in DCMI example)
Hi everyone,
I'm working on a STM32F429I-Discovery board and trying to output a 24 MHz PWM signal on PA8 (TIM1_CH1) to drive an MT9M001 camera module as the XCLK signal.
In my own CubeMX-generated project, PA8 stays LOW — no waveform appears.
However, if I take the official example
Projects/STM324x9I_EVAL/Examples/DCMI/DCMI_CaptureMode,
and add the same PWM settings, the signal comes out fine.
Here’s what I confirmed:
-
TIM1 initialized successfully with HAL_TIM_PWM_Init() and HAL_TIM_PWM_ConfigChannel().
-
GPIO A8 = AF1_TIM1, Push-Pull, No Pull, Very High Speed.
-
HAL_TIM_PWM_Start(&htim1, TIM_CHANNEL_1); is executed.
-
PWM period = 7 (≈ 22.5 MHz), pulse = 4 (≈ 50 % duty).
-
System clock = 180 MHz (PLL on HSE 8 MHz).
No error occurs, but no output.
Thanks for any advice!
Edited by ST moderator: removed system_stm32f4xx.c content not needed for the conversation.
