How to change base address of HCI_IPC example

board : nRF5340

sdk-nrf : v2.7.99-cs2

Zephyr version: 3.6.99
I am following https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/app_dev/bootloaders_dfu/qspi_xip_split_image.html page and able to build nRF5340 bootloader , app , boN and HCI_IPC.
SB_CONFIG_BOOTLOADER_MCUBOOT=y
SB_CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY=y
SB_CONFIG_NETCORE_APP_UPDATE=y
SB_CONFIG_SECURE_BOOT_NETCORE=y
SB_CONFIG_QSPI_XIP_SPLIT_IMAGE=y

# This will enable the hci_ipc image for the network core, change to the desired image
SB_CONFIG_NETCORE_HCI_IPC=y
Output in build directory - (build/partitions_CPUNET.yml)
  • hci_ipc address = 0x1008800
  1. Does build/hci_ipc/zephyr/zephyr.hex is already appended with header of 512 bytes
  2. If no then I want to rearrange hci_ipc and it should start from 0x1008A00 instead of 0x1008800. I want to use initial 512 bytes for headers



Parents Reply
  • I am afraid this cannot work without changing b0n. The start address of the network core image is used in b0n to both transfer the image over PCD and also to boot. This address is automatically extract from the build system.

    To do what you need, you need to not only change b0n but also dive into the build system and change it.

    Meanwhile, there are already validation mechanisms in b0n and MCUboot. Are they insufficient for you?

Children
No Data
Related