fail to build the sample project with MCUboot on ncsV2.6.1

NCS version :      v2.6.1

target board:       nrf5340dk_nrf5340_cpuapp_ns

sample project:   "ncs\v2.6.1\zephyr\samples\application_development\sysbuild\with_mcuboot"

I use this command to build the project with MCUboot,but an error occurred during compilation:

E:\ncs\v2.6.1\zephyr\samples\application_development\sysbuild\with_mcuboot> west build -b nrf5340dk_nrf5340_cpuapp_ns --sysbuild

Parents
  • Hello,

    Which sample are you using for this? Is it your own custom application? Have you tried any samples with MCUBOOT from the SDK? For instance, you might want to try the smp_svr sample from Zephyr, which includes MCUBOOT. You can find the sample under ncs\v2.6.1\zephyr\samples\subsys\mgmt\mcumgr\smp_svr

    Kind regards,

    Abhijith

  • Hello,

    After build the sample ncs\v2.6.1\zephyr\samples\subsys\mgmt\mcumgr\smp_svr, i found the __rom_region_start  is 0x14000 in the map file,but in the devicetree file ncs\v2.6.1\zephyr\boards\arm\nrf5340dk_nrf5340\nrf5340_cpuapp_common.dtsi , the start address of slot0 is 0x10000.

    Is this correct?

    &flash0 {
    
    	partitions {
    		compatible = "fixed-partitions";
    		#address-cells = <1>;
    		#size-cells = <1>;
    
    		boot_partition: partition@0 {
    			label = "mcuboot";
    			reg = <0x00000000 0x00010000>;
    		};
    		slot0_partition: partition@10000 {
    			label = "image-0";
    		};
    		slot0_ns_partition: partition@50000 {
    			label = "image-0-nonsecure";
    		};
    		slot1_partition: partition@80000 {
    			label = "image-1";
    		};
    		slot1_ns_partition: partition@c0000 {
    			label = "image-1-nonsecure";
    		};
    		/* 0xf0000 to 0xf7fff reserved for TF-M partitions */
    		storage_partition: partition@f8000 {
    			label = "storage";
    			reg = <0x000f8000 0x00008000>;
    		};
    	};
    };

    0820.zephyr.map

    Kind regards,

    Alex

Reply
  • Hello,

    After build the sample ncs\v2.6.1\zephyr\samples\subsys\mgmt\mcumgr\smp_svr, i found the __rom_region_start  is 0x14000 in the map file,but in the devicetree file ncs\v2.6.1\zephyr\boards\arm\nrf5340dk_nrf5340\nrf5340_cpuapp_common.dtsi , the start address of slot0 is 0x10000.

    Is this correct?

    &flash0 {
    
    	partitions {
    		compatible = "fixed-partitions";
    		#address-cells = <1>;
    		#size-cells = <1>;
    
    		boot_partition: partition@0 {
    			label = "mcuboot";
    			reg = <0x00000000 0x00010000>;
    		};
    		slot0_partition: partition@10000 {
    			label = "image-0";
    		};
    		slot0_ns_partition: partition@50000 {
    			label = "image-0-nonsecure";
    		};
    		slot1_partition: partition@80000 {
    			label = "image-1";
    		};
    		slot1_ns_partition: partition@c0000 {
    			label = "image-1-nonsecure";
    		};
    		/* 0xf0000 to 0xf7fff reserved for TF-M partitions */
    		storage_partition: partition@f8000 {
    			label = "storage";
    			reg = <0x000f8000 0x00008000>;
    		};
    	};
    };

    0820.zephyr.map

    Kind regards,

    Alex

Children
No Data
Related