Commit Graph
765 Commits
Author SHA1 Message Date
Jiang Jiang Jian c7332f41bd Merge branch 'fix/spi_buslock_unregister_issue_v5.2' into 'release/v5.2'
fix(hw_support): spi buslock fix unregister dev api issue (v5.2)

See merge request espressif/esp-idf!51476
2026-08-11 14:19:11 +08:00
wanckl c107a30b6e fix(hw_support): spi buslock fix unregister dev api issue 2026-08-04 11:35:45 +08:00
Xiao Xufeng ecab1fec19 fix(mspi): fixed possible boot failure in some builds when psram is enabled
A typical scenario is: when XIP on PSRAM enabled, compiler optimization level is Os. Under certain binary layout, boot hangs and backtrace points to `esp_sleep_config_gpio_isolate`.

The root cause is that, during PSRAM initialization, it calls esp_gpio_reserve, which happens to place before the reported function. However, after call, there is no barrier before the clock adjustment in `mspi_timing_enter_low_speed_mode`. The clock gets changed when the cache is still fetching data, resulting in the corrupted data in the end of the cache line.

This commits add spi_flash_disable_cache as a barrier to make sure the cache transactions is finished before the clock switch.
2026-08-02 03:35:44 +08:00
harshal.patil 81f43c0ffb 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-18 21:13:50 +05:30
Song Ruo Jing 9d2d125c85 fix(flash): flash erase operation may fail to raise PMS exception 2026-04-10 15:51:02 +08:00
Xiao Xufeng 0cb4b65613 fix(spi_flash): fixed overboundary check skipping of erase and write_encrypted 2026-04-02 17:19:34 +08:00
Xiao Xufeng 13f414ca08 refactor(spi_flash): not patching api_funcs on C3 and S3 2026-04-02 17:19:34 +08:00
morris 55b6f2df37 refactor(tests): add missing sdkconfig files in the driver test 2026-01-06 16:06:29 +08:00
Xiao Xufeng e1c6d3049b fix(esp_flash): fixed issue of escaping boundary check
Also patched corresponding ROM functions
2025-07-28 14:25:01 +08:00
C.S.M 65a95d3bbe fix(spi_flash): Add suspend check on esp32c6 and esp32h2 for some reason 2025-04-15 11:35:18 +08:00
C.S.M 0e076037ba fix(spi_flash): Return false directly in suspend caps check 2025-04-07 15:34:00 +08:00
C.S.M 67cfae3f9b fix(spi_flash): Fix flash encryption write verify,
Closes https://github.com/espressif/esp-idf/issues/15380
2025-04-07 15:34:00 +08:00
C.S.M 084cb924f2 refactor(spi_flash): remove redundent flash suspend check 2025-02-19 16:59:30 +08:00
C.S.M 60b8013bc3 fix(spi_flash): Fix build fail when rom_patch config disabled,
Closes https://github.com/espressif/esp-idf/issues/15229
2025-02-19 16:58:59 +08:00
harshal.patil 248de17a53 feat(hal/spi_flash_encrypted): Enable pseudo rounds function during XTS-AES operations 2025-01-17 14:18:37 +05:30
Michael (XIAO Xufeng) f0364c578b Merge branch 'test/add_cache2phys_xip_tests_v5.2' into 'release/v5.2'
fix(mmap): fixed spi_flash_phys2cache return addr in PSRAM issue (v5.2)

See merge request espressif/esp-idf!35987
2025-01-16 17:56:55 +08:00
Xiao Xufeng cdfa57f5c5 ci(app_update): move test_apps to subfolder with a name 2025-01-08 02:03:10 +08:00
C.S.M e52ae0b4d8 feat(spi_flash): support 120M on xmc25q32d flash 2024-12-31 11:35:58 +08:00
Xiao Xufeng 31259552f5 ci(spi_flash): add tests for cache2phys with XIP 2024-12-28 01:56:01 +08:00
Xiao Xufeng 5cb8f87bbe fix(mmap): fixed spi_flash_phys2cache return addr in PSRAM issue
When SPIRAM_FETCH_INSTRUCTIONS or SPIRAM_RODATA enabled
2024-12-28 01:56:01 +08:00
laokaiyao 607afec360 fix(gpio_reserve): reserve the mspi pin regarding line mode 2024-12-25 11:08:32 +08:00
Armando 2236ec1491 fix(spi_flash): fixed no_os flash API not consider cache states issue on h2/p4/c6/c5/c61 2024-12-19 15:15:33 +08:00
Konstantin Kondrashov 465a51245d fix(spi_flash): Fix Test esp_flash_write 2024-12-03 09:55:45 +02:00
C.S.M c1288de7a1 test(spi_flash): Fix some failing test related to spi flash 2024-11-25 14:22:04 +08:00
C.S.M 32e0c7f3d1 docs(spi_flash): Add migration guide for removing XMC-C suspend support 2024-10-25 15:36:58 +08:00
C.S.M 80565eed9b patch(spi_flash): cleanup XMC flash chip usage according to new information 2024-10-18 16:38:18 +08:00
C.S.M 5f36c048d8 feat(spi_flash): Add new xmc chip id 2024-10-18 16:20:02 +08:00
Xiao Xufeng ce254fe470 fix(mmap): fixed spi_flash_cache2phys return addr in PSRAM issue
When SPIRAM_FETCH_INSTRUCTIONS or SPIRAM_RODATA enabled
2024-08-23 00:11:51 +08:00
C.S.M d8bd71695f fix(spi_flash): Add external flash support on esp32c6,esp32h2 2024-08-05 18:01:02 +08:00
Mahavir Jain 0ba529d267 fix(esp_mm): for existing mmap region, consider new offset for virtual addr
While returning virtual address for existing memory mapped region, newly
supplied offset from the physical address was not getting considered.

