Skip to main content
Olly
Associate II
December 2, 2022
Question

How do I toggle a pin upon each BLE packet.

  • December 2, 2022
  • 1 reply
  • 850 views

I'm using the STM32WB55, with STM32CubeWB V1.14.1 & `stm32wb5x_BLE_Stack_full_fw.bin` V1.14.1.

Looking in `app_debug.c`, I can configure `aGpioConfigList[]` and `aRfConfigList[]`, which allows for CPU2 to toggle a GPIO pin based on various events.

I can successfully toggle a GPIO pin upon each connection event (END_OF_CONNECTION_EVENT), however because multiple packets can be transferred during a single connection event, I'd like to be able to toggle a pin upon each packet.

Is this possible?

In addition, could you provide some more information about what each of the 'aRfConfigList[]' & `aGpioConfigList[]` events relate to? (e.g. FSM0-4 etc.)

(I'm using a logic analyser to determine the relative timing between a number of events throughout the firmware & hardware, therefore simply using a packet sniffer isn't that helpful).

This topic has been closed for replies.

1 reply

Remy ISSALYS
ST Technical Moderator
January 5, 2023

Hello,

Unfortunately, is not possible to toggle a pin upon each packet. Is it for debug propose? If yes, what's your issue maybe there is other solution to debug it.

Best Regards