I am working long nrf52840 and trying to implement long range in my project. There were examples in SDK 15.2.0 but i couldn't find any example or post which is related to SDK 15.3.0. I tried my own modification like changing the advertising layer from 1 Mbps to CODED in ble_adverstisement.c file(15.3.0) but after i made the changes my device keep resetting. I did not make any other changes in sdk_config and main. file
p_advertising->adv_params.secondary_phy = BLE_GAP_PHY_CODED;
You have to set the adv_params.primary_phy to BLE_GAP_PHY_CODED.and check that the adv_params.properties.type is a EXTENDED option.
I have did this already in my code. so whenever ble advertising is starting the device is resetting. Legacy mode is working perfectly without any issue in the same code. The point where it is 'sd_ble_cfg_set()' function, so if i do the above change and comment out this part then it is advertising in legacy mode and once if i un comment the above function(already primary_phy and propertise.type are change to coded and extended respectively) then device resetting.
What could be the issue?
I'm not quite sure what you are talking about here, could you share your main.c file?
I can make the case private if you like.
you can find the demo code at https://github.com/jimmywong2003/nrf52-ble5-long-range-demo. this demo is only long range advertising.
yeah sure i can share