This was a regression present from ESP-IDF 5.1 release.

Added test case in spi_flash component that fails without this fix.

Closes https://github.com/espressif/esp-idf/issues/13929
2024-07-15 12:42:27 +08:00
Cao Sen Miao b150aad5d1 fix(spi_flash): Fix spi_flash counter test on CI 2024-07-04 11:18:45 +08:00
Cao Sen Miao fa50973fec fix(spi_flash): Fix that internal RAM has no enough space to put all stuff inside 2024-07-04 11:18:45 +08:00
Cao Sen Miao ec28757007 fix(spi_flash): Improve encryption write performance, Closes https://github.com/espressif/esp-idf/issues/12553 2024-07-04 11:18:45 +08:00
KonstantinKondrashov 4f03e0241e fix(spi_flash): Fix stuck during flash operation
When a task was not pinned to a certain CPU.
2024-04-17 11:38:44 +03:00
Cao Sen Miao ac2d88912d fix(spi_flash): Fix MXIC chip flash size detected wrong,
Closes https://github.com/espressif/esp-idf/issues/12222
2024-03-13 18:44:24 +08:00
morris 8bf27c103c Merge branch 'bugfix/fix_flash_encryption_rom_c3_v5.2' into 'release/v5.2'
fix(spi_flash): Fix issue that flash encryption failed while rom_impl config is enabled(backport v5.2)

See merge request espressif/esp-idf!29350
2024-03-07 10:07:25 +08:00
Cao Sen Miao 355df44822 fix(spi_flash): Fix issue that flash encryption failed while rom_impl config is enabled
The issue is `esp_flash_write_encryped` function in ROM on ESP32C3, ESP32S3
calls legacy implementation, which uses old configuration. And this causes
write fails.
The solution in this commit is to compile and link this function(and related)
in IRAM instead of the ROM one.
The IRAM cost increases around 1.2KB after the fix
2024-03-01 10:38:27 +08:00
Mahavir Jain 72ba89f191 fix(spi_flash): check for safe write address in encrypted flash API 2024-02-23 12:42:31 +08:00
Armando 60a9527a71 fix(cache): fix wrong dcache size 0 configuration issue on s2
Closes https://github.com/espressif/esp-idf/issues/12711
2024-01-05 10:38:41 +08:00
Marius Vikhammer d6a79b5108 Merge branch 'feature/hello_world_linux' into 'master'
feat(linux_target): enable hello world example for linux target

See merge request espressif/esp-idf!26638
2023-10-25 10:22:49 +08:00
Adam Múdry 687c5cc8d5 Merge branch 'fix/remove_wno-format_from_storage_components' into 'master'
refactor: Remove -Wno-format from storage related components

Closes IDF-6793

See merge request espressif/esp-idf!26531
2023-10-24 21:25:34 +08:00
Xiao Xufeng 1f5fb3f921 spi_flash: fixed issue that enabling HPM-DC by default may cause app unable to restart 2023-10-24 10:38:08 +08:00
Marius Vikhammer 8c52b0845d feat(linux_target): enable hello world example for linux target 2023-10-24 10:04:09 +08:00
Adam Múdry e151184da7 refactor: Remove -Wno-format from storage related components 2023-10-22 17:56:41 +00:00
C.S.M 0e95c0f4f8 Merge branch 'ci/reduce_flash_build_ci' into 'master'
spi_flash: reduce build times on ci

See merge request espressif/esp-idf!26264
2023-10-14 09:41:35 +08:00
Cao Sen Miao 6137905c02 ci(spi_flash): reduce build times on ci 2023-10-13 17:54:42 +08:00
Cao Sen Miao 6cea72b76b fix(ota): Fixed OTA fail on octal flash with 32MB memory,
Closes https://github.com/espressif/esp-idf/issues/11903
2023-10-13 12:01:26 +08:00
Adam Múdry ab1eb37fe8 feat(partition_table): Add read-only partition flag and functionality 2023-10-11 00:01:05 +02:00
Armando (Dou Yiwen) b58a2ea6a6 Merge branch 'feature/support_cache_p4' into 'master'
cache: support cache driver on esp32p4

Closes IDF-7516

See merge request espressif/esp-idf!25490
2023-09-25 15:21:46 +08:00
Armando ec27891af6 change(cache): swap cache hal arg 'type' and 'level' 2023-09-22 14:19:41 +08:00