Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions boot/zephyr/boards/nucleo_f207zg.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CONFIG_BOOT_MAX_IMG_SECTORS_AUTO=n
CONFIG_BOOT_MAX_IMG_SECTORS=256
2 changes: 2 additions & 0 deletions boot/zephyr/boards/nucleo_g071rb.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CONFIG_BOOT_MAX_IMG_SECTORS_AUTO=n
CONFIG_BOOT_MAX_IMG_SECTORS=256

Choose a reason for hiding this comment

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

This should not be needed, as it can be calculated automatically based on
https://github.com/zephyrproject-rtos/zephyr/blob/d53f324ca09dcafda0923a38f773b1538857f2f3/dts/arm/st/c0/stm32c0.dtsi#L150
and image size.

math(EXPR slot_min_sectors "${slot0_size} / ${erase_size_slot0}")

If it's not calculated properly when MAX_IMG_SECTORS_AUTO=y, the cause should be investigated, instead of patching the problem elsewhere which does not scale with the number of boards in Zephyr.

Loading