File tree Expand file tree Collapse file tree 6 files changed +29
-15
lines changed
components/include/memfault
include/memfault/esp_port Expand file tree Collapse file tree 6 files changed +29
-15
lines changed Original file line number Diff line number Diff line change
1
+ ### Changes between Memfault SDK 0.40.1 and SDK 0.39.1 - Feb 15, 2023
2
+
3
+ #### :bomb : Breaking Changes
4
+
5
+ - ESP-IDF:
6
+ - The Kconfig ` CONFIG_MEMFAULT_AUTOMATIC_INIT ` has been deprecated and is no
7
+ longer supported. Users of this Kconfig should refactor their application to
8
+ call ` memfault_boot ` during initialization. Use of this Kconfig now results
9
+ in a build error. For more information please see
10
+ https://docs.memfault.com/docs/mcu/esp32-guide#initializing-memfault
11
+
1
12
### Changes between Memfault SDK 0.39.1 and SDK 0.38.0 - Feb 3, 2023
2
13
3
14
#### :rocket : New Features
Original file line number Diff line number Diff line change 1
- BUILD ID: 1436
2
- GIT COMMIT: 38142ae37
1
+ BUILD ID: 1523
2
+ GIT COMMIT: e4c98a50b
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ typedef struct {
19
19
uint8_t patch ;
20
20
} sMfltSdkVersion ;
21
21
22
- #define MEMFAULT_SDK_VERSION { .major = 0, .minor = 39 , .patch = 1 }
22
+ #define MEMFAULT_SDK_VERSION { .major = 0, .minor = 40 , .patch = 0 }
23
23
24
24
#ifdef __cplusplus
25
25
}
Original file line number Diff line number Diff line change
1
+ if (CONFIG_MEMFAULT_AUTOMATIC_INIT)
2
+ message (FATAL_ERROR "CONFIG_MEMFAULT_AUTOMATIC_INIT has been deprecated.
3
+ Please complete the following steps:
4
+ 1. Remove CONFIG_MEMFAULT_AUTOMATIC_INIT=y from sdkconfig.default if present
5
+ 2. Delete your project's generated sdkconfig (be sure to save any in-progress changes)
6
+ 3. Update your application to call memfault_boot during initialization
7
+ For more information please see https://docs.memfault.com/docs/mcu/esp32-guide" )
8
+ endif ()
9
+
1
10
set (MEMFAULT_SDK_ROOT ${CMAKE_CURRENT_LIST_DIR} /../../..)
2
11
3
12
list (APPEND MEMFAULT_COMPONENTS core util panics demo http metrics)
Original file line number Diff line number Diff line change @@ -33,12 +33,12 @@ menu "Memfault"
33
33
OTA slot can be used instead.
34
34
35
35
config MEMFAULT_AUTOMATIC_INIT
36
- bool "Automatically initialize the SDK when the system is booted"
37
- default y
36
+ bool "[DEPRECATED] Automatically initialize the SDK when the system is booted"
37
+ default n
38
38
help
39
- By default, Memfault will automatically initialize the SDK
40
- when the system is booted . This can be disabled if the user
41
- wants to initialize the SDK manually .
39
+ By default, the user is required to initialize the SDK by calling
40
+ `memfault_boot` . This option is deprecated and not supported.
41
+ A build error will be generated when enabling this option .
42
42
43
43
config MEMFAULT_HTTP_CLIENT_TIMEOUT_MS
44
44
int "The HTTP client timeout in milliseconds"
Original file line number Diff line number Diff line change @@ -40,13 +40,7 @@ bool memfault_esp_port_data_available(void);
40
40
//! @return true if the buffer was filled, false otherwise
41
41
bool memfault_esp_port_get_chunk (void * buf , size_t * buf_len );
42
42
43
- //! Intializes the Memfault system, and should be called one time at boot.
44
- //!
45
- //! Note: by default this is called from the system initialization sequence-
46
- //! it's placed into the global constructor table during compilation, and
47
- //! executed by the esp-idf initialization code. Optionally it can instead be
48
- //! explictly called during application startup by setting
49
- //! 'CONFIG_MEMFAULT_AUTOMATIC_INIT=n' in the project Kconfig options.
43
+ //! Intializes the Memfault system, and should be called one time by the application during boot.
50
44
void memfault_boot (void );
51
45
52
46
#ifdef __cplusplus
You can’t perform that action at this time.
0 commit comments