ShawnHymel / introduction-to-rtos

513 stars 124 forks source link

A rebooting occured when running "06-mutex/esp32-freertos-06-solution-task-parameters" #10

Closed wanggaoteng closed 3 months ago

wanggaoteng commented 3 months ago

Hi, there is a rebooting when running the "06-mutex/esp32-freertos-06-solution-task-parameters" in esp32-s3:

assert failed: xQueueGenericSend queue.c:832 (pxQueue->pcHead != ((void *)0) || pxQueue->u.xSemaphore.xMutexHolder == ((void *)0) || pxQueue->u.xSemaphore.xMutexHolder == xTaskGetCurrentTaskHandle())

image

Is there anyway to fix it?

Best regards.

wanggaoteng commented 3 months ago

After many attempts, I find there is a pull request from morgoob, by referring to the codes, the problem solved, and test in esp32-s3. Thanks @morgoob

test.zip