nRF52840 DK, "Matter" examples, flash overflow (how to switch to work with external flash)

Hi,
I use nRF52840 DK (SDK 2.5.0), all my attempts to raise examples for "Matter", were not crowned with success (for example projects: Light Bulb, Light switch).
Everywhere during assembly the same problem, flash memory overflow: region FLASH' overflowed by 1966 bytes (and this is regardless of which of the configuration files I use prj.conf or prj_release.conf + Optimization level: Optimize for size).

I also tried to reconfigure the project to use external memory for work (for this case, those examples), but obviously my knowledge is not enough for this.

1) How can I correctly reconfigure the project to use external memory instead of Flash?
2) I know that since SDK 2.8.0 you have removed Zigbee support for nRF52840. What about "Matter"?
I added changes to the .conf file like this:

CONFIG_FLASH=y
CONFIG_SPI=y
CONFIG_NRFX_QSPI=y
CONFIG_NORDIC_QSPI_NOR=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_FLASH_MAP=y

and also included a file like pm_static.yml in the project root:
partitions:
config_partition:
address: 0x12000000
size: 0x100000
region: qspi_flash

firmware_partition:
address: 0x12100000
size: 0x700000
region: qspi_flash

But this did not give any result, when building the project still tries to work with a regular flash, and not an external one.

I have attached the current .conf, .overlay, .dts file.



175276.prj.conf4024.nrf52840dk_nrf52840.overlay6180.nrf52840dk_nrf52840.dts









Parents Reply Children
  • We additionally checked other versions of SDK 2.8.0 and 2.9.0 and see the same problem. But it seems that the problem is purely local since it relates to a specific computer.
    When downloading SDK version 2.8.0 and 2.9.0 (still downloaded via nRF Connect desktop) on other computers, examples with Matter is built out of the box without errors with `FLASH' overflowed.

    It is not clear what to do with this, the error is clearly general, since it is reproduced identically on three versions of the SDK (2.5.0, 2.8.0, 2.9.0).

  • Alright, then we have to figure out how this install is different.

    1. How did you install the SDK?

    2. How to you change between SDK version when you test for different versions?

    3. Try to "build existing sample" instead of copying the sample. Does this behave the same?

    4. Do you see similar issues with other samples?

Related