Using PPI with Zboss zigbee stack

Hi,

In my project I make use of the PPI to connect the comparator with the counter (timer). But as soon as I enable the zigbee stack, especially when invoking the zboss_main_loop_iteration()
in the main loop, it looks like the PPI connection is not working.

To test this, I 'connected' button4 on my devkit with this counter. There I can also see, that when I don't invoke zboss_main_loop_iteration() the counter will count everytime I push the button.

So I suspect that the zigbee stack uses the PPI that I'm using. According to this list the zigbee stack uses channels 0 - 12. When I allocate the PPI channel with this code:

    err_code = nrfx_ppi_channel_alloc(&ppi_channel);
    APP_ERROR_CHECK(err_code);
    NRF_LOG_INFO("Assigned PPI channel: %d", ppi_channel);

I see in the debug log, that channel 5 is used. Which is strange, because the zigbee stack uses this. I call this after initiating the zigbee stack. So I don't know how to change it such that it will choose the right PPI channel when using the zigbee stack?

Related