1menu "Trace memory"
2
3    config ESP32_MEMMAP_TRACEMEM
4        bool
5        default "n"
6
7    config ESP32_MEMMAP_TRACEMEM_TWOBANKS
8        bool
9        default "n"
10
11    config ESP32_TRAX
12        bool "Use TRAX tracing feature"
13        default "n"
14        select ESP32_MEMMAP_TRACEMEM
15        help
16            The ESP32 contains a feature which allows you to trace the execution path the processor
17            has taken through the program. This is stored in a chunk of 32K (16K for single-processor)
18            of memory that can't be used for general purposes anymore. Disable this if you do not know
19            what this is.
20
21    config ESP32_TRAX_TWOBANKS
22        bool "Reserve memory for tracing both pro as well as app cpu execution"
23        default "n"
24        depends on ESP32_TRAX && !FREERTOS_UNICORE
25        select ESP32_MEMMAP_TRACEMEM_TWOBANKS
26        help
27            The ESP32 contains a feature which allows you to trace the execution path the processor
28            has taken through the program. This is stored in a chunk of 32K (16K for single-processor)
29            of memory that can't be used for general purposes anymore. Disable this if you do not know
30            what this is.
31
32            # Memory to reverse for trace, used in linker script
33    config ESP32_TRACEMEM_RESERVE_DRAM
34        hex
35        default 0x8000 if ESP32_MEMMAP_TRACEMEM && ESP32_MEMMAP_TRACEMEM_TWOBANKS
36        default 0x4000 if ESP32_MEMMAP_TRACEMEM && !ESP32_MEMMAP_TRACEMEM_TWOBANKS
37        default 0x0
38
39endmenu  # Trace memory
40