This is a minor release. Key updates:
- Integrated fuel gauge battery metrics for nPM13xx PMICs on nRF Connect SDK.
- Added CoAP client for uploading Memfault data via nRF Cloud.
- Fixed build issues and compiler warnings on Zephyr and nRF Connect SDK.
📈 Added
-
nRF-Connect SDK:
-
Add a battery metrics port for the nPM1300 and nPM1304 PMICs, which includes
collecting battery metrics for the
Battery Device Vital
and a heartbeat metric for battery voltage. To leverage this port, set
CONFIG_MEMFAULT_NRF_PLATFORM_BATTERY_NPM13XX=y. Note that users must
provide the headermemfault_nrf_platform_battery_model.h, which should
define the battery model as specified by the nRF Fuel Gauge API. See the
Nordic docs
for more detail. Since this port callsnrf_fuel_gauge_process(),
applications that want to read state of charge should call
memfault_platform_get_stateofcharge()to avoid conflicting calls to the
fuel gauge library. -
Added a CoAP client implementation capable of uploading Memfault data
through an nRF Cloud connection. This is
primarily intended for use with the Nordic nRF91x series devices using LTE-M
or NB-IoT connectivity. To enable, use
CONFIG_MEMFAULT_USE_NRF_CLOUD_TRANSPORT=y. This will change the protocol
used bymemfault_zephyr_port_post_data()(and
CONFIG_MEMFAULT_HTTP_PERIODIC_UPLOAD), from HTTP to CoAP.
-
-
Zephyr:
- Add the symbol
CONFIG_MEMFAULT_METRICS_BATTERY_SOC_PCT_SCALE_VALUEwith a
default value of 1000, which maps to 3 decimal places of precision for
battery metrics. See the
Battery Device Vital docs
for more information on configuring battery metric collection.
- Add the symbol
🐛 Fixed
-
Zephyr:
-
Fix a compiler warning on Zephyr v4.1, when using
CONFIG_MEMFAULT_METRICS_WIFI. Thanks to
@chshzh for reporting this issue in
#98 🎉! -
Fix an incorrect check for the Kconfig option
CONFIG_MEMFAULT_FAULT_HANDLER_LOG_PANIC(previously was checking for
defined(MEMFAULT_FAULT_HANDLER_LOG_PANIC), which is incorrect). Thanks to
@konstk1 for providing this fix in
#100 🎉!
-
-
General:
- Fix a few files that were missing necessary
#include <stdio.h>or
#include <string.h>directives.
- Fix a few files that were missing necessary
-
nRF Connect SDK:
- Fix a compilation error when building for the nRF53 series on nRF Connect
SDK v3.2.0-rc1 and later, caused by a change in the NRFX HAL. Thanks to
@Damian-Nordic for providing the fix in
#99 🎉!
- Fix a compilation error when building for the nRF53 series on nRF Connect