Open umer-ilyas opened 4 years ago
I'm having a similar issue when trying to deinit on esp32. I've traced it to ble_npl_sem_pend() inside the nimble_port_stop() function and it never gets past that. Were you able to resolve it?
I can get past the nimble_port_deinit()
but a subsequent nimble_port_init()
crashes. Are you supposed to be able to start/stop repeatedly?
Has this been resolved? I'm on ESP32 and nimble_port_deinit(); seems to hang. It seems like basic functionality to be able to start/stop the BTLE.
sometimes i am having this problem after i call
nimble_port_stop(); nimble_port_deinit();
assertion "ret == pdPASS" failed: file "F:/msys32/home/umeri/esp/esp-idf/components/nimble/nimble/porting/npl/freertos/src/npl_os_freertos.c", line 291, function: npl_freertos_sem_release
I am using esp-idfv3.3.1 with ESP32-WROOM and tested with both nimble-1.1.0-idfv3.3 and nimble-1.2.0-idf
here is full assertion log
i have problem in understanding this part of code this function never returns because of
SLIST_FOREACH
keep calling the listener callback function and i could not found a code which remove the callback function fromslist
and sometime in future
in nimble_port.c @ 127 ble_npl_sem_deinit(&ble_hs_stop_sem);
semaphore gets deinit and this functionis still trying to release it and there rtos issue assert