ISSUE with xEventGroupWaitBits

thethinker
Posts: 54
Joined: Thu Mar 01, 2018 1:26 am

ISSUE with xEventGroupWaitBits

Postby thethinker » Sun Apr 08, 2018 8:54 pm

Hi Guys,
I'm having a heck of a problem with the "xEventGroupWaitBits(wifi_event_group, CONNECTED_BIT, false, true, portMAX_DELAY);"
everything works fine if I call this function in the main loop, but if I call it from another RTOS task it crashes every time:
/esp-idf/components/freertos/./event_groups.c:350 (xEventGroupWaitBits)- assert failed!
abort() was called at PC 0x400869af on core 1
0x400869af: xEventGroupWaitBits at /components/freertos/./event_groups.c:546


Backtrace: 0x40087728:0x3ffc37a0 0x400878ff:0x3ffc37c0 0x400869af:0x3ffc37e0 0x400d3be0:0x3ffc3810
0x40087728: invoke_abort at /esp-idf/components/esp32/./panic.c:648

0x400878ff: abort at /esp-idf/components/esp32/./panic.c:648

0x400869af: xEventGroupWaitBits at /esp-idf/components/freertos/./event_groups.c:546

0x400d3be0: config_get_task at /filepath/blah/main/./test_config.c:37


Rebooting...
I'm using
IDF VERSION:cv3.1-dev-463-g77eae33-dirty
Please help!

thethinker
Posts: 54
Joined: Thu Mar 01, 2018 1:26 am

Re: ISSUE with xEventGroupWaitBits

Postby thethinker » Sun Apr 08, 2018 9:51 pm

Never mind, I found the issue. Was not using 'extern' among two files.

Who is online

Users browsing this forum: No registered users and 27 guests