@@ -32,6 +32,20 @@ menu "Memfault"
32
32
been shipped and the partition table cannot be modified, an
33
33
OTA slot can be used instead.
34
34
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
+
35
49
config MEMFAULT_AUTOMATIC_INIT
36
50
bool "[DEPRECATED] Automatically initialize the SDK when the system is booted"
37
51
default n
@@ -40,29 +54,47 @@ menu "Memfault"
40
54
`memfault_boot`. This option is deprecated and not supported.
41
55
A build error will be generated when enabling this option.
42
56
43
- menuconfig MEMFAULT_DEFAULT_GET_DEVICE_INFO
57
+ menu "Builtin device info implementation"
58
+
59
+ config MEMFAULT_DEFAULT_GET_DEVICE_INFO
44
60
bool "Enables the default memfault_platform_get_device_info() implementation"
45
61
default y
46
62
help
47
63
Enable a default implementation of
48
64
memfault_platform_get_device_info(). Disable this config to
49
65
implement a custom version of the function.
50
66
51
- if MEMFAULT_DEFAULT_GET_DEVICE_INFO
52
-
53
67
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() "
55
69
default "$(IDF_TARGET)-proto"
56
70
57
71
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() "
59
73
default "1.0.0-dev"
60
74
61
75
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() "
63
77
default "esp32-main"
64
78
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
66
98
67
99
config MEMFAULT_HTTP_CLIENT_TIMEOUT_MS
68
100
int "The HTTP client timeout in milliseconds"
0 commit comments