esp-idf: Bluetooth Modem Sleep causes BLE related asserts and crashes (IDFGH-255)

after updating IDF to https://github.com/cesanta/esp-idf/commit/9a55b42f0841b3d38a61089b1dda4bf28135decd i am and seeing new crashes and ASSERTs related to BLE:

ASSERT_PARAM(0 0), in rwble.c at line 222

followed by ISR WDT crash

and a different one:

0x40086e3c in r_lld_evt_end_isr ()                    
#0  0x40086e3c in r_lld_evt_end_isr ()
#1  0x40087d9d in r_rwble_isr ()                              
#2  0x40088d16 in r_rwbtdm_isr_wrapper ()                           
#3  0x40081ae4 in _xt_lowint1 ()                                                                
    at /opt/Espressif/esp-idf/components/freertos/xtensa_vectors.S:1105                                     

there is a passive BLE scan ongoing, no other BLE activity. WiFi is enabled in station mode.

i’m updating IDF from https://github.com/cesanta/esp-idf/commit/441b4a974226c2deaa9ffb8e7308c3009985aba6 which did not have these problems.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 42 (8 by maintainers)

Most upvoted comments

This patch seems to have solves this issue aswell: https://github.com/espressif/esp-idf/issues/2337#issuecomment-418038595

I will do some more testing, but it looks very promising.