nrf21540 gain control

Hi All!

Hope you are doing well. I am using NCS 2.0.2 and VSCODE studio. Radio Test example using nrf52833+nrf21540(custom HW) . I want to ask a question how to control the gain of nrf21540 ? 

How to enable it in the radio test example and what will be the sequence of commands for that?

I am using a sequence of commands with only nrf52833DK to ensure FW is working. And output RSSI value is increasing.

output_power pos0dB  /3db /8db

 start_channel 20
 end_channel 60
 start_tx_carrier
 start_tx_sweep

Thanks & Regards,

Parents Reply
  • I just realized my already built project had options changed, and double checked with a fresh unmodified default build.
    There I see that CONFIG_FEM is not enabled by default. I am not sure why since it is supposed to default to n.

    CONFIG_FEM=y
    CONFIG_NRF21540_FEM=y

    The second option from my previous reply would successfully get the MPSL library into your Radio Test build. But the code relies on CONFIG_FEM to work correctly, so please use this option.

    Sorry for the inaccuracies in my previous reply.

Children
Related