Skip to content

nrf7002dk flash headroom: earlier measurements retracted, needs a verified build to assess #61

Description

@mikeysklar

The measurements originally in this issue are retracted. Do not rely on them.

They were produced by a run where make ... | tail reported tail's exit status rather than the build's, so failed builds looked like successes, and by a toolchain we could not confirm matched CI. Every byte count previously here, the 944 KB region size, the 100.00% figures and the 44 and 12 bytes free, came from that run. All of it is withdrawn.

Recording the question anyway, because flash pressure on nordic_nrf7002dk constrains what we can add to shared ports/zephyr-cp code.

What is actually verified

Checked against adafruit main:

  • Two of the 37 zephyr-cp board directories disable modules. nordic/nrf7002dk disables six (aesio, adafruit_bus_device, zlib, jpegio, tilepalettemapper, gifio), more than any other board. nordic/nrf54h20dk disables three. Every other zephyr-cp board disables nothing.
  • CI builds the board. ports (zephyr-cp) / board (nordic_nrf7002dk) is one of 27 zephyr-cp board jobs, so a change that overflows it turns CI red.
  • It carries Adafruit's VID 0x239A with PID 0x8168, and Scott Shawcroft is the most frequent author of its board files.
  • It passed CI on supervisor/web_workflow: check the listener socket calls for failure adafruit/circuitpython#11207, so as of that commit it still links.

The six disabled modules are the strongest signal that the board is tight, since nothing else in the tree needs that treatment. That is an inference from configuration, not a measurement.

What is not known

How much flash headroom the board actually has, and therefore whether small additions to shared zephyr-cp files are safe. Answering that needs a build with a toolchain confirmed to match CI, with the exit status checked properly.

One early version of the scan timeout patch did fail to link on this board with a FLASH region overflow. That build came from the same unverified setup, so treat it as a hint that the margin is small rather than as evidence of any specific number.

The question

If the margin really is small, it is worth asking directly rather than guessing: should fixes touching shared zephyr-cp code be conditional, should another module be disabled on that board, or is it due for a different partition layout.

Relevant to #57, #58, #59 and PR #60, all of which touch shared zephyr-cp files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions