STM32U5A5: AZURE RTOS and 1ms ticks - how to set?
I am confused: I want to have 1ms AZURE RTOS tick timer - but no idea how to set.
What I see:
- AZURE RTOS defines 10ms tick timer (UX_PERIOD_RATE, TX_TIMER_TICK_PER_SECOND)
- I see as well, when using tx_thread_sleep(1000); - it sleeps 10 second (not 1) - OK, obvious with 100 set for all the AZURE RTOS timer configs (macros)
- But I cannot force to get 1ms ticks: even I change all macros I could find, e.g. UX_PERIODIC_RATE, TX_TIMER_TICKS_PER_SECOND to 1000 - this happens:
I see the TIM6 INT comes fast, assuming with 1ms period (I debug with toggling a LED in TIM6 INT). But after a short period of time (approx. 1...2sec) the TIM6 INT changes to something like 10Hz (much slower now and I can see the LED toggle).
I can clearly see the LED toggling and my "delay" command (which should wait for X milli-seconds) is still wrong.
Questions:
- how to change to a 1ms tick timer (for AZURE RTOS)?
- can it be that the TIM is reconfigured by a LIB function? (to a much slower rate)
It do not find anything in source code which touches TIM6 (just: the initialization is called twice, OK, I see where and why: 1st: HAL_Init(), 2nd: SystemClock_Config() - but both are needed to do!
Very strange. If I do not call MX_ThreadX_Init(); - the TIM6 seems to be configure properly and seems to come with 1KHz. But later, the AZURE RTOS seems to change to a much slower frequency.
Why?
And where to change to 1KHz timer tick (for RTOS, using TIM6)?
