Skip to content

Commit

Permalink
Memfault Firmware SDK 1.5.1 (Build 4929)
Browse files Browse the repository at this point in the history
  • Loading branch information
Memfault Inc committed Dec 7, 2023
1 parent 8cd5dc1 commit ae77446
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 20 deletions.
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# Memfault Firmware SDK Changelog

## [1.5.1] - 2023-12-07

### :chart_with_upwards_trend: Improvements

- nRF-Connect SDK:

- Correct a build error that occurs when `CONFIG_DOWNLOAD_CLIENT=y` +
`CONFIG_MEMFAULT_FOTA=n`. This fixes the second issue reported in
[#66](https://github.com/memfault/memfault-firmware-sdk/issues/66#issuecomment-1845301737)

### :boom: Breaking Changes

- General:

- The SDK config flag `MEMFAULT_EVENT_STORAGE_NV_SUPPORT_ENABLED` now defaults
to `0`, disabled. This saves a minor amount of code space. Most
implementations don't need the feature; for users that require it, the flag
will now need to be set in `memfault_platform_config.h` as
`#define MEMFAULT_EVENT_STORAGE_NV_SUPPORT_ENABLED 1`.

## [1.5.0] - 2023-11-29

### :rocket: New Features
Expand Down
6 changes: 3 additions & 3 deletions VERSION
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BUILD ID: 4793
GIT COMMIT: 06d69b79b
VERSION: 1.5.0
BUILD ID: 4929
GIT COMMIT: 138e44883
VERSION: 1.5.1
10 changes: 4 additions & 6 deletions components/include/memfault/default_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -161,13 +161,11 @@ extern "C" {
#define MEMFAULT_EVENT_STORAGE_READ_BATCHING_ENABLED 0
#endif

//! Enables support for the non-volatile event storage at compile time
//! instead of dynamically at runtime
//!
//! Disabling this feature saves several hundred bytes of codespace and can be useful to enable for
//! extremely constrained environments
//! Enables support for non-volatile event storage. At run-time the non-volatile
//! storage must be enabled before use. See nonvolatile_event_storage.h for
//! details.
#ifndef MEMFAULT_EVENT_STORAGE_NV_SUPPORT_ENABLED
#define MEMFAULT_EVENT_STORAGE_NV_SUPPORT_ENABLED 1
#define MEMFAULT_EVENT_STORAGE_NV_SUPPORT_ENABLED 0
#endif

#if MEMFAULT_EVENT_STORAGE_READ_BATCHING_ENABLED != 0
Expand Down
4 changes: 2 additions & 2 deletions components/include/memfault/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ typedef struct {
uint8_t patch;
} sMfltSdkVersion;

#define MEMFAULT_SDK_VERSION { .major = 1, .minor = 5, .patch = 0 }
#define MEMFAULT_SDK_VERSION_STR "1.5.0"
#define MEMFAULT_SDK_VERSION { .major = 1, .minor = 5, .patch = 1 }
#define MEMFAULT_SDK_VERSION_STR "1.5.1"

#ifdef __cplusplus
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ manifest:
projects:
- name: nrf
url: https://github.com/nrfconnect/sdk-nrf
revision: v2.2.0
revision: v2.4.0
import: true
import:
path-blocklist: modules/lib/memfault-firmware-sdk
Expand Down
13 changes: 6 additions & 7 deletions ports/zephyr/ncs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,12 @@ if(CONFIG_MEMFAULT_NRF_CONNECT_SDK)
add_subdirectory(src)
zephyr_include_directories(include)

if (NCS_VERSION_MAJOR)
# Note: Starting in nRF Connect SDK >= 1.3, NCS_VERSION_* fields are exposed
if (${NCS_VERSION_MAJOR}.${NCS_VERSION_MINOR}.${NCS_VERSION_PATCH} GREATER_EQUAL 2.4.0)
# We wrap download_client_get() in order to register multiple root certificates
# See comment in src/memfault_fota.c for more details
zephyr_ld_options(-Wl,--wrap=download_client_get)
endif()
# Note: Starting in nRF Connect SDK >= 1.3, NCS_VERSION_* fields are exposed.
# Prior to that, they're unset and cause the GREATER_EQUAL check to be falsy
if (CONFIG_MEMFAULT_FOTA AND (${NCS_VERSION_MAJOR}.${NCS_VERSION_MINOR}.${NCS_VERSION_PATCH} GREATER_EQUAL 2.4.0))
# We wrap download_client_get() in order to register multiple root certificates
# See comment in src/memfault_fota.c for more details
zephyr_ld_options(-Wl,--wrap=download_client_get)
endif()

endif()
1 change: 1 addition & 0 deletions tests/makefiles/Makefile_memfault_event_storage.mk
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ TEST_SRC_FILES = \

CPPUTEST_CPPFLAGS += -DMEMFAULT_TEST_PERSISTENT_EVENT_STORAGE_DISABLE=0
CPPUTEST_CPPFLAGS += -DMEMFAULT_EVENT_STORAGE_READ_BATCHING_ENABLED=0
CPPUTEST_CPPFLAGS += -DMEMFAULT_EVENT_STORAGE_NV_SUPPORT_ENABLED=1

include $(CPPUTEST_MAKFILE_INFRA)
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@ TEST_SRC_FILES = \

CPPUTEST_CPPFLAGS += -DMEMFAULT_TEST_PERSISTENT_EVENT_STORAGE_DISABLE=1
CPPUTEST_CPPFLAGS += -DMEMFAULT_EVENT_STORAGE_READ_BATCHING_ENABLED=0
CPPUTEST_CPPFLAGS += -DMEMFAULT_EVENT_STORAGE_NV_SUPPORT_ENABLED=0

include $(CPPUTEST_MAKFILE_INFRA)

0 comments on commit ae77446

Please sign in to comment.