nRF21540 is not compatible with nRF54L15

Hi,

Two month ago I have test nRF21540 and nRF54L15, they cannot word with each other.

However, I notice these days updated with

https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/app_dev/device_guides/fem/index.html 

 

I have tried again but it still cannot work

My config is

#FEM general
CONFIG_MPSL_FEM=y
CONFIG_MPSL=y
CONFIG_MPSL_FEM_NRF21540_GPIO=y
CONFIG_BT_CTLR_TX_PWR_DYNAMIC_CONTROL=y
CONFIG_MPSL_FEM_NRF21540_TX_GAIN_DB=20
CONFIG_MPSL_FEM_NRF21540_RX_GAIN_DB=13
CONFIG_MPSL_FEM_NRF21540_RUNTIME_PA_GAIN_CONTROL=y
CONFIG_BT_CTLR_TX_PWR_ANTENNA=20
# CONFIG_BT_CTLR_TX_PWR_PLUS_8=y

My overlay is:

/ {
	nrf_radio_fem: name_of_fem_node {
	   compatible  = "nordic,nrf21540-fem";
	   tx-en-gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
	   rx-en-gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
	   pdn-gpios   = <&gpio0 2 GPIO_ACTIVE_HIGH>;
		mode-gpios   = <&gpio0 3 GPIO_ACTIVE_HIGH>;
 };
}; //54L15

