Skip to content

Conversation

@nordic-mik7
Copy link
Contributor

Fix FLASH_LOAD_SIZE setting for builds with !USE_DT_CODE_PARTITION (for e.g. with no MCUBoot).
Having it wrongly set to 0x0 caused problems when running multiple images (radio core, application core) on the same board.

Upstream PR #: 92191
Related: NCSIDB-1628

Fix FLASH_LOAD_SIZE setting for builds with !USE_DT_CODE_PARTITION
(for e.g. with no MCUBoot).
Having it wrongly set to 0x0 caused problems when running multiple
images (radio core, application core) on the same board.

Upstream PR #: 92191
Related: NCSIDB-1628

Signed-off-by: Michal Kozikowski <[email protected]>
@nordic-mik7 nordic-mik7 force-pushed the dev/flash_load_size_fix_downstream branch from ad0fdd2 to 8a66e15 Compare June 30, 2025 09:30
@sonarqubecloud
Copy link

default 0x30000 if !USE_DT_CODE_PARTITION

config FLASH_LOAD_SIZE
default $(dt_chosen_reg_size_hex,$(DT_CHOSEN_Z_CODE_PARTITION)) if !USE_DT_CODE_PARTITION
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't seem the right approach, rather a fixed value should be used.

I do not thing that anything from zephyr,code-partition should be used if !USE_DT_CODE_PARTITION

Let's say you have flash start at 2c000, and zephyr-code-partition and 3c000 - than the zephyr-code-partition would be smaller than the actual available size

Copy link
Contributor Author

@nordic-mik7 nordic-mik7 Jun 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doesn't FLASH_LOAD_SIZE indicate the code parition in fact ? why should we include the rest of available flash in it ?

@nordic-mik7
Copy link
Contributor Author

Closing this PR as a result of conversation with @ahasztag. Please see upstream PR comment : zephyrproject-rtos/zephyr#92191 (comment)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants