How to Change size of the flash partition in nRF connect SDK

Hello Devzone,

I'm using nRF connect SDK  version 2.3.0, Due to my application size is larger than the partition size i'm not able to do DFU successfully.

So I tried to change the size of partion in device tree file but it's not reflecting when i read the flash memory layout through nrf connect for desktop programmer.

For example, by default it was like this  

&flash0 {

	partitions {
		compatible = "fixed-partitions";
		#address-cells = <1>;
		#size-cells = <1>;

		boot_partition: partition@0 {
			label = "mcuboot";
			reg = <0x00000000 0xC000>;
		};
		slot0_partition: partition@c000 {
			label = "image-0";
			reg = <0x0000C000 0x33000>;
		};
		slot1_partition: partition@3f000 {
			label = "image-1";
			reg = <0x0003F000 0x33000>;
		};
		scratch_partition: partition@72000 {
			label = "image-scratch";
			reg = <0x00072000 0x8000>;
		};
		storage_partition: partition@7a000 {
			label = "storage";
			reg = <0x0007A000 0x00006000>;
		};
	};
};
when read through programmer, application storing at 0xC000 as mentioned in flash partition. But when I changed the slot0 partition to 0xD000 like this 
&flash0 {

	partitions {
		compatible = "fixed-partitions";
		#address-cells = <1>;
		#size-cells = <1>;

		boot_partition: partition@0 {
			label = "mcuboot";
			reg = <0x00000000 0xD000>;
		};
		slot0_partition: partition@d000 {
			label = "image-0";
			reg = <0x0000D000 0x33000>;
		};
		slot1_partition: partition@40000 {
			label = "image-1";
			reg = <0x00040000 0x33000>;
		};
		scratch_partition: partition@74000 {
			label = "image-scratch";
			reg = <0x00074000 0x8000>;
		};
		storage_partition: partition@7d000 {
			label = "storage";
			reg = <0x0007d000 0x00003000>;
		};
	};
,it's not reflecting when read the flash and it's application storing at oxC000 only.  So,I'm unsure if I'm changing in the proper place; if not, please advise.

Parents Reply Children
No Data
Related