BLE FOTA with double application slot when update

Hi all,

i am using NCS 2.4.0

I have a question is there any possible that i can use double slot to update firmware over BLE FOTA?

I already look at the website below

https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/topic/exercise-3-fota-over-bluetooth-low-energy/

in lesson 8, exercise 1, there is a define call  CONFIG_SINGLE_APPLICATION_SLOT, which i can choice to use single slot to over write or double slot to swap.

but there is no  CONFIG_SINGLE_APPLICATION_SLOT at exercise 3 with BLE FOTA !

and i trace the code at mcuboot, it 

my ultimate objective is to apply both BLE FOTA and serial OTA(or uart) at same project

or is there anything that needs attention?

thanks.

Parents Reply Children
  • Hi swallowirritate,

    thanks for your answer

    I already use 
    CONFIG_BOOTLOADER_MCUBOOT=y
    CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU=y

    after I add CONFIG_UPDATEABLE_IMAGE_NUMBER=2

    I encounter a problem when i build the code

    /home/ncs/v2.4.0/nrf/include/flash_map_pm.h:41:22: error: 'PM_mcuboot_primary_1_ID' undeclared (first use in this function); did you mean 'PM_mcuboot_primary_ID'?
       41 | #define PM_ID(label) PM_##label##_ID
    /home/ncs/v2.4.0/nrf/include/flash_map_pm.h:41:22: error: 'PM_mcuboot_secondary_1_ID' undeclared (first use in this function); did you mean 'PM_mcuboot_secondary_ID'?
       41 | #define PM_ID(label) PM_##label##_ID

    do I need to add something else in my `prj.conf`?

Related