Master/Slave problem on TIM3 in STM32L476 - slave not counting when ITR2 selected
Hello,
I am working on the NUCLEO-L476RG board. I am trying to use two pairs of counters in master/ slave mode. In the first chain TIM2 is the master and TIM4 is the slave so in SMCR of TIM4 ITR1 is selected and this works as expected. In the second chain TIM5 is the master and TIM3 is the slave so in SMCR of TIM3 ITR2 is selected and this does not work. Using the debugger I can see that TIM5 is counting but TIM3 is not. Also I have configured GPIO so that I can see action on oscilloscope.
I have tried setting SMCR of TIM3 to ITR0 (TIM1 master) and that works
I have tried setting SMCR of TIM3 to ITR1 (TIM2 master) and that works
I have tried setting SMCR of TIM3 to ITR3 (TIM4 master) and that works
Why does TIM3 not count when SMCR is set to ITR2 and TIM5 is master?
Reference Table 201 in RM0351
In all instances the master TIM has MMS in CR2 set to 2, UPDATE.
Thanks,
Chris