Hi,
I am using nRF52 DK PCA10040 to develop an application starting from the ble_app_uart example, Then I introduced PWM and SAADC from other examples, and after I verified all the functions, I disabled UART since there will be no more UART on my custom board.
NRF_ERROR_NO_MEM is returned from app_pwm_init when I initialize the third PWM instance. I was trying to instantiating three PWM instances and 1 pin for each, so I think the total PPI channel usage is 3*4 = 12. Besides, in my application, an ADC is utilized, which I think takes 1 PPI channel that makes 13 in all. I have searched nrf_drv_ppi_channel_alloc in my project and I think there is no other PPI channel allocated... when I decrease the PWM instances to 2 then everything is fine...The following shows where the program is stuck.

Thanks.