@@ -32,6 +32,20 @@ menu "Memfault"
3232 been shipped and the partition table cannot be modified, an
3333 OTA slot can be used instead.
3434
35+ config MEMFAULT_COREDUMP_STORAGE_MAX_SIZE
36+ int "The maximum size of a coredump (0=partition max size)"
37+ default 0
38+ help
39+ The maximum size of a coredump. If a coredump is larger than this
40+ size, it will be truncated to this size. Must be aligned to
41+ SPI_FLASH_SEC_SIZE. When set to =0 (the default), Memfault will
42+ attempt to capture the entire RAM region of the device, up to the
43+ maximum size of the `coredump` region. If it's desirable to
44+ artificially reduce the utilized space in the `coredump` partition,
45+ setting a non-zero value will cause the Memfault ESP-IDF port's
46+ 'memfault_platform_coredump_storage_get_info()' function to return
47+ the threshold value set here as the size of the partition..
48+
3549 config MEMFAULT_AUTOMATIC_INIT
3650 bool "[DEPRECATED] Automatically initialize the SDK when the system is booted"
3751 default n
@@ -40,29 +54,47 @@ menu "Memfault"
4054 `memfault_boot`. This option is deprecated and not supported.
4155 A build error will be generated when enabling this option.
4256
43- menuconfig MEMFAULT_DEFAULT_GET_DEVICE_INFO
57+ menu "Builtin device info implementation"
58+
59+ config MEMFAULT_DEFAULT_GET_DEVICE_INFO
4460 bool "Enables the default memfault_platform_get_device_info() implementation"
4561 default y
4662 help
4763 Enable a default implementation of
4864 memfault_platform_get_device_info(). Disable this config to
4965 implement a custom version of the function.
5066
51- if MEMFAULT_DEFAULT_GET_DEVICE_INFO
52-
5367 config MEMFAULT_DEVICE_INFO_HARDWARE_VERSION
54- string "Hardware version used in the default device info implementation "
68+ string "Hardware version used in memfault_esp_port_get_device_info() "
5569 default "$(IDF_TARGET)-proto"
5670
5771 config MEMFAULT_DEVICE_INFO_SOFTWARE_VERSION
58- string "Software version used in the default device info implementation "
72+ string "Software version used in memfault_esp_port_get_device_info() "
5973 default "1.0.0-dev"
6074
6175 config MEMFAULT_DEVICE_INFO_SOFTWARE_TYPE
62- string "Software type used in the default device info implementation "
76+ string "Software type used in memfault_esp_port_get_device_info() "
6377 default "esp32-main"
6478
65- endif # MEMFAULT_DEFAULT_GET_DEVICE_INFO
79+ endmenu # Builtin device info implementation
80+
81+ config MEMFAULT_PLATFORM_CONFIG_FILE
82+ string "Name of the Memfault platform config file"
83+ default "memfault_platform_config.h"
84+ help
85+ The name of the file which contains the Memfault platform config
86+ options. This file must be included in the project's include path.
87+
88+ config MEMFAULT_USER_CONFIG_SILENT_FAIL
89+ bool "Continue with build even if user configuration of Memfault SDK is missing"
90+ default y
91+ help
92+ When enabled, __has_include is used to conditionally include the three Memfault
93+ configuration files to a port if they exist instead of failing to compile if
94+ they do not:
95+ memfault_platform_config.h
96+ memfault_metrics_heartbeat_config.def
97+ memfault_trace_reason_user_config.def
6698
6799 config MEMFAULT_HTTP_CLIENT_TIMEOUT_MS
68100 int "The HTTP client timeout in milliseconds"
0 commit comments