Skip to content

Commit d81382b

Browse files
committed
applications/samples: Don't use minimal libc for MCUboot in CHIP
Goes to piclibc, except for nrf54lm20dk which has an issue. Also fixes a wrong selection of a Kconfig which should be done at sysbuild level Signed-off-by: Jamie McCrae <[email protected]>
1 parent eb4f887 commit d81382b

File tree

29 files changed

+87
-59
lines changed

29 files changed

+87
-59
lines changed

applications/matter_bridge/sysbuild/mcuboot/prj.conf

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@ CONFIG_FPROTECT=y
1515

1616
CONFIG_MBEDTLS_CFG_FILE="mcuboot-mbedtls-cfg.h"
1717

18-
# Use minimal C library instead of the Picolib
19-
CONFIG_MINIMAL_LIBC=y
20-
2118
# Bootloader size optimization
19+
CONFIG_CBPRINTF_NANO=y
20+
CONFIG_PRINTK=n
2221
CONFIG_CONSOLE=n
2322
CONFIG_SERIAL=n
2423
CONFIG_UART_CONSOLE=n

samples/matter/contact_sensor/sysbuild/mcuboot/boards/nrf54lm20dk_nrf54lm20a_cpuapp.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,7 @@ CONFIG_BOOT_MAX_IMG_SECTORS=512
2323
# reset + 1. Hence, the reboot time increases more and more.
2424
# To avoid it enable tickles kernel for mcuboot.
2525
CONFIG_TICKLESS_KERNEL=y
26+
27+
# Use minimal C library instead of picolibc due to fault on this SoC
28+
# KRKNWK-20774
29+
CONFIG_MINIMAL_LIBC=y

samples/matter/light_bulb/Kconfig.sysbuild

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,13 @@ config NETCORE_APP_UPDATE
5858
config DFU_MULTI_IMAGE_PACKAGE_NET
5959
default y
6060

61-
if BOARD_NRF54L15DK
61+
if BOARD_NRF54L15DK || BOARD_NRF54LM20DK
6262

63+
# Disable checking the external drivers for nRF54L15 and nRF54LM20 DKs.
6364
config PM_OVERRIDE_EXTERNAL_DRIVER_CHECK
6465
default y
6566

66-
endif # BOARD_NRF54L15DK
67+
endif # BOARD_NRF54L15DK || BOARD_NRF54LM20DK
6768

6869
endif # BOOTLOADER_MCUBOOT
6970

samples/matter/light_bulb/sysbuild/mcuboot/boards/nrf54lm20dk_nrf54lm20a_cpuapp.conf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ CONFIG_SPI=y
1313
CONFIG_SPI_NOR=y
1414
CONFIG_SPI_NOR_SFDP_DEVICETREE=y
1515
CONFIG_SPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096
16-
CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK=y
1716

1817
# Increase the maximum number of sectors to 512 to fit the big image size (> 1024 kB).
1918
CONFIG_BOOT_MAX_IMG_SECTORS=512
@@ -24,3 +23,7 @@ CONFIG_BOOT_MAX_IMG_SECTORS=512
2423
# reset + 1. Hence, the reboot time increases more and more.
2524
# To avoid it enable tickles kernel for mcuboot.
2625
CONFIG_TICKLESS_KERNEL=y
26+
27+
# Use minimal C library instead of picolibc due to fault on this SoC
28+
# KRKNWK-20774
29+
CONFIG_MINIMAL_LIBC=y

samples/matter/light_bulb/sysbuild/mcuboot/prj.conf

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@ CONFIG_PM=n
1313
CONFIG_FLASH=y
1414
CONFIG_FPROTECT=y
1515

16-
# Use minimal C library instead of the Picolib
17-
CONFIG_MINIMAL_LIBC=y
18-
1916
# Bootloader size optimization
17+
CONFIG_CBPRINTF_NANO=y
18+
CONFIG_PRINTK=n
2019
CONFIG_CONSOLE=n
2120
CONFIG_SERIAL=n
2221
CONFIG_UART_CONSOLE=n

