Hi,
I needed assistance to get the SKY66403-11 FEM working with the Radio Test Example in VS Code, for certification testing (FCC, CE etc). I am using the NCS 2.2.0 SDK. I am using a custom board with nRF52840 SoC and it has the LFXO present.
I have added the device tree node as depicted below in the sample code, created as an existing project.:
nrf_radio_fem: SKY66403 { compatible = "skyworks,sky66403-11", "generic-fem-two-ctrl-pins"; ctx-gpios = <&gpio1 01 GPIO_ACTIVE_HIGH>; crx-gpios = <&gpio1 04 GPIO_ACTIVE_HIGH>; chl-gpios = <&gpio1 06 GPIO_ACTIVE_HIGH>; cps-gpios = <&gpio0 24 GPIO_ACTIVE_HIGH>; };
Are there any additional changes required beside these to be done to get the FEM working because while building this I get the following build error.
FAILED: CMakeFiles/app.dir/src/radio_cmd.c.obj C:\nordicsemi\toolchains\v2.2.0\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DNRF52840_XXAA -DUSE_PARTITION_MANAGER=0 -D__PROGRAM_START -D__ZEPHYR__=1 -IC:/nordicsemi/v2.2.0/zephyr/include -Izephyr/include/generated -IC:/nordicsemi/v2.2.0/zephyr/soc/arm/nordic_nrf/nrf52 -IC:/nordicsemi/v2.2.0/zephyr/lib/util/fnmatch/. -IC:/nordicsemi/v2.2.0/zephyr/soc/arm/nordic_nrf/common/. -IC:/nordicsemi/v2.2.0/nrf/include -IC:/nordicsemi/v2.2.0/nrf/lib/multithreading_lock/. -IC:/nordicsemi/v2.2.0/nrf/tests/include -IC:/nordicsemi/v2.2.0/modules/hal/cmsis/CMSIS/Core/Include -IC:/nordicsemi/v2.2.0/modules/hal/nordic/nrfx -IC:/nordicsemi/v2.2.0/modules/hal/nordic/nrfx/drivers/include -IC:/nordicsemi/v2.2.0/modules/hal/nordic/nrfx/mdk -IC:/nordicsemi/v2.2.0/zephyr/modules/hal_nordic/nrfx/. -IC:/nordicsemi/v2.2.0/modules/debug/segger/SEGGER -IC:/nordicsemi/v2.2.0/modules/debug/segger/Config -IC:/nordicsemi/v2.2.0/zephyr/modules/segger/. -IC:/nordicsemi/v2.2.0/nrfxlib/mpsl/include -IC:/nordicsemi/v2.2.0/nrfxlib/mpsl/include/protocol -I../../../bluetooth/direct_test_mode/src/fem -isystem C:/nordicsemi/v2.2.0/zephyr/lib/libc/minimal/include -isystem c:/nordicsemi/toolchains/v2.2.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/include -isystem c:/nordicsemi/toolchains/v2.2.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/include-fixed -isystem C:/nordicsemi/v2.2.0/nrfxlib/crypto/nrf_cc310_platform/include -fno-strict-aliasing -Os -imacros C:/nordicsemi/v2.2.0/nrf/samples/peripheral/radio_test/build_nofem/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=C:/nordicsemi/toolchains/v2.2.0/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/nordicsemi/v2.2.0/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=C:/nordicsemi/v2.2.0/nrf/samples/peripheral/radio_test=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/nordicsemi/v2.2.0/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/nordicsemi/v2.2.0=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT CMakeFiles/app.dir/src/radio_cmd.c.obj -MF CMakeFiles\app.dir\src\radio_cmd.c.obj.d -o CMakeFiles/app.dir/src/radio_cmd.c.obj -c ../src/radio_cmd.c c:\nordicsemi\v2.2.0\nrf\samples\peripheral\radio_test\src\radio_cmd.c:64:20: error: 'CONFIG_MPSL_FEM_NRF21540_TX_GAIN_DB' undeclared here (not in a function) 64 | .txpower = CONFIG_MPSL_FEM_NRF21540_TX_GAIN_DB, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PS: Just wanted to mention that I tried running the Radio Test Example directly without adding the support for the FEM and that works as expected.
Thanks in Advance