File tree Expand file tree Collapse file tree 4 files changed +26
-3
lines changed
soc/nxp/imxrt/imxrt5xx/f1 Expand file tree Collapse file tree 4 files changed +26
-3
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ config XTENSA_USE_CORE_CRT1
42
42
config XTENSA_ENABLE_BACKTRACE
43
43
bool "Backtrace on panic exception"
44
44
default y
45
- depends on SOC_SERIES_ESP32 || SOC_FAMILY_INTEL_ADSP || SOC_XTENSA_DC233C
45
+ depends on SOC_SERIES_ESP32 || SOC_FAMILY_INTEL_ADSP || SOC_XTENSA_DC233C || SOC_MIMXRT595S_F1
46
46
help
47
47
Enable this config option to print backtrace on panic exception
48
48
Original file line number Diff line number Diff line change 11
11
#include <esp_memory_utils.h>
12
12
#elif defined(CONFIG_SOC_FAMILY_INTEL_ADSP )
13
13
#include "debug_helpers.h"
14
- #elif defined(CONFIG_SOC_XTENSA_DC233C )
14
+ #elif defined(CONFIG_SOC_XTENSA_DC233C ) || defined( CONFIG_SOC_MIMXRT595S_F1 )
15
15
#include "backtrace_helpers.h"
16
16
#endif
17
17
@@ -69,6 +69,8 @@ static inline bool xtensa_ptr_executable(const void *p)
69
69
return intel_adsp_ptr_executable (p );
70
70
#elif defined(CONFIG_SOC_XTENSA_DC233C )
71
71
return xtensa_dc233c_ptr_executable (p );
72
+ #elif defined(CONFIG_SOC_MIMXRT595S_F1 )
73
+ return xtensa_mimxrt595s_f1_ptr_executable (p );
72
74
#else
73
75
#warning "xtensa_ptr_executable is not defined for this platform"
74
76
#endif
Original file line number Diff line number Diff line change
1
+ /* Copyright (c) 2025 Google LLC
2
+ * SPDX-License-Identifier: Apache-2.0
3
+ */
4
+
5
+
6
+ #ifndef ZEPHYR_SOC_NXP_IMXRT_IMXRT5XX_F1_BACKTRACE_HELPERS_H_
7
+ #define ZEPHYR_SOC_NXP_IMXRT_IMXRT5XX_F1_BACKTRACE_HELPERS_H_
8
+
9
+ #include <zephyr/linker/linker-defs.h>
10
+
11
+ #include <xtensa/config/core-isa.h>
12
+
13
+ static inline bool xtensa_mimxrt595s_f1_ptr_executable (const void * p )
14
+ {
15
+ return ((p >= (void * )__text_region_start ) &&
16
+ (p <= (void * )__text_region_end ));
17
+ }
18
+
19
+ #endif /* ZEPHYR_SOC_NXP_IMXRT_IMXRT5XX_F1_BACKTRACE_HELPERS_H_ */
Original file line number Diff line number Diff line change @@ -314,8 +314,10 @@ SECTIONS
314
314
__text_region_start = ABSOLUTE (.);
315
315
KEEP (*(.ResetVector.text))
316
316
*(.ResetVector.literal)
317
- *(.entry.text)
318
317
*(.init.literal)
318
+ *(.entry.text)
319
+ /* to support backtrace */
320
+ KEEP (*(.iram1.literal .iram1))
319
321
KEEP(*(.init))
320
322
*(.literal .text .literal.* .text.* .stub .gnu.warning .gnu.linkonce.literal.* .gnu.linkonce.t.*.literal .gnu.linkonce.t.*)
321
323
*(.fini.literal)
You can’t perform that action at this time.
0 commit comments