Commit Graph

625 Commits

Author SHA1 Message Date
armando 9a713f9b7d refactor(mspi): improved timing tuning max consecutive success points calculation 2025-04-10 10:49:02 +08:00
Xiao Xufeng 4e6af199f2 ci(spi_flash): add tests for cache2phys with XIP 2025-03-28 13:34:49 +08:00
Xiao Xufeng 0f1c8cc986 fix(mmap): fixed spi_flash_phys2cache return addr in PSRAM issue
When SPIRAM_FETCH_INSTRUCTIONS or SPIRAM_RODATA enabled
2025-03-28 13:34:48 +08:00
Xiao Xufeng 2e3c42e41f fix(mmap): fixed spi_flash_cache2phys return addr in PSRAM issue
When SPIRAM_FETCH_INSTRUCTIONS or SPIRAM_RODATA enabled
2025-03-28 13:34:48 +08:00
C.S.M 64e169c86e refactor(spi_flash): remove redundent flash suspend check 2025-03-03 19:14:19 +08:00
C.S.M 15e2b9f04b feat(spi_flash): support 120M on xmc25q32d flash 2024-12-31 11:45:44 +08:00
Konstantin Kondrashov fc9c0fb045 fix(spi_flash): Fix Test esp_flash_write 2024-12-19 13:57:01 +08:00
C.S.M d00e400552 patch(spi_flash): cleanup XMC flash chip usage according to new information 2024-10-25 15:49:25 +08:00
C.S.M 7957815ea3 feat(spi_flash): Add new xmc chip id 2024-10-18 16:43:07 +08:00
KonstantinKondrashov 955341db98 fix(spi_flash): Fix stuck during flash operation
When a task was not pinned to a certain CPU.
2024-04-17 12:04:05 +03:00
Martin Vychodil 05a45e9c96 Merge branch 'bugfix/nvs_lock_initi_and_multipage_blob_v5.0' into 'release/v5.0'
Bugfix/nvs Improved handling of BLOB during unreliable power environment and concurrent data access scenarios (v5.0)

See merge request espressif/esp-idf!29322
2024-03-13 23:06:23 +08:00
radek.tandler 27f432eb05 fix(nvs): Adopted CMakeLists for nvs_host_test of IDF v5.0 2024-03-12 13:28:02 +01:00
Cao Sen Miao d8f505751e 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-04 11:55:50 +08:00
Xiao Xufeng c32a56fe3b spi_flash: fixed issue that enabling HPM-DC by default may cause app unable to restart 2024-03-03 23:11:43 +08:00
Mahavir Jain 5ac48e7468 fix(spi_flash): check for safe write address in encrypted flash API 2024-02-23 12:42:46 +08:00
Armando d9f7b7fe4a fix(cache): fix wrong dcache size 0 configuration issue on s2
Closes https://github.com/espressif/esp-idf/issues/12711
2024-01-05 10:40:04 +08:00
Cao Sen Miao f5e80b68c7 fix(ota): Fixed OTA fail on octal flash with 32MB memory,
Closes https://github.com/espressif/esp-idf/issues/11903
2023-11-01 12:27:16 +08:00
Armando 30fda7f5c2 change(mspi): remove s3 120mhz sdr warning 2023-09-27 15:00:26 +08:00
Armando 53b1c2a2e6 test(flash_mmap): test flash mmap pages 2023-08-25 10:37:48 +08:00
Armando 6183b555aa fix(flash_mmap): fixed limited free I/D pages on ESP32S3, C2, C3 2023-08-25 10:37:48 +08:00
wanlei 1283619767 cache: refactor cache_utils into cache_hal instade 2023-07-31 15:34:56 +08:00
wanlei 68e07d90ba cache: fix cache suspended/resumed twice on S3 2023-07-31 15:08:18 +08:00
morris 3fba3425f1 Merge branch 'bugfix/fix_spi_flash_api_concurrency_issue_v5.0' into 'release/v5.0'
spi_flash: fix concurrency issue when concurrently calling esp_flash apis (v5.0)

See merge request espressif/esp-idf!24512
2023-07-25 11:04:57 +08:00
Armando 38de42bd26 feat(spi_flash): add common test_flash_utils component 2023-07-24 15:28:18 +08:00
Armando 403cdb03ec spi_flash: rename spi_flash_os_func_app: spi_start, spi_end
spi_start -> s_acquire_spi_bus_lock
spi_end -> s_release_spi_bus_lock
2023-07-24 15:28:18 +08:00
Armando c56ff93007 spiflash: added esp_flash API concurrency pressure test 2023-07-24 15:28:18 +08:00
Armando 5a59c50951 spi_flash: fix concurrency issue when calling esp_flash apis under xip_psram or auto_suspen 2023-07-24 15:28:18 +08:00
Armando 0c2cd2dfa6 spiflash: fix not calling on_spi_acquired when CONFIG_SPI_FLASH_SHARE_SPI1_BUS issue 2023-07-24 15:28:18 +08:00
gaoxiaojie 805f3bc557 fix(cache): add lock to protect cache sync operation 2023-07-24 10:51:23 +08:00
Jiang Jiang Jian c10505f939 Merge branch 'bugfix/fix_esp32s3_psram_access_failed_in_dfs_v5.0' into 'release/v5.0'
esp_pm: fix esp32s3 psram access failed when dfs is enabled (backport v5.0)

