nrf5340 audio occur HCI error after building network core

Hello,

I am using nrf5340 audio sample with the custom board.

I want to add my own FEM settings, so I modified the configuration as follows:

prj.conf

CONFIG_NCS_INCLUDE_RPMSG_CHILD_IMAGE=y # Make sure NCS build system will build network core

child_image\hci_rpmsg.conf

CONFIG_MPSL=y
CONFIG_MPSL_FEM=y
CONFIG_MPSL_FEM_SIMPLE_GPIO=y
CONFIG_BT_CTLR_TX_PWR_DYNAMIC_CONTROL=y
CONFIG_BT_CTLR_TX_PWR_PLUS_8=y
CONFIG_BT_CTLR_TX_PWR_ANTENNA=12

CONFIG_BT_EXT_ADV=y
CONFIG_BT_PER_ADV=y
CONFIG_BT_CTLR_ADV_EXT=y
CONFIG_BT_HCI=y
CONFIG_BT_HCI_VS_EXT=y

Execute Pristine build after modifying these configurations, a merged_domains.hex file will be generated.
I burned the merged_domains.hex into the nrf5340 module, and an error occurred:

I think this error should be caused by enabling CONFIG_NCS_INCLUDE_RPMSG_CHILD_IMAGE. Maybe I have some necessary CONFIG not added in hci_rpmsg.conf. Is there any reference material?

Parents Reply Children
  • LandyWang said:
    Thank you for your reply.

    No problem, I am happy to help! :) 

    LandyWang said:
    I will refer to this link to configure FEM, if there are other problems, I will report back.

    Great! Please do not hesitate to ask if you should encounter any issues or questions.

    Best regards,
    Karl

  • Hello again,

    I have a problem configuring FEM.

    I want to use Skyworks FEM with nRF5340 Audio application, but this link only provides how to use the nRF21540 front-end module with nRF5340 Audio application.

    I refer to here to set prj.conf and overlay as follows:

    <prj.conf>

    CONFIG_MPSL_FEM_GENERIC_TWO_CTRL_PINS_SUPPORT=y
    CONFIG_MPSL_FEM_SIMPLE_GPIO=y
    CONFIG_MPSL_FEM_NCS_SUPPORTED_FEM_USED=y

    <nrf5340_audio_dk_nrf5340_cpuapp.overlay>

    / {
        nrf_radio_fem: pa_lna {
            compatible = "skyworks,sky66112-11", "generic-fem-two-ctrl-pins";
            ctx-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
            ctx-settle-time-us = < 23 >;
            crx-gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
            crx-settle-time-us = < 5 >;
            cps-gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
            tx-gain-db = < 13 >;
            rx-gain-db = < 14 >;
        };
    };

    I'm wondering if nRF5340 Audio application supports Skyworks FEM.

  • Hi,

    The audio controller only supports the nRF21540 FEM. This is a unfortunate consequence of the controller being precompiled.

     

    Best regards,

    Bendik

Related