You are asserting in xQueueSemaphoreTake( ) due to an uninitialized semaphore handle. Please review if you are performing the right initialization