2 months, 3 weeks ago.
Hardware Timers for quadrature encoders, problems with Timer 2 used by SysTick
Hello, I have modified, for the Nucleo F303K8, the program accessible on the page : https://developer.mbed.org/forum/platform-34-ST-Nucleo-F401RE-community/topic/4963/?page=1#comment-26870 The aim is to connect two quadrature encoders for controlling of robot. the processor of the Nucleo F303K8 possesses two timers able to handle encoders : TIM2 and TIM3 The program works fine with one encoder on Timer3 but the problem is that TIM2 is already used by mbed for SysTick. SysTick uses TIM2 for the Ticker function. I have tried to change the settings in order to free TIM2 from SysTick but I don't succeed.
I have found in the datasheet of the STM32F303K8 that it possesses a 24bit Timer especially design for SysTick, so instead of using Timer2 the mbed libraries could used the specific SysTick timer.
Does somebody knows how to proceed for resolving my problem ? Thanks for your answers Regards
Question relating to:
To post an answer, please log in.