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+
112### Changes between Memfault SDK 0.39.1 and SDK 0.38.0 - Feb 3, 2023
213
314#### :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 {
1919 uint8_t patch ;
2020} sMfltSdkVersion ;
2121
22- #define MEMFAULT_SDK_VERSION { .major = 0, .minor = 39 , .patch = 1 }
22+ #define MEMFAULT_SDK_VERSION { .major = 0, .minor = 40 , .patch = 0 }
2323
2424#ifdef __cplusplus
2525}
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+
110set (MEMFAULT_SDK_ROOT ${CMAKE_CURRENT_LIST_DIR} /../../..)
211
312list (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"
3333 OTA slot can be used instead.
3434
3535 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
3838 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 .
4242
4343 config MEMFAULT_HTTP_CLIENT_TIMEOUT_MS
4444 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);
4040//! @return true if the buffer was filled, false otherwise
4141bool memfault_esp_port_get_chunk (void * buf , size_t * buf_len );
4242
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.
5044void memfault_boot (void );
5145
5246#ifdef __cplusplus
You can’t perform that action at this time.
0 commit comments