samples/matter/light_switch/Kconfig.sysbuild

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,13 @@ config DFU_MULTI_IMAGE_PACKAGE_NET
6060

6161
endif # SOC_SERIES_NRF53X
6262

63-
if BOARD_NRF54L15DK
63+
if BOARD_NRF54L15DK || BOARD_NRF54LM20DK
6464

65+
# Disable checking the external drivers for nRF54L15 and nRF54LM20 DKs.
6566
config PM_OVERRIDE_EXTERNAL_DRIVER_CHECK
6667
default y
6768

68-
endif # BOARD_NRF54L15DK
69+
endif # BOARD_NRF54L15DK || BOARD_NRF54LM20DK
6970

7071
endif # BOOTLOADER_MCUBOOT
7172

samples/matter/light_switch/sysbuild/mcuboot/boards/nrf54lm20dk_nrf54lm20a_cpuapp.conf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ CONFIG_SPI=y
1313
CONFIG_SPI_NOR=y
1414
CONFIG_SPI_NOR_SFDP_DEVICETREE=y
1515
CONFIG_SPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096
16-
CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK=y
1716

1817
# Increase the maximum number of sectors to 512 to fit the big image size (> 1024 kB).
1918
CONFIG_BOOT_MAX_IMG_SECTORS=512
@@ -24,3 +23,7 @@ CONFIG_BOOT_MAX_IMG_SECTORS=512
2423
# reset + 1. Hence, the reboot time increases more and more.
2524
# To avoid it enable tickles kernel for mcuboot.
2625
CONFIG_TICKLESS_KERNEL=y
26+
27+
# Use minimal C library instead of picolibc due to fault on this SoC
28+
# KRKNWK-20774
29+
CONFIG_MINIMAL_LIBC=y

samples/matter/light_switch/sysbuild/mcuboot/prj.conf

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@ CONFIG_PM=n
1313
CONFIG_FLASH=y
1414
CONFIG_FPROTECT=y
1515

16-
# Use minimal C library instead of the Picolib
17-
CONFIG_MINIMAL_LIBC=y
18-
1916
# Bootloader size optimization
17+
CONFIG_CBPRINTF_NANO=y
18+
CONFIG_PRINTK=n
2019
CONFIG_CONSOLE=n
2120
CONFIG_SERIAL=n
2221
CONFIG_UART_CONSOLE=n

samples/matter/lock/Kconfig.sysbuild

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,13 @@ config DFU_MULTI_IMAGE_PACKAGE_NET
6060

6161
endif # SOC_SERIES_NRF53X
6262

63-
if BOARD_NRF54L15DK
63+
if BOARD_NRF54L15DK || BOARD_NRF54LM20DK
6464

65+
# Disable checking the external drivers for nRF54L15 and nRF54LM20 DKs.
6566
config PM_OVERRIDE_EXTERNAL_DRIVER_CHECK
6667
default y
6768

68-
endif # BOARD_NRF54L15DK
69+
endif # BOARD_NRF54L15DK || BOARD_NRF54LM20DK
6970

7071
endif # BOOTLOADER_MCUBOOT
7172

samples/matter/lock/sysbuild/mcuboot/boards/nrf54lm20dk_nrf54lm20a_cpuapp.conf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ CONFIG_SPI=y
1313
CONFIG_SPI_NOR=y
1414
CONFIG_SPI_NOR_SFDP_DEVICETREE=y
1515
CONFIG_SPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096
16-
CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK=y
1716

1817
# Increase the maximum number of sectors to 512 to fit the big image size (> 1024 kB).
1918
CONFIG_BOOT_MAX_IMG_SECTORS=512
@@ -24,3 +23,7 @@ CONFIG_BOOT_MAX_IMG_SECTORS=512
2423
# reset + 1. Hence, the reboot time increases more and more.
2524
# To avoid it enable tickles kernel for mcuboot.
2625
CONFIG_TICKLESS_KERNEL=y
26+
27+
# Use minimal C library instead of picolibc due to fault on this SoC
28+
# KRKNWK-20774
29+
CONFIG_MINIMAL_LIBC=y

0 commit comments

Comments
 (0)