[STM32L4][RTOS] Need a 32-bit register as a counter for RTOS's system tick
Hi everyone,
I'm using STM32L4R9 to develop product which run on RTOS kernel. Previously, I used a other Cortex-M4 chip run on RTOS platform in tickless mode, a 32 bit timer counter is used for calculate RTOS tick and this timer-counter able run on lowest power mode when kernel is idle.
Now I switch to STM32L4R9 and the deepest mode that my system can get in is STOPMODE2, at this state only LPTIM is run/wakeup with clock source LSI/LSE, however this LPTIM just support a 16-bit counter register which is easy to get full which configure 1000 tick per second.
I also thought to use RTC as a main counter but it's configured in BCD.
So if I really need a 32 bit counter register in STOPMODE, which peripheral I can use to help RTOS kernel run on?
Thanks.
