Using nrf5340dk with the nrf21540 EK

Hey I have a question regarding the setup described in the title. I have an application built upon the "Throughput Sample" of Nordic Semiconductor. To get a farther Distance, the Receiver gets an nrf21540 EK, connected via the Arduino Headers and a SMA cable. Now I added the Shield via Extra C-Make option in The VS Code Extension:

-DSHIELD=nrf21540ek and
-Dhci_ipc_SHIELD=nrf21540ek

However, this is the only thing I did so far. The resources online are diverse and I don't know where to start. Can i just plug it in now and it automatically
works? Do i need to change something in my code for it to work?
I use the 2.6.0 SDK in Visual Studio Code

An answer would help a lot! Thanks!
Parents Reply
  • I see, I'll try that, that does help a lot thanks!

     Regarding the next steps, I have two general questions, only if you have time to answer:

    1. )  I don't get the difference between 

    CONFIG_MPSL_FEM_NRF21540_TX_GAIN_DB and 
    CONFIG_MPSL_FEM_NRF21540_TX_GAIN_DB_POUTA or 
    CONFIG_MPSL_FEM_NRF21540_TX_GAIN_DB_POUTB respectively, what do they represent? Why are there 3? And more important, how does it relate to the 
    CONFIG_BT_CTLR_TX_PWR_ANTENNA? Do these values add up?
    2.) How do I select which antenna i want? Is the switching between the antennas automatic (regarding antenna diversity)
Children
Related