Migrate to V4.4.6, get xTaskGenericNotifyWait failure
Posted: Thu Nov 30, 2023 6:01 pm
I have a working application running on ESP32E 4MB, and I've been running v4.4.2. I've decided to port to the latest v4, v4.4.6. I get this error:
assert failed: xTaskGenericNotifyWait tasks.c:5456 (uxIndexToWait < 1)
0x40081d26: panic_abort at C:/exp/frameworks/esp-idf-v4.4.6/components/esp_system/panic.c:408
0x40089e4d: esp_system_abort at C:/exp/frameworks/esp-idf-v4.4.6/components/esp_system/esp_system.c:137
0x40090e49: __assert_func at C:/exp/frameworks/esp-idf-v4.4.6/components/newlib/assert.c:85
0x4008caec: xTaskGenericNotifyWait at C:/exp/frameworks/esp-idf-v4.4.6/components/freertos/tasks.c:5456 (discriminator 1)
My application code is making this call
if ( xTaskNotifyWaitIndexed( 1, 0, ULONG_MAX, NULL, pdMS_TO_TICKS(nextms) ) == pdTRUE ) {
Any idea why it has problems under v4.4.6? The index is 1, not less than 1. This is working code in v4.4.2.
assert failed: xTaskGenericNotifyWait tasks.c:5456 (uxIndexToWait < 1)
0x40081d26: panic_abort at C:/exp/frameworks/esp-idf-v4.4.6/components/esp_system/panic.c:408
0x40089e4d: esp_system_abort at C:/exp/frameworks/esp-idf-v4.4.6/components/esp_system/esp_system.c:137
0x40090e49: __assert_func at C:/exp/frameworks/esp-idf-v4.4.6/components/newlib/assert.c:85
0x4008caec: xTaskGenericNotifyWait at C:/exp/frameworks/esp-idf-v4.4.6/components/freertos/tasks.c:5456 (discriminator 1)
My application code is making this call
if ( xTaskNotifyWaitIndexed( 1, 0, ULONG_MAX, NULL, pdMS_TO_TICKS(nextms) ) == pdTRUE ) {
Any idea why it has problems under v4.4.6? The index is 1, not less than 1. This is working code in v4.4.2.