Errors when upgrading SDK to 2.8.0

I am trying to upgrade my project which is previously build with NRF connect SDK 2.6.1 to 2.8.0

I am getting this error while building

warning: NCS_SAMPLE_MCUMGR_BT_OTA_DFU (defined at
E:/ncs/v2.8.0/nrf\samples\common\mcumgr_bt_ota_dfu/Kconfig:9) was assigned the value 'y' but got the
value 'n'. Check these unsatisfied dependencies: BOOTLOADER_MCUBOOT (=n). See
docs.zephyrproject.org/.../kconfig.html and/or look up
NCS_SAMPLE_MCUMGR_BT_OTA_DFU in the menuconfig/guiconfig interface. The Application Development
Primer, Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual
might be helpful too.

in my prj.conf I already have 

# Enable mcumgr.
CONFIG_MCUMGR=y
# Ensure an MCUboot-compatible binary is generated.
CONFIG_BOOTLOADER_MCUBOOT=y
CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU=y
CONFIG_SECURE_BOOT=y
CONFIG_IMG_MANAGER=y
CONFIG_MCUBOOT_IMG_MANAGER=y
CONFIG_IMG_ERASE_PROGRESSIVELY=y
Parents
  • I am also getting this errors

    warning: Deprecated symbol PLATFORM_SPECIFIC_INIT is enabled.
    
    
    warning: Deprecated symbol POSIX_CLOCK is enabled.
    
    
    E:/project/prj.conf:146: warning: attempt to assign the value 'n' to the undefined symbol MCUMGR_TRANSPORT_BT_AUTHEN

    I have no PLATFORM_SPECIFIC_INIT or POSIX_CLOCK defined anywhere in the project

  • Hi,

    Regarding your first error, please try creating a sysbuild.conf file in your project directory and add the following to it:

    SB_CONFIG_BOOTLOADER_MCUBOOT=y

    For the second error, the CONFIG_MCUMGR_TRANSPORT_BT_AUTHEN has been replaced by CONFIG_MCUMGR_TRANSPORT_BT_PERM_RW in Zephyr v4.

    MOHAMED AHMED ALI MAHMOUD ELSABAGH said:
    I have no PLATFORM_SPECIFIC_INIT or POSIX_CLOCK defined anywhere in the project

    It is possible that they are selected by other options. For example, CONFIG_DATE_TIME CONFIG_POSIX_CLOCK and CONFIG_SOC_FAMILY_NRF selects CONFIG_PLATFORM_SPECIFIC_INIT.

    Best regards,
    Marte

  • Thanks so much for you reply, I need to use CONFIG_DATE_TIME in my application since the device has to keep track of current timestamp, once the device starts a central device connects to it and set the timestamp there, so I am using functions like date_time_set, date_time_now, date_time_clear & date_time_is_valid, this was working properly on previous SDK version but now if the CONFIG_DATE_TIME is enabled I get this warning 

    warning: Deprecated symbol POSIX_CLOCK is enabled.

    and eventually build fails with error 

    :/ncs/v2.8.0/zephyr/lib/posix/options/posix_clock.h:17:10: fatal error: zephyr/syscalls/posix_clock.h: No such file or directory
       17 | #include <zephyr/syscalls/posix_clock.h>
          |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    compilation terminated
    are there any alternatives on sdk ver 2.8.0?

Reply
  • Thanks so much for you reply, I need to use CONFIG_DATE_TIME in my application since the device has to keep track of current timestamp, once the device starts a central device connects to it and set the timestamp there, so I am using functions like date_time_set, date_time_now, date_time_clear & date_time_is_valid, this was working properly on previous SDK version but now if the CONFIG_DATE_TIME is enabled I get this warning 

    warning: Deprecated symbol POSIX_CLOCK is enabled.

    and eventually build fails with error 

    :/ncs/v2.8.0/zephyr/lib/posix/options/posix_clock.h:17:10: fatal error: zephyr/syscalls/posix_clock.h: No such file or directory
       17 | #include <zephyr/syscalls/posix_clock.h>
          |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    compilation terminated
    are there any alternatives on sdk ver 2.8.0?

Children
No Data
Related