During adding Accessory in HomeKit Apps, calling gpio_pin_interrupt_configure() causes "bt_att: Not connected"

I configured the Gpio 8 as the Rx of UART. When the UART is Idle, I need to configure the Gpio 8 to be an interrupt pin. 

This configuration is fine at all times except when adding Accessory in HomeKit Apps.

The gpio_pin_interrupt_configure() causes "bt_att: Not connected" .

I am using the nRF52840 with SDK version 2.3.0.

Log:

[00:00:21.297,027] <inf> pal_log: [BT RX] [com.apple.mfi.HomeKit.Core:MFiTokenAuth] <private> Software Token

[00:00:21.297,210] <inf> pal_log: [BT RX] [com.apple.mfi.HomeKit.Core:MFiTokenAuth] Updating Software Token (length = 351 bytes).

[00:00:21.687,652] <inf> pal_log: [BT RX] [com.apple.mfi.HomeKit.Core:BLEProcedure] [0000000000000001 HOLOMARQ Smart Lock 0015] [0000000000000022 pairing.pair-setup] Terminating existing security session (Characteristic drops security session).[

[00:00:21.743,072] <inf> pal_log: [BT RX] [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000001 HOLOMARQ Smart Lock 0015] [0000000000000022 pairing.pair-setup] Calling write handler.

[00:00:21.773,254] <inf> pal_log: [BT RX] [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000001 HOLOMARQ Smart Lock 0015] [0000000000000022 pairing.pair-setup] Calling read handler.

[00:00:21.786,071] <inf> pal_log: [BT RX] [com.apple.mfi.HomeKit.Core:PairingPairSetup] Pair Setup M2: Ignoring unrecognized kTLVType_Flags: 0x00008000.

[00:00:22.523,284] <inf> pal_log: [BT RX] [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000001 HOLOMARQ Smart Lock 0015] [0000000000000022 pairing.pair-setup] Calling write handler.

[00:00:22.532,043] <inf> pal_log: [BT RX] [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000001 HOLOMARQ Smart Lock 0015] [0000000000000022 pairing.pair-setup] Calling read handler.

[00:00:24.353,454] <inf> pal_log: [BT RX] [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000001 HOLOMARQ Smart Lock 0015] [0000000000000022 pairing.pair-setup] Calling write handler.

[00:00:24.394,470] <inf> pal_log: AppHandleControllerPairingStateChange: state=0

[00:00:24.399,139] <inf> pal_log: [BT RX] [com.apple.mfi.HomeKit.Core:Characteristic] [0000000000000001 HOLOMARQ Smart Lock 0015] [0000000000000022 pairing.pair-setup] Calling read handler.

[00:00:27.856,689] <inf> uart_log: rx_gpio_enable enter

[00:00:34.718,475] <wrn> uart_log: Switched to GPIO

[00:00:34.718,505] <inf> uart_log: GetReadyForSleep

[00:00:34.718,597] <wrn> bt_att: Not connected

[00:00:34.718,627] <err> bt_conn: not connected!

[00:00:34.719,970] <inf> pal_log: [sysworkq] [com.apple.mfi.HomeKit.Core:BLEPeripheralManager] HandleDisconnectedCentral(0x0000)

Could you please provide guidance on how to resolve this error? 

Thank you for your attention to this case.

Related