ThreadX/AzureRTOS on STM32H7 messing with HAL tick timer. Anyone experienced the same thing?
HAL timebase set to use TIM6. ThreadX uses SysTick.
My code is minimalistic for the test-project when debugging this issue. ThreadX is set up to have 1000 ticks/second as opposed to the default 100 ticks/second.
I have one thread printing out HAL_GetTick() and _tx_time_get() after a tx_delay of 1000 milliseconds.
HAL_GetTick as we all know returns uwTick, which gets incremented by the TIM6 interrupt callback.
ThreadX returns the correct time, while GetTick() returns a value that gets incremented by about 15 for every 1000 ms. My only explanation for this is that ThreadX disables the interrupt that calls the TIM6 IncTick function while it does scheduling work in the background, but I have a hard time believing this as I can't find anyone else facing the same issue online.
