nRF52833, Using MCUBoot with an external at45db641e flash drive for DFU

We are trying to understand whether it is possible to use our external flash drive at45db641e to implement DFU and then load the application firmware via Bluetooth.
As far as I know, the at45db641e is not an SPI NOR, and I was able to add it to the project by analogy with the existing example:
https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-9-bootloaders-and-dfu-fota/topic/exercise-3-dfu-with-external-flash/


We defined the external flash in the .overlay file as:

&spi2 {
status = "okay";
pinctrl-0 = <&spi2_default>;
pinctrl-1 = <&spi2_sleep>;
pinctrl-names = "default", "sleep";
cs-gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;

at45db0: at45db641e@0 {
compatible = "atmel,at45";
reg = <0>;
spi-max-frequency = <15000000>;
jedec-id = [1f 28 00];
size = <67108864>;
sector-size = <262144>;
block-size = <2048>;
page-size = <256>;
enter-dpd-delay = <2000>;
exit-dpd-delay = <100000>;
status = "okay";

#address-cells = <1>;
#size-cells = <1>;

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

ext_flash_area: partition@0 {
label = "external_flash";
reg = <0x00000000 0x0800000>; /* 8 MB */
};
};
};
};

and by analogy, for mcuboot.overlay.
Can we use this ext flash? If so, what files should we attach to you for analyze?





Related