Skip to content

Commit 1dc599a

Browse files
committed
applications/samples: Don't use minimal libc for MCUboot in CHIP
Goes to piclibc, except for nrf54lm20dk which has an issue Signed-off-by: Jamie McCrae <[email protected]>
1 parent ab8bfe6 commit 1dc599a

File tree

20 files changed

+50
-289
lines changed

20 files changed

+50
-289
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
Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,3 @@
1-
#
2-
# Copyright (c) 2025 Nordic Semiconductor ASA
3-
#
4-
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5-
#
6-
7-
CONFIG_HW_STACK_PROTECTION=n
8-
CONFIG_BOOT_WATCHDOG_FEED=n
9-
10-
# nRF54LM20DK uses SPI NOR external flash
11-
CONFIG_GPIO=y
12-
CONFIG_SPI=y
13-
CONFIG_SPI_NOR=y
14-
CONFIG_SPI_NOR_SFDP_DEVICETREE=y
15-
CONFIG_SPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096
16-
17-
# Increase the maximum number of sectors to 512 to fit the big image size (> 1024 kB).
18-
CONFIG_BOOT_MAX_IMG_SECTORS=512
19-
20-
# Currently, without tickless kernel, the SYSCOUNTER value after the software
21-
# reset is not set properly and due to that the first system interrupt is not called
22-
# in the proper time - the SYSCOUNTER value is set to the value from before
23-
# reset + 1. Hence, the reboot time increases more and more.
24-
# To avoid it enable tickles kernel for mcuboot.
25-
CONFIG_TICKLESS_KERNEL=y
1+
# Use minimal C library instead of picolibc due to fault on this SoC
2+
# KRKNWK-20774
3+
CONFIG_MINIMAL_LIBC=y
Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,3 @@
1-
#
2-
# Copyright (c) 2025 Nordic Semiconductor ASA
3-
#
4-
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5-
#
6-
7-
CONFIG_HW_STACK_PROTECTION=n
8-
CONFIG_BOOT_WATCHDOG_FEED=n
9-
10-
# nRF54LM20DK uses SPI NOR external flash
11-
CONFIG_GPIO=y
12-
CONFIG_SPI=y
13-
CONFIG_SPI_NOR=y
14-
CONFIG_SPI_NOR_SFDP_DEVICETREE=y
15-
CONFIG_SPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096
16-
CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK=y
17-
18-
# Increase the maximum number of sectors to 512 to fit the big image size (> 1024 kB).
19-
CONFIG_BOOT_MAX_IMG_SECTORS=512
20-
21-
# Currently, without tickless kernel, the SYSCOUNTER value after the software
22-
# reset is not set properly and due to that the first system interrupt is not called
23-
# in the proper time - the SYSCOUNTER value is set to the value from before
24-
# reset + 1. Hence, the reboot time increases more and more.
25-
# To avoid it enable tickles kernel for mcuboot.
26-
CONFIG_TICKLESS_KERNEL=y
1+
# Use minimal C library instead of picolibc due to fault on this SoC
2+
# KRKNWK-20774
3+
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
Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,3 @@
1-
#
2-
# Copyright (c) 2025 Nordic Semiconductor ASA
3-
#
4-
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5-
#
6-
7-
CONFIG_HW_STACK_PROTECTION=n
8-
CONFIG_BOOT_WATCHDOG_FEED=n
9-
10-
# nRF54LM20DK uses SPI NOR external flash
11-
CONFIG_GPIO=y
12-
CONFIG_SPI=y
13-
CONFIG_SPI_NOR=y
14-
CONFIG_SPI_NOR_SFDP_DEVICETREE=y
15-
CONFIG_SPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096
16-
CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK=y
17-
18-
# Increase the maximum number of sectors to 512 to fit the big image size (> 1024 kB).
19-
CONFIG_BOOT_MAX_IMG_SECTORS=512
20-
21-
# Currently, without tickless kernel, the SYSCOUNTER value after the software
22-
# reset is not set properly and due to that the first system interrupt is not called
23-
# in the proper time - the SYSCOUNTER value is set to the value from before
24-
# reset + 1. Hence, the reboot time increases more and more.
25-
# To avoid it enable tickles kernel for mcuboot.
26-
CONFIG_TICKLESS_KERNEL=y
1+
# Use minimal C library instead of picolibc due to fault on this SoC
2+
# KRKNWK-20774
3+
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
Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,3 @@
1-
#
2-
# Copyright (c) 2025 Nordic Semiconductor ASA
3-
#
4-
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5-
#
6-
7-
CONFIG_HW_STACK_PROTECTION=n
8-
CONFIG_BOOT_WATCHDOG_FEED=n
9-
10-
# nRF54LM20DK uses SPI NOR external flash
11-
CONFIG_GPIO=y
12-
CONFIG_SPI=y
13-
CONFIG_SPI_NOR=y
14-
CONFIG_SPI_NOR_SFDP_DEVICETREE=y
15-
CONFIG_SPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096
16-
CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK=y
17-
18-
# Increase the maximum number of sectors to 512 to fit the big image size (> 1024 kB).
19-
CONFIG_BOOT_MAX_IMG_SECTORS=512
20-
21-
# Currently, without tickless kernel, the SYSCOUNTER value after the software
22-
# reset is not set properly and due to that the first system interrupt is not called
23-
# in the proper time - the SYSCOUNTER value is set to the value from before
24-
# reset + 1. Hence, the reboot time increases more and more.
25-
# To avoid it enable tickles kernel for mcuboot.
26-
CONFIG_TICKLESS_KERNEL=y
1+
# Use minimal C library instead of picolibc due to fault on this SoC
2+
# KRKNWK-20774
3+
CONFIG_MINIMAL_LIBC=y

samples/matter/lock/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
Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,3 @@
1-
#
2-
# Copyright (c) 2025 Nordic Semiconductor ASA
3-
#
4-
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5-
#
6-
7-
CONFIG_HW_STACK_PROTECTION=n
8-
CONFIG_BOOT_WATCHDOG_FEED=n
9-
10-
# nRF54LM20DK uses SPI NOR external flash
11-
CONFIG_GPIO=y
12-
CONFIG_SPI=y
13-
CONFIG_SPI_NOR=y
14-
CONFIG_SPI_NOR_SFDP_DEVICETREE=y
15-
CONFIG_SPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096
16-
CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK=y
17-
18-
# Increase the maximum number of sectors to 512 to fit the big image size (> 1024 kB).
19-
CONFIG_BOOT_MAX_IMG_SECTORS=512
20-
21-
# Currently, without tickless kernel, the SYSCOUNTER value after the software
22-
# reset is not set properly and due to that the first system interrupt is not called
23-
# in the proper time - the SYSCOUNTER value is set to the value from before
24-
# reset + 1. Hence, the reboot time increases more and more.
25-
# To avoid it enable tickles kernel for mcuboot.
26-
CONFIG_TICKLESS_KERNEL=y
1+
# Use minimal C library instead of picolibc due to fault on this SoC
2+
# KRKNWK-20774
3+
CONFIG_MINIMAL_LIBC=y

samples/matter/manufacturer_specific/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

0 commit comments

Comments
 (0)