2018-09-02 05:46 AM
Hi there. I'm trying to generate a Pwm signal using my nucelo board but I'm having issues doing this using cubemx.
I've configured the clocks and oscillator based on resources I've found online but I'm not too sure what the clock source should be. I've tried internal, external, and none. Yet nothing seems to working. Am I missing something fundamental here?
Could somebody point me in the right direction using the cubemx for the stm32f7 nucelo board please.
Thanks
2018-09-02 06:46 PM
hi,
did you check the timer is running ?
HAL_TIMEx_OCN_Start(&htim3, TIM_CHANNEL_1);
HAL_TIM_Base_Start(&htim3);
2018-09-03 03:03 AM
Hello @Adam Davis ,
I'd highly recommend you to refer to timer examples provided under the STM32CubeF7 V1.12.0 firmware package. It's found under the path below:
STM32Cube_FW_F7_V1.12.0\Projects\STM32F746ZG-Nucleo\Examples\TIM
The example titled "TIM_PWMOutput" shows how to configure the TIM peripheral in PWM mode.
You may take this example as a reference to correctly configure your peripheral.
Khouloud.