ci: fix appimage_offset for esp32p4 in sysview heap trace example

This commit is contained in:
Samuel Obuch
2025-07-09 11:56:36 +02:00
parent a678721e49
commit 824d54e707

View File

@@ -33,15 +33,18 @@ def _test_examples_sysview_tracing_heap_log(openocd_dut: 'OpenOCD', idf_path: st
f_w.write(line) f_w.write(line)
dut.expect_exact('example: Ready for OpenOCD connection', timeout=5) dut.expect_exact('example: Ready for OpenOCD connection', timeout=5)
with openocd_dut.run(), open(gdb_logfile, 'w') as gdb_log, pexpect.spawn( with openocd_dut.run() as oocd:
f'idf.py -B {dut.app.binary_path} gdb --batch -x {gdbinit}', if dut.target == 'esp32p4':
timeout=60, oocd.write('esp appimage_offset 0x20000')
logfile=gdb_log, with open(gdb_logfile, 'w') as gdb_log, pexpect.spawn(
encoding='utf-8', f'idf.py -B {dut.app.binary_path} gdb --batch -x {gdbinit}',
codec_errors='ignore', timeout=60,
) as p: logfile=gdb_log,
# Wait for sysview files to be generated encoding='utf-8',
p.expect_exact('Tracing is STOPPED') codec_errors='ignore',
) as p:
# Wait for sysview files to be generated
p.expect_exact('Tracing is STOPPED')
# Process sysview trace logs # Process sysview trace logs
command = [os.path.join(idf_path, 'tools', 'esp_app_trace', 'sysviewtrace_proc.py'), '-p'] + trace_log command = [os.path.join(idf_path, 'tools', 'esp_app_trace', 'sysviewtrace_proc.py'), '-p'] + trace_log