Commit Graph

358 Commits

Author SHA1 Message Date
Chen Jichang
8cb3743b7c ci(esp32h4): disable h4 build and target test on unsupported release branch 2026-09-07 15:48:11 +08:00
Martin Vychodil
cb709dbf27 Merge branch 'fix/sdmmc_dma_aligned_buffer_leak_v6.1' into 'release/v6.1'
fix(sdmmc): release aligned buffer on card deinit (v6.1)

See merge request espressif/esp-idf!52252
2026-09-02 20:20:40 +08:00
Adam Múdry
e1f6ec686c fix(sdmmc): release aligned DMA buffer on card deinit 2026-09-01 12:27:09 +02:00
Adam Múdry
14f9605be2 fix(storage): Re-enable SDMMC related tests for P4 2026-08-31 15:11:10 +02:00
Jiang Jiang Jian
83d0478bb6 Merge branch 'docs/clarify-storage-example-readmes_v6.1' into 'release/v6.1'
docs(storage): clarify example READMEs and when to use each (v6.1)

See merge request espressif/esp-idf!52037
2026-08-31 11:45:43 +08:00
Jiang Jiang Jian
0773a8d8bb Merge branch 'bugfix/idfci-12815-12072-timeout_v6.1' into 'release/v6.1'
fix(storage): mark storage pytest apps flaky in CI (v6.1)

See merge request espressif/esp-idf!51333
2026-08-31 11:26:18 +08:00
Jiang Jiang Jian
319258d587 Merge branch 'bugfix/parttool-serial-handoff_v6.1' into 'release/v6.1'
fix(storage): stabilize parttool pytest serial handoff (v6.1)

See merge request espressif/esp-idf!50912
2026-08-31 11:12:53 +08:00
sonika.rathi
8eade5a911 docs(storage): clarify example READMEs and when to use each
Update storage example docs so FATFS getting_started and wear_levelling
are clearly distinct, refresh the storage index paths, and add
"When to use this example" sections across storage examples.
2026-08-25 12:51:01 +02:00
sonika.rathi
5c76b3eacf fix(storage): mark storage pytest apps flaky in CI 2026-07-31 08:51:51 +02:00
sonika.rathi
ce6c4b8940 fix(storage): stabilize parttool pytest serial handoff 2026-07-17 12:54:59 +02:00
sonika.rathi
9f60629791 fix(fatfs): erase storage partition before bdl_wl CI test 2026-07-17 10:53:21 +02:00
Xiao Xufeng
3e8389cc31 fix(mmap): fixed some API read wrong data via mmap when flash being erased/written while XIP on PSRAM
Before:

The cache won't be disabled when XIP on psram. But during flash
erasing/programming, read data will be courrupt.

When XIP in psram is enabled, the image is not mapped to the cache so
usually there will be no flash access. The only way to read from flash
is via the driver or use mmap. The driver has protection during erasing,
while th mmap region not.

Now:

Mmap APIs provide a flag to make mmap->unmap region mutually exclusive
to flash erase/programming when XIP from psram. SPI Flash write APIs
will benefit from this. When the flag is used, no concurrent access to
mapped region will happen while writing; otherwise the cache will be
disable to avoid data corruption.

Most ESP-IDF APIs calls mmap with this flag. As for users calling
mmap-like APIs directly, they can choose whether to enable this by a
flag.

Closes https://github.com/espressif/esp-idf/issues/14897
2026-07-15 18:57:08 +08:00
Samuel Obuch
6ddbc96d97 docs(jtag-debugging): add semihosting chapter
Co-authored-by: Shen Mengjing <shenmengjing@espressif.com>
Co-authored-by: Zhang Shu Xian <zhangshuxian@espressif.com>
2026-06-22 13:01:11 +02:00
Song Ruo Jing
c9f52c7ca7 feat(spi_flash): Add exclusive support for ESP32H4
Add 32bit addr support for esp32s31 as well
2026-06-09 15:27:41 +08:00
C.S.M
4310ae9d7b feat(spi_flash): Add entire support for h21 external flash 2026-06-04 11:25:59 +08:00
Jiang Jiang Jian
90ec41a9f7 Merge branch 'feat/support_rom_psa_mbedtls' into 'master'
feat(mbedtls): enable ESP32-C2(Rev2.0) ROM mbedTLS crypto for PSA

Closes IDF-15012

See merge request espressif/esp-idf!48211
2026-05-22 11:24:42 +08:00
Martin Vychodil
27c99337a3 Merge branch 'bugfix/nvs-bootloader-pytest-app-log' into 'master'
test(nvs_bootloader): mark nvs bootloader pytest as flaky

