Hi,
PTX: based on the SDK11 "\examples\proprietary_rf\esb_ptx\pca10040\blank\arm4\esb_ptx_blank_pca10040.uvproj", what I changed is delete the "nrf_delay_us(50000)" in main(), to make it sends ESB message more quickly.
PRX: based on the code devzone.nordicsemi.com/.../0b06eda14f86904e772113776c11034e, what I changed is "nrf_esb_config.mode = NRF_ESB_MODE_PRX". It will hit the app_error_fault_handler after few seconds.
Both PTX and PRX run at PCA10040(V1.1.0 2016.11), you can find the code in this attachment below, thank you very much!