Hi,
I'm having an issue with flash usage reporting when building app. I'm using MCUBoot, so 2 images are generated.
First of all, my definition of partitions in an overlay file is the following (Original board is arduino nicla sense me).
I'm defining just slot0_partition as I will only update fw in serial recovery mode.
&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 0x6e000>;
};
storage_partition: partition@7a000 {
label = "storage";
reg = <0x7a000 0x6000>;
};
};
};
When I build the code, I receive these 2 memory usage reports:
Memory region Used Size Region Size %age Used
FLASH: 35288 B 48 KB 71.79%
SRAM: 24800 B 64 KB 37.84%
IDT_LIST: 0 GB 2 KB 0.00%
First one has sense and I suppose it corresponds to MCUboot, as 48KB is exactly 0xc000.
Memory region Used Size Region Size %age Used
FLASH: 186104 B 232960 B 79.89%
SRAM: 63497 B 64 KB 96.89%
IDT_LIST: 0 GB 2 KB 0.00%
However, in the second one I can not understand the source of 232960 B region size. Shouldn't be 440KB (0x6e000)??
I also tried splitting into slot0 and slot1 but 232960 B region size keeps unmodified.
Thanks and best regards,
Pedro.