Skip to content

Commit 48e6655

Browse files
committed
feat: update memfault sdk to 1.19.0
### Summary In Memfault SDK 1.19.0, the config `MEMFAULT_METRICS_HEARTBEAT_INTERVAL_SECS` set via `memfault_platform_config.h` was replaced with the Kconfig `CONFIG_MEMFAULT_METRICS_HEARTBEAT_INTERVAL_SECS`. This commit updates the SDK version and: - Removes debug module Kconfig in the asset tracker app for the hearbeat interval, this is unnecessary wrapping now that the Memfault Zephyr module has a Kconfig - Removes references to the old config - Adds example usage of `CONFIG_MEMFAULT_METRICS_HEARTBEAT_INTERVAL_SECS` ### Test Plan Confirmed successful build of asset tracker app: ``` west build -b thingy91/nrf9160/ns --sysbuild -p always nrf/applications/asset_tracker_v2 -- \ -DCONFIG_MEMFAULT_NCS_PROJECT_KEY=\"$(<~/.memfault-gilly-playground-proj-key)\" \ -DOVERLAY_CONFIG=overlay-memfault.conf ```
1 parent 6e4a44d commit 48e6655

File tree

7 files changed

+5
-26
lines changed

7 files changed

+5
-26
lines changed

applications/asset_tracker_v2/configuration/memfault/memfault_platform_config.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,5 @@
77
*/
88

99
#if defined(CONFIG_DEBUG_MODULE)
10-
/* Prepare captured metric data for upload to Memfault cloud every configured interval. */
11-
#define MEMFAULT_METRICS_HEARTBEAT_INTERVAL_SECS CONFIG_DEBUG_MODULE_MEMFAULT_HEARTBEAT_INTERVAL_SEC
1210
#define MEMFAULT_DATA_EXPORT_CHUNK_MAX_LEN CONFIG_DEBUG_MODULE_MEMFAULT_CHUNK_SIZE_MAX
1311
#endif /* defined(CONFIG_DEBUG_MODULE) */

applications/asset_tracker_v2/doc/debug_module.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,6 @@ Configuration options
5252
CONFIG_DEBUG_MODULE_MEMFAULT_USE_EXTERNAL_TRANSPORT - Configuration for transfer of Memfault data
5353
This option, if enabled, makes the debug module trigger events carrying Memfault data. This data can be routed through an external transport to Memfault cloud, for example, through AWS IoT, Azure IoT Hub, or `nRF Cloud`_.
5454

55-
.. _CONFIG_DEBUG_MODULE_MEMFAULT_HEARTBEAT_INTERVAL_SEC:
56-
57-
CONFIG_DEBUG_MODULE_MEMFAULT_HEARTBEAT_INTERVAL_SEC - Configuration for nRF Connect SDK Memfault metrics tracking interval
58-
This option sets the time interval for tracking |NCS| Memfault metrics.
59-
6055
.. _CONFIG_DEBUG_MODULE_MEMFAULT_CHUNK_SIZE_MAX:
6156

6257
CONFIG_DEBUG_MODULE_MEMFAULT_CHUNK_SIZE_MAX - Configuration for maximum size of transmitted packets

applications/asset_tracker_v2/overlay-memfault.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ CONFIG_MEMFAULT_NCS_STACK_METRICS=y
1212
CONFIG_MEMFAULT_NCS_LOCATION_METRICS=y
1313
CONFIG_MEMFAULT_LOGGING_ENABLE=y
1414

15+
# Configuration that sets how often Memfault captures and prepares data that will be sent
16+
# to Memfault cloud. Reduced from the default 1 hour interval here for demonstration.
17+
CONFIG_MEMFAULT_METRICS_HEARTBEAT_INTERVAL_SECS=1800
18+
1519
CONFIG_MEMFAULT_ROOT_CERT_STORAGE_NRF9160_MODEM=y
1620
# There is a race with the credential provisioning and starting LTE network search if automatic
1721
# provisioning is used. Therefore it's disabled, and the app controls it.

applications/asset_tracker_v2/src/modules/Kconfig.debug_module

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,6 @@ config DEBUG_MODULE_MEMFAULT_USE_EXTERNAL_TRANSPORT
3333
The AWS IoT configuration of the application is the only implementation that currently
3434
supports this option.
3535

36-
config DEBUG_MODULE_MEMFAULT_HEARTBEAT_INTERVAL_SEC
37-
int "Memfault heartbeat interval in seconds"
38-
default 1800
39-
help
40-
Configuration that sets how often Memfault captures and prepares data that will be sent
41-
to Memfault cloud. Reduce this interval to get more frequent updates to Memfault.
42-
Note that data transmitted to Memfault cloud is still dependent on how often the
43-
application sends data, which can be manipulated by setting the application's real-time
44-
configurations.
45-
4636
config DEBUG_MODULE_MEMFAULT_WATCHDOG_DELTA_MS
4737
int "Memfault software watchdog delta"
4838
default 5000

samples/bluetooth/peripheral_mds/memfault_config/memfault_platform_config.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,3 @@
99
* "<NCS folder>/modules/lib/memfault-firmware-sdk/components/include/memfault/default_config.h"
1010
*/
1111

12-
/* #define MEMFAULT_METRICS_HEARTBEAT_INTERVAL_SECS 1800 */

samples/debug/memfault/config/memfault_platform_config.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,3 @@
1212
* "<NCS folder>/modules/lib/memfault-firmware-sdk/components/include/memfault/default_config.h"
1313
*/
1414

15-
/* Uncomment the definition below to override the default setting for
16-
* heartbeat interval. This will prepare the captured metric data for upload
17-
* to Memfault cloud at the specified interval.
18-
*/
19-
/*
20-
* #define MEMFAULT_METRICS_HEARTBEAT_INTERVAL_SECS 1800
21-
*/

west.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ manifest:
262262
remote: throwtheswitch
263263
- name: memfault-firmware-sdk
264264
path: modules/lib/memfault-firmware-sdk
265-
revision: 1.12.0
265+
revision: 1.19.0
266266
remote: memfault
267267
- name: bsim
268268
repo-path: bsim_west

0 commit comments

Comments
 (0)