Commit Graph

1125 Commits

Author SHA1 Message Date
Erhan Kurubas
345406ec48 Merge branch 'trace_encoder_snapshot_coredump' into 'master'
Add trace snapshot to the coredump file

See merge request espressif/esp-idf!52451
2026-09-17 14:41:18 +02:00
Roland Dobai
c43f19f44c fix(panic): pass the DUT serial port to espcoredump 2026-09-17 18:15:26 +08:00
Lu Ai Jun
3dd1a4671a Merge branch 'fix/sys_test_apps_using_wrong_config' into 'master'
CI: fix psram config for system test apps

See merge request espressif/esp-idf!51559
2026-09-17 15:58:44 +08:00
Erhan Kurubas
4d8f4f3b25 test(esp_riscv_trace): Add coredump snapshot note coverage
Check the ESP_RISCV_TRACE ELF note and per-core PT_LOAD segments
after an abort, without decoding the trace stream.
2026-09-16 15:00:57 +02:00
Sudeep Mohanty
6933b41314 Merge branch 'feat/ulp_component_split' into 'master'
refactor(ulp): separate the ULP coprocessor code from the driver

Closes IDF-15957

See merge request espressif/esp-idf!52268
2026-09-15 11:49:23 +02:00
Armando (Dou Yiwen)
496c0b6377 Merge branch 'refactor/flash_refactor' into 'master'
spi_flash: split driver and os driver into `spi_flash` and `esp_mspi` components

Closes IDF-15210

See merge request espressif/esp-idf!45409
2026-09-10 07:29:01 +00:00
Armando (Dou Yiwen)
5e181236b7 refactor(mspi): move esp_mspi_align and mspi_mem_barrier to esp_mspi 2026-09-09 14:17:00 +08:00
armando
6e3abd12a1 refactor(spi_flash): move os layer to esp_mspi and chip configs to spi_flash
Also fixes the implicit dependency on esp_partition.
2026-09-09 14:17:00 +08:00
Mahavir Jain
71c93b10b9 Merge branch 'test/s3_memprot_dram_exec_xfail' into 'master'
test(panic): apply the ESP32-S2 memprot expected failures to ESP32-S3

Closes IDFCI-13868

See merge request espressif/esp-idf!52444
2026-09-09 11:42:35 +05:30
Marius Vikhammer
c41541b83b fix(ipc): fixed IPC task ending up in PSRAM
With CONFIG_FREERTOS_PLACE_TASK_STACKS_IN_EXT_RAM enabled IPC
task would end up in PSRAM, causing issues with disabling cache
2026-09-08 11:37:35 +08:00
Marius Vikhammer
25555683b9 Merge branch 'feature/g1_improvements_cmake_v2' into 'master'
feat(build): fixed esp_usb_cdc_rom_console always being included in build

See merge request espressif/esp-idf!51981
2026-09-08 10:36:40 +08:00
luaijun
a3a20a7a27 fix: the incorrect SOC_PSRAM_SUPPORTED build condition with SOC_SPIRAM_SUPPORTED.
change: the light-sleep test so an internal-RAM helper task enters light sleep while the PSRAM-stacked Unity task is blocked.Verifies that light sleep succeeds and that the PSRAM-stacked task resumes correctly afterward.Removes the unreliable sleep-callback counter check.
2026-09-08 09:54:58 +08:00
harshal.patil
2068cd1aa0 test(panic): apply the ESP32-S2 memprot expected failures to ESP32-S3
The DRAM and RTC_FAST execute cases race the CPU exception against the PMS or
cache interrupt on ESP32-S3 too, so the panic reason is not deterministic.
2026-09-04 14:13:04 +05:30
Marius Vikhammer
157d6b1669 feat(build): fixed esp_usb_cdc_rom_console always being included in build 2026-09-03 15:09:38 +08:00
Marius Vikhammer
ff6371a140 Merge branch 'task/remove_build_components_var_in_buildv2' into 'master'
change(build): drop BUILD_COMPONENTS support and migrate test_apps to not use it for buildv2

Closes IDF-15859

See merge request espressif/esp-idf!51695
2026-09-02 19:19:08 +08:00
Mahavir Jain
a1f17cebdc Merge branch 'fix/s3_memprot_panic_report' into 'master'
Report ESP32-S3 PMS violations as memory protection faults

