This example uses ttim library to implement a simple app that sends different texts on the uart at different retes. You can compile and run the exampe using the STM32CubeIDE
ttim provides the hability to implement asynchronous timers without the need to tick the system periodically. More info on https://gitlab.com/fbucafusco/ttim