Removed USB stack

master
noah metz 2024-02-18 11:47:38 -07:00
parent bfb38d51e1
commit 3540e86992
2 changed files with 78 additions and 95 deletions

@ -1,79 +1,62 @@
# Configure serial
CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_SERIAL=y
# Make sure printk is not printing to the UART console
CONFIG_CONSOLE=y
# Disable Defaults + USB
CONFIG_CONSOLE=n
CONFIG_UART_CONSOLE=n
CONFIG_SERIAL=n
CONFIG_SHELL=n
CONFIG_USB_DEVICE_STACK=n
CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=n
CONFIG_DK_LIBRARY=n
# Disable Networking Features
CONFIG_NET_IPV6=n
CONFIG_NET_IP_ADDR_CHECK=n
# Priorities / Memories
CONFIG_MAIN_THREAD_PRIORITY=7
CONFIG_HEAP_MEM_POOL_SIZE=4096
CONFIG_IEEE802154_NRF5_RX_STACK_SIZE=2048
CONFIG_ZBOSS_DEFAULT_THREAD_STACK_SIZE=10240
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
CONFIG_NET_PKT_RX_COUNT=256
CONFIG_NET_PKT_TX_COUNT=10
# Zigbee
CONFIG_ZIGBEE=y
CONFIG_ZIGBEE_APP_UTILS=y
CONFIG_ZIGBEE_ROLE_ROUTER=y
CONFIG_NET_IPV6=n
CONFIG_NET_IP_ADDR_CHECK=n
CONFIG_ZIGBEE_CHANNEL_SELECTION_MODE_MULTI=y
# Crypto config
CONFIG_CRYPTO=y
CONFIG_CRYPTO_NRF_ECB=y
CONFIG_CRYPTO_INIT_PRIORITY=80
# USB subsystem configuration
CONFIG_USB_DEVICE_STACK=y
CONFIG_USB_DEVICE_PRODUCT="jamie Shell"
CONFIG_USB_CDC_ACM=y
# Increase RX serial ring buffer
CONFIG_SHELL_BACKEND_SERIAL_RX_RING_BUFFER_SIZE=128
# Logging
CONFIG_USE_SEGGER_RTT=y
CONFIG_SEGGER_RTT_BUFFER_SIZE_UP=10240
CONFIG_LOG=y
CONFIG_LOG_BACKEND_RTT=y
CONFIG_LOG_PROCESS_THREAD_STARTUP_DELAY_MS=0
CONFIG_LOG_MODE_IMMEDIATE=y
# Let apps control the serial line
CONFIG_UART_LINE_CTRL=y
CONFIG_FATAL_ERROR_LOG_LEVEL_DBG=y
CONFIG_MPSL_LOG_LEVEL_DBG=y
CONFIG_ZBOSS_TRACE_LOG_LEVEL_DBG=y
CONFIG_ZBOSS_TRACE_MASK=0x00000C48
CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=y
CONFIG_ZIGBEE_CHANNEL_SELECTION_MODE_MULTI=y
CONFIG_SHELL=y
CONFIG_ZIGBEE_SHELL=y
CONFIG_ZIGBEE_SHELL_DEBUG_CMD=y
CONFIG_SENSOR_SHELL=n
# Fatal Error Config
CONFIG_RESET_ON_FATAL_ERROR=y
CONFIG_ZBOSS_RESET_ON_ASSERT=y
CONFIG_HEAP_MEM_POOL_SIZE=4096
# Bootlader
CONFIG_BOARD_HAS_NRF5_BOOTLOADER=n
# Debug Optimizations
CONFIG_DEBUG=y
CONFIG_DEBUG_THREAD_INFO=y
CONFIG_DEBUG_OPTIMIZATIONS=y
CONFIG_DEBUG_INFO=y
CONFIG_MPSL_ASSERT_HANDLER=n
CONFIG_NET_PKT_RX_COUNT=256
CONFIG_NET_PKT_TX_COUNT=10
CONFIG_ZIGBEE_SHELL_ENDPOINT=64
CONFIG_DK_LIBRARY=n
CONFIG_LOG=y
CONFIG_LOG_PROCESS_THREAD_STARTUP_DELAY_MS=0
CONFIG_MPSL_LOG_LEVEL_DBG=y
CONFIG_ZBOSS_TRACE_LOG_LEVEL_DBG=y
CONFIG_USE_SEGGER_RTT=y
CONFIG_LOG_BACKEND_RTT=y
CONFIG_SEGGER_RTT_BUFFER_SIZE_UP=10240
CONFIG_LOG_MODE_IMMEDIATE=y
CONFIG_SHELL_LOG_BACKEND=n
CONFIG_USB_NRFX_WORK_QUEUE_STACK_SIZE=2048
CONFIG_IEEE802154_NRF5_RX_STACK_SIZE=2048
CONFIG_ZBOSS_DEFAULT_THREAD_STACK_SIZE=10240
CONFIG_USB_WORKQUEUE_STACK_SIZE=4096
CONFIG_RESET_ON_FATAL_ERROR=y
CONFIG_FATAL_ERROR_LOG_LEVEL_DBG=y
CONFIG_ZBOSS_TRACE_MASK=0x00000C48
CONFIG_ZBOSS_RESET_ON_ASSERT=n

