Behaviour of PPI endpoint when using extended/periodic advertisement with CTE for direction finding

Hi,

This is a followup on https://devzone.nordicsemi.com/f/nordic-q-a/119259/synchronisation-between-tx-and-rx-in-connectionless-direction-finding 

We now have a synchronised counter being increment on TX and received at RX, which was the key issue in that post. Now, for additional accuracy in timing, we want to toggle a GPIO pin whenever a given packet with CTE is sent. 

In the current setup, I set up the advertisement configuration as follows

and set up the `adv_sent_cb` as

This works and I am able to receive CTEs at the RX end.

However, with respect to the GPIO toggling, when I set up the following with the intention of toggling the GPIO whenever the payload has been sent with the updated counter value

I get the following output, with the trigger happening five times per extended advertisement packet

but I was only expecting one. My suspicion that it may be related to the fact that periodic advertisement is enabled, but I am not entirely sure, and as far as I can tell, that needs to be active for the periodic sync which receives CTEs on the RX side to function as intended.

Hopefully I've provided sufficient information, please let me know if I need to add additional details!

Kind regards

Glen

Parents
  • Hi Glen

    I guess the first step here would be to find what function(s) call the SWI0_EGU0_IRQHandler() function on your end, as I don't see any other mention of it in the snippets you've uploaded.

    Best regards,

    Simon

  • Hi, 

    My mistake, here is the initialisation in main

Reply
  • Hi, 

    My mistake, here is the initialisation in main

Children
No Data