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 

  • I am also getting this errors

    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:

    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 

    and eventually build fails with error 

    are there any alternatives on sdk ver 2.8.0?

  • Hi,

    It should be possible to use CONFIG_DATE_TIME in v2.8.0 as well. It is used in several cellular samples. These samples also give the POSIX_CLOCK warning, but they still build successfully.

    Can you upload the full build log?

    Best regards,
    Marte

  • You are right, I did a pristine build and it build with no errors, just the warning to POSIX_CLOCK being enabled, thanks so much.