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:
-
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
-
Scan for a BLE device
-
Attempt to connect to the BLE device
Results:
-
BLE connection is getting peformed, received:
+BLECONN:0, <mac_addr>
-
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.
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:
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
Scan for a BLE device
Attempt to connect to the BLE device
Results:
BLE connection is getting peformed, received:
+BLECONN:0, <mac_addr>
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.