Skip to main content
Associate II
June 8, 2025
Solved

STM32WB05KZ ACI_GATT_SRV_READ_VSEVT_CODE doesn't get triggered

  • June 8, 2025
  • 3 replies
  • 423 views

Hello,

I've been unable to get the ACI_GATT_SRV_READ_VSEVT_CODE case to trigger on the STM32WB05. Since this chip doesn't seem to support line for line debugging with an STLink to the Serial Wire interface due to Sequencer, I haven't been able to find a solution. The ACI_GATT_SRV_WRITE_VSEVT_CODE triggers fine and I've enabled GATT_NOTIFY_READ_REQ_AND_WAIT_FOR_APPL_RESP in CUBEMX. Does anyone know what the issue could be? 

Kind Regards

Best answer by STTwo-32

If your characteristic has a buffer that is handled by the stack, the ACI_GATT_SRV_READ_VSEVT_CODE will not be generated.

Best Regards.

STTwo-32

3 replies

STTwo-32
Technical Moderator
June 9, 2025

Hello @JSGraaf 

This event is not generated if the read is requested on a characteristic or a descriptor that has an associated buffer handled by the stack (see ble_gatt_chr_def_t and ble_gatt_descr_def_t). So, ensure that the read is requested on a characteristic or a descriptor that does not have an associated buffer handled by the stack.

Best Regards.

STTwo-32

JSGraafAuthor
Associate II
June 11, 2025

Thank you for the response @STTwo-32!The characteristic has a buffer that is handled by the stack. Is there a way to still get a read event to fire or do I have to switch to non-buffered?

Kind Regards

STTwo-32
STTwo-32Best answer
Technical Moderator
June 11, 2025

If your characteristic has a buffer that is handled by the stack, the ACI_GATT_SRV_READ_VSEVT_CODE will not be generated.

Best Regards.

STTwo-32

JSGraafAuthor
Associate II
June 11, 2025

Thank you!