How to config the code to support Coded PHY

Dear Support Team

We would like to test the long range with the nRF5340 DK and nRF52833 DK, the nRF5340 DK runs the central_uart sample and the nRF52833DK runs the peripheral_uart sample in NCS. 

I used the below fouction update_phy() to update the PHY to Coded PHY and I call it from the callback founction connected() like the second picture below.

But the PHY couldn't be updated to the coded PHY.

I do no modification in the central_uart sample. The enclosed file is my peripheral_uart code. Could you guide me how to implement the Coded PHY between the central and the peripheral? The NCS version I use is the v2.4.0. Many thanks.

2843.peripheral_uart.7z

Related