Hi I hope you can help me with this.
I'm using a nrf52833. When I build I see Flash usage of 278044 B.
Regions Size 512KB.
My custom board has this in the Flash0 settion of the dts.
&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
boot_partition: partition@0 {
label = "mcuboot";
reg = <0x0 0xc000>;
};
slot0_partition: partition@c000 {
label = "image-0";
reg = <0xc000 0x32000>;
};
slot1_partition: partition@3e000 {
label = "image-1";
reg = <0x3e000 0x32000>;
};
scratch_partition: partition@70000 {
label = "image-scratch";
reg = <0x70000 0xa000>;
};
storage_partition: partition@7a000 {
label = "storage";
reg = <0x7a000 0x6000>;
};
};
};
Which looks like this thanks to the VScode stuff.

It appears that my image-0 and image-1 partitions are too small for my rom.
I guess it works at the moment because overflowing from image-0 to image-1 isn't causing any problems.
I want to make "storage" as large as possible to collect test user sampling data.
I dont use DFU, so I think I do not need "image-1" or "image-scratch". Is this correct? Can I also remove "MCUboot"? I plan to use APP_PROTECT in the final version.
How do I build release mode? Is this just by changing the Kconfig settings? Is there a page that I can refer to? (so I get it right)
Thanks for your help!