nrf5340 BLE FOTA With QSPI flash

Hi

From the past few days, I have been trying to perform FOTA with BLE using external QSPI flash. However, I'm unsure if I'm creating the proper files and adding the correct configuration.
I need to perform simultaneous updates for both cores of the nRF5340. 

This are the configuration i have done

1. prj.conf

# Enable the LBS service
CONFIG_BT_LBS=y
CONFIG_BT_LBS_POLL_BUTTON=y
CONFIG_DK_LIBRARY=y

CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048




CONFIG_BOOTLOADER_MCUBOOT=y
CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU=y


CONFIG_NRF53_UPGRADE_NETWORK_CORE=y
CONFIG_UPDATEABLE_IMAGE_NUMBER=2




2.cpuapp.overlay

/ {
    chosen {
        nordic,pm-ext-flash = &mx25r64;
    };
};

3. this are the files I have created
child_image folder
under child image
1.hci_ipc.conf
2.mcuboot.conf
3.mcuboot.overlay



4.mcuboot.overlay
   EMPTY FILE

5. hci_ipc.conf

CONFIG_SERIAL=y
CONFIG_LOG=y
CONFIG_LOG_DEFAULT_LEVEL=4
CONFIG_MAIN_STACK_SIZE=2048



6.mcuboot.conf

# Enable QSPI drivers for external flash
CONFIG_NORDIC_QSPI_NOR=y

# Increase max image sectors to handle larger slot sizes
CONFIG_BOOT_MAX_IMG_SECTORS=256

# Logging
CONFIG_LOG=y
CONFIG_MCUBOOT_LOG_LEVEL_WRN=y

# Enable simultaneous multi-core updates
CONFIG_NRF53_MULTI_IMAGE_UPDATE=y
CONFIG_UPDATEABLE_IMAGE_NUMBER=2
CONFIG_BOOT_UPGRADE_ONLY=y
CONFIG_PCD_APP=y

# Dependencies for CONFIG_NRF53_MULTI_IMAGE_UPDATE
CONFIG_FLASH=y
CONFIG_FLASH_SIMULATOR=y
CONFIG_FLASH_SIMULATOR_DOUBLE_WRITES=y
CONFIG_FLASH_SIMULATOR_STATS=n






this is the error I am getting right now 




I am new to the nRF controller. Kindly let me know what mistakes I am making. Based on the errors I’m seeing, there seems to be a partition issue. I need to know what configurations are required and where I need to apply them.

Additionally, I need to add a secure bootloader to this, and I would like to know how to do that as well.

Kindly support on this!!!!!!!!!!




Parents Reply
  • I have configured 
    mcuboot.cong

    CONFIG_BOOT_SIGNATURE_TYPE_ECDSA_P256=y

    custom_priv.pem

    -----BEGIN PRIVATE KEY-----
    MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgdiJYhJlSj/e5KZuw
    3u2fgv6z1fkBBr5fWTvQ4u2N0DKhRANCAASAyC69sKud5kULGkuNATqGyMIvffqu
    A1lHbcrS6A8y1q4mBubB5GEzk3XLgXiIDhqMrmojVeC8TTIBNqgezUq7
    -----END PRIVATE KEY-----

    CMakeLists.txt

    set(mcuboot_CONFIG_BOOT_SIGNATURE_KEY_FILE  "C:/ncs/peripheral_lbs_O!/custom_key_dir/custom_priv.pem")

    this is the error i am getting







Children
Related