@ -1,64 +1,64 @@
# LOG configuration
CONFIG_LOG=y
CONFIG_LOG_MODE_DEFERRED=y
CONFIG_LOG_BUFFER_SIZE=4096
CONFIG_LOG_PROCESS_THREAD_STACK_SIZE=1024
CONFIG_LOG_PROCESS_THREAD_STARTUP_DELAY_MS=1000
# Disable USB
CONFIG_CONSOLE=n
CONFIG_UART_CONSOLE=n
CONFIG_SERIAL=n
# Disable Defaults + USB
CONFIG_CONSOLE=n
CONFIG_UART_CONSOLE=n
CONFIG_SERIAL=n
CONFIG_SHELL=n
CONFIG_USB_DEVICE_STACK=n
CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=n
CONFIG_DK_LIBRARY=n
# Disable Networking Features
CONFIG_NET_IPV6=n
CONFIG_NET_IP_ADDR_CHECK=n
# Configure serial
CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_SERIAL=y
# Priorities / Memories
CONFIG_MAIN_THREAD_PRIORITY=7
CONFIG_HEAP_MEM_POOL_SIZE=4096
# Make sure printk is not printing to the UART console
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_IEEE802154_NRF5_RX_STACK_SIZE=2048
CONFIG_ZBOSS_DEFAULT_THREAD_STACK_SIZE=10240
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
CONFIG_HEAP_MEM_POOL_SIZE=2048
CONFIG_MAIN_THREAD_PRIORITY=7
CONFIG_NET_PKT_RX_COUNT=256
CONFIG_NET_PKT_TX_COUNT=10
# Zigbee
CONFIG_ZIGBEE=y
CONFIG_ZIGBEE_APP_UTILS=y
CONFIG_ZIGBEE_ROLE_ROUTER=y
CONFIG_NET_IPV6=n
CONFIG_NET_IP_ADDR_CHECK=n
CONFIG_ZIGBEE_CHANNEL_SELECTION_MODE_MULTI=y
CONFIG_ZIGBEE_FOTA=y
# Crypto config
CONFIG_CRYPTO=y
CONFIG_CRYPTO_NRF_ECB=y
CONFIG_CRYPTO_INIT_PRIORITY=80
# USB subsystem configuration
CONFIG_USB_DEVICE_STACK=y
CONFIG_USB_DEVICE_PRODUCT="jamie Shell"
CONFIG_USB_CDC_ACM=y
# Let apps control the serial line
CONFIG_UART_LINE_CTRL=y
# Logging
CONFIG_USE_SEGGER_RTT=y
CONFIG_SEGGER_RTT_BUFFER_SIZE_UP=10240
CONFIG_LOG=y
CONFIG_LOG_BACKEND_RTT=y
CONFIG_LOG_PROCESS_THREAD_STARTUP_DELAY_MS=0
CONFIG_LOG_MODE_IMMEDIATE=y
CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=y
CONFIG_FATAL_ERROR_LOG_LEVEL_DBG=y
CONFIG_MPSL_LOG_LEVEL_DBG=y
# Fatal Error Config
CONFIG_RESET_ON_FATAL_ERROR=y
CONFIG_ZBOSS_RESET_ON_ASSERT=y
CONFIG_ZIGBEE_CHANNEL_SELECTION_MODE_MULTI=y
CONFIG_SENSOR_SHELL=n
CONFIG_SHELL=y
CONFIG_ZIGBEE_SHELL=y
# Bootloader
CONFIG_BOARD_HAS_NRF5_BOOTLOADER=y
CONFIG_BOOTLOADER_MCUBOOT=y
CONFIG_ZIGBEE_FOTA=y
CONFIG_IMG_MANAGER=y
CONFIG_STREAM_FLASH=y
CONFIG_STREAM_FLASH_ERASE=y
CONFIG_MCUBOOT_GENERATE_UNSIGNED_IMAGE=y
CONFIG_MCUBOOT_IMGTOOL_SIGN_VERSION="0.0.0"
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
CONFIG_USB_NRFX_WORK_QUEUE_STACK_SIZE=2048
CONFIG_IEEE802154_NRF5_RX_STACK_SIZE=2048
CONFIG_ZBOSS_DEFAULT_THREAD_STACK_SIZE=10240