You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
modules: memfault: Improve support for custom device info
Adjust how CONFIG_MEMFAULT_DEVICE_INFO_BUILTIN is used to enable the
built-in implementation of memfault_platform_get_device_info(), so users
can more easily enable a custom version by setting
CONFIG_MEMFAULT_DEVICE_INFO_CUSTOM=y (no longer need to set placeholder
values for CONFIG_MEMFAULT_NCS_DEVICE_ID etc when custom device info is
selected).
Now it's possible to enable Memfault with less manual Kconfig settings
on short-range chips:
Before; we build with 'MEMFAULT_DEVICE_INFO_CUSTOM', but we still need
to set CONFIG_MEMFAULT_NCS_DEVICE_ID:
❯ west build --sysbuild --board nrf54l15dk/nrf54l15/cpuapp \
--pristine=always \
nrf/samples/bluetooth/peripheral_lbs \
-- \
-DCONFIG_SHELL=y \
-DCONFIG_MEMFAULT=y \
-DCONFIG_MEMFAULT_DEVICE_INFO_CUSTOM=y \
-DCONFIG_HWINFO=y \
-DCONFIG_MEMFAULT_NCS_DEVICE_ID=\"testserial\"
After, we can select 'CUSTOM' + 'HWINFO' to get a built-in device ID
from the Memfault SDK
❯ west build --sysbuild --board nrf54l15dk/nrf54l15/cpuapp \
--pristine=always \
nrf/samples/bluetooth/peripheral_lbs \
-- \
-DCONFIG_SHELL=y \
-DCONFIG_MEMFAULT=y \
-DCONFIG_MEMFAULT_NCS_DEVICE_INFO_CUSTOM=y \
-DCONFIG_HWINFO=y # HWINFO enables default Memfault device info
Device shell shows default values:
uart:~$ mflt get_device_info
I: S/N: nrf54l15-testserial
I: SW type: app
I: SW version: 3.0.99
I: HW version: nrf54l15dk
Rename these Kconfig options to better show they are in NCS, not the
Memfault module:
- MEMFAULT_DEVICE_INFO_BUILTIN -> MEMFAULT_NCS_DEVICE_INFO_BUILTIN
- MEMFAULT_DEVICE_INFO_CUSTOM -> MEMFAULT_NCS_DEVICE_INFO_CUSTOM
This is a breaking change (but will show up as a build error when
updating).
Signed-off-by: Noah Pendleton <[email protected]>
0 commit comments