2025-04-21 10:17 AM
Hi, I have a problem with CMSIS RTOS v1 using STM32F103RET6. I have about 6 - 7 tasks. The first task is the StartDefaultTask, after finishing initializing, when running to osSemaphoreRelease, it gets to configAssert(pxQueue) and loop forever. The semaphore is reference to another task, which the task combines at least two semaphores to work. Can anyone meet this before? Also the task which combines two semaphores work like this, where the callback_timeout is released from the StartDefaultTask
if(osSemaphoreWait(save_data, osWaitForever) == osOK){
if(osSemaphoreWait(callback_timeout,osWaitForever)==osOK){
2025-04-21 11:39 AM
> it gets to configAssert(pxQueue)
i.e. pxQueue is not a valid queue handle. This may happen if the queue creation failed and you don't check that. Typically with default (small!) heap settings and dynamic queue creation.
Use the debugger to further investigate the issue.
hth
KnarfB