stm32wb55 returns "unlikely error" when enabling notifications on a peripheral characteristic
I am developing a BLE product using the stm32wb and have it working as a peripheral/server. I need to add the ability to work as a central also and am following the BLE_p2pRouteur example in STM32CubeWB/Projects/P-NUCLEO-WB55.Nucleo/Applications/BLE/BLE_p2pRouteur. The device I want to connect to as a central is another of our products in development and uses a different MCU/BLE stack. This device is also working as a peripheral and can connect and pair using Windows, macOS, iOS, and linux.
After connecting to the peripheral, querying the services, and querying the characteristics of the services to get all the handles needed, I try to enable notifications on the characteristic normally used for commands using aci_gatt_write_char_desc() with a 2-byte attribute value set to 0x0001. The stm32wb BLE stack is returning ACI_GATT_ERROR_RESP_VSEVT_CODE with Req_Opcode set to 0x12 and Error_Code set to 0x0e (unlikely error). I am certain that I am passing in the correct connection handle and characteristic handle.
Does anyone have an idea as to what might be going on? I'm not seeing anything from the device being connected to, so this looks like it might be some sort of configuration error in the stm32wb BLE stack.
Thank you,
--b
