Skip to content

Conversation

@JordanYates
Copy link
Contributor

Add devicetree properties for erase-block-size and write-block-size. These properties are already available for other flash devices (notably soc-nv-flash) and are consumed by MCUboot in order to automatically determine sector counts.

The default values are supported by the vast majority of devices on the market (everything that I have seen).

This resolves the following MCUboot warning when secondary images are on external flash:

CMake Warning at CMakeLists.txt:533 (message):
  Unable to determine erase size of slot1 partition, cannot calculate minimum
  sector usage

Add devicetree properties for `erase-block-size` and `write-block-size`.
These properties are already available for other flash devices (notably
`soc-nv-flash`) and are consumed by MCUboot in order to automatically
determine sector counts.

The default values are supported by the vast majority of devices on the
market (everything that I have seen).

Signed-off-by: Jordan Yates <jordan@embeint.com>
@sonarqubecloud
Copy link

@nordicjm nordicjm requested a review from de-nordic November 22, 2025 09:13
@nordicjm
Copy link
Contributor

See #96443 and #95152

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants