This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nrf52840 sdk 17 BLE_GAP_PHY_CODED

https://devzone.nordicsemi.com/f/nordic-q-a/54546/scanning-module-support-for-coded-phy-extended-advertisements

https://devzone.nordicsemi.com/f/nordic-q-a/40476/unable-to-convert-to-long-range-after-looking-at-umpteen-examples--

not working though have try those example chage to BLE_GAP_PHY_CODED

in interactive command sdk 17 s140(softdevices)

.active = 1,
.interval = SCAN_INTERVAL,
.window = SCAN_WINDOW,
.report_incomplete_evts = 0,
.extended = 1,
.timeout = SCAN_TIMEOUT,
.scan_phys = BLE_GAP_PHY_CODED,//BLE_GAP_PHY_1MBPS,
.filter_policy = BLE_GAP_SCAN_FP_ACCEPT_ALL,
.channel_mask = {0,0,0,0,0},

but only reply 

<error> ble_scan: sd_ble_gap_scan_start returned 0x7
<error> app: Fatal error

Related