Commit Graph

1051 Commits

Author SHA1 Message Date
harshal.patil
4e4cb4123f fix(esp_common/esp_fault): make ESP_FAULT_ASSERT survive optimization
ESP_FAULT_ASSERT(C) was silently deleted by the optimizer when C is a cached
flag/status already proven by a preceding `if (!C) return/goto`: the compiler
folds C to a constant and drops all three checks, removing the fault-injection
protection with no warning.
2026-06-22 11:17:50 +05:30
harshal.patil
8110949d88 fix(secure_boot): range-check ECDSA r,s in bootloader before ROM verify 2026-06-22 11:17:50 +05:30
wuzhenghui
54fcd16880 docs(system): update GPIO wakeup section for clarity on EXT0 and EXT1 support 2026-06-03 17:30:26 +08:00
Marius Vikhammer
a77409d153 Merge branch 'fix/lp_uart_data_bits_v5.4' into 'release/v5.4'
fix(ulp/lp_core): fix LP UART data_bits validation and add full word-length test coverage (v5.4)

See merge request espressif/esp-idf!48033
2026-06-01 15:55:00 +08:00
Jiang Jiang Jian
3c3508b083 Merge branch 'feat/test_lp_core_debugging_v5.4' into 'release/v5.4'
feat(ulp): add pytest for debugging example (v5.4)

See merge request espressif/esp-idf!48257
2026-05-20 18:01:06 +08:00
Samuel Obuch
d3f33cb9a5 feat(ulp): add pytest for debugging example 2026-05-12 17:44:37 +02:00
hrushikesh.bhosale
b6e19d2a42 fix(examples/system/ota/otatool): fix serial port contention in pytest
The otatool pytest calls dut.serial.close() and then immediately
launches otatool_example.py as a subprocess that re-opens the same
serial port via esptool. This fails intermittently because:

1. pytest-embedded's QueueFeederThread still holds a reference to
   the serial port file descriptor when close() returns, causing
   'argument must be an int, or have a fileno() method' error.

2. The OS has not fully released the serial port by the time the
   subprocess tries to open it.

Add a delay after serial close and retry logic for the subprocess
to handle transient serial port contention.

Made-with: Cursor
2026-05-12 11:27:49 +05:30
Sudeep Mohanty
bf6a44f5d1 test(lp_core): use soc_filtered_targets for all LP core pytest parametrization
Several LP core pytest files were either hardcoded to specific chip lists
or using a less-precise SOC capability filter:

- test_lp_core_multi_device: was locked to ['esp32c6'] pending a workaround
  for LP I2C on esp32p4; all three active LP core chips now have
  SOC_LP_I2C_SUPPORTED=1, so switch to soc_filtered_targets.

- test_lp_uart_wakeup_modes: was using SOC_LP_CORE_SUPPORTED which is
  semantically wrong for a UART test; change to SOC_ULP_LP_UART_SUPPORTED.

- LP core example pytests (build_system, interrupt, gpio_intr_pulse_counter,
  lp_timer_interrupt): replace hardcoded ['esp32c5', 'esp32c6', 'esp32p4']
  with soc_filtered_targets('SOC_LP_CORE_SUPPORTED == 1') so that new
  chips automatically get coverage when their SOC cap is enabled.

Made-with: Cursor
2026-04-28 15:30:47 +02:00
Marius Vikhammer
25a3fb4557 docs(examples): fix broken README links found by check_readme_links CI
The hw-reference/modules-and-boards page was removed from esp-idf docs
and moved to esp-dev-kits. The ESP32-S2-Saola-1 user guide similarly
moved. The configure-builtin-jtag link used the now-obsolete chip-less
stable URL format.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Made-with: Cursor
2026-03-27 11:48:18 +08:00
Jiang Jiang Jian
6d8ba7e03f Merge branch 'change/esp_idf_uart_wakeup_refactor_v5.4' into 'release/v5.4'
change(example): change uart wakeup mode 0 edge threshold (v5.4)

See merge request espressif/esp-idf!46377
2026-03-13 12:22:18 +08:00
Evgeny Torbin
f7395255da test: format all test scripts 2026-03-11 07:34:34 +01:00
hebinglin
f596e42dcd change(example): change uart wakeup mode 0 edge threshold 2026-03-10 10:39:48 +08:00
wuzhenghui
bf31d0396e fix(example): fix uninitialized gpio/rtcio in deepsleep example 2026-02-13 16:27:32 +08:00
Sudeep Mohanty
aa4fba8818 change(lp_adc): Cleanup LP ADC driver and example 2026-02-09 12:37:57 +01:00
Tan Yan Quan
a38a8a06e2 feat(openthread/ota): support esp32h2 for ota examples over thread 2025-12-08 19:25:29 +08:00
Song Ruo Jing
9b3dd6f784 fix(light_sleep/example): fix potential compilation error in light_sleep example
If ESP_CONSOLE_NONE is selected in menuconfig, compilation fails with
undefined CONFIG_ESP_CONSOLE_UART_BAUDRATE macro.
2025-11-22 17:50:05 +08:00
wuzhenghui
18475ffbe5 fix(esp_hw_support): add p4 rev3.0 MSPI workaround for deepsleep 2025-11-04 16:03:31 +08:00
Marius Vikhammer
75f2d74569 ci(system): enabled and cleanup misc system test-apps build-test-rules 2025-08-18 10:24:07 +08:00
Jiang Jiang Jian
d0354479bd Merge branch 'ci/enable_sysview_tests_v5.4' into 'release/v5.4'
ci: enable sysview example tests for all chips (v5.4)

See merge request espressif/esp-idf!39473
2025-07-28 14:43:14 +08:00
Samuel Obuch
64d9fd72c6 ci: enable example tests for esp32p4 2025-07-15 21:25:14 +02:00
Samuel Obuch
2ae20f9cb6 ci: OpenOCD class as fixture 2025-07-15 21:25:14 +02:00
Samuel Obuch
44e9bf61ae ci: enable sysview examples for all chips 2025-07-15 21:25:10 +02:00
wuzhenghui
ea314e9dd9 feat(esp_hw_support): add core1 enter deepsleep test case 2025-07-14 11:49:56 +08:00
wuzhenghui
d8e73e94f2 fix(esp_hw_support): fix esp32 APP_CPU accessing RTCFAST memory in sleep code
Closes https://github.com/espressif/esp-idf/issues/16243
2025-07-14 11:49:52 +08:00
Alexey Gerenkov
45f26112af Merge branch 'disable_esp32c61_test_v5.4' into 'release/v5.4'
ci(change): disable esp32c61 tests

See merge request espressif/esp-idf!39658
2025-06-30 15:40:58 +08:00
hrushikesh.bhosale
d7b3e3b978 feat(mbedtls): Add configuration to control dynamic buffer strategy in mbedtls
Problem:
1. In low-memory scenarios, the dynamic buffer feature can fail due to memory fragmentation.
2. It requires a contiguous 16KB heap chunk, but continuous allocation and deallocation of
the RX buffer can lead to fragmentation.
3. If another component allocates memory between these operations, it can break up the
available 16KB block, causing allocation failure.

Solution:
1. Introduce configurable strategy for using dynamic buffers in TLS connections.
2. For example, convert RX buffers to static after the TLS handshake.
3. Allow users to select the strategy via a new field in the esp_http_client_cfg_t structure.
4. The strategy can be controlled independently for each TLS session.
2025-06-26 12:22:44 +05:30
wanckl
ea03622621 ci(esp32c61): remove c61 support from readme on 5.4 2025-06-17 15:09:40 +08:00
Erhan Kurubas
f91a687bae ci(change): disable esp32c61 tests 2025-06-04 13:07:40 +02:00
Jiang Jiang Jian
c61c31e884 Merge branch 'ci/enable_gcov_test_v5.4' into 'release/v5.4'
ci: enable gcov example for all chips (v5.4)

