#stCount # Copyright (c) 2018 Nordic Semiconductor # # SPDX-License-Identifier: LicenseRef-Nordic-5-Clause # # ----------------------------------------------------------------------------- # smp_srv proj.confg below: # ----------------------------------------------------------------------------- # Enable mcumgr. CONFIG_MCUMGR=y # Some command handlers require a large stack. # ?!? remarked 10-01-2023 CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2304 CONFIG_MAIN_STACK_SIZE=2048 # Ensure an MCUboot-compatible binary is generated. CONFIG_BOOTLOADER_MCUBOOT=y # Enable flash operations. CONFIG_FLASH=y # Required by the `taskstat` command. CONFIG_THREAD_MONITOR=y # Support for taskstat command CONFIG_OS_MGMT_TASKSTAT=y # Enable statistics and statistic names. CONFIG_STATS=y CONFIG_STATS_NAMES=y # Enable most core commands. CONFIG_MCUMGR_CMD_IMG_MGMT=y CONFIG_MCUMGR_CMD_OS_MGMT=y CONFIG_MCUMGR_CMD_STAT_MGMT=y # Enable logging CONFIG_LOG=y CONFIG_MCUBOOT_UTIL_LOG_LEVEL_WRN=y # ----------------------------------------------------------------------------- # smp_srv overlay-bt.confg below: # Allow for large Bluetooth data packets. # ----------------------------------------------------------------------------- CONFIG_BT_L2CAP_TX_MTU=498 CONFIG_BT_BUF_ACL_RX_SIZE=502 CONFIG_BT_BUF_ACL_TX_SIZE=502 CONFIG_BT_CTLR_DATA_LENGTH_MAX=251 # Enable the Bluetooth mcumgr transport (unauthenticated). CONFIG_MCUMGR_SMP_BT=y CONFIG_MCUMGR_SMP_BT_AUTHEN=n CONFIG_MCUMGR_SMP_BT_CONN_PARAM_CONTROL=y # Enable the Shell mcumgr transport. # ?!? remarked 10-01-2023 CONFIG_MCUMGR_SMP_SHELL=y # Enable the mcumgr Packet Reassembly feature over Bluetooth and its configuration dependencies. # MCUmgr buffer size is optimized to fit one SMP packet divided into five Bluetooth Write Commands, # transmitted with the maximum possible MTU value: 498 bytes. CONFIG_MCUMGR_SMP_REASSEMBLY_BT=y CONFIG_MCUMGR_BUF_SIZE=2475 CONFIG_OS_MGMT_MCUMGR_PARAMS=y CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096 # Enable the LittleFS file system. CONFIG_FILE_SYSTEM=y CONFIG_FILE_SYSTEM_LITTLEFS=y # Enable file system commands CONFIG_MCUMGR_CMD_FS_MGMT=y # Enable the storage erase command. CONFIG_MCUMGR_GRP_ZEPHYR_BASIC=y CONFIG_MCUMGR_GRP_BASIC_CMD_STORAGE_ERASE=y # ----------------------------------------------------------------------------- # New definions below: # ----------------------------------------------------------------------------- CONFIG_REBOOT=y CONFIG_MCUBOOT_EXTRA_IMGTOOL_ARGS="--pad" # ----------------------------------------------------------------------------- # AMI definions below: # ----------------------------------------------------------------------------- CONFIG_REBOOT=y CONFIG_MCUBOOT_EXTRA_IMGTOOL_ARGS="--pad" CONFIG_BT=y CONFIG_BT_DEBUG_LOG=y CONFIG_BT_PERIPHERAL=y CONFIG_BT_DEVICE_APPEARANCE=1344 CONFIG_BT_MAX_CONN=1 #CONFIG_BT_LL_SOFTDEVICE=y CONFIG_BT_DEVICE_NAME="VaporBLE" # Enable Dynamic name modification CONFIG_BT_DEVICE_NAME_DYNAMIC=y # Maximum character of the device name # (Range: 2 to 248) CONFIG_BT_DEVICE_NAME_MAX=20 # ?!? remarked 10-01-2023 CONFIG_BT_SMP=y # ?!? remarked 10-01-2023 CONFIG_BT_SIGNING=y # If yes then there is a random MAC advertised CONFIG_BT_PRIVACY=n # Allow for updating data length CONFIG_BT_USER_DATA_LEN_UPDATE=y # Allow for Phy change CONFIG_BT_USER_PHY_UPDATE=y # Device Information CONFIG_BT_DIS=y CONFIG_BT_DIS_PNP=n CONFIG_BT_DIS_MODEL="VaporBT" CONFIG_BT_DIS_MANUF="AMI Global" CONFIG_BT_DIS_SERIAL_NUMBER=y CONFIG_BT_DIS_SERIAL_NUMBER_STR="0523382370" CONFIG_BT_DIS_FW_REV=y CONFIG_BT_DIS_FW_REV_STR="000.000" CONFIG_BT_DIS_HW_REV=y CONFIG_BT_DIS_HW_REV_STR="000.000" CONFIG_BT_DIS_SW_REV=y CONFIG_BT_DIS_SW_REV_STR="000.000" CONFIG_BT_DIS_SETTINGS=y CONFIG_BT_DIS_STR_MAX=21 # Below is setup to let DIS information be read from settings CONFIG_BT_SETTINGS=y CONFIG_SETTINGS_RUNTIME=y CONFIG_SETTINGS=y CONFIG_SETTINGS_NONE=y # TX Power #CONFIG_BT_CTLR_TX_PWR_PLUS_4=y #CONFIG_BT_CTLR_ADVANCED_FEATURES=y #CONFIG_BT_CTLR_CONN_RSSI=y CONFIG_BT_CTLR_TX_PWR_DYNAMIC_CONTROL=y # Passkey not used CONFIG_BT_AMI_CM_SECURITY_ENABLED=y CONFIG_HEAP_MEM_POOL_SIZE=32768 CONFIG_FPU=y CONFIG_NEWLIB_LIBC=y # for Spectral|Impact DSP CONFIG_CMSIS_DSP=y CONFIG_CMSIS_DSP_SUPPORT=y CONFIG_CMSIS_DSP_FASTMATH=y CONFIG_CMSIS_DSP_COMPLEXMATH=y CONFIG_CMSIS_DSP_STATISTICS=y CONFIG_CMSIS_DSP_TRANSFORM=y #CONFIG_CMSIS_DSP_TABLES_ALL_FAST=y #CONFIG_CMSIS_DSP_TABLES_ALL_FFT=y CONFIG_CMSIS_DSP_TABLES_ALL_FAST=n CONFIG_CMSIS_DSP_TABLES_ALL_FFT=n CONFIG_CMSIS_DSP_TABLES_RFFT_FAST_F32_32=y CONFIG_CMSIS_DSP_TABLES_ARM_SIN_F32=y CONFIG_CMSIS_DSP_TABLES_ARM_COS_F32=y CONFIG_CMSIS_DSP_TABLES_ARM_CMPLX_MAG_Q31=y CONFIG_CMSIS_DSP_TABLES_RFFT_F32_512=y # Watchdog #CONFIG_WDT_LOG_LEVEL_DBG=y CONFIG_WATCHDOG=y # GPIO CONFIG_GPIO=y # I2c for 24LC512 CONFIG_I2C=y CONFIG_I2C_NRFX=y CONFIG_I2C_LOG_LEVEL_OFF=y # EEPROM CONFIG_EEPROM=y CONFIG_EEPROM_AT24=y # SPI for LSM6DSL CONFIG_SPI=y CONFIG_NRFX_SPIM1=y # LSM6DSL CONFIG_SENSOR=y CONFIG_LSM6DSL=y CONFIG_AMI_LSM6DSL_EXTEND_CFG=y CONFIG_LSM6DSL_ACCEL_FS=2 CONFIG_LSM6DSL_ACCEL_ODR=0 # Power management CONFIG_PM=y CONFIG_PM_DEVICE=y CONFIG_PM_DEVICE_RUNTIME=y #CONFIG_PM_STATS=y #CONFIG_STATS=y CONFIG_PINCTRL=y CONFIG_MULTITHREADING=y # ADC CONFIG_ADC=y CONFIG_ADC_ASYNC=y # Timers CONFIG_NRFX_TIMER1=y # ---------------------------------------- # USE RTT Instead of Uart # ---------------------------------------- CONFIG_CONSOLE=y CONFIG_RTT_CONSOLE=y CONFIG_USE_SEGGER_RTT=y CONFIG_LOG_BACKEND_RTT=y # ---------------------------------------- # below for Cellular DFU # ---------------------------------------- # ?!? remarked 10-01-2023 CONFIG_ZCBOR=y # ?!? remarked 10-01-2023 CONFIG_ZCBOR_STOP_ON_ERROR=y # ---------------------------------------- # below for DFU # ---------------------------------------- # Enable mcumgr. # ?!? remarked 10-01-2023 CONFIG_MCUMGR=y # DFU Target ?!? new # ?!? remarked 10-01-2023 CONFIG_DFU_TARGET=y # ?!? remarked 10-01-2023 CONFIG_DFU_TARGET_MCUBOOT=y # ?!? remarked 10-01-2023 CONFIG_STREAM_FLASH_ERASE=y # ?!? remarked 10-01-2023 CONFIG_STREAM_FLASH=y # ?!? remarked 10-01-2023 CONFIG_IMG_ERASE_PROGRESSIVELY=y # nRF9160 Flash page is 0x1000 = 4096 # ?!? remarked 10-01-2023 CONFIG_IMG_BLOCK_BUF_SIZE=4096 # ?!? new 14-Dec-2022 # ?!? remarked 10-01-2023 CONFIG_IMG_MANAGER=y # ?!? remarked 10-01-2023 CONFIG_MCUBOOT_IMG_MANAGER=y # ?!? new 14-Dec-2022 CONFIG_RING_BUFFER=y # The image management command handlers makes it possible to upload, list, test and confirm the image(s) # ?!? remarked 10-01-2023 CONFIG_MCUMGR_CMD_IMG_MGMT=y # The OS management command handlers makes it possible to reset the chip (and run the echo command). # ?!? remarked 10-01-2023 CONFIG_MCUMGR_CMD_OS_MGMT=y # Ensure an MCUboot-compatible binary is generated. # ?!? remarked 10-01-2023 CONFIG_BOOTLOADER_MCUBOOT=y # Allow for large Bluetooth data packets for uploading binary (Nordic Definitions) # commented when smp srv stuff added #CONFIG_BT_L2CAP_TX_MTU=252 #CONFIG_BT_BUF_ACL_RX_SIZE=256 # Enable the Bluetooth (unauthenticated) and shell mcumgr transports. # ?!? remarked 10-01-2023 CONFIG_MCUMGR_SMP_BT=y # ?!? remarked 10-01-2023 CONFIG_MCUMGR_SMP_BT_AUTHEN=n # ---------------------------------------- # Below from the throughput example # ---------------------------------------- # ?!? remarked 10-01-2023 CONFIG_BT_GAP_AUTO_UPDATE_CONN_PARAMS=n # ?!? remarked 10-01-2023 CONFIG_BT_USER_DATA_LEN_UPDATE=y # ---------------------------------------- # Below from the smp srv example # ---------------------------------------- # Allow for large Bluetooth data packets. # ?!? remarked 10-01-2023 CONFIG_BT_L2CAP_TX_MTU=498 # ?!? remarked 10-01-2023 CONFIG_BT_BUF_ACL_RX_SIZE=502 # ?!? remarked 10-01-2023 CONFIG_BT_BUF_ACL_TX_SIZE=502 # ?!? remarked 10-01-2023 CONFIG_BT_CTLR_DATA_LENGTH_MAX=251 # Enable the Bluetooth mcumgr transport (unauthenticated). # ?!? remarked 10-01-2023 CONFIG_MCUMGR_SMP_BT=y # ?!? remarked 10-01-2023 CONFIG_MCUMGR_SMP_BT_AUTHEN=n # ?!? remarked 10-01-2023 CONFIG_MCUMGR_SMP_BT_CONN_PARAM_CONTROL=y # Enable the Shell mcumgr transport. # ?!? no need for shell CONFIG_MCUMGR_SMP_SHELL=y # Enable the mcumgr Packet Reassembly feature over Bluetooth and its configuration dependencies. # MCUmgr buffer size is optimized to fit one SMP packet divided into five Bluetooth Write Commands, # transmitted with the maximum possible MTU value: 498 bytes. # ?!? remarked 10-01-2023 CONFIG_MCUMGR_SMP_REASSEMBLY_BT=y # ?!? remarked 10-01-2023 CONFIG_MCUMGR_BUF_SIZE=2475 # ?!? remarked 10-01-2023 CONFIG_OS_MGMT_MCUMGR_PARAMS=y # Enable the LittleFS file system. # ?!? remarked 10-01-2023 CONFIG_FILE_SYSTEM=y # ?!? remarked 10-01-2023 CONFIG_FILE_SYSTEM_LITTLEFS=y # Enable file system commands # ?!? CONFIG_MCUMGR_CMD_FS_MGMT=y # Enable the storage erase command. # ?!? remarked 10-01-2023 CONFIG_MCUMGR_GRP_ZEPHYR_BASIC=y # ?!? remarked 10-01-2023 CONFIG_MCUMGR_GRP_BASIC_CMD_STORAGE_ERASE=y