See merge request espressif/esp-idf!24199
2023-07-11 12:19:43 +08:00
wuzhenghui 65e8cb55eb bugfix: fix esp32s3 psram access failed when dfs is enabled 2023-06-15 14:14:21 +08:00
Armando 75bd7008a5 mspi: added timing tuning start, and success log 2023-06-12 16:14:13 +08:00
Armando 23cbe3c008 mspi: modified mspi 80mhz octal psram timing tuning point fallback id on s3 2023-05-11 11:16:33 +08:00
Cao Sen Miao 4c66d7e6df esp_flash: correct veriable 'size' description 2023-03-21 12:10:38 +08:00
Cao Sen Miao e94d95103e spi_flash: Fix issue that cannot get accurate flash size when encounter large size memory,
Closes https://github.com/espressif/esp-idf/pull/9566
2023-03-20 13:07:35 +08:00
Omar Chebib 83907aaa20 TWDT: Use the new TWDT Kconfig options in the examples and tests 2023-03-07 10:23:43 +08:00
Ivan Grokhotkov 82458fd31d Merge branch 'bugfix/extram_stack_coredump_v5.0' into 'release/v5.0'
coredump: add support for stacks in external RAM (backport v5.0)

See merge request espressif/esp-idf!22410
2023-02-20 20:32:19 +08:00
morris db8b56c9ac Merge branch 'bugfix/fix_micro_error_SPI_HOST_MAX_v5.0' into 'release/v5.0'
spi: fix micro SPI_HOST_MAX error (v5.0)

See merge request espressif/esp-idf!22147
2023-02-18 15:06:35 +08:00
Omar Chebib 18125ff7b7 coredump: add support for stacks in external RAM
Tasks having their stacks in SPIRAM can now be part of the coredump written to flash
2023-02-17 10:39:07 +08:00
wanlei 9fd62d547c spi_flash: fix flash function arg_check with spi host_id 2023-01-30 10:33:17 +08:00
Armando 698be13236 mspi: remove mspi 80m ddr mode warning regarding to timing tuning 2023-01-05 11:50:57 +08:00
Omar Chebib 0714847552 C/Cxx: unify static assertions with the macro ESP_STATIC_ASSERT
Closes https://github.com/espressif/esp-idf/issues/9938
2022-12-19 15:06:15 +01:00
Armando 2369fa4d66 mspi_tuning: fix psram timing tuning bug
Prior to this commit, when calling:
- spi_timing_enter_mspi_low_speed_mode()
- spi_timing_enter_mspi_high_speed_mode()

psram timing is not tuned. This will lead to a stall during early
startup. This bug is on S3, for 80MHz DDR PSRAM

This commit will add psram timing tuning, in these two functions.
2022-12-15 17:04:23 +08:00
gaoxu 06e1ff2881 system: don't disable cache if Flash .text and .rodata are moved to PSRAM 2022-12-09 18:02:57 +08:00
Jiang Jiang Jian 67f1ff7fa1 Merge branch 'feature/gd_e_hpm_support_v5.0' into 'release/v5.0'
spi_flash: Add GD25QxxE and ZBit flash HPM(120M) support(backport v5.0)

See merge request espressif/esp-idf!20240
2022-12-08 11:52:21 +08:00
Armando d4725fb34d partition: use esp_partition_munmap instead of spi_flash_munmap 2022-11-10 11:26:51 +08:00
Martin Vychodil af81bd1b0a Storage: Partition APIs moved to the new component 'esp_partition'
All the partition handling API functions and data-types were moved from the 'spi_flash' component to the new one named 'esp_partition'. See Storage 5.x migration guide for more details
2022-11-02 21:49:08 +01:00
Cao Sen Miao 7e1c632d8b spi_flash: Add several flash chips HPM(120M) support 2022-09-21 11:47:52 +08:00
KonstantinKondrashov 0147bd6b0d freertos: Adds new APIs to set/get and restore base priority
Closes https://github.com/espressif/esp-idf/issues/7580
2022-09-07 21:16:00 +08:00
Armando 64e0ee573d esp_psram: rename esp_private/mmu.h to mmu_psram_flash.h
Prior to this commit, esp_psram/include/esp_private/mmu.h contains some
APIs that is used for:
- copy flash content to psram
- necessary sync APIs used by flash_mmap.c, due to above feature

This commit rename it to mmu_psram_flash.h, therefore mmu.h can be used
for real mmu related APIs.

This commit also moves above mention funcitons in `mmu.c` and
`mmu_psram.c` to `mmu_psram_flash.c`, leaving `mmu.c` to be used for
real mmu driver.
2022-08-27 15:11:15 +08:00