Dear fellow developers,
I'm working on a project were we're building a sample network containing hundreds of nRF 52840 dongles connected together using BT mesh.
The very first step is over, we managed to build the project for dongle and to verify its practical feasibility. The next steps are to build a DFU OTA Target and Distributor (both available experimentally only for nRF 52840 DK) so to have the mesh network update itself (via Distributor and Android app).
As per the case of the mesh light (ref: link), I'm trying to statically modify the partitions of the dongle since trying to build it the usual way produces an error ("section 'text' will not fit in region FLASH") and in order for it to include the bootloader on top.
So, I've modified the partitions trying to merge build_dk/partitions.yml and the partition sample I have previously done in the mesh light example. The static partitions were added to the project folder in the file pm_static_nrf52840dongle_nrf52840.yml and are the following:
nrf5_mbr: address: 0x0 size: 0x1000 placement: after: start mcuboot: address: 0x1000 size: 0xf000 placement: after: [nrf5_mbr] mcuboot_primary: address: 0x10000 size: 0x70000 span: [mcuboot_pad, mcuboot_primary_app] mcuboot_pad: address: 0x10000 size: 0x10000 placement: after: [mcuboot] mcuboot_primary_app: address: 0x20000 size: 0x60000 span: [app] mcuboot_secondary: address: 0x80000 size: 0x70000 placement: after: [mcuboot_primary] settings_storage: address: 0xf0000 size: 0x8000 placement: after: [mcuboot_secondary] legacy_bootloader_storage: address: 0xf8000 size: 0x8000 placement: after: [settings_storage] sram_primary: address: 0x20000000 end_address: 0x20040000 size: 0x40000 region: sram_primary
Now, the overflowing problem seems to be solved, the partitions do work (as there is only one gap for the dynamically defined 'app' partition) and the build does compile right until the very end, where it displays this error:
I've tried repartitioning using different sizes but nothing seems to work. Any idea how to avoid this?
(secondary question: despite what's written in the documentation, is it possible to define the 'app' partition statically?)
Thank you in advance,
Alessandro