Closes IDFCI-6610 and IDFCI-10466

See merge request espressif/esp-idf!48176
2026-05-21 20:07:32 +08:00
Martin Vychodil
f79c425df1 Merge branch 'bugfix/perf-benchmark-spiflash-ci-idfci-8082' into 'master'
fix(examples): suppress perf_benchmark printf in CI

Closes IDFCI-8082

See merge request espressif/esp-idf!48630
2026-05-21 20:00:42 +08:00
armando
f408e1a8bc feat(sdmmc): add esp32s31 support
Enable SDMMC host support on ESP32-S31 across HAL, SOC caps, tests, examples, and documentation.
2026-05-21 09:09:28 +08:00
Jiang Guang Ming
d5a712f1f8 feat(mbedtls): enable ROM mbedTLS pytest with esp32c2 rev2.0 2026-05-20 14:15:19 +08:00
sonika.rathi
67ce49943b test(nvs_bootloader): mark nvs bootloader pytest as flaky 2026-05-19 11:49:09 +02:00
sonika.rathi
61f8db0179 fix(examples): suppress perf_benchmark printf in CI 2026-05-18 09:41:58 +02:00
Martin Vychodil
0841f2b458 Merge branch 'bugfix/nvs-rw-value-pytest-idfci-4027' into 'master'
fix(examples): add flaky reruns to nvs_rw_value pytest for CI flash

Closes IDFCI-4027, IDFCI-4463, and IDFCI-8653

See merge request espressif/esp-idf!48150
2026-05-13 19:30:56 +08:00
Sonika Rathi
e8bd946be6 Merge branch 'bugfix/perf-benchmark-spiflash-ci-idfci-7684' into 'master'
fix(examples): stabilize perf_benchmark SPI flash CI test

Closes IDFCI-7684, IDFCI-4226, IDFCI-4243, IDFCI-4379, IDFCI-7564, and IDFCI-8082

See merge request espressif/esp-idf!48092
2026-05-13 16:28:04 +08:00
Chen Jichang
3c3b9a6a4e ci(esp32h4): disable tests which cannot pass 2026-05-11 16:48:58 +08:00
sonika.rathi
7abab6e44b fix(examples): rerun flaky perf benchmark spiflash test 2026-05-07 11:40:00 +02:00
sonika.rathi
b92e141d5a fix(examples): add flaky reruns to nvs_rw_value pytest for CI flash 2026-05-05 18:38:37 +02:00
Martin Vychodil
f70550f51f Merge branch 'bugfix/spiffs-example-pytest-timeout-idfci-10763' into 'master'
fix(examples): extend SPIFFS example pytest timeout for slow CI format

Closes IDFCI-10763

See merge request espressif/esp-idf!48080
2026-05-05 16:00:40 +08:00
sonika.rathi
e91cfc554d fix(examples): extend SPIFFS example pytest timeout for slow CI format 2026-04-29 12:37:54 +02:00
sonika.rathi
208436a917 fix(nvs_flash): Skip nvs bootloader CI on ESP32-S31 bringup 2026-04-28 10:41:27 +02:00
Tomas Rohlinek
c225eb59db Merge branch 'feat/update_littlefs' into 'master'
feat(storage/littlefs): Bump version to enable blockdev support

Closes IDF-12746

See merge request espressif/esp-idf!47358
2026-04-22 09:51:20 +02:00
Adam Múdry
b29b9dc4d2 Merge branch 'feat/cmake_add_partition_flash_binary_function' into 'master'
feat(esp_partition): Add esp_partition_register_target Cmake function

Closes IDF-11870 and DOC-14244

See merge request espressif/esp-idf!37176
2026-04-13 15:54:27 +02:00
Adam Múdry
749c446a7e feat(esp_partition): Add esp_partition_flash_binary() CMake function
Add a new CMake function esp_partition_flash_binary() that provides a
unified API for registering partition data binaries to be flashed. It
replaces the direct esptool_py_flash_target calls scattered across
components (spiffs, fatfs, nvs_flash) with a single function that:

- Resolves partition offset from the partition table automatically
- Determines encryption requirements (auto-detect or ALWAYS_PLAINTEXT)
- Creates per-partition flash targets (e.g. idf.py <partition>-flash)
- Optionally includes the binary in `idf.py flash` via FLASH_IN_PROJECT

On the linux target, the function registers binaries for pre-loading
into the emulated flash. A build-time manifest (linux_flash_data.txt)
is generated via file(GENERATE), and partition_linux.c reads it at
runtime to copy each binary into the memory-mapped flash buffer at
the correct offset.

The partition_ops example is updated to use the new function and
includes a custom_partition with pre-built data to demonstrate the
full workflow, including on the linux target.
2026-04-10 15:22:50 +02:00
wanckl
99bf74f022 feat(driver_spi): s31 gpspi driver support 2026-04-10 14:22:17 +08:00
Tomáš Rohlínek
c54c523674 feat(storage/littlefs): Bump version to enable blockdev support 2026-04-08 09:45:12 +02:00
Martin Vychodil
7043fb0d14 feat(fatfs): Added BDL support to FatFS component 2026-04-07 07:11:21 +02:00
C.S.M
152b5ccb4c ci(esp32s31): Add ci target test for esp32s31 2026-04-03 11:38:45 +08:00
Adam Múdry
653cea9c94 fix(sdmmc): Multi-block read/writes support refactor + tests and documentation added 2026-03-16 13:33:03 +01:00
Tomáš Rohlínek
4575ac1f5e feat(storage): Minimize dependencies for test cases 2026-02-18 13:43:27 +01:00
Xiao Xufeng
4a4cdf8b22 test(spi_flash): re-enable custom_flash_driver example build test 2026-02-02 19:52:38 +08:00
Michael (XIAO Xufeng)
5984b29af5 Merge branch 'refactor/spi_flash_private' into 'master'
refactor(spi_flash): reorganize header files, improve encapsulation and simplify ROM implementation

See merge request espressif/esp-idf!44347
2026-01-28 17:39:51 +08:00
igor.udot
4c26ab876b ci: update build-test-rules to use common_components 2026-01-23 10:14:09 +08:00
Xiao Xufeng
8dbf23630a refactor(spi_flash): reorganize header files and improve API encapsulation
This commit reorganizes SPI flash header files to better reflect their
visibility and intended usage:

1. Rename `esp_flash_port/` to `esp_flash_chips/`:
   - Better reflects that these headers are for chip driver implementations
   - All chip driver headers moved to `esp_flash_chips/` directory
   - Added README.md explaining semi-public nature of these headers

2. Move internal headers to `esp_private/`:
   - `esp_flash_internal.h` -> `esp_private/esp_flash_internal.h`
   - `memspi_host_driver.h` -> `esp_private/memspi_host_driver.h`

3. Move chip driver related headers to `esp_flash_chips/`:
   - `esp_private/esp_flash_types.h` -> `esp_flash_chips/esp_flash_types.h`
   - `spi_flash/spi_flash_defs.h` -> `esp_flash_chips/spi_flash_defs.h`
   - `spi_flash_override.h` -> `esp_flash_chips/spi_flash_override.h`
   - All `spi_flash_chip_*.h` headers moved to `esp_flash_chips/`

4. Code improvements:
   - Remove unused includes (e.g., `spi_flash_override.h` from `cache_utils.c`)
   - Use public API `esp_flash_get_size()` instead of direct member access
   - Add `esp_flash_is_quad_mode` to linker.lf for IRAM placement

5. Documentation updates:
   - Add README.md in `esp_flash_chips/` explaining semi-public headers
   - Update programming guide with warnings about internal headers
   - Update both English and Chinese documentation

6. Update all references across the codebase:
   - Update includes in `spi_flash` component
   - Update `bootloader_support`, `app_update`, `esp_tee`, `espcoredump`
   - Update example projects

Breaking changes:
- Headers moved to new locations require include path updates
- `custom_flash_driver` example temporarily disabled until external
  components are updated
2026-01-23 03:38:54 +08:00
Adam Múdry
fdaeef206c fix(examples): Fixed wrong timeout placement in examples/sd_card/* pytest 2026-01-08 15:19:35 +01:00
Adam Múdry
712c02e03c fix: Fixed typo in pytest output expectation 2026-01-07 13:35:51 +01:00
Ashish Sharma
e78bdb1aff feat: migrates storage examples to PSA APIs 2025-12-30 09:31:49 +05:30
Ashish Sharma
5663e93298 feat: migrates nvs_flash to PSA APIs 2025-12-30 09:31:49 +05:30
C.S.M
f405e51784 ci(esp32s31): Add ci build test for esp32s31 2025-12-11 15:17:15 +08:00
wanckl
4fe7e6ac18 ci(p4): p4 eco5 enable parts of special tests 2025-12-08 13:59:25 +08:00
Igor Udot
84d2b57df9 Merge branch 'ci/check_build_test_rules' into 'master'
ci: fix mismatch in check_build_test_rules

Closes CII-49 and CII-50

See merge request espressif/esp-idf!43937
2025-12-05 11:56:39 +08:00