Commit 81daeb7
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 <noah.pendleton@nordicsemi.no>1 parent 5b2b422 commit 81daeb7
3 files changed
Lines changed: 44 additions & 32 deletions
File tree
- doc/nrf/releases_and_maturity/releases
- modules/memfault-firmware-sdk
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
750 | 750 | | |
751 | 751 | | |
752 | 752 | | |
753 | | - | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
754 | 757 | | |
755 | 758 | | |
756 | 759 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| |||
120 | 122 | | |
121 | 123 | | |
122 | 124 | | |
| 125 | + | |
| 126 | + | |
123 | 127 | | |
124 | 128 | | |
125 | 129 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
44 | 56 | | |
45 | 57 | | |
46 | 58 | | |
| |||
63 | 75 | | |
64 | 76 | | |
65 | 77 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | 78 | | |
74 | 79 | | |
75 | 80 | | |
| |||
98 | 103 | | |
99 | 104 | | |
100 | 105 | | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
101 | 129 | | |
102 | 130 | | |
103 | 131 | | |
| |||
152 | 180 | | |
153 | 181 | | |
154 | 182 | | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | 183 | | |
179 | 184 | | |
180 | 185 | | |
| |||
0 commit comments