See merge request espressif/esp-idf!52109
2026-09-02 13:41:24 +05:30
Sudeep Mohanty
53ea9b200e refactor(ulp): select ULP architecture component as common component
The subproject knows which architecture it builds for, so a ULP program names
only its own dependencies.
2026-09-02 09:31:07 +02:00
Sudeep Mohanty
cb2b2f9b78 refactor(ulp): build the ULP coprocessor code as per-architecture components
A ULP program is built against ulp_riscv, lp_core or ulp_fsm, each stating its
own sources, dependencies and memory layout. Sources shared with the driver
stay in components/ulp.
2026-09-02 09:31:07 +02:00
Sudeep Mohanty
1bec6e09d9 refactor(ulp): make the ULP subproject directory explicit
components/ulp/cmake holds the project that builds a ULP program. Name it
subproject, as the bootloader does.
2026-09-02 09:31:07 +02:00
Konstantin Kondrashov
de1e5035b5 feat(app_update): Add auto-confirmation of OTA updates
Enable rollback auto-confirmation by default
2026-09-01 12:53:21 +03:00
harshal.patil
8daab867b7 test(panic): enable the memprot panic tests for ESP32-S3
sdkconfig.ci.memprot_esp32s3 was built but listed in no CONFIGS_MEMPROT_*, so
the S3 PMS panic path was never exercised.

expect_gme() takes an optional core, for panics with no attributable core.
2026-09-01 12:33:46 +05:30
Mahavir Jain
a3192567d5 Merge branch 'feat/cpu_region_protection_h4' into 'master'
Memory region protection for ESP32-H4

Closes IDF-12588

See merge request espressif/esp-idf!47070
2026-08-31 17:41:52 +05:30
Martin Vychodil
4cce27e1cc Merge branch 'fix/sdmmc_dma_aligned_buffer_leak' into 'master'
fix(sdmmc): release aligned buffer on card deinit

Closes IDF-16031 and DOC-15562

See merge request espressif/esp-idf!51530
2026-08-28 13:57:05 +08:00
Adam Múdry
e0c094da69 fix(sdmmc): release aligned DMA buffer on card deinit 2026-08-27 12:00:24 +02:00
Sudeep Mohanty
052f444f32 change(test_apps): decouple netif_components from BUILD_COMPONENTS property
The BUILD_COMPONENTS build property only exists when building through the
Build system v1 compatibility shim. Query the executable library
interface's linked-components list instead, so the app does not depend on
compatibility-only properties.
2026-08-26 15:28:18 +02:00
Sudeep Mohanty
d519de14d1 change(test_apps): decouple g1_components from BUILD_COMPONENTS property
The BUILD_COMPONENTS build property only exists when building through the
Build system v1 compatibility shim. Query the executable library
interface's linked-components list instead, so the app does not depend on
compatibility-only properties.
2026-08-26 15:28:18 +02:00
Sudeep Mohanty
78d3f61757 change(test_apps): decouple g0_components from BUILD_COMPONENTS property
The BUILD_COMPONENTS build property only exists when building through the
Build system v1 compatibility shim. Query the executable library
interface's linked-components list instead, so the app does not depend on
compatibility-only properties.
2026-08-26 15:28:18 +02:00
Sudeep Mohanty
73bbe343ec fix(test_apps): drop obsolete esp_common dependency violations 2026-08-26 15:28:18 +02:00
harshal.patil
53c9439161 change(esp_hw_support): rework ESP32-H4 region protection to the application-owned layout
The bootloader programs only unlocked PMA entries (no PMP), so the layout is
not a bootloader<->application ABI; the application resets all entries, programs
them in ascending order from IRAM, and locks everything. Verified on ESP32-H4 v0.1.
2026-08-25 10:40:28 +05:30
harshal.patil
07debe6edc feat(esp_hw_support): Memory region protection for ESP32-H4 2026-08-25 10:40:28 +05:30
Fu Hanxi
289a17b3a2 tests: replace CLI-dependent xfail/skipif conditions 2026-08-20 09:14:41 +02:00
harshal.patil
01b86f1269 change(esp_hw_support): harden the ESP32-S31 PSRAM region permissions
Both PSRAM layouts were mapped as a single RWX window, so everything in external
RAM - the heap included - was executable.

PSRAM used as data only is now RW, and under XIP-from-PSRAM it is split per
section as ESP32-P4 does: .text RX, .rodata read-only, and the MMU-page
alignment gaps and the reclaimed heap RW, so neither is executable.

Both describe the layout that esp_psram_init() produces, and the entries are
locked, so - again as on ESP32-P4 - they are only narrowed when
CONFIG_SPIRAM_PRE_CONFIGURE_MEMORY_PROTECTION says that layout applies. Without
it the application owns the region and PSRAM stays RWX.

