How to remap bootloader and application flash area in overlay file

Board :52840dk_52840

SDK: NCS1.7.1

IDE :Visual Studio Code

I remap my bootloader partition in my application .overlay file

as

        &boot_partition{
            reg = <0x000000000 0x00010000>;
        };


        &slot0_partition {
            reg = <0x00010000 0x00063000>;
        };

but I get the this result in zephyr.dts, the beginning of slot0 did NOT change to 0x10000

                    boot_partition: partition@0 {
                        label = "mcuboot";
                        reg = < 0x0 0x10000 >;
                    };
                    slot0_partition: partition@c000 {
                        label = "image-0";
                        reg = < 0x10000 0x63000 >;
                    };

and my mcuboot build result is as following, the bootloader area size was still 48KB


Memory region         Used Size  Region Size  %age Used
           FLASH:       30984 B        48 KB     63.04%
            SRAM:       17760 B       256 KB      6.77%
        IDT_LIST:          0 GB         2 KB      0.00%

It seems like that my bootloader remap is a failure .

my quesion is

1# can I remap bootloader and application flash area in .overlay file

2# how to remap bootloader and application flash area in .overlay file

Parents Reply Children
No Data
Related