Parents
  • Hi,

    The nRF54L15 and nRF21540 are compatible. Can you expalin in more detail how it is not working?

  • There is no change on the RSSI when I connect as I shown

  • Can you elaborate on how you have connected it physically as well as the full configuration you are using?

  • Hi, sorry for the delay, I just find a time to test but I still cannot use the nRF21540,

    My overlay is: 

    &dppic10 {
    	status = "okay";
    };
    
    &ppib11 {
    	status = "okay";
    };
    
    &ppib21 {
    	status = "okay";
    };
    
    &dppic20 {
    	status = "okay";
    };
    
    &ppib22 {
    	status = "okay";
    };
    
    &ppib30 {
    	status = "okay";
    };
    
    &dppic30 {
    	status = "okay";
    };
    
    
    / {
    	nrf_radio_fem: name_of_fem_node {
    	   compatible  = "nordic,nrf21540-fem";
    	   tx-en-gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>;
    	   rx-en-gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>;
    	   pdn-gpios   = <&gpio1 2 GPIO_ACTIVE_HIGH>;
    		mode-gpios   = <&gpio1 3 GPIO_ACTIVE_HIGH>;
    		tx-en-settle-time-us = <12>;
    		rx-en-settle-time-us = <12>;
     };
    }; //54L15

    I have checked the document and it says:"Enable appropriate instances of the DPPIC and PPIB peripherals in the devicetree file" I have no idea about this so I have raise another ticket here

    My config is:

    #
    # Copyright (c) 2018 Nordic Semiconductor
    #
    # SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
    #
    
    # Enable the UART driver
    CONFIG_UART_ASYNC_API=y
    CONFIG_NRFX_UARTE0=y
    CONFIG_SERIAL=y
    
    CONFIG_GPIO=y
    
    # Make sure printk is printing to the UART console
    CONFIG_CONSOLE=y
    CONFIG_UART_CONSOLE=y
    
    CONFIG_HEAP_MEM_POOL_SIZE=2048
    
    CONFIG_BT=y
    CONFIG_BT_PERIPHERAL=y
    CONFIG_BT_DEVICE_NAME="ZDynamic test beacon"
    CONFIG_BT_MAX_CONN=1
    CONFIG_BT_MAX_PAIRED=1
    
    # Enable the NUS service
    CONFIG_BT_NUS=y
    
    # Enable bonding
    CONFIG_BT_SETTINGS=y
    CONFIG_FLASH=y
    CONFIG_FLASH_PAGE_LAYOUT=y
    CONFIG_FLASH_MAP=y
    
    # Enable DK LED and Buttons library
    CONFIG_DK_LIBRARY=y
    
    # This example requires more stack
    CONFIG_MAIN_STACK_SIZE=1152
    CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048
    
    # Config logger
    CONFIG_LOG=y
    CONFIG_USE_SEGGER_RTT=y
    CONFIG_LOG_BACKEND_RTT=y
    CONFIG_LOG_BACKEND_UART=n
    CONFIG_LOG_PRINTK=n
    
    CONFIG_ASSERT=y
    
    
    # #FEM EKEK
    # CONFIG_MPSL_FEM=y
    # CONFIG_MPSL=y
    # # CONFIG_MPSL_FEM_NRF21540_GPIO=y
    # # CONFIG_MPSL_FEM_NRF21540_GPIO_SPI=y EK用不上
    # CONFIG_BT_CTLR_TX_PWR_DYNAMIC_CONTROL=y
    # CONFIG_MPSL_FEM_NRF21540_TX_GAIN_DB=20
    # CONFIG_MPSL_FEM_NRF21540_RX_GAIN_DB=13
    # CONFIG_BT_CTLR_TX_PWR_ANTENNA=20
    
    
    #
    # Copyright (c) 2018 Nordic Semiconductor
    #
    # SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
    #
    
    # Enable the UART driver
    CONFIG_UART_ASYNC_API=y
    CONFIG_NRFX_UARTE0=y
    CONFIG_SERIAL=y
    
    CONFIG_GPIO=y
    
    # Make sure printk is printing to the UART console
    CONFIG_CONSOLE=y
    CONFIG_UART_CONSOLE=y
    
    CONFIG_HEAP_MEM_POOL_SIZE=2048
    
    CONFIG_BT=y
    CONFIG_BT_PERIPHERAL=y
    CONFIG_BT_DEVICE_NAME="ZDynamic test beacon"
    CONFIG_BT_MAX_CONN=1
    CONFIG_BT_MAX_PAIRED=1
    
    # Enable the NUS service
    CONFIG_BT_NUS=y
    
    # Enable bonding
    CONFIG_BT_SETTINGS=y
    CONFIG_FLASH=y
    CONFIG_FLASH_PAGE_LAYOUT=y
    CONFIG_FLASH_MAP=y
    
    # Enable DK LED and Buttons library
    CONFIG_DK_LIBRARY=y
    
    # This example requires more stack
    CONFIG_MAIN_STACK_SIZE=1152
    CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048
    
    # Config logger
    CONFIG_LOG=y
    CONFIG_USE_SEGGER_RTT=y
    CONFIG_LOG_BACKEND_RTT=y
    CONFIG_LOG_BACKEND_UART=n
    CONFIG_LOG_PRINTK=n
    
    CONFIG_ASSERT=y
    
    
    # #FEM EKEK
    # CONFIG_MPSL_FEM=y
    # CONFIG_MPSL=y
    # # CONFIG_MPSL_FEM_NRF21540_GPIO=y
    # # CONFIG_MPSL_FEM_NRF21540_GPIO_SPI=y EK用不上
    # CONFIG_BT_CTLR_TX_PWR_DYNAMIC_CONTROL=y
    # CONFIG_MPSL_FEM_NRF21540_TX_GAIN_DB=20
    # CONFIG_MPSL_FEM_NRF21540_RX_GAIN_DB=13
    # CONFIG_BT_CTLR_TX_PWR_ANTENNA=20
    
    
    #FEM general
    CONFIG_MPSL_FEM=y
    CONFIG_MPSL=y
    CONFIG_MPSL_FEM_NRF21540_GPIO=y
    CONFIG_BT_CTLR_TX_PWR_DYNAMIC_CONTROL=y
    CONFIG_MPSL_FEM_NRF21540_TX_GAIN_DB=20
    CONFIG_MPSL_FEM_NRF21540_RX_GAIN_DB=13
    CONFIG_MPSL_FEM_NRF21540_RUNTIME_PA_GAIN_CONTROL=y
    CONFIG_BT_CTLR_TX_PWR_ANTENNA=20
    CONFIG_NFCT_PINS_AS_GPIOS=y
    # CONFIG_BT_CTLR_TX_PWR_PLUS_8=y

    I have remove R21 R22 and short R33 R34. I have also added CONFIG_NFCT_PINS_AS_GPIOS =y

    The real diagram is like this:

    Could you help ne using nRF21540 on nRF54L15, thank you so much!

     

  • Hi,

    These configs look sensible assumign the pins etc are correct. Regarding the DPPIC and PPIB configurations you can copy the configuration from the documentation as you have.

    Did you test this? Does it build and work runtime? If not, in what way does it fail?

    Also, regarding your comment on change in RSSI, I take that to mean that you have tested with the nRF21540? Which HW are you testing that with? How are you testing and measuring?

  • Hi,

    Yes I have check this , the error will be:

    My comment on RSSI was wrong, as at that time I forget to add dppi ppib in overlay

    I am using nRF21540 DK and nrf54L15 DK to test

    Thank you!

Reply Children
No Data
Related