The per-section entries cost one PMP entry more than the 16 available, so the CPU
subsystem and peripheral windows are chained as TOR entries, taking one entry
instead of three.

soc.h is corrected against the S31 bus address map: the peripheral window base
was 1 MB too low, and the LP peripheral top, derived from a register base plus a
size rather than from the map, was 16 KB short. SOC_NON_CACHEABLE_OFFSET_FLASH
is added.
2026-08-19 09:39:52 +05:30
nilesh.kale
b5891edb9b feat: enable cpu region protection for esp32s31 2026-08-17 19:23:58 +05:30
morris
3438867a73 Merge branch 'lld_orphan' into 'master'
esp_system: enable linking with LLD on RISC-V targets

Closes LLVM-216

See merge request espressif/esp-idf!48712
2026-08-17 14:40:36 +08:00
Marius Vikhammer
aaad158b85 ci(precommit): fixed readme issue found by precommit in ota size metric 2026-08-14 08:19:23 +02:00
Stefan Stipanovic
d0ae774d59 fix(esp_system): enable linking with LLD on RISC-V targets 2026-08-13 21:23:36 +02:00
Ashish Sharma
e7af5c69d9 feat(esp_image_verify): split image verification out of bootloader_support 2026-08-12 08:39:18 +05:30
Ashish Sharma
8589d9df25 fix(build): prepare dependents for bootloader_support dropping mbedtls
bootloader_support is about to stop pulling mbedtls (and app_update) into
every build graph, so components and apps that relied on those transitive
edges must own their dependencies

Closes https://github.com/espressif/esp-idf/issues/18072
Related https://github.com/espressif/esp-idf/issues/18778
2026-08-12 08:39:18 +05:30
Marius Vikhammer
3887bf6848 Merge branch 'ci/metric_apps' into 'master'
ci(size_metrics): add more size metrics apps

See merge request espressif/esp-idf!51622
2026-08-10 19:50:14 +08:00
Marius Vikhammer
dd089bacb2 ci(size_metrics): add more size metrics apps 2026-08-07 13:49:28 +02:00
Marius Vikhammer
81f6360e4d Merge branch 'feat/optimize_bootloader_size' into 'master'
change(bootloader): optimize bootloader size

See merge request espressif/esp-idf!51573
2026-08-06 22:06:38 +08:00
Alexey Lapshin
366ce3ebed Merge branch 'fix/kasan_heap_alignment' into 'master'
fix(heap): preserve aligned allocation with KASAN

See merge request espressif/esp-idf!51186
2026-08-06 14:06:58 +04:00
Marius Vikhammer
47262f8e6b change(bootloader): optimize bootloader size
Trim bootloader size by moving some logs to DEBUG. Allows
compiling bootloader on P4 with CONFIG_ESPTOOLPY_FLASHMODE_QIO
without changing partition table offset
2026-08-06 10:01:36 +02:00
Mahavir Jain
2495e37a48 Merge branch 'feat/pma_pmp_lock_policy' into 'master'
Stop locking PMP in the bootloader and freeze the entry layout

See merge request espressif/esp-idf!50326
2026-08-06 11:31:39 +05:30
Sudeep Mohanty
cc799dbcc7 test(kasan): re-enable kasan_test under build system v2 2026-08-03 17:29:00 +02:00
Alexey Lapshin
2c0ecc64fa fix(heap): preserve aligned allocation with KASAN
Account for the left redzone when aligning user pointers.
Add regression coverage for KASAN-enabled allocations.
2026-08-03 13:13:16 +07:00
Renz Christian Bagaporo
7054ec851c Merge branch 'feat/cmakev2_ulp_legacy_shim' into 'master'
feat(ulp): build all legacy ULP projects through CMakev2

See merge request espressif/esp-idf!50143
2026-07-31 07:10:43 +08:00
Marius Vikhammer
873d612fde Merge branch 'ci/add_base_size_metric_apps' into 'master'
ci(size_metrics): add base size metric test apps

See merge request espressif/esp-idf!46208
2026-07-29 20:50:13 +08:00
Marius Vikhammer
19aca52f08 feat(size_metrics): add size metrics test apps
Add test apps for binary size tracking:
- esp_timer size_metrics app with minimal/full sdkconfig variants
- minimal_baseline app to establish the platform binary size floor
2026-07-29 11:40:55 +02:00
harshal.patil
dc6939e583 test(esp_system): run memory protection panic tests on ESP32-P4 rev < 3.0 2026-07-29 11:41:22 +05:30