MPSL FEM Support Build Issues on NCS1.7.0

Hello,

I am having some build issues when attempting to add support for a Skyworks FEM to our application built with NCS 1.7.0 for a NRF52820 target. Our board file is based on the nrf52833dk_nrf52820 board file provided in the SDK. 

I have added the following to our proj.conf:

CONFIG_MPSL=y
CONFIG_MPSL_FEM=y
CONFIG_MPSL_FEM_SIMPLE_GPIO=y
I have added the following to our root devicetree node:

     nrf_radio_fem: pa_lna {
 
         compatible = "skyworks,sky66112-11", "generic-fem-two-ctrl-pins";
 
         ctx-gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>;
 
         crx-gpios = <&gpio0 30 GPIO_ACTIVE_HIGH>;
 
     };
Upon building I get an error in mpsl_fem.c that says: 'mpsl_fem_simple_gpio_interface_config_t' {aka 'struct <anonymous>'} has no member named 'ppi_channels'; did you mean 'dppi_channels'?
Tracing it down it seems that for some reason  #if defined(NRF52_SERIES) is false inside of mpsl_fem_config_simple_gpio.h

Am I doing something wrong with my build configuration or project configuration? Or is there some inherent problem with this SDK version and trying to turn on this feature. 
I have modified mpsl_fem_config_simple_gpio.h so that it doesn't check the NRF52_SERIES define. This builds and it seems that the fem is operating as expected. Of course we would like to find a solution to the issue so that we do not need to modify this file. 
Thank you
  • Hi Tyler

    That dependency should be one way though. If you select the nrf52833dk_nrf52820 board CONFIG_ARM_MPU will be set, but overriding CONFIG_ARM_MPU in your local configuration shouldn't somehow go back and mess with other board settings or defines. 

    Best regards
    Torbjørn

  • Related