Skip to content

Commit bdb7cf0

Browse files
committed
USB partiions for nRF54LM20DK
1 parent bcdb335 commit bdb7cf0

2 files changed

Lines changed: 32 additions & 4 deletions

File tree

l9/l9_e4_sol/prj.conf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ CONFIG_MCUMGR_GRP_OS=y
1111
CONFIG_MCUMGR_GRP_IMG=y
1212

1313
# Configure MCUMGR transport to UART
14+
CONFIG_UART_MCUMGR=y
1415
CONFIG_MCUMGR_TRANSPORT_UART=y
1516

17+
1618
# Dependencies
1719
# Configure dependencies for CONFIG_MCUMGR
1820
CONFIG_NET_BUF=y
@@ -36,3 +38,6 @@ CONFIG_UART_USE_RUNTIME_CONFIGURE=y
3638
CONFIG_UART_LINE_CTRL=y
3739
CONFIG_USBD_CDC_ACM_CLASS=y
3840

41+
42+
CONFIG_SAMPLE_USBD_PID=0x0001
43+
CONFIG_SAMPLE_USBD_PRODUCT="USBD CDC ACM sample"
Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,29 @@
1-
# Enable logging for MCUboot
1+
# MCUboot defaults (from bootloader/mcuboot/boot/zephyr/prj.conf)
2+
CONFIG_PM=n
3+
CONFIG_MAIN_STACK_SIZE=10240
4+
CONFIG_BOOT_SWAP_SAVE_ENCTLV=n
5+
CONFIG_BOOT_ENCRYPT_IMAGE=n
6+
CONFIG_BOOT_UPGRADE_ONLY=n
7+
CONFIG_BOOT_BOOTSTRAP=n
8+
CONFIG_FLASH=y
9+
# CONFIG_BT is not set
10+
# CONFIG_I2C is not set
211
CONFIG_LOG=y
3-
CONFIG_MCUBOOT_LOG_LEVEL_WRN=y
12+
CONFIG_LOG_MODE_MINIMAL=y
13+
CONFIG_LOG_DEFAULT_LEVEL=0
14+
CONFIG_MCUBOOT_LOG_LEVEL_INF=y
15+
CONFIG_CBPRINTF_NANO=y
16+
CONFIG_PICOLIBC=y
17+
CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=0
18+
CONFIG_NCS_APPLICATION_BOOT_BANNER_STRING="MCUboot"
419

520
# Enable Serial Recovery over UART
621
CONFIG_MCUBOOT_SERIAL=y
722

823
# Disable console UART, since Serial Recovery uses UART
924
CONFIG_UART_CONSOLE=n
1025

11-
# Configure boolader to use two slots
26+
# Configure bootloader to use two slots
1227
CONFIG_SINGLE_APPLICATION_SLOT=n
1328

1429
# Turn on a LED so we can see when Serial Recovery mode is active
@@ -17,4 +32,12 @@ CONFIG_MCUBOOT_INDICATION_LED=y
1732
# Step 1.1 - Configure serial recovery to use CDC_ACM, which by default uses the USB
1833
CONFIG_BOOT_SERIAL_CDC_ACM=y
1934

20-
CONFIG_FLASH=y
35+
# CONFIG_BOOT_MAX_IMG_SECTORS=256
36+
37+
# # Ensure that the SPI NOR driver is disabled by default
38+
# CONFIG_SPI_NOR=n
39+
40+
# # TODO: below are not yet supported and need fixing
41+
# CONFIG_FPROTECT=n
42+
43+
# CONFIG_BOOT_WATCHDOG_FEED=n

0 commit comments

Comments
 (0)