I am unable to set the PA/LNA Mode on NRF52832 using SDK 14.2 ( Soft Device Version S132 5.0 ) using the Fansttel BT832X SoC.
i have used the exact function on the below link, and I am calling this function straight from the main() handler at the beginning:
https://devzone.nordicsemi.com/b/blog/posts/pa-lna-support-in-s132.
After setting and enabling the given PA/LNA GPIOs i am getting the following error:
err_code = sd_ble_opt_set(BLE_COMMON_OPT_PA_LNA, &opt);
It's returning error Code 2 above. (BLE_ERROR_INVALID_CONN_HANDLE).
APP_PA_PIN -- (17)For the the BT832X module, the GPIOs used for PA and LNA are:
APP_LNA_PIN -- (19).
Do let me know if I am missing something. Let me know if you need any further information.
Regards
Aditya