TAMPC on the nRF54L15-DK

Is it possible to use at least one channel of the TAMPC in a Zephyr application on the nRF54L15-DK? It appears that the channel 0 pins (p1.4 and p1.5) are used by the UART on the DK. According to the tables on the back of the DK board, p1.11 and p1.12 aren't connected to anything. Can those be used for channel 3 of the TAMPC? If so, how do I go about using them to test the PRBS tamper detection? I can compile this code for channel 0, but if I change the reference to channel 3 it doesn't compile.

int tampc_active_shield_init(tampc_callback_t callback)
{
    user_callback = callback;

    /* Clear any pending events */
    nrf_tampc_event_clear(NRF_TAMPC, NRF_TAMPC_EVENT_TAMPER);
#if NRF_TAMPC_HAS_EVENT_WRITE_ERROR
    nrf_tampc_event_clear(NRF_TAMPC, NRF_TAMPC_EVENT_WRITE_ERROR);
#endif

    /* Enable active shield channel 3 */
#if NRF_TAMPC_HAS_ACTIVE_SHIELD_CHANNELS
    nrf_tampc_activeshield_channel_enable(NRF_TAMPC, NRF_TAMPC_ACTIVESHIELD_CHANNEL_3_MASK);
    printk("Active shield channel 3 enabled\n");
#else
    printk("Active shield channels not available on this device\n");
    return -ENOTSUP;
#endif

    /* Enable TAMPER interrupt */
    nrf_tampc_int_enable(NRF_TAMPC, NRF_TAMPC_INT_TAMPER_MASK);

    /* Connect and enable IRQ - TAMPC_IRQn is 220 on nRF54L15 */
    IRQ_CONNECT(TAMPC_IRQn, 1, tampc_irq_handler, NULL, 0);
    irq_enable(TAMPC_IRQn);

    printk("TAMPC initialized, IRQn=%d\n", TAMPC_IRQn);
    printk("INTENSET=0x%08x\n", nrf_tampc_int_enable_check(NRF_TAMPC, NRF_TAMPC_ALL_INTS_MASK));

    return 0;
}

Overlay for configuring p1.11 and p1.12:
/&peripheral_domain {
    tamper0: tampc@5003a000 {
        compatible = "nordic,nrf54l15-tampc";
        reg = <0x5003A000 0x1000>;
        channel-count = <4>;

        /* ASO3 = P1.11, ASI3 = P1.12 */
        aso-pins = <&gpio1 11 GPIO_ACTIVE_HIGH>;
        asi-pins = <&gpio1 12 GPIO_ACTIVE_HIGH>;
    };
};

