NRF samples don't work on sdk v2.1.0

I'm working with NCS v2.1.0 and Visual Studio Code, I tried to build nrf/samples/bootloader but always:

warning: attempt to assign the value 'y' to the undefined symbol IS_SECURE_BOOTLOADER

I can run all other  samples on zephyr/samples without issues, not sure if a missed of something or some configuration to allow CMakeList.txt or Kconfig definitions in sdkv2.1.0/nrf/ folder or maybe it is not allowed to use those definitions anymore, what am I doing wrong?, thanks.

Parents Reply Children
  • Hello,

    JMA said:

    Visual Studio Code version: 1.72.2 (user setup)

    NRF Connect for VS Code v2022.10.30

    I have the same versions, so this should be ok.

    Q1: How have you installed NCS v2.1.0? With the Toolchain Manager or manually?

    I can run all other  samples on zephyr/samples without issues

    I read through your original post, and took note of this.
    Q2: Are you able to build any samples in nrf/samples or only from zephyr/samples?

    Below is the prj.conf which is included with my installation of NCS v2.1.0. I am able to build the sample with no errors.
    Q3: Does the prj.conf for the bootloader sample look the same as mine?

    #
    # Copyright (c) 2019 Nordic Semiconductor ASA
    #
    # SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
    #
    CONFIG_IS_SECURE_BOOTLOADER=y
    CONFIG_MULTITHREADING=n
    CONFIG_GPIO=n
    CONFIG_ARM_MPU=n
    CONFIG_PM=n
    CONFIG_TICKLESS_KERNEL=n
    CONFIG_ERRNO=n
    CONFIG_FPROTECT=y
    CONFIG_SECURE_BOOT_CRYPTO=y
    CONFIG_SECURE_BOOT_DEBUG=y
    CONFIG_SECURE_BOOT_VALIDATION=y
    CONFIG_SECURE_BOOT_STORAGE=y
    CONFIG_BL_ROT_VERIFY_EXT_API_ENABLED=y
    CONFIG_BL_SHA256_EXT_API_ENABLED=y
    CONFIG_BL_SECP256R1_EXT_API_ENABLED=y
    CONFIG_BL_VALIDATE_FW_EXT_API_ENABLED=y
    CONFIG_EXT_API_PROVIDE_EXT_API_ENABLED=y
    CONFIG_NRFX_NVMC=y
    CONFIG_MAIN_STACK_SIZE=2048
    CONFIG_TIMEOUT_64BIT=n
    
    # Disable asserts because of false positive when writing to OTP.
    CONFIG_ASSERT=n
    
    # Avoid triggering IRQs from the RTC
    CONFIG_NRF_RTC_TIMER=n
    

    If it is not the same, please make the necessary changes so that they are identical.

    Kind Regards,
    Maria

Related