This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

about CMSIS_OS2 and STM32HAL how use?

STM32HAL need HAL_gettick() but CMSIS_OS2 without os_time how do i ... ( ¯¨̯ ¯̥̥ )

Parents
  • If you could duplicate situation in which osKernelGetState() would return osKernelError it would be usefull to find the root cause.

    Anyways, your implementation does not take into account that usually HAL_Init is done while RTOS is not running, and there are some delays there which depend on tick incrementing, so it might be that some time dependant operations are not executed with required delays thus it could cause improper initialization.

    Also, your implementation on F7 would cause Hard Fault as osKernelGetTickCount() is not allowed if RTOS is not running.

Reply
  • If you could duplicate situation in which osKernelGetState() would return osKernelError it would be usefull to find the root cause.

    Anyways, your implementation does not take into account that usually HAL_Init is done while RTOS is not running, and there are some delays there which depend on tick incrementing, so it might be that some time dependant operations are not executed with required delays thus it could cause improper initialization.

    Also, your implementation on F7 would cause Hard Fault as osKernelGetTickCount() is not allowed if RTOS is not running.

Children