Parents
  • Hi, 

    What NCS version are you using?

    I can compile this code for channel 0, but if I change the reference to channel 3 it doesn't compile.

    How does it not compile? Could you elaborate further or provide the log?

    Regards,
    Amanda H.

  • Hi Amanda. I'm building using the nRF extensions in VS Code. NCS version 3.2.1.
    Build log attached.

    Executing task: nRF Connect: Build [incremental]: beacon1/build/beacon1 
    
    Building beacon1
    west build --build-dir c:/Users/12162/beacon1/build --domain beacon1
    
    -- west build: building domain(s): beacon1
    [0/1] Re-running CMake...
    Loading Zephyr default modules (Zephyr base (cached)).
    -- Application: C:/Users/12162/beacon1
    -- CMake version: 3.21.0
    -- Cache files will be written to: C:/ncs/v3.2.1/zephyr/.cache
    -- Zephyr version: 4.2.99 (C:/ncs/v3.2.1/zephyr)
    -- Found west (found suitable version "1.4.0", minimum required is "0.14.0")
    -- Board: nrf54l15dk, qualifiers: nrf54l15/cpuapp
    -- Found host-tools: zephyr 0.17.0 (C:/ncs/toolchains/66cdf9b75e/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.17.0 (C:/ncs/toolchains/66cdf9b75e/opt/zephyr-sdk)
    -- Found BOARD.dts: C:/ncs/v3.2.1/zephyr/boards/nordic/nrf54l15dk/nrf54l15dk_nrf54l15_cpuapp.dts
    -- Generated zephyr.dts: C:/Users/12162/beacon1/build/beacon1/zephyr/zephyr.dts
    -- Generated pickled edt: C:/Users/12162/beacon1/build/beacon1/zephyr/edt.pickle
    -- Generated devicetree_generated.h: C:/Users/12162/beacon1/build/beacon1/zephyr/include/generated/zephyr/devicetree_generated.h
    Parsing C:/ncs/v3.2.1/zephyr/Kconfig
    Loaded configuration 'C:/Users/12162/beacon1/build/beacon1/zephyr/.config'
    Merged configuration 'C:/Users/12162/beacon1/build/beacon1/zephyr/.config.sysbuild'
    No change to configuration in 'C:/Users/12162/beacon1/build/beacon1/zephyr/.config'
    No change to Kconfig header in 'C:/Users/12162/beacon1/build/beacon1/zephyr/include/generated/zephyr/autoconf.h'
    -- Found gen_kobject_list: C:/ncs/v3.2.1/zephyr/scripts/build/gen_kobject_list.py
    CMake Warning at C:/ncs/v3.2.1/zephyr/CMakeLists.txt:2321 (message):
      __ASSERT() statements are globally ENABLED
    
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/Users/12162/beacon1/build/beacon1
    [1/249] Building C object modules/hal_nordic/modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/ncs/v3.2.1/modules/hal/no[3/249] Building C object CMakeFiles/app.dir/src/main.c.obj
    FAILED: CMakeFiles/app.dir/src/main.c.obj
    C:\ncs\toolchains\66cdf9b75e\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DK_HEAP_MEM_POOL_SIZE=0 -DMBEDTLS_CONFIG_FILE=\"nrf-config.h\" -DMBEDTLS_PSA_CRYPTO_CONFIG_FILE=\"nrf-
    psa-crypto-config.h\" -DMBEDTLS_PSA_CRYPTO_USER_CONFIG_FILE=\"nrf-psa-crypto-user-config.h\" -DNRF54L15_XXAA -DNRF_APPLICATION -DNRF_CONFIG_CPU_FREQ_MHZ=128 -DPICOLIBC_LONG_LONG_PRINTF_SCANF -DUSE_PAR
    TITION_MANAGER=1 -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -IC:/ncs/v3.2.1/nrf/drivers/mpsl/clock_control -IC:/Users/12162/beacon1/build/beacon1/zephyr/include/generated/zephyr -IC
    :/ncs/v3.2.1/zephyr/include -IC:/Users/12162/beacon1/build/beacon1/zephyr/include/generated -IC:/ncs/v3.2.1/zephyr/soc/nordic -IC:/ncs/v3.2.1/zephyr/soc/nordic/nrf54l/. -IC:/ncs/v3.2.1/zephyr/soc/nord
    ic/common/. -IC:/ncs/v3.2.1/zephyr/subsys/bluetooth -IC:/ncs/v3.2.1/nrf/include -IC:/ncs/v3.2.1/nrf/lib/multithreading_lock/. -IC:/ncs/v3.2.1/nrf/subsys/bluetooth/controller/. -IC:/ncs/v3.2.1/nrf/test
    s/include -IC:/ncs/v3.2.1/modules/hal/cmsis_6/CMSIS/Core/Include -IC:/ncs/v3.2.1/zephyr/modules/cmsis_6/. -IC:/ncs/v3.2.1/nrf/modules/hal_nordic/. -IC:/ncs/v3.2.1/modules/hal/nordic/nrfx -IC:/ncs/v3.2
    .1/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v3.2.1/modules/hal/nordic/nrfx/bsp/stable -IC:/ncs/v3.2.1/modules/hal/nordic/nrfx/bsp/stable/templates -IC:/ncs/v3.2.1/zephyr/modules/hal_nordic/nrf
    x/. -IC:/ncs/v3.2.1/nrfxlib/softdevice_controller/include -IC:/ncs/v3.2.1/nrfxlib/mpsl/fem/common/include -IC:/ncs/v3.2.1/nrfxlib/mpsl/fem/nrf21540_gpio/include -IC:/ncs/v3.2.1/nrfxlib/mpsl/fem/nrf215
    40_gpio_spi/include -IC:/ncs/v3.2.1/nrfxlib/mpsl/fem/nrf2220/include -IC:/ncs/v3.2.1/nrfxlib/mpsl/fem/nrf2240/include -IC:/ncs/v3.2.1/nrfxlib/mpsl/fem/nrf22xx/include -IC:/ncs/v3.2.1/nrfxlib/mpsl/fem/
    simple_gpio/include -IC:/ncs/v3.2.1/nrfxlib/mpsl/fem/include -IC:/ncs/v3.2.1/nrfxlib/mpsl/fem/include/protocol -IC:/ncs/v3.2.1/nrfxlib/mpsl/include -IC:/ncs/v3.2.1/nrfxlib/mpsl/include/protocol -IC:/U
    sers/12162/beacon1/build/beacon1/generated/library_nrf_security_psa -IC:/ncs/v3.2.1/nrf/subsys/nrf_security/include -IC:/ncs/v3.2.1/modules/crypto/oberon-psa-crypto/oberon/drivers -IC:/ncs/v3.2.1/nrf/
    subsys/nrf_security/src/threading/include -IC:/ncs/v3.2.1/nrf/subsys/nrf_security/src/utils -IC:/ncs/v3.2.1/nrf/subsys/nrf_security/src/drivers/cracen/common/include -IC:/ncs/v3.2.1/nrf/subsys/nrf_sec
    urity/src/drivers/cracen/sxsymcrypt/include -IC:/ncs/v3.2.1/nrf/subsys/nrf_security/src/drivers/cracen/silexpk/target/baremetal_ba414e_with_ik -IC:/ncs/v3.2.1/nrf/subsys/nrf_security/src/drivers/crace
    n/silexpk/include -IC:/ncs/v3.2.1/nrf/subsys/nrf_security/src/drivers/cracen/cracenpsa/include -IC:/ncs/v3.2.1/modules/crypto/oberon-psa-crypto/include -IC:/ncs/v3.2.1/modules/crypto/oberon-psa-crypto
    /library -IC:/ncs/v3.2.1/modules/crypto/mbedtls/library -IC:/ncs/v3.2.1/modules/crypto/mbedtls/include -IC:/ncs/v3.2.1/modules/crypto/mbedtls/include/library -IC:/ncs/v3.2.1/nrfxlib/crypto/nrf_oberon/
    include -IC:/ncs/v3.2.1/nrfxlib/crypto/nrf_oberon/include/mbedtls -isystem C:/ncs/v3.2.1/zephyr/lib/libc/common/include -fno-strict-aliasing -Og -imacros C:/Users/12162/beacon1/build/beacon1/zephyr/in
    clude/generated/zephyr/autoconf.h -fno-printf-return-value -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee -mtp=soft --sysroot=C:/ncs/toolch
    ains/66cdf9b75e/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/v3.2.1/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wdouble-
    promotion -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -ftls-model=local-exec -fno-reord
    er-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=C:/Users/12162/beacon1=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v3.2.1/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v3.2.1=WEST_
    TOPDIR -ffunction-sections -fdata-sections -specs=picolibc.specs -std=c99 -MD -MT CMakeFiles/app.dir/src/main.c.obj -MF CMakeFiles\app.dir\src\main.c.obj.d -o CMakeFiles/app.dir/src/main.c.obj -c C:/U
    sers/12162/beacon1/src/main.c
    C:/Users/12162/beacon1/src/main.c: In function 'tampc_active_shield_init':
    C:/Users/12162/beacon1/src/main.c:138:54: error: 'NRF_TAMPC_ACTIVESHIELD_CHANNEL_3_MASK' undeclared (first use in this function); did you mean 'NRF_TAMPC_ACTIVESHIELD_CHANNEL_1_MASK'?
      138 |     nrf_tampc_activeshield_channel_enable(NRF_TAMPC, NRF_TAMPC_ACTIVESHIELD_CHANNEL_3_MASK);
          |                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          |                                                      NRF_TAMPC_ACTIVESHIELD_CHANNEL_1_MASK
    C:/Users/12162/beacon1/src/main.c:138:54: note: each undeclared identifier is reported only once for each function it appears in
    C:/Users/12162/beacon1/src/main.c: In function 'tampc_disable':
    C:/Users/12162/beacon1/src/main.c:163:55: error: 'NRF_TAMPC_ACTIVESHIELD_CHANNEL_3_MASK' undeclared (first use in this function); did you mean 'NRF_TAMPC_ACTIVESHIELD_CHANNEL_1_MASK'?
      163 |     nrf_tampc_activeshield_channel_disable(NRF_TAMPC, NRF_TAMPC_ACTIVESHIELD_CHANNEL_3_MASK);
          |                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          |                                                       NRF_TAMPC_ACTIVESHIELD_CHANNEL_1_MASK
    [15/249] Building C object modules/hal_nordic/modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/ncs/v3.2.1/modules/hal/n[16/249] Building C object modules/hal_nordic/modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/ncs/v3.2.1/modules/hal/nordic/nrfx/drivers/src/nrfx_gpiote.c.obj
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\66cdf9b75e\opt\bin\cmake.EXE' --build C:/Users/12162/beacon1/build/beacon1

Reply
  • Hi Amanda. I'm building using the nRF extensions in VS Code. NCS version 3.2.1.
    Build log attached.

    Executing task: nRF Connect: Build [incremental]: beacon1/build/beacon1 
    
    Building beacon1
    west build --build-dir c:/Users/12162/beacon1/build --domain beacon1
    
    -- west build: building domain(s): beacon1
    [0/1] Re-running CMake...
    Loading Zephyr default modules (Zephyr base (cached)).
    -- Application: C:/Users/12162/beacon1
    -- CMake version: 3.21.0
    -- Cache files will be written to: C:/ncs/v3.2.1/zephyr/.cache
    -- Zephyr version: 4.2.99 (C:/ncs/v3.2.1/zephyr)
    -- Found west (found suitable version "1.4.0", minimum required is "0.14.0")
    -- Board: nrf54l15dk, qualifiers: nrf54l15/cpuapp
    -- Found host-tools: zephyr 0.17.0 (C:/ncs/toolchains/66cdf9b75e/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.17.0 (C:/ncs/toolchains/66cdf9b75e/opt/zephyr-sdk)
    -- Found BOARD.dts: C:/ncs/v3.2.1/zephyr/boards/nordic/nrf54l15dk/nrf54l15dk_nrf54l15_cpuapp.dts
    -- Generated zephyr.dts: C:/Users/12162/beacon1/build/beacon1/zephyr/zephyr.dts
    -- Generated pickled edt: C:/Users/12162/beacon1/build/beacon1/zephyr/edt.pickle
    -- Generated devicetree_generated.h: C:/Users/12162/beacon1/build/beacon1/zephyr/include/generated/zephyr/devicetree_generated.h
    Parsing C:/ncs/v3.2.1/zephyr/Kconfig
    Loaded configuration 'C:/Users/12162/beacon1/build/beacon1/zephyr/.config'
    Merged configuration 'C:/Users/12162/beacon1/build/beacon1/zephyr/.config.sysbuild'
    No change to configuration in 'C:/Users/12162/beacon1/build/beacon1/zephyr/.config'
    No change to Kconfig header in 'C:/Users/12162/beacon1/build/beacon1/zephyr/include/generated/zephyr/autoconf.h'
    -- Found gen_kobject_list: C:/ncs/v3.2.1/zephyr/scripts/build/gen_kobject_list.py
    CMake Warning at C:/ncs/v3.2.1/zephyr/CMakeLists.txt:2321 (message):
      __ASSERT() statements are globally ENABLED
    
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/Users/12162/beacon1/build/beacon1
    [1/249] Building C object modules/hal_nordic/modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/ncs/v3.2.1/modules/hal/no[3/249] Building C object CMakeFiles/app.dir/src/main.c.obj
    FAILED: CMakeFiles/app.dir/src/main.c.obj
    C:\ncs\toolchains\66cdf9b75e\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DK_HEAP_MEM_POOL_SIZE=0 -DMBEDTLS_CONFIG_FILE=\"nrf-config.h\" -DMBEDTLS_PSA_CRYPTO_CONFIG_FILE=\"nrf-
    psa-crypto-config.h\" -DMBEDTLS_PSA_CRYPTO_USER_CONFIG_FILE=\"nrf-psa-crypto-user-config.h\" -DNRF54L15_XXAA -DNRF_APPLICATION -DNRF_CONFIG_CPU_FREQ_MHZ=128 -DPICOLIBC_LONG_LONG_PRINTF_SCANF -DUSE_PAR
    TITION_MANAGER=1 -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -IC:/ncs/v3.2.1/nrf/drivers/mpsl/clock_control -IC:/Users/12162/beacon1/build/beacon1/zephyr/include/generated/zephyr -IC
    :/ncs/v3.2.1/zephyr/include -IC:/Users/12162/beacon1/build/beacon1/zephyr/include/generated -IC:/ncs/v3.2.1/zephyr/soc/nordic -IC:/ncs/v3.2.1/zephyr/soc/nordic/nrf54l/. -IC:/ncs/v3.2.1/zephyr/soc/nord
    ic/common/. -IC:/ncs/v3.2.1/zephyr/subsys/bluetooth -IC:/ncs/v3.2.1/nrf/include -IC:/ncs/v3.2.1/nrf/lib/multithreading_lock/. -IC:/ncs/v3.2.1/nrf/subsys/bluetooth/controller/. -IC:/ncs/v3.2.1/nrf/test
    s/include -IC:/ncs/v3.2.1/modules/hal/cmsis_6/CMSIS/Core/Include -IC:/ncs/v3.2.1/zephyr/modules/cmsis_6/. -IC:/ncs/v3.2.1/nrf/modules/hal_nordic/. -IC:/ncs/v3.2.1/modules/hal/nordic/nrfx -IC:/ncs/v3.2
    .1/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v3.2.1/modules/hal/nordic/nrfx/bsp/stable -IC:/ncs/v3.2.1/modules/hal/nordic/nrfx/bsp/stable/templates -IC:/ncs/v3.2.1/zephyr/modules/hal_nordic/nrf
    x/. -IC:/ncs/v3.2.1/nrfxlib/softdevice_controller/include -IC:/ncs/v3.2.1/nrfxlib/mpsl/fem/common/include -IC:/ncs/v3.2.1/nrfxlib/mpsl/fem/nrf21540_gpio/include -IC:/ncs/v3.2.1/nrfxlib/mpsl/fem/nrf215
    40_gpio_spi/include -IC:/ncs/v3.2.1/nrfxlib/mpsl/fem/nrf2220/include -IC:/ncs/v3.2.1/nrfxlib/mpsl/fem/nrf2240/include -IC:/ncs/v3.2.1/nrfxlib/mpsl/fem/nrf22xx/include -IC:/ncs/v3.2.1/nrfxlib/mpsl/fem/
    simple_gpio/include -IC:/ncs/v3.2.1/nrfxlib/mpsl/fem/include -IC:/ncs/v3.2.1/nrfxlib/mpsl/fem/include/protocol -IC:/ncs/v3.2.1/nrfxlib/mpsl/include -IC:/ncs/v3.2.1/nrfxlib/mpsl/include/protocol -IC:/U
    sers/12162/beacon1/build/beacon1/generated/library_nrf_security_psa -IC:/ncs/v3.2.1/nrf/subsys/nrf_security/include -IC:/ncs/v3.2.1/modules/crypto/oberon-psa-crypto/oberon/drivers -IC:/ncs/v3.2.1/nrf/
    subsys/nrf_security/src/threading/include -IC:/ncs/v3.2.1/nrf/subsys/nrf_security/src/utils -IC:/ncs/v3.2.1/nrf/subsys/nrf_security/src/drivers/cracen/common/include -IC:/ncs/v3.2.1/nrf/subsys/nrf_sec
    urity/src/drivers/cracen/sxsymcrypt/include -IC:/ncs/v3.2.1/nrf/subsys/nrf_security/src/drivers/cracen/silexpk/target/baremetal_ba414e_with_ik -IC:/ncs/v3.2.1/nrf/subsys/nrf_security/src/drivers/crace
    n/silexpk/include -IC:/ncs/v3.2.1/nrf/subsys/nrf_security/src/drivers/cracen/cracenpsa/include -IC:/ncs/v3.2.1/modules/crypto/oberon-psa-crypto/include -IC:/ncs/v3.2.1/modules/crypto/oberon-psa-crypto
    /library -IC:/ncs/v3.2.1/modules/crypto/mbedtls/library -IC:/ncs/v3.2.1/modules/crypto/mbedtls/include -IC:/ncs/v3.2.1/modules/crypto/mbedtls/include/library -IC:/ncs/v3.2.1/nrfxlib/crypto/nrf_oberon/
    include -IC:/ncs/v3.2.1/nrfxlib/crypto/nrf_oberon/include/mbedtls -isystem C:/ncs/v3.2.1/zephyr/lib/libc/common/include -fno-strict-aliasing -Og -imacros C:/Users/12162/beacon1/build/beacon1/zephyr/in
    clude/generated/zephyr/autoconf.h -fno-printf-return-value -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee -mtp=soft --sysroot=C:/ncs/toolch
    ains/66cdf9b75e/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/v3.2.1/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wdouble-
    promotion -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -ftls-model=local-exec -fno-reord
    er-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=C:/Users/12162/beacon1=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v3.2.1/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v3.2.1=WEST_
    TOPDIR -ffunction-sections -fdata-sections -specs=picolibc.specs -std=c99 -MD -MT CMakeFiles/app.dir/src/main.c.obj -MF CMakeFiles\app.dir\src\main.c.obj.d -o CMakeFiles/app.dir/src/main.c.obj -c C:/U
    sers/12162/beacon1/src/main.c
    C:/Users/12162/beacon1/src/main.c: In function 'tampc_active_shield_init':
    C:/Users/12162/beacon1/src/main.c:138:54: error: 'NRF_TAMPC_ACTIVESHIELD_CHANNEL_3_MASK' undeclared (first use in this function); did you mean 'NRF_TAMPC_ACTIVESHIELD_CHANNEL_1_MASK'?
      138 |     nrf_tampc_activeshield_channel_enable(NRF_TAMPC, NRF_TAMPC_ACTIVESHIELD_CHANNEL_3_MASK);
          |                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          |                                                      NRF_TAMPC_ACTIVESHIELD_CHANNEL_1_MASK
    C:/Users/12162/beacon1/src/main.c:138:54: note: each undeclared identifier is reported only once for each function it appears in
    C:/Users/12162/beacon1/src/main.c: In function 'tampc_disable':
    C:/Users/12162/beacon1/src/main.c:163:55: error: 'NRF_TAMPC_ACTIVESHIELD_CHANNEL_3_MASK' undeclared (first use in this function); did you mean 'NRF_TAMPC_ACTIVESHIELD_CHANNEL_1_MASK'?
      163 |     nrf_tampc_activeshield_channel_disable(NRF_TAMPC, NRF_TAMPC_ACTIVESHIELD_CHANNEL_3_MASK);
          |                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          |                                                       NRF_TAMPC_ACTIVESHIELD_CHANNEL_1_MASK
    [15/249] Building C object modules/hal_nordic/modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/ncs/v3.2.1/modules/hal/n[16/249] Building C object modules/hal_nordic/modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/ncs/v3.2.1/modules/hal/nordic/nrfx/drivers/src/nrfx_gpiote.c.obj
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\66cdf9b75e\opt\bin\cmake.EXE' --build C:/Users/12162/beacon1/build/beacon1

Children
  • Could you run "west update" under C:\NCS\v3.2.1? Let me know wether it can help or not. 

  • PS C:\ncs\v3.2.1> west update      
      File "C:\ncs\toolchains\66cdf9b75e\opt\bin\Scripts\west.exe", line 1
    SyntaxError: Non-UTF-8 code starting with '\x90' in file C:\ncs\toolchains\66cdf9b75e\opt\bin\Scripts\west.exe on line 1, but no encoding declared; see python.org/.../ for details
    PS C:\ncs\v3.2.1> 

  • Please provide the support information from the Welcome View. 

  • // IMPORTANT: The following data can contain sensitive or confidential information about your environment.
    // If you do not want others to see this information, make sure to remove it before sharing the data.
    
    // For help and support, visit Nordic Semiconductor's DevZone at https://devzone.nordicsemi.com/.
    
    {
      "platform": {
        "os": "win32",
        "osVersion": "Windows 11 Pro",
        "osKernel": "10.0.26100",
        "vscode": "1.108.2",
        "electron": "39.2.7",
        "node": "v22.21.1",
        "appName": "Visual Studio Code",
        "appHost": "desktop"
      },
      "system": {
        "date": "2026-01-29T21:21:16.892Z",
        "vscodeRoot": "c:\\Users\\12162\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app",
        "nrfConnectForDesktopInstalled": true,
        "vscodeUptime": "02:21:00",
        "osUptime": "21:45:07",
        "cpu": "Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz"
      },
      "workspace": {
        "name": "beacon1",
        "workspaceFile": null,
        "folders": [
          "c:\\Users\\12162\\beacon1"
        ]
      },
      "sdks": [
        {
          "version": "v3.2.1",
          "path": "c:\\ncs\\v3.2.1"
        }
      ],
      "activeBuild": "/Users/12162/beacon1/build/beacon1",
      "apps": [
        {
          "workspace": "c:\\Users\\12162\\beacon1",
          "uri": "c:\\Users\\12162\\beacon1",
          "buildConfigurations": [
            {
              "id": "/Users/12162/beacon1/build",
              "name": "build",
              "boardId": "nrf54l15dk/nrf54l15/cpuapp",
              "type": "Sysbuild",
              "isChild": false,
              "isStale": false,
              "taskBindings": {
                "build": [],
                "pristineBuild": [],
                "flash": [],
                "eraseAndFlash": []
              },
              "sdk": "c:\\ncs\\v3.2.1",
              "toolchain": "nRF Connect SDK Toolchain v3.2.1"
            },
            {
              "id": "/Users/12162/beacon1/build/beacon1",
              "name": "build/beacon1",
              "boardId": "nrf54l15dk/nrf54l15/cpuapp",
              "type": "Zephyr",
              "isChild": true,
              "isStale": false,
              "taskBindings": {
                "build": [],
                "pristineBuild": [],
                "flash": [],
                "eraseAndFlash": []
              },
              "sdk": "c:\\ncs\\v3.2.1",
              "toolchain": "nRF Connect SDK Toolchain v3.2.1"
            },
            {
              "id": "/Users/12162/beacon1/build_1",
              "name": "build_1",
              "boardId": "nrf54l15dk/nrf54l15/cpuapp",
              "type": "Sysbuild",
              "isChild": false,
              "isStale": false,
              "taskBindings": {
                "build": [],
                "pristineBuild": [],
                "flash": [],
                "eraseAndFlash": []
              },
              "sdk": "c:\\ncs\\v3.2.1",
              "toolchain": "nRF Connect SDK Toolchain v3.2.1"
            },
            {
              "id": "/Users/12162/beacon1/build_1/beacon1",
              "name": "build_1/beacon1",
              "boardId": "nrf54l15dk/nrf54l15/cpuapp",
              "type": "Zephyr",
              "isChild": true,
              "isStale": false,
              "taskBindings": {
                "build": [],
                "pristineBuild": [],
                "flash": [],
                "eraseAndFlash": []
              },
              "sdk": "c:\\ncs\\v3.2.1",
              "toolchain": "nRF Connect SDK Toolchain v3.2.1"
            }
          ]
        }
      ],
      "toolchains": [
        {
          "version": "3.2.1",
          "path": "c:\\ncs\\toolchains\\66cdf9b75e",
          "displayName": "nRF Connect SDK Toolchain v3.2.1",
          "compilerTools": [
            "Zephyr SDK (arm) 0.17.0",
            "Zephyr SDK (riscv) 0.17.0"
          ]
        }
      ],
      "connectedDevices": [
        {
          "serialNumber": "001057709903"
        }
      ],
      "tools": {
        "C:\\ncs\\toolchains\\66cdf9b75e\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gcc.exe": "0.17.0",
        "C:\\Program Files\\SEGGER\\JLink_V876\\JLink.exe": "8.76",
        "C:\\ncs\\toolchains\\66cdf9b75e\\nrfutil": "8.1.1",
        "C:\\ncs\\toolchains\\66cdf9b75e\\cmake": "3.21.0",
        "C:\\ncs\\toolchains\\66cdf9b75e\\opt\\bin\\Scripts\\west.exe": "1.4.0",
        "C:\\ncs\\toolchains\\66cdf9b75e\\opt\\bin\\python.exe": "3.12.4",
        "C:\\ncs\\toolchains\\66cdf9b75e\\opt\\bin\\ninja.exe": "1.10.2",
        "C:\\ncs\\toolchains\\66cdf9b75e\\opt\\bin\\gperf.exe": "3.1",
        "C:\\ncs\\toolchains\\66cdf9b75e\\opt\\bin\\dtc.exe": "1.4.7",
        "C:\\ncs\\toolchains\\66cdf9b75e\\opt\\bin\\gn.exe": "2223",
        "C:\\ncs\\toolchains\\66cdf9b75e\\mingw64\\bin\\git.exe": "git version 2.52.0.",
        "debugger (arm)": "c:\\ncs\\toolchains\\66cdf9b75e\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gdb.exe",
        "debugger (riscv)": "c:\\ncs\\toolchains\\66cdf9b75e\\opt\\zephyr-sdk\\riscv64-zephyr-elf\\bin\\riscv64-zephyr-elf-gdb.exe"
      },
      "nrfutil": {
        "nrfutil-device": {
          "version": "2.15.6",
          "binPath": "c:\\Users\\12162\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2026.1.1327-win32-x64\\platform\\nrfutil\\bin\\nrfutil-device",
          "jlinkInfo": {
            "name": "JlinkARM",
            "version": "JLink_V8.76",
            "versionFormat": "string"
          }
        },
        "nrfutil-sdk-manager": {
          "version": "1.9.3",
          "binPath": "c:\\Users\\12162\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2026.1.1327-win32-x64\\platform\\nrfutil\\bin\\nrfutil-sdk-manager"
        }
      },
      "environment": {
        "westEnv": {
          "HOME": "C:\\Users\\12162",
          "HOMEDRIVE": "C:",
          "HOMEPATH": "\\Users\\12162",
          "PATH": "C:\\ncs\\toolchains\\66cdf9b75e;C:\\ncs\\toolchains\\66cdf9b75e\\mingw64\\bin;C:\\ncs\\toolchains\\66cdf9b75e\\bin;C:\\ncs\\toolchains\\66cdf9b75e\\opt\\bin;C:\\ncs\\toolchains\\66cdf9b75e\\opt\\bin\\Scripts;c:/ncs/toolchains/66cdf9b75e\\opt/nanopb/generator-bin;C:\\ncs\\toolchains\\66cdf9b75e\\nrfutil\\bin;C:\\ncs\\toolchains\\66cdf9b75e\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin;C:\\ncs\\toolchains\\66cdf9b75e\\opt\\zephyr-sdk\\riscv64-zephyr-elf\\bin;c:\\Users\\12162\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2026.1.1327-win32-x64\\platform\\nrfutil\\lib\\nrfutil-sdk-manager;C:\\Program Files (x86)\\VMware\\VMware Workstation\\bin\\;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files\\dotnet\\;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\Client SDK\\ODBC\\170\\Tools\\Binn\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Graphviz\\bin;C:\\Program Files\\Pandoc\\;C:\\Program Files (x86)\\Windows Kits\\10\\Windows Performance Toolkit\\;C:\\Users\\12162\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\12162\\.dotnet\\tools;C:\\Program Files (x86)\\Nmap;C:\\Users\\12162\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;",
          "ZEPHYR_BASE": "c:\\ncs\\v3.2.1\\zephyr",
          "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
          "ZEPHYR_SDK_INSTALL_DIR": "c:\\ncs\\toolchains\\66cdf9b75e\\opt\\zephyr-sdk",
          "PYTHONPATH": "C:\\ncs\\toolchains\\66cdf9b75e\\opt\\bin;C:\\ncs\\toolchains\\66cdf9b75e\\opt\\bin\\Lib;C:\\ncs\\toolchains\\66cdf9b75e\\opt\\bin\\Lib\\site-packages"
        },
        "inherited": {
          "HOME": "C:\\Users\\12162",
          "HOMEDRIVE": "C:",
          "HOMEPATH": "\\Users\\12162",
          "Path": "C:\\Program Files (x86)\\VMware\\VMware Workstation\\bin\\;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files\\dotnet\\;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\Client SDK\\ODBC\\170\\Tools\\Binn\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Graphviz\\bin;C:\\Program Files\\Pandoc\\;C:\\Program Files (x86)\\Windows Kits\\10\\Windows Performance Toolkit\\;C:\\Users\\12162\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\12162\\.dotnet\\tools;C:\\Program Files (x86)\\Nmap;C:\\Users\\12162\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\ncs\\toolchains\\66cdf9b75e\\opt\\bin\\Scripts;",
          "PATH": "C:\\Program Files (x86)\\VMware\\VMware Workstation\\bin\\;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files\\dotnet\\;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\Client SDK\\ODBC\\170\\Tools\\Binn\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Graphviz\\bin;C:\\Program Files\\Pandoc\\;C:\\Program Files (x86)\\Windows Kits\\10\\Windows Performance Toolkit\\;C:\\Users\\12162\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\12162\\.dotnet\\tools;C:\\Program Files (x86)\\Nmap;C:\\Users\\12162\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\ncs\\toolchains\\66cdf9b75e\\opt\\bin\\Scripts;"
        }
      },
      "terminal": {
        "defaultProfile": null
      },
      "config": {
        "nordic-semiconductor.nrf-connect": {
          "ozonePath": "",
          "applications": [],
          "applicationOptions": {},
          "west": {
            "env": {
              "$base": "terminal"
            },
            "verbose": ""
          },
          "boardRoots": [],
          "taskBindings": {},
          "debugging": {
            "flash": true,
            "bindings": {},
            "justMyCode": false,
            "focusOnNrfDebug": true
          },
          "activeAppFollowActiveEditor": true,
          "flash": {
            "softreset": false,
            "erase": false,
            "recover": false
          },
          "enableTelemetry": false,
          "thirdpartyIntegration": {},
          "toolchainManager": {
            "indexURL": null,
            "installDirectory": null
          },
          "sdkManager": {
            "region": "default"
          },
          "defaultOpenAction": "ask",
          "terminalProfile": {
            "shell": {}
          }
        },
        "nordic-semiconductor.nrf-terminal": {
          "terminalMode": "character",
          "localEcho": false
        }
      },
      "extensions": {
        "internal": {
          "nordic-semiconductor.nrf-connect": {
            "version": "2026.1.1327",
            "path": "c:\\Users\\12162\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2026.1.1327-win32-x64",
            "isActive": true
          },
          "nordic-semiconductor.nrf-terminal": {
            "version": "2026.1.235",
            "path": "c:\\Users\\12162\\.vscode\\extensions\\nordic-semiconductor.nrf-terminal-2026.1.235",
            "isActive": true
          },
          "nordic-semiconductor.nrf-devicetree": {
            "version": "2026.1.448",
            "path": "c:\\Users\\12162\\.vscode\\extensions\\nordic-semiconductor.nrf-devicetree-2026.1.448",
            "isActive": true
          },
          "nordic-semiconductor.nrf-kconfig": {
            "version": "2026.1.230",
            "path": "c:\\Users\\12162\\.vscode\\extensions\\nordic-semiconductor.nrf-kconfig-2026.1.230",
            "isActive": true
          }
        },
        "external": {
          "marus25.cortex-debug": null,
          "ms-vscode.cpptools": "1.29.3",
          "ms-vscode.js-debug": "1.105.0",
          "ms-vscode.js-debug-companion": "1.1.3",
          "ms-vscode.vscode-js-profile-table": "1.0.10",
          "ms-vscode.cmake-tools": "1.22.26",
          "ms-vscode.cpptools-extension-pack": "1.3.1",
          "ms-vscode.cpptools-themes": "2.0.0",
          "trond-snekvik.gnu-mapfiles": "1.1.0"
        }
      }
    }
    

  • Please ensure to use the nRF Connect SDK Command Prompt and run "python -m west update". 

Related