Hi everyone. I'm exploring MCUBoot as part of the zephyr project. I've used zephyr's west build tool to successfully build MCUBoot for the frdm-K64f board. That success was probably due to the the associated dts file had all the necessary settings to support the build. My issue has to do with how to properly port the necessary settings to build MCUBoot for the RT1064-EVK board. The error I'm getting is:
Error: mimxrt1064_evk.dts.pre.tmp:742.1-8 Label or path flash0 not found
FATAL ERROR: Syntax error parsing input tree
Not sure I fully understand the error because I had updated the dts with info about flash0:
chosen {
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_partition;
zephyr,console = &lpuart1;
zephyr,shell-uart = &lpuart1;
};
&flash0 {
/*
* For more information, see:
* https://docs.zephyrproject.org/latest/guides/dts/legacy-macros.html#legacy-flash-partitions
*/
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
boot_partition: partition@0 {
label = "mcuboot";
reg = <0x70000000 0x00010000>;
read-only;
};
/*
* The flash starting at 0x00010000 and ending at
* 0x0001ffff (sectors 16-31) is reserved for use
* by the application.
*/
storage_partition: partition@1e000 {
label = "storage";
reg = <0x7001e000 0x00002000>;
};
slot0_partition: partition@20000 {
label = "image-0";
reg = <0x70020000 0x00060000>;
};
slot1_partition: partition@80000 {
label = "image-1";
reg = <0x70080000 0x00060000>;
};
scratch_partition: partition@e0000 {
label = "image-scratch";
reg = <0x700e0000 0x00020000>;
};
};
};
Any guidance on this issue is appreciated. Thanks