ESL / nRF5340DK / nRF21540EK

I am experimenting with the Nordic ESL sample application.  The central_esl app is running on a nRF5340DK.  I would like to add the nRF21540EK to this to improve the range.  I have been following the suggestions here: Using nrf5340dk with the nrf21540 EK - Nordic Q&A - Nordic DevZone - Nordic DevZone.  Specifically, I have added the following to the build configuration:

However, the ESL sample application uses an older version of the SDK (v2.5.0) than in the linked post and, although the application builds successfully and I can run it, the nRF21540EK does not seem to be getting enabled.

I can see that 'nrf21540ek_fwd.overlay' is being added to the parent image but there is no overlay added to the hci_rpmsg child image, and there are no references to the default MPSL FEM settings in the output .conf file for the hci_rpmsg child image as there were in the linked post.

I've tried using '-Dhci_rpmsg_SHIELD=nrf21540ek' instead because I think SDK v2.5.0 pre-dates the name change from hci_rpmsg to hci_ipc, but that didn't work either.

How do I go about enabling the nrf21540?

Thanks

Scott

Parents Reply
  • In an attempt to rule out the hardware as the problem, I have now switched to the following setup:

    nRF52833DK + nRF21540EK

    SDK: v3.0.0

    I'm running the peripheral_uart sample app.

    -DSHIELD=nrf21540ek

    CONFIG_MPSL=y
    CONFIG_MPSL_FEM=y
    CONFIG_MPSL_FEM_NRF21540_GPIO=y
    CONFIG_MPSL_FEM_NRF21540_TX_GAIN_DB=20
    CONFIG_MPSL_FEM_NRF21540_RX_GAIN_DB=13
    CONFIG_MPSL_FEM_NRF21540_GPIO_SPI=y
    CONFIG_MPSL_FEM_NRF21540_TX_GAIN_DB_POUTA=20
    CONFIG_MPSL_FEM_NRF21540_TX_GAIN_DB_POUTB=10
    I'm still seeing significantly lower RSSIs when using the shield than without.  I've tried two different shields.
    All that leaves is the antenna.  I'm using this one: https://uk.rs-online.com/web/p/wifi-antennas/2035105.
    Is there an antenna that Nordic recommend?
    Thanks
    Scott
Children
  • Using the setup described above:

    nRF52833DK only build:

    nRF52833DK+nRF21540EK build:

    If I run the nRF52833DK+nRF21540EK build but don't plug in the shield (i.e. use the on-board antenna), the results are no different to when the shield is plugged in.  That might suggest that it's a configuration problem.

  • I have now tried running the SDK v3.0.0 peripheral_uart sample app across the following hardware combinations:

    - nRF5340DK, nRF52840DK, nRF52833DK, nRF21540DK,
    - nRF21540EK (x2)
    - Murata cable (x2)

    In ALL cases, I see the same behaviour: i.e. significantly lower RSSIs when using the shield than without.

    When building for the shield, I'm using the following setup:

    -DSHIELD=nrf21540ek

    CONFIG_MPSL=y
    CONFIG_MPSL_FEM=y
    CONFIG_MPSL_FEM_NRF21540_GPIO=y
    CONFIG_MPSL_FEM_NRF21540_TX_GAIN_DB=20
    CONFIG_MPSL_FEM_NRF21540_RX_GAIN_DB=13
    CONFIG_MPSL_FEM_NRF21540_GPIO_SPI=y
    CONFIG_MPSL_FEM_NRF21540_TX_GAIN_DB_POUTA=20
    CONFIG_MPSL_FEM_NRF21540_TX_GAIN_DB_POUTB=10

    The shield has power, and I can see the TX_EN and RX_EN lines toggling.  I have Molex antennas connected to both antenna ports on the shield.

    If I run the app on the nRF21540DK (built using the CONFIG_ items but not the -DSHIELD option) then the performance is no different to using one of the other DKs without the FEM.

    Can someone from Nordic please get back to me?  I'm sure the solution has to be something simple like a missing configuration item, but it really shouldn't be this hard to get an evaluation kit working out of the box.

    Thanks

    Scott

  • Hi,

    I am really sorry but I have not gotten around to test this myself.

    I am wondering if you can send me a picture of each end of the cable you have between the DK and FEM?

    Also, if you are able to connect ANT1 or ANT2 to a spectrum analyzer directly for comparison that would be helpful. That is what I plan to do when I get around to it.

    Kenneth

  • Looks like the latest update from you is missing the CONFIG_BT_CTLR_TX_PWR_ANTENNA=20.

    Kenneth

  • Adding CONFIG_BT_CTLR_TX_PWR_ANTENNA=20 seems to have improved things but the performance with the shield is still worse than without, just not by as much.

    The cable is this one: MXHT83QE3000 Murata Electronics | Connectors, Interconnects | DigiKey

      

    I don't have access to a spectrum analyser today but will do tomorrow. 

    Thanks

    Scott

Related