cancel
Showing results for 
Search instead for 
Did you mean: 

How do I toggle a pin upon each BLE packet.

Olly
Associate II

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).

1 REPLY 1
Remy ISSALYS
ST Employee

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