Skip to content

Sysbuild linker flash size requires manual config #72508

Answered by vChavezB
vChavezB asked this question in Q&A
Discussion options

You must be logged in to vote

After some more digging I found that I had to set CONFIG_USE_DT_CODE_PARTITION=y for zephyr to use the correct flash settings and size for building the main app.

In addition for my mcuboot partition I had to add an overlay to specifiy the boot partition as the code partition.

/ {
	chosen {
		zephyr,code-partition = &boot_partition;
	};
};

Just curious, is this mentioned in the sys build https://github.com/zephyrproject-rtos/zephyr/blob/main/doc/build/sysbuild/index.rst ?

I Had to invest some time to learn this. As far as I know the sys build samples do not have this code. Just found a reference to this in the code for tests.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by vChavezB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant