Erhan Kurubas
256d129ed9
fix(esp_trace): send trace data over usb-serial-jtag reliably
2026-08-12 09:29:27 +02:00
Erhan Kurubas
6e94ac4a8b
change(esp_trace): increase usj tx buffer size in both examples
2026-08-12 09:28:13 +02:00
Erhan Kurubas
b4d5b133ee
test(sysview_tracing): validate TRACE_STOP per core
2026-08-12 09:27:51 +02:00
Erhan Kurubas
313ee9b5db
fix(esp_system): break into the debugger only on the first panic entry
2026-08-12 09:26:49 +02:00
Erhan Kurubas
afa87bcfb0
Merge branch 'esp32c61_h21_h4_trace_encoder' into 'master'
...
Esp32c61 h21 h4 trace encoder
Closes IDF-16051, IDF-16050, and IDF-16060
See merge request espressif/esp-idf!51667
2026-08-11 15:14:02 +02:00
Erhan Kurubas
114807c981
feat(riscv_trace): add trace support for ESP32-H21
2026-08-11 13:06:45 +02:00
Erhan Kurubas
cde1da8fe6
feat(riscv_trace): add trace support for ESP32-H4
2026-08-11 13:06:45 +02:00
Erhan Kurubas
64d913f86b
feat(riscv_trace): add trace support for ESP32-C61
2026-08-11 13:06:45 +02:00
Erhan Kurubas
1dd5b31d49
Merge branch 'esp32c6_h2_trace_encoder' into 'master'
...
feat(esp_riscv_trace): add ESP32-C6 and ESP32-H2 support
Closes IDF-16058 and IDF-16059
See merge request espressif/esp-idf!51385
2026-08-10 22:18:41 +02:00
Erhan Kurubas
cd89c2b22b
feat(riscv_trace): add trace support for ESP32-H2
2026-08-07 14:44:03 +02:00
Erhan Kurubas
5e9000329a
feat(riscv_trace): add trace support for ESP32-C6
2026-08-07 14:44:03 +02:00
Erhan Kurubas
d3246931b1
feat(riscv_trace): add resync mode validation for existing targets
2026-08-07 14:44:03 +02:00
Erhan Kurubas
91534a8488
fix(soc): correct mem_start_addr typo in H2/H21 trace header
2026-08-07 14:44:03 +02:00
Erhan Kurubas
57ccd12f17
Merge branch 'esp32c5_trace_encoder' into 'master'
...
feat(esp_riscv_trace): add ESP32-C5 support
See merge request espressif/esp-idf!51384
2026-08-07 13:45:10 +02:00
Erhan Kurubas
1a59c3e769
feat(esp_riscv_trace): add ESP32-C5 support
2026-08-06 17:13:04 +02:00
Erhan Kurubas
cc6cc219f8
Merge branch 'esp32s31_trace_encoder' into 'master'
...
feat(esp_riscv_trace): add ESP32-S31 support
See merge request espressif/esp-idf!51350
2026-08-06 12:38:03 +02:00
Erhan Kurubas
3dfd8f0154
feat(esp_riscv_trace): add ESP32-S31 support
...
ESP32-S31 uses the same trace encoder IP as ESP32-P4. Of the E-Trace v2.0
parameters the two targets report, only privilege_width_p differs (1 on P4,
2 on S31), and it affects both the sync packet layout and the filter's
privilege selector.
- Add the SOC_RISCV_TRACE_* caps for ESP32-S31 along with the esp32s31 LL, and
declare TRACE0/TRACE1 in the target's trace_struct.h.
- Carry privilege_width_p as SOC_RISCV_TRACE_PRIV_WIDTH so the sync packet
decoder can locate the address field, which starts one bit later on targets
that implement supervisor mode.
- Use the RISC-V architectural privilege encoding (0 user, 1 supervisor,
3 machine) in the public filter enum so the values do not change per target,
and let each LL narrow them to its own register field.
- Add riscv_trace_ll_priv_is_supported() per target, so a privilege level the
selector cannot represent is rejected with ESP_ERR_NOT_SUPPORTED rather than
being silently narrowed to a different level. It lives next to the narrowing
code so the two cannot drift apart.
- Fix trace buffer allocation on targets whose internal RAM is not reached
through a cache. esp_cache_get_alignment() reports 0 there, which underflowed
the size check and failed every allocation. Align base and size to the larger
of the reported cache line and the encoder's 4-byte write granularity.
2026-08-06 13:08:26 +08:00
Erhan Kurubas
11e6799f80
Merge branch 'stub_bins_for_more_targets' into 'master'
...
Increase OCD stub memory reservation from 8K to 12K and extend this feature to more targets
See merge request espressif/esp-idf!51231
2026-07-28 16:58:05 +02:00
Erhan Kurubas
59ae1cf37f
Merge branch 'move_trace_examples' into 'master'
...
refactor(examples): group trace examples under examples/system/tracing/
See merge request espressif/esp-idf!51160
2026-07-28 09:31:08 +02:00
Erhan Kurubas
e21ab7e724
feat(system): add OCD stub bin support for more targets
...
Add SOC_DEBUG_HAVE_OCD_STUB_BINS for esp32c5, esp32c61, esp32h4,
esp32h21, esp32p4, and esp32s31. Update TEE linker scripts with
correct esp_tee_app_config offsets for the 0x3000 stub reservation
2026-07-28 08:34:02 +03:00
Erhan Kurubas
6e5b4febf8
change(system): increase OCD stub memory reservation from 8K to 12K
2026-07-28 07:45:39 +03:00
Erhan Kurubas
19a27980a5
refactor(examples): group trace examples under examples/system/tracing/
...
Move 7 trace-related examples (app_trace_basic, app_trace_to_plot,
esp_trace_custom_library, function_tracing, gcov, sysview_tracing,
sysview_tracing_heap_log) from examples/system/ into a dedicated
examples/system/tracing/ subdirectory for better organization.
Update all path references across documentation (en + zh_CN),
build-test-rules, CI configs, Kconfig, and component READMEs.
2026-07-27 23:56:02 +03:00
Erhan Kurubas
d1609d3cb1
Merge branch 'add_trace_doc_section' into 'master'
...
docs(esp_trace): restructure tracing docs with esp_trace as master
Closes DOC-13669
See merge request espressif/esp-idf!50215
2026-07-23 09:31:57 +02:00
Erhan Kurubas
6c6490d54c
docs(esp_trace): restructure tracing docs with esp_trace as master
...
Reorganize the tracing documentation so esp_trace is the master
component, with app_trace, SystemView, and Gcov referenced from it.
2026-07-23 08:58:30 +03:00
Erhan Kurubas
2411f0f52d
feat(hal): implement enable_debug/enable_record for ESP32-S31 CPU utility
2026-07-20 12:13:21 +02:00
Erhan Kurubas
44bc2ac703
Merge branch 'esp_riscv_trace' into 'master'
...
RISC-V Trace Encoder
See merge request espressif/esp-idf!49821
2026-07-20 09:15:17 +02:00
Erhan Kurubas
2c11810ad9
feat(esp_riscv_trace): add riscv trace encoder driver with hal/ll layer
2026-07-17 12:42:13 +02:00
Erhan Kurubas
7a07c33565
Merge branch 'feat/enable_function_tracing' into 'master'
...
Enable function tracing (-finstrument-functions)
See merge request espressif/esp-idf!49951
2026-07-16 15:57:42 +02:00
Erhan Kurubas
39d6aaaecb
feat(esp_trace): add compiler-instrumented function tracing support
2026-07-16 10:18:25 +02:00
Erhan Kurubas
b8d937bbb3
test(sysview_tracing): wait for apptrace stop before validating capture
2026-07-16 10:18:25 +02:00
Erhan Kurubas
ed5aeeb4dd
change(app_trace): remove GPIO range from UART trace pin config
2026-07-16 10:18:25 +02:00
Erhan Kurubas
8bf9c476cf
Merge branch 'fix/coredump_psram_xip' into 'master'
...
test(coredump): fix psram memory range for esp32s31 and esp32p4
Closes IDF-15623
See merge request espressif/esp-idf!50533
2026-07-14 13:58:45 +02:00
Erhan Kurubas
cdb91d03d5
test(coredump): re-enable extram stack test for esp32p4-rev3
2026-07-14 11:47:14 +02:00
Erhan Kurubas
f561c9d3cf
test(coredump): fix psram memory range for esp32s31 and esp32p4
2026-07-14 11:46:34 +02:00
Erhan Kurubas
4eb0163fb9
Merge branch 'enable_esp32s31_jtag_tests' into 'master'
...
change(ci): enable esp32s31 jtag tests
Closes IDF-14691, IDF-14692, IDF-14942, and IDFCI-11113
See merge request espressif/esp-idf!50149
2026-07-14 11:39:22 +02:00
Erhan Kurubas
42910b4205
Merge branch 'enable_esp32h4_coredump_tests' into 'master'
...
ci(coredump): enable esp32h4 tests
Closes IDF-12308 and IDF-12309
See merge request espressif/esp-idf!50488
2026-07-14 09:41:28 +02:00
Erhan Kurubas
8ea2d7be4d
ci(coredump): enable esp32h4 tests
2026-07-08 23:54:08 +02:00
Erhan Kurubas
21b9eaf6ff
test(sysview): trim trace capture to the STOP record to drop post-reset UART noise
2026-07-08 14:01:36 +02:00
Erhan Kurubas
4cf35efa35
test(usb_serial_jtag): pin console uart to ttyUSBx port
2026-07-08 12:59:44 +02:00
Erhan Kurubas
67e42bfaec
fix(esp_trace): limit USB-Serial-JTAG trace flush timeout
2026-07-08 12:59:44 +02:00
Erhan Kurubas
d22741aa12
change(sysview_heap_log): use esp sysview_mcore command for the JTAG capture
2026-07-08 12:59:44 +02:00
Erhan Kurubas
4a5a50e95a
change(sysview): use esp sysview_mcore command for sysview_tracing JTAG capture
2026-07-08 12:59:44 +02:00
Erhan Kurubas
4e845e262a
fix(sysview): add prefix to the example sysview module desc
2026-07-08 12:59:44 +02:00
Erhan Kurubas
f44867619e
fix(sysview): handle variable-length timestamp in TRACE_STOP validation
2026-07-08 12:59:44 +02:00
Erhan Kurubas
27dc9c956f
change(ci): enable esp32s31 jtag tests
2026-07-08 12:59:44 +02:00
Erhan Kurubas
0586fb67c2
Merge branch 'coredump_test_fixes' into 'master'
...
Coredump fixes
Closes IDF-15881 and IDF-13849
See merge request espressif/esp-idf!48439
2026-07-03 16:38:00 +02:00
Erhan Kurubas
2bbdd9b017
fix(esp_coredump): count only written tasks against MAX_TASKS_NUM limit
2026-07-02 23:48:37 +02:00
Erhan Kurubas
815a38b7f4
test(espcoredump): run test_tcb_corrupted with custom stack
2026-07-02 23:09:05 +02:00
Erhan Kurubas
066e62d077
fix(esp_coredump): fix unused-but-set-variable warnings
2026-07-02 23:09:05 +02:00
Erhan Kurubas
5bcaf281e2
Merge branch 'feat/esp_trace_example' into 'master'
...
esp_trace example library integration
See merge request espressif/esp-idf!48605
2026-05-26 17:38:22 +02:00
Erhan Kurubas
41d425bf05
feat(esp_trace): add example to demonstrate external lib integration
2026-05-20 11:55:10 +02:00
Erhan Kurubas
4c88c77f9c
feat(esp_trace): extend encoder interface
...
Add esp_trace_flush, esp_trace_start and esp_trace_stop APIs
2026-05-20 11:32:45 +02:00
Erhan Kurubas
de197e3c0f
change(esp_trace): allow init without transport(none)
2026-05-20 11:32:45 +02:00
Erhan Kurubas
7aabb0155b
Merge branch 'feature/update-openocd-to-v0.12.0-esp32-20260424' into 'master'
...
feat(tools): update openocd version to v0.12.0-esp32-20260424
Closes OCD-892, OCD-1371, and DOC-14459
See merge request espressif/esp-idf!48003
2026-05-07 09:09:13 +02:00
Erhan Kurubas
d5bd42771c
feat(tools): update openocd version to v0.12.0-esp32-20260424
2026-04-27 14:25:12 +00:00
Erhan Kurubas
54287a574b
test(panic): update multi-core target list in panic_dut
2026-04-10 19:58:56 +02:00
Erhan Kurubas
6a713b97c6
fix(coredump): fix fake stack address range overlapping esp32s31 DRAM
2026-04-10 19:58:56 +02:00
Erhan Kurubas
85a717f0a3
Merge branch 'esp32s31-assist-debug' into 'master'
...
feat(esp32s31): add assist_debug stack monitoring support
See merge request espressif/esp-idf!47282
2026-04-10 19:58:21 +02:00
Erhan Kurubas
f6ae009f40
feat(esp32s31): add assist_debug stack monitoring support
2026-04-09 21:20:51 +08:00
Erhan Kurubas
ed7c90c8aa
Merge branch 'fix/psram_core_clk_enable' into 'master'
...
fix(mspi): enable PSRAM core clock in module clock init
See merge request espressif/esp-idf!46780
2026-03-20 20:44:33 +01:00
Erhan Kurubas
8a536eeda0
fix(mspi): enable PSRAM core clock in module clock init
...
psram_ctrlr_ll_enable_module_clock() was missing
reg_psram_core_clk_en, causing SPIMEM2 access faults
after system reset.
2026-03-19 15:24:27 +01:00
Erhan Kurubas
33e90fb10a
feat(tools): update openocd version to v0.12.0-esp32-20260304
2026-03-16 21:14:45 +08:00
Erhan Kurubas
577e08602e
Merge branch 'feat/esp_trace_usb_serial_jtag' into 'master'
...
Add usb serial jtag transport to the esp_trace
Closes IDF-13979
See merge request espressif/esp-idf!45622
2026-02-18 19:30:04 +01:00
Erhan Kurubas
53082cabe9
ci: skip esp32p4 jtag tests due to lack of eco6 runners
2026-02-18 13:11:23 +01:00
Erhan Kurubas
05010137f8
feat(esp_trace): add usb-serial-jtag as a transport channel
2026-02-18 12:01:40 +01:00
Erhan Kurubas
8260898d44
Merge branch 'fix/apptrace_uart_flush' into 'master'
...
Replace ISR based Uart TX with polling
See merge request espressif/esp-idf!45586
2026-02-09 19:57:50 +01:00
Erhan Kurubas
5cea09fbdc
fix(app_trace): implement uart TX without using ISR
2026-02-09 15:46:43 +01:00
Erhan Kurubas
97491dae35
Merge branch 'feat/coredump_extram_attr' into 'master'
...
feat(coredump): add coredump_extram attribute
Closes IDFGH-14687
See merge request espressif/esp-idf!45506
2026-02-04 12:59:50 +01:00
Erhan Kurubas
5ba3e9df98
feat(coredump): add coredump_extram attribute
...
Closes https://github.com/espressif/esp-idf/issues/15429
2026-02-02 10:25:03 +01:00
Erhan Kurubas
bdbfd2a812
Merge branch 'docs_updates' into 'master'
...
docs: cleanup apptrace and coredump references
Closes IDF-10163, IDF-12153, IDF-12159, and IDF-12964
See merge request espressif/esp-idf!45316
2026-01-29 13:14:49 +01:00
Erhan Kurubas
2c28cfe8a2
Merge branch 'gcov_over_uart' into 'master'
...
Gcov over uart
Closes IDF-15030 and OCD-1191
See merge request espressif/esp-idf!44615
2026-01-21 06:54:31 +01:00
Erhan Kurubas
5d385f143e
Merge branch 'coredump_read_flash_retry' into 'master'
...
Add retry logic to espcoredump subprocess call
See merge request espressif/esp-idf!45207
2026-01-20 21:59:03 +01:00
Erhan Kurubas
a1e35da6c4
docs: cleanup apptrace and coredump references
2026-01-20 22:43:21 +03:00
Erhan Kurubas
f1d43df4a1
feat(examples): dump coverage over uart
2026-01-20 11:30:03 +03:00
Erhan Kurubas
b07e8c6954
feat(conftest): add gcov_dump helper to openocd fixture
2026-01-20 11:18:01 +03:00
Erhan Kurubas
caa0697240
test(panic): add retry logic to espcoredump subprocess call
2026-01-20 10:32:18 +03:00
Erhan Kurubas
392dfed30b
Merge branch 'feat/coredump_rtc_noinit' into 'master'
...
Add a new attribute COREDUMP_NOINIT_ATTR
See merge request espressif/esp-idf!44843
2026-01-13 08:24:11 +01:00
Erhan Kurubas
14c16bee61
feat(coredump): add coredump_noinit attribute
2026-01-11 18:57:37 +03:00
Erhan Kurubas
f8d0e9a79e
Merge branch 'fix/coredump_test_tcb_corrupted' into 'master'
...
test(espcoredump): fix test for corrupted TCB handling in coredump
Closes IDFCI-5663
See merge request espressif/esp-idf!44619
2026-01-06 13:09:18 +01:00
Erhan Kurubas
82643a03c8
test(espcoredump): fix test for corrupted TCB handling in coredump
2026-01-05 22:16:43 +03:00
Erhan Kurubas
85e7ef753d
test(panic): improve stack dump capture to return full hex content
2026-01-05 22:11:23 +03:00
Erhan Kurubas
3e35b8b175
Merge branch 'fix/clang_build_error' into 'master'
...
fix(xtensa): Fix clang assembler errors in STRUCT_AFIELD_A macro
See merge request espressif/esp-idf!44193
2025-12-19 10:20:43 +01:00
Erhan Kurubas
3ccc51c096
Merge branch 'enable_esp32p4_jtag_tests' into 'master'
...
Enable esp32p4 jtag tests
Closes IDF-14440
See merge request espressif/esp-idf!44352
2025-12-19 08:45:40 +01:00
Erhan Kurubas
6dc4a8bf12
change(ci): re-enable esp32p4 OpenOCD tests
2025-12-18 00:37:54 +01:00
Erhan Kurubas
7b180fbca2
change(ci): limit printing OpenOCD connection errors
2025-12-18 00:35:17 +01:00
Erhan Kurubas
7ffc500eb4
fix(xtensa): Fix clang assembler errors in STRUCT_AFIELD_A macro
2025-12-17 22:12:34 +01:00
Erhan Kurubas
b42e3f01d0
Merge branch 'esp32h4_debug_asistant' into 'master'
...
feat(esp32h4): add assist_debug/bus_monitor support
Closes IDF-12592
See merge request espressif/esp-idf!44014
2025-12-17 21:19:25 +01:00
Erhan Kurubas
274e1d63f6
Merge branch 'feature/update-openocd-to-v0.12.0-esp32-20251215' into 'master'
...
feat(tools): update openocd version to v0.12.0-esp32-20251215
See merge request espressif/esp-idf!44301
2025-12-17 21:07:50 +01:00
Erhan Kurubas
bdcfbd3c05
feat(esp32h4): add assist_debug stack monitoring support
2025-12-17 10:11:36 +01:00
Erhan Kurubas
bc289f92d8
refactor(hal): update assist_debug_ll_reset_register() to pass core_id
2025-12-17 10:11:36 +01:00
Erhan Kurubas
e8e0646a0b
ci(esp32p4): disable p4 rev3 usb-serial-jtag tests temporarily
2025-12-17 09:59:23 +01:00
Erhan Kurubas
c2dab51975
change(freertos): add task count and pointer width to OpenOCD debug table
2025-12-17 02:15:19 +01:00
Erhan Kurubas
de04807901
feat(tools): update openocd version to v0.12.0-esp32-20251215
2025-12-17 02:15:07 +01:00
Erhan Kurubas
dae71e821a
Merge branch 'update_esp_trace_readme' into 'master'
...
docs(esp_trace): update README for SystemView as external managed component
See merge request espressif/esp-idf!44040
2025-12-12 09:26:09 +01:00
Erhan Kurubas
0159206593
docs(esp_trace): update README for SystemView as external managed component
2025-12-09 18:08:42 +01:00
Erhan Kurubas
267ebaf902
fix(espcoredump): support ESP32P4 ECO5 unified memory layout
2025-12-09 18:03:33 +01:00
Erhan Kurubas
2abc9706dd
Merge branch 'enable_sysview_tests' into 'master'
...
test(sysview): re-enable SEGGER SystemView example builds and tests
See merge request espressif/esp-idf!43852
2025-12-04 17:50:29 +01:00
Erhan Kurubas
0544720401
Revert "change(freertos): add task count and pointer width to OpenOCD debug table"
...
This reverts commit 799de719d7 .
2025-12-03 19:39:12 +08:00
Erhan Kurubas
cf53f339b1
test(sysview): re-enable SEGGER SystemView example builds and tests
2025-12-03 19:39:12 +08:00
Erhan Kurubas
c9bee75b52
Merge branch 'fix/int_wdt_double_exception' into 'master'
...
fix(espcoredump): prevent double exception during int_wdt panic with custom stack
Closes IDF-9361
See merge request espressif/esp-idf!43185
2025-11-25 14:03:03 +01:00