Dear colleagues,
I have problem with the function UTIL_SetTimer on Primer2 with installed CircleOS 4.5. I used this function according to the instruction described in the document "CircleOS V4.5 Conception document", but my timer handler was never called. I looked for the reason, why my timer handler was not called. I looked in the debugger, that timer TIM2 was running. I found differences in source code of CircleOS for the platform Primer2 and Open4, please see bellow. I did not found interrupt handler, that decreases variable CurrentTimerDelay on Primer2. I can not found any note, that the function UTIL_SetTimer is not supported on Primer2 platform.
Some parts of the CircleOS 4.5 source files are pasted bellow.
Circle-OS-4.5\Circle\OS\Hardware\STM32\src\util_spe.c
Circle-OS-4.5\Circle\OS\Hardware\Primer_1_2\src\stm32f10x_circle_it_spe.c
Circle-OS-4.5\Circle\OS\Hardware\OPEN4\STM32\src\stm32f10x_circle_it_spe.c