From 632911cfb728bcb0f9ca385b971d7d0230b5f970 Mon Sep 17 00:00:00 2001 From: Marius Vikhammer Date: Thu, 3 Sep 2026 11:06:31 +0800 Subject: [PATCH] fix(examples): increase partition table offset for sysview heap log on ESP32-H4 The example enables CONFIG_ESP_SYSTEM_USE_FRAME_POINTER, which pushes the bootloader to 0x6020 bytes on ESP32-H4. That exceeds the 0x6000 budget available with the default partition table offset of 0x8000, breaking the build for both the app_trace_jtag and app_trace_uart CI configurations. Move the partition table to 0x10000 on ESP32-H4, same as already done for ESP32-P4, and drop the now stale "only overflowed on P4" note. Tell OpenOCD the matching app image offset so GDB can map flash on both chips. --- .../pytest_sysview_tracing_heap_log.py | 3 ++- .../sysview_tracing_heap_log/sdkconfig.defaults.esp32h4 | 2 ++ .../sysview_tracing_heap_log/sdkconfig.defaults.esp32p4 | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 examples/system/tracing/sysview_tracing_heap_log/sdkconfig.defaults.esp32h4 diff --git a/examples/system/tracing/sysview_tracing_heap_log/pytest_sysview_tracing_heap_log.py b/examples/system/tracing/sysview_tracing_heap_log/pytest_sysview_tracing_heap_log.py index 7047b1eddb2..f44981b8d6f 100644 --- a/examples/system/tracing/sysview_tracing_heap_log/pytest_sysview_tracing_heap_log.py +++ b/examples/system/tracing/sysview_tracing_heap_log/pytest_sysview_tracing_heap_log.py @@ -33,7 +33,8 @@ def _test_examples_sysview_tracing_heap_log(openocd_dut: 'OpenOCD', idf_path: st time.sleep(1) # Wait for the USJ port to be ready dut.expect_exact('example: Ready for OpenOCD connection', timeout=5) with openocd_dut.run() as oocd: - if dut.target == 'esp32p4': + # PARTITION_TABLE_OFFSET=0x10000 moves the factory app to 0x20000 + if dut.target in ('esp32p4', 'esp32h4'): oocd.write('esp appimage_offset 0x20000') with ( open(gdb_logfile, 'w') as gdb_log, diff --git a/examples/system/tracing/sysview_tracing_heap_log/sdkconfig.defaults.esp32h4 b/examples/system/tracing/sysview_tracing_heap_log/sdkconfig.defaults.esp32h4 new file mode 100644 index 00000000000..50425b2f2c4 --- /dev/null +++ b/examples/system/tracing/sysview_tracing_heap_log/sdkconfig.defaults.esp32h4 @@ -0,0 +1,2 @@ +# Increase size of bootloader due to frame pointer. +CONFIG_PARTITION_TABLE_OFFSET=0x10000 diff --git a/examples/system/tracing/sysview_tracing_heap_log/sdkconfig.defaults.esp32p4 b/examples/system/tracing/sysview_tracing_heap_log/sdkconfig.defaults.esp32p4 index 8b07012800d..50425b2f2c4 100644 --- a/examples/system/tracing/sysview_tracing_heap_log/sdkconfig.defaults.esp32p4 +++ b/examples/system/tracing/sysview_tracing_heap_log/sdkconfig.defaults.esp32p4 @@ -1,2 +1,2 @@ -# Increase size of bootloader due to frame pointer. Only overflowed on P4. +# Increase size of bootloader due to frame pointer. CONFIG_PARTITION_TABLE_OFFSET=0x10000