From b04afa39fe489bfde9ee08e3680edeeacba6fe6d Mon Sep 17 00:00:00 2001 From: gengyuchao Date: Wed, 22 Jul 2020 22:43:40 +0800 Subject: [PATCH] Add more check for hci timeout --- components/bt/bt.c | 3 +++ components/bt/lib | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/components/bt/bt.c b/components/bt/bt.c index 3db8898338..b5d4d3b9f9 100644 --- a/components/bt/bt.c +++ b/components/bt/bt.c @@ -1491,6 +1491,9 @@ void esp_bt_check_need_restart() void bt_abort_with_coredump_log(uint16_t error) { + uint32_t intenable; + asm volatile ("rsr %0, INTENABLE\n" :"=r"(intenable)); + RMT_DBG_LOG_ERROR("abort!INT R:0x%x EN 0x%x",*((uint32_t*)BT_INT_STA_REG),intenable); __asm__ __volatile__("ill\n"); } diff --git a/components/bt/lib b/components/bt/lib index 1c8bc690b4..3d45e50269 160000 --- a/components/bt/lib +++ b/components/bt/lib @@ -1 +1 @@ -Subproject commit 1c8bc690b42c85ecf9cbdc59c016eef4ec4f6446 +Subproject commit 3d45e5026941e19ee24327f9b2e8ba7ab7fb675d