Skip to content

ESP32-C6 crashes in BLE client mode after establishing a connection whilst having the GATT table caching enabled #1011

Description

@csstraut

Hi,

I am using the following ESP-AT firmware:
ESP32-C6-4MB-AT-V4.1.1.0

I tried to enable the GATT table caching from the configuration in order to speed-up the BLE connection establishment to the same peripheral.

Steps:

  1. Configure the SDK as:
    CONFIG_BT_NIMBLE_GATT_CACHING=y
    CONFIG_BT_NIMBLE_GATT_CACHING_MAX_CONNS=4
    CONFIG_BT_NIMBLE_GATT_CACHING_MAX_SVCS=5
    CONFIG_BT_NIMBLE_GATT_CACHING_MAX_CHRS=32
    CONFIG_BT_NIMBLE_GATT_CACHING_MAX_DSCS=32
    CONFIG_BT_NIMBLE_GATT_CACHING_DISABLE_AUTO is not set

  2. Scan for a BLE device

  3. Attempt to connect to the BLE device

Results:

  1. BLE connection is getting peformed, received:
    +BLECONN:0, <mac_addr>

  2. A core dump is generated by the ESP32-C6 and the ESP32-C6 reboots:

Core 0 register dump:
MEPC : 0x42029936 RA : 0x42029934 SP : 0x408588e0 GP : 0x40821064
TP : 0x40858980 T0 : 0x40022494 T1 : 0xffffffe0 T2 : 0x63343930
S0/FP : 0x4085a364 S1 : 0x00000000 A0 : 0x4085a364 A1 : 0x4085a38c
A2 : 0x000222a8 A3 : 0x00000800 A4 : 0x00000000 A5 : 0x20001000
A6 : 0x00000014 A7 : 0x11c00000 S2 : 0x00000008 S3 : 0x00000000
S4 : 0x00000000 S5 : 0x00000000 S6 : 0x00000000 S7 : 0x00000000
S8 : 0x00000000 S9 : 0x00000000 S10 : 0x00000000 S11 : 0x00000000
T3 : 0x00000000 T4 : 0x000009fe T5 : 0x33356334 T6 : 0x38363336
MSTATUS : 0x00001881 MTVEC : 0x40800001 MCAUSE : 0x00000005 MTVAL : 0x00000008

Disabling the GATT caching fixes the issue.

Is there a particular configuration setting required having the GATT caching enabled?
I haven't found anything in the documentation mandating it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions