this my yaml.file to use partition manager, beacause iam implementing DFU, USB MSC with fatfs in single project
fatfs_storage:
address: 0x00000000
size: 0x00200000
device: p25q16h
region: NAND
placement:
before: [end]
this is my overlay.......
this is my overlay.......
&qspi {
status = "okay";
pinctrl-0 = <&qspi_default>;
pinctrl-1 = <&qspi_sleep>;
pinctrl-names = "default", "sleep";
p25q16h: p25q16h@0 {
compatible = "nordic,qspi-nor";
reg = <0>;
sck-frequency = <104000000>;
quad-enable-requirements = "S2B1v1";
jedec-id = [85 60 15];
sfdp-bfp = [
e5 20 f1 ff ff ff ff 00 44 eb 08 6b 08 3b 80 bb
ee ff ff ff ff ff 00 ff ff ff 00 ff 0c 20 0f 52
10 d8 08 81
];
label = "NAND";
size = <16777216>; //size is in bits
has-dpd;
t-enter-dpd = <3000>;
t-exit-dpd = <8000>;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
fatfs_part: partition@0 {
label = "ext_fs";
reg = <0x00000000 0x00200000>; /* Start address and size = 2MB */
};
};
};
};
&flash0 {
status = "okay";
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
boot_partition: partition@0 {
label = "mcuboot";
reg = <0x00000000 0x0000C000>;
};
mcuboot_primary: partition@c000 {
label = "image-0" ; //"mcuboot_primary";
reg = <0x0000C000 0x00076000>;
};
mcuboot_secondary: partition@82000 {
label = "image-1" ; //"mcuboot_secondary";
reg = <0x00082000 0x00076000>;
};
/*
* The flash starting at 0x000f8000 and ending at
* 0x000fffff is reserved for use by the application.
*/
/*
* Storage partition will be used by FCB/LittleFS/NVS
* if enabled.
*/
storage_partition: partition@f8000 {
label = "storage";
reg = <0x000f8000 0x00008000>;
};
};
};
after build , generated partitions will be...
and also iam getting disk failed , iam unable to access the usb mass storage drive
after build , generated partitions will be...
app:
address: 0xc200
end_address: 0x86000
region: flash_primary
size: 0x79e00
mcuboot:
address: 0x0
end_address: 0xc000
placement:
before:
- mcuboot_primary
region: flash_primary
size: 0xc000
mcuboot_pad:
address: 0xc000
end_address: 0xc200
placement:
align:
start: 0x1000
before:
- mcuboot_primary_app
region: flash_primary
size: 0x200
mcuboot_primary:
address: 0xc000
end_address: 0x86000
orig_span: &id001
- mcuboot_pad
- app
region: flash_primary
sharers: 0x1
size: 0x7a000
span: *id001
mcuboot_primary_app:
address: 0xc200
end_address: 0x86000
orig_span: &id002
- app
region: flash_primary
size: 0x79e00
span: *id002
mcuboot_secondary:
address: 0x86000
end_address: 0x100000
placement:
after:
- mcuboot_primary
align:
start: 0x1000
align_next: 0x1000
region: flash_primary
share_size:
- mcuboot_primary
size: 0x7a000
sram_primary:
address: 0x20000000
end_address: 0x20040000
region: sram_primary
size: 0x40000
and also iam getting disk failed , iam unable to access the usb mass storage drive
