Skip to content

Commit b8c04e4

Browse files
authored
Fix ZEPHYR_DATA_REGION_START for zephyr 4 (#13)
Enable capture of data regions, and fix the conditional to specify the correct region names.
1 parent 6599e33 commit b8c04e4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

config/memfault_platform_config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
extern "C" {
1111
#endif
1212

13-
#if defined(CONFIG_SOC_FAMILY_ESP32)
13+
#if defined(CONFIG_MEMFAULT_SOC_FAMILY_ESP32)
1414
#define ZEPHYR_DATA_REGION_START _data_start
1515
#define ZEPHYR_DATA_REGION_END _data_end
1616
#endif

prj.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ CONFIG_LOG_PRINTK=n
7474
CONFIG_LOG_MODE_IMMEDIATE=y
7575

7676
# Disable these temporarily, for debugging.
77-
CONFIG_MEMFAULT_COREDUMP_COLLECT_DATA_REGIONS=n
77+
CONFIG_MEMFAULT_COREDUMP_COLLECT_DATA_REGIONS=y
7878
CONFIG_MEMFAULT_COREDUMP_COLLECT_KERNEL_REGION=n
7979
CONFIG_MEMFAULT_COREDUMP_COLLECT_TASKS_REGIONS=n
8080

0 commit comments

Comments
 (0)