nRF5340 FOTA over BLE issue

Hi,

Iam using nRF5340 DK and nRF Connect SDK V.2.6.1.

Iam following the link

FOTA over BLE

In this one until 5th step it worked fine and while doing 6th step it is showing error
Here Iam using peripheral lbs example
Then I add MCUboot and fota over bluetooth low energy to the application and add an extra print to the main to generate a new file for dfu
Then update the firmware using device manager app and it worked
Then I tried simultaneous updates for both cores
For this I added step 6 procedures
After adding the line CONFIG_UPDATEABLE_IMAGE_NUMBER=2 it is showing the errors

failed: "Missing partitions?"
87 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG)

 BUILD_ASSERT(FIXED_PARTITION_EXISTS(SLOT2_PARTITION) &&

CMake Warning at B:/Nordic/v2.6.1/nrf/cmake/partition_manager.cmake:79 (message):

CMake Warning at B:/Nordic/v2.6.1/nrf/modules/mcuboot/CMakeLists.txt:382 (message):

BT_MAX_CONN set more than once. Old value "16", new value "10".

CMake Warning at B:/Nordic/v2.6.1/nrf/subsys/bootloader/cmake/debug_keys.cmake:36 (message):

CMake Warning at B:/Nordic/v2.6.1/zephyr/CMakeLists.txt:1957 (message):

Kindly help me to find a solution for this 

Thankyou

Parents Reply
  • Hi,

    Thanks for the reply

    2146.peripheral_lbs_1.zip

    After adding this also it is showing errors

    error: 'PM_MCUBOOT_PRIMARY_1_ID' undeclared (first use in this function); did you mean 'PM_MCUBOOT_PRIMARY_ID'?
    48 | #define FLASH_AREA_IMAGE_1_SLOTS PM_MCUBOOT_PRIMARY_1_ID, PM_MCUBOOT_SECONDARY_1_ID
    | ^~~~~~~~~~~~~~~~~~~~~~~
    B:/Nordic/v2.6.1/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:55:29: note: in expansion of macro 'FLASH_AREA_IMAGE_1_SLOTS'
    55 | FLASH_AREA_IMAGE_1_SLOTS

    error: 'PM_MCUBOOT_SECONDARY_1_ID' undeclared (first use in this function); did you mean 'PM_MCUBOOT_SECONDARY_ID'?
    48 | #define FLASH_AREA_IMAGE_1_SLOTS PM_MCUBOOT_PRIMARY_1_ID, PM_MCUBOOT_SECONDARY_1_ID

    error: static assertion failed: "Missing partitions?"
    87 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG)

Children
  • Hi,

    Thankyou the example code you given worked well.

    1) But when I update both cores in nRF connect device manager app it is only working by giving      "Confirm only" option, other options are not working. Why these options are not working?

    2) In my requirement I want to update both application core and network core . In the tutorial I have a concern that until 5th step only the application core is changing or both cores are changing?

    3) I want to implement FOTA in my custom nRF5340 BLE project. Can I follow the steps in the          tutorial, or do I need to add any additional files?

    Thankyou

  • Hi,

    Sufaira N said:
    1) But when I update both cores in nRF connect device manager app it is only working by giving      "Confirm only" option, other options are not working. Why these options are not working?

    Simultaneous multi-image DFU on the nRF53 does not support reverting images (i.e. revert back to the original FW version if the image was not confirmed). Therefore, it should not make any difference if you mark the update for 'test' or 'confirm'.

    Sufaira N said:
    2) In my requirement I want to update both application core and network core . In the tutorial I have a concern that until 5th step only the application core is changing or both cores are changing?

    Both cores will be updated if you upload the dfu_application.zip.

    Sufaira N said:
    3) I want to implement FOTA in my custom nRF5340 BLE project. Can I follow the steps in the          tutorial, or do I need to add any additional files?

    The tutorial also applies to custom boards. 

Related