Can you please elaborate more on why / how system hangs? Do you know the cause?
Does that happen only with your firmware or clean examples too? How often hangs happen? Do you get any sort of traces or device just gets unresponsive? What NuttX version do you work on? I also experience random hangs on ESP32. Not using BLE nor WIFI. But I suspect EMC related issues (motor control). -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info