47 lines
1.3 KiB
Plaintext
47 lines
1.3 KiB
Plaintext
# Enable Console and printk for logging via UART
|
|
CONFIG_CONSOLE=y
|
|
CONFIG_LOG=y
|
|
CONFIG_UART_CONSOLE=y
|
|
|
|
# Enable more detailed MCUMGR logging
|
|
CONFIG_MCUMGR_LOG_LEVEL_DBG=y
|
|
CONFIG_IMG_MANAGER_LOG_LEVEL_DBG=y
|
|
CONFIG_STREAM_FLASH_LOG_LEVEL_DBG=y
|
|
|
|
# Enable USB for MCUMGR only
|
|
CONFIG_USB_DEVICE_STACK=y
|
|
CONFIG_USB_CDC_ACM=y
|
|
CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=y
|
|
|
|
# USB CDC ACM buffer configuration for better MCUMGR performance
|
|
CONFIG_USB_CDC_ACM_RINGBUF_SIZE=1024
|
|
|
|
# Set log level to info for reasonable size
|
|
CONFIG_LOG_DEFAULT_LEVEL=3
|
|
|
|
# Enable MCUMGR info logging (not debug to save space)
|
|
CONFIG_MCUMGR_LOG_LEVEL_INF=y
|
|
|
|
# Enable USB CDC info logging
|
|
CONFIG_USB_CDC_ACM_LOG_LEVEL_INF=y
|
|
|
|
# STEP 5.2 - Enable mcumgr DFU in application
|
|
# Enable MCUMGR
|
|
CONFIG_MCUMGR=y # Enable MCUMGR management for both OS and Images
|
|
CONFIG_MCUMGR_GRP_OS=y
|
|
CONFIG_MCUMGR_GRP_IMG=y
|
|
|
|
# Configure MCUMGR transport to UART (will use USB-CDC via chosen device)
|
|
CONFIG_MCUMGR_TRANSPORT_UART=y
|
|
|
|
# Dependencies
|
|
# Configure dependencies for CONFIG_MCUMGR
|
|
CONFIG_NET_BUF=y
|
|
CONFIG_ZCBOR=y
|
|
CONFIG_CRC=y # Configure dependencies for CONFIG_MCUMGR_GRP_IMG
|
|
CONFIG_FLASH=y
|
|
CONFIG_IMG_MANAGER=y # Configure dependencies for CONFIG_IMG_MANAGER
|
|
CONFIG_STREAM_FLASH=y
|
|
CONFIG_FLASH_MAP=y # Configure dependencies for CONFIG_MCUMGR_TRANSPORT_USB_CDC
|
|
CONFIG_BASE64=y
|