Partition Manager and device tree partitions

I needed to add my own partition to the primary flash, and was able to do so successfully by adding a section to the device tree partitions.

However, when adding MCUBoot, the build would fail. I found that this was due to the build invoking a multi-image build and thus using Partition Manager.

I'd like this partition to remain at a static address, so I was able to get things going by creating a pm_static.yml in my project with the appropriate address and size.

I'm now cleaning things up, and if I remove the partitions and "zephyr,code-partition = &slot0_partition;" from the dts, the build fails since it cannot find a boot partition.

I see this in the build log:

devicetree error: /chosen: undefined node label 'boot_partition'

Do I have to define both partitions in the dts as well as in partition manager?

Thanks!

Parents Reply Children
No Data
Related