See merge request espressif/esp-idf!39164
2025-05-26 19:42:51 +08:00
Samuel Obuch
d452abc17e ci: fix app_trace_basic rules and test 2025-05-15 11:29:27 +02:00
Samuel Obuch
3c673cbea3 ci: enable gcov example for all chips 2025-05-15 11:29:22 +02:00
Marius Vikhammer
2fcebb7483 fix(lp_io): allow edge wakeup types for LP-IO on chips which support it 2025-05-12 09:48:30 +08:00
wuzhenghui
33aca83c63 change(ci): remove esp32c5 from readme since esp32c5 skipped CI build 2025-04-25 17:13:27 +08:00
Erhan Kurubas
80ec596e1e ci(change): disable esp32c5 apptrace test 2025-04-17 18:57:10 +02:00
wuzhenghui
76d021ad11 fix(esp_hw_support): fixed gpio sleep switching filling junk data to the console UART FIFO 2025-04-16 15:23:27 +08:00
morris
c94014cc3d Merge branch 'fix/flash_encryption_verify_write_etc_v5.4' into 'release/v5.4'
fix(spi_flash): Fix flash encryption write verify (backport v5.4)

See merge request espressif/esp-idf!38269
2025-04-09 17:12:50 +08:00
C.S.M
9282eec541 fix(spi_flash): Add suspend check on esp32c6 and esp32h2 for some reason 2025-04-09 10:10:47 +08:00
Erhan Kurubas
38d17fe1cd test(apptrace): enable esp32c5 and esp32c61 tests 2025-03-09 17:28:27 +01:00
Erhan Kurubas
288dfc7c2b test(apptrace): run tests from custom OpenOCD class 2025-03-08 21:00:14 +01:00
Marek Fiala
b37383f75b feat(tools): Enforce utf-8 encoding with open() function 2025-01-10 13:52:58 +08:00
Erhan Kurubas
688b86ba24 change(sysview): support single/dual core targets in heap_trace_log test 2024-11-26 08:49:30 +01:00
Mahavir Jain
9e2decf7df Merge branch 'ci/fix_pytest_otatool_for_c2_v5.4' into 'release/v5.4'
fix(examples): Fix pytest_otatool for C2 (v5.4)

See merge request espressif/esp-idf!35116
2024-11-26 13:05:21 +08:00
Konstantin Kondrashov
ed5a540439 fix(examples): Fix pytest_otatool for C2
Test for C2 has to be run with flash_4mb
2024-11-22 07:09:03 +02:00
yinqingzhao
a34f1eb6f9 feat(wifi): avoid compiling components related to wifi when wifi is not supported 2024-11-21 14:18:41 +08:00
Omar Chebib
ad910e3ce0 fix(examples): fix NMI interrupt example to work on ESP32-S3 2024-11-06 10:15:09 +08:00
nilesh.kale
854101959d feat: enable security related testcases for c5 and c61 2024-10-21 14:24:36 +05:30
Marius Vikhammer
1f1954378e Merge branch 'feature/lp_core_gpio_wakeup' into 'master'
feat(lp_core): added support for LP-IO as LP-core wakeup source

Closes IDF-10200

See merge request espressif/esp-idf!31828
2024-10-18 09:32:49 +08:00
Marius Vikhammer
b4c501374f feat(lp_core): added support for LP-IO as LP-core wakeup source 2024-10-16 09:34:20 +08:00
Erhan Kurubas
8c4337004b Merge branch 'fix/esp32p4_apptrace' into 'master'
fix(apptrace): replace ctrl block into noncache-able TCM  memory

Closes IDF-8107

See merge request espressif/esp-idf!34032
2024-10-15 17:45:24 +08:00
Mahavir Jain
44c6e49000 Merge branch 'feat/enable_otatool_support_for_c61' into 'master'
feat(ota): Added support of otatool for esp32c61

Closes IDF-11309

See merge request espressif/esp-idf!34072
2024-10-15 02:10:59 +08:00