Hi, we made a custom board with nrf52832 and flashed example code experimental_ble_app_blinky from sdk13.
We are trying to change the radio txpower other than 0db (default value).
While trying to set the values in radio txpower register before ble_stack_init() in main function, the value have been set.
But when I am reading the register value at the end of main(), it is reading default value(0db is set).
And while trying to set the values in radio txpower register after ble_stack_init() in main(), fatal error occurs.
Is there any dependency for setting TX power register?
To set the TX power level you have to call the function "sd_ble_gap_tx_power_set()", which is defined in ble_gap.h. The accepted values are: -40, -20, -16, -12, -8, -4, 0, and 4 dBm.
I set the TX power level to 4 dBm with the help of sd_ble_gap_tx_power_set().
The function returns success, but when I am reading the TX power level register, it is shown 0dBm.
Why is it so?
Where do you read the TX power level register? If the number you're reading is in MCP (Master Control Panel), it does not have any dependancy on the actual TX power level.
Have you experimented with various tx power levels and looked at your received signal strength (RSSI) to see if you get any difference there?
After using the sd_ble_gap_tx_power_set() for setting TX power level, power level increased and verified with the help of spectrum.
But register is not updated for new power level.
Thanks & regards