-
Notifications
You must be signed in to change notification settings - Fork 0
/
overlay-memfault.conf
51 lines (41 loc) · 1.88 KB
/
overlay-memfault.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#
# Copyright (c) 2021 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#
CONFIG_MEMFAULT=y
CONFIG_MEMFAULT_NCS_PROJECT_KEY=""
CONFIG_MEMFAULT_NCS_DEVICE_ID_IMEI=y
CONFIG_MEMFAULT_NCS_LTE_METRICS=y
CONFIG_MEMFAULT_NCS_STACK_METRICS=y
CONFIG_MEMFAULT_NCS_LOCATION_METRICS=y
CONFIG_MEMFAULT_LOGGING_ENABLE=y
CONFIG_MEMFAULT_ROOT_CERT_STORAGE_NRF9160_MODEM=y
# There is a race with the credential provisioning and starting LTE network search if automatic
# provisioning is used. Therefore it's disabled, and the app controls it.
CONFIG_MEMFAULT_NCS_PROVISION_CERTIFICATES=n
CONFIG_MODEM_KEY_MGMT=y
# Increase the coredump size to be able to capture all thread stacks
CONFIG_MEMFAULT_RAM_BACKED_COREDUMP_SIZE=10240
CONFIG_MEMFAULT_COREDUMP_COLLECT_BSS_REGIONS=y
# Increase the stack size of the system workqueue in case Memfault is enabled. If the debug module
# is configured to forward Memfault data via an external transport the data will be carried on
# the system workqueue using Application Event Manager events.
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=3584
CONFIG_DEBUG_MODULE=y
# Increase the event storage size so that all metrics generated by the asset tracker application
# are reliably sent to the memfault cloud.
CONFIG_MEMFAULT_EVENT_STORAGE_SIZE=2048
# Configure frequency of periodic upload and heartbeat collection
CONFIG_MEMFAULT_HTTP_PERIODIC_UPLOAD=y
CONFIG_MEMFAULT_HTTP_PERIODIC_UPLOAD_INTERVAL_SECS=10800
CONFIG_DEBUG_MODULE_MEMFAULT_HEARTBEAT_INTERVAL_SEC=3600
# To override the version for FOTA testing, set the following line
# CONFIG_MEMFAULT_NCS_FW_VERSION_PREFIX="0.0.1+"
# Disable NRF Cloud FOTA to save some kB, we don't use it
CONFIG_NRF_CLOUD_FOTA=n
CONFIG_MEMFAULT_FOTA=y
CONFIG_MEMFAULT_NCS_FW_VERSION_STATIC=y
CONFIG_MEMFAULT_NCS_FW_VERSION="0.0.99-dev"
# Define our own implementation of this function
CONFIG_MEMFAULT_NCS_IMPLEMENT_METRICS_COLLECTION=n