I am using a portenta lite from arduino with portenta breakout.
I am already using TIM3_CHA1 for encoder input and
TIM8_ch1 on PJ8 for other pwm output.
So I need to use hrtim for this pwm signal.
I want to setup high resolution timer to output a square wave at
20 mhz with 50% duty cycle.
using oscilloscope on pwm1 (pc6) I don't get any output.
I have attached the code that I wrote to initialize the high resolution timer.
if I change line 52
from
if (HAL_HRTIM_TimeBaseConfig(&hhrtim, HRTIM_TIMERINDEX_MASTER, &pTimeBaseCfg) != HAL_OK)
to
if (HAL_HRTIM_TimeBaseConfig(&hhrtim, HRTIM_TIMERINDEX_TIMER_A, &pTimeBaseCfg) != HAL_OK)