mirror of
				https://github.com/espressif/esp-idf.git
				synced 2025-10-30 20:51:41 +00:00 
			
		
		
		
	Steps to Generate Test Input Files
- 
sysview_tracing_heap_log.elfBuild example sysview_tracing_heap_logproject.cd $IDF_PATH/examples/system/sysview_tracing_heap_log idf.py set target esp32 idf.py build cp build/sysview_tracing_heap_log.elf $IDF_PATH/tools/esp_app_trace/test/sysview/ cd $IDF_PATH/tools/esp_app_trace/test/sysview/ chmod -x sysview_tracing_heap_log.elf
- 
heap_log0.svdatandheap_log1.svdatFlash the example and run OpenOCD and GDB using the following command in a separate console cd $IDF_PATH/examples/system/sysview_tracing_heap_log idf.py openocdcd $IDF_PATH/examples/system/sysview_tracing_heap_log xtensa-esp32-elf-gdb -x gdbinit build/sysview_tracing_heap_log.elfWhen program stops at heap_trace_stopquit GDB and OpenOCDCopy generated svdat files cp heap_log0.svdat $IDF_PATH/tools/esp_app_trace/test/sysview/ cp heap_log1.svdat $IDF_PATH/tools/esp_app_trace/test/sysview/
- 
heap_log_mcore.svdatFlash the example and run OpenOCD and GDB using the following command in a separate console cd $IDF_PATH/examples/system/sysview_tracing_heap_log idf.py openocdcd $IDF_PATH/examples/system/sysview_tracing_heap_log xtensa-esp32-elf-gdb -x gdbinit-mcore build/sysview_tracing_heap_log.elfWhen program stops at heap_trace_stopquit GDB and OpenOCDCopy generated svdat file cp heap_log_mcore.svdat $IDF_PATH/tools/esp_app_trace/test/sysview/
- 
expected_outputandexpected_output_jsonfilesYou can use the commands from the test.shto generate expected result files$IDF_PATH/tools/esp_app_trace/sysviewtrace_proc.py -d -p -b sysview_tracing_heap_log.elf heap_log0.svdat heap_log1.svdat &> expected_output $IDF_PATH/tools/esp_app_trace/sysviewtrace_proc.py -j -b sysview_tracing_heap_log.elf heap_log0.svdat heap_log1.svdat &> expected_output.json $IDF_PATH/tools/esp_app_trace/sysviewtrace_proc.py -d -p -b sysview_tracing_heap_log.elf heap_log_mcore.svdat &> expected_output_mcore $IDF_PATH/tools/esp_app_trace/sysviewtrace_proc.py -j -b sysview_tracing_heap_log.elf heap_log_mcore.svdat &> expected_output_mcore.json
