diff --git a/components/bt/bt.c b/components/bt/bt.c index d83ab127af..0b78d49190 100644 --- a/components/bt/bt.c +++ b/components/bt/bt.c @@ -1408,6 +1408,10 @@ esp_err_t esp_ble_scan_dupilcate_list_flush(void) return ESP_OK; } +void IRAM_ATTR r_assert_with_log(uint32_t error_bit, uint32_t time_slot) +{ + __asm__ __volatile__("ill\n"); +} /** * This function re-write controller's function, * As coredump can not show paramerters in function which is in a .a file. @@ -1416,7 +1420,13 @@ esp_err_t esp_ble_scan_dupilcate_list_flush(void) */ void IRAM_ATTR r_assert(const char *condition, int param0, int param1, const char *file, int line) { - __asm__ __volatile__("ill\n"); + extern uint32_t btdm_debug_error_get_bit(); + extern uint32_t btdm_debug_error_get_time(); + + uint32_t error_bit = btdm_debug_error_get_bit(); + uint32_t time_slot = btdm_debug_error_get_time(); + r_assert_with_log(error_bit, time_slot); + //__asm__ __volatile__("ill\n"); } diff --git a/components/bt/lib b/components/bt/lib index 2b43d19330..711f501d45 160000 --- a/components/bt/lib +++ b/components/bt/lib @@ -1 +1 @@ -Subproject commit 2b43d19330cb05dd60a907c628a726d1a156097d +Subproject commit 711f501d457b1750f0b17eaa838443bb95d3ef4a