morris
3ecf906721
Merge branch 'bugfix/fix_mspi_timing_tuning_psram_timing_issue_v4.4' into 'release/v4.4'
...
mspi_tuning: fix psram timing tuning bug (v4.4)
See merge request espressif/esp-idf!21625
2023-02-06 11:11:07 +08:00
morris
43b9f6d4ac
Merge branch 'feature/do_not_disable_cache_when_xip_from_psram_v4.4' into 'release/v4.4'
...
system: do not disable cache when xip from psram (v4.4)
See merge request espressif/esp-idf!21651
2023-02-06 11:10:14 +08:00
wanlei
d6cf435f2d
spi_flash: fix flash function arg_check with spi host_id
2023-01-30 10:35:07 +08:00
Armando
7dde97d2d6
test_app: xip_psram test app
2022-12-20 14:00:49 +08:00
gaoxu
2e5307b247
system: don't disable cache if Flash .text and .rodata are moved to PSRAM
2022-12-16 12:59:06 +08:00
Armando
bb79980093
mspi_tuning: fix psram timing tuning bug
2022-12-15 17:08:03 +08:00
Omar Chebib
049d21bb12
C/Cxx: unify static assertions with the macro ESP_STATIC_ASSERT
...
Closes https://github.com/espressif/esp-idf/issues/9938
2022-12-05 18:16:08 +08:00
Cao Sen Miao
f28f75a46b
spi_flash: Add several flash chips HPM(120M) support
2022-09-30 11:15:34 +08:00
wangyuanze
b0c38d5392
spi_flash: fix hpm dummy error when using 80m flash and psram
2022-09-29 17:17:38 +08:00
Cao Sen Miao
b0ceb22bef
spi_flash: remove xmc hpm support, because there is some compatible issue with ROM,
...
Closes https://github.com/espressif/esp-idf/issues/8560
2022-09-29 16:37:29 +08:00
Cao Sen Miao
6c9c1f72bd
spi_flash: Building a framework to enable HPM when flash works under high speed mode
2022-09-29 16:37:29 +08:00
KonstantinKondrashov
9c830297b9
freertos: Adds new APIs to set/get and restore base priority
...
Closes https://github.com/espressif/esp-idf/issues/7580
2022-09-20 05:00:13 +00:00
jingli
236bd27134
further fix spi flash/ram current leakage
...
Currently, we pull up cs io for spi flash/ram to reduce current leakage during
light sleep. But some kind of spi flash/ram chip need all io pull up. Otherwise,
current leakage will still exist.
2022-07-28 13:11:55 +08:00
Cao Sen Miao
8538153616
flash_encryption: Fix issue that flash encryption cannot work when 8-line psram enabled,
...
Closes https://github.com/espressif/esp-idf/issues/9244 ,
Closes https://github.com/espressif/esp-idf/issues/9287
2022-07-13 17:20:38 +08:00
Cao Sen Miao
71c2f2618f
opi_flash: Add new 16MB opi flash (MXIC25UW12345G) support,
...
Closes https://github.com/espressif/esp-idf/issues/7996
2022-04-14 19:06:18 +08:00
Michael (XIAO Xufeng)
954d52ff3a
Merge branch 'flash/add_th_support_v4.4' into 'release/v4.4'
...
spi_flash: add support for th 1M flash(backport v4.4)
See merge request espressif/esp-idf!16714
2022-02-10 09:40:40 +00:00
Michael (XIAO Xufeng)
0382215ec7
spi_flash_test: remove threshold from unit test
2022-01-17 15:07:06 +08:00
Cao Sen Miao
67b4ba33dd
spi_flash: add support for th 1M flash
2022-01-10 12:39:09 +08:00
Cao Sen Miao
a9a5894fe9
opi_flash: Add a function pointer for opi required registers
2021-12-10 15:11:33 +08:00
Mahavir Jain
81e0c7f662
Merge branch 'bugfix/nvs_partition_encrypted_flag_compatibility_v4.4' into 'release/v4.4'
...
nvs: add config to ignore "encrypted" flag of nvs partitions (v4.4)
See merge request espressif/esp-idf!15920
2021-11-23 05:46:44 +00:00
KonstantinKondrashov
deff19706f
spi_flash: No CPU release time for an erase operation when OS is not running
...
During the early start, the virtual eFuse mode can call erase operations when OS is not yet running.
Possible workaround: CONFIG_SPI_FLASH_YIELD_DURING_ERASE=n
Fixed for the legacy flash driver as well.
2021-11-15 19:38:09 +08:00
Mahavir Jain
29aba769f2
spi_flash: minor cleanup, use type/subtype from esp_partition.h
2021-11-12 09:43:51 +05:30
Mahavir Jain
e2fb582cf8
nvs: add config to ignore "encrypted" flag of nvs partitions
...
This is to allow having pre IDF v4.3 behavior where "encrypted"
flag was not being checked for NVS partitions.
It is recommended to enable this new config only if you have
production devices where NVS partition was being set with "encrypted"
flag by mistake.
Please see commit aca9ec28b3
which
introduced check to not allow NVS partitions with "encrypted" flag set.
More discussion on this at:
https://github.com/espressif/esp-idf/issues/5747#issuecomment-956223024
https://github.com/espressif/esp-idf/issues/7839#issuecomment-961477667
Closes https://github.com/espressif/esp-idf/issues/7839
Closes IDFGH-6162
2021-11-12 09:43:51 +05:30
jingli
07b1b45ad6
fix: app crash when OTA because the OTA task's stack is in rtc fast memory
2021-11-09 17:10:20 +08:00
Mahavir Jain
11d9faf38c
spi_flash: enable cache access error test for all targets except ESP32-S2
2021-10-20 15:16:25 +05:30
Armando
c331c85318
mspi: make cpu clock source switch safe
...
For some of the MSPI high frequency setting (e.g. 80M DDR mode Flash or PSRAM), timing tuning is required.
Certain delays will be added to the MSPI RX direction. When system clock switches down, the delays should be
cleared. When system clock switches up, the delays should be restored.
2021-10-19 21:47:27 +08:00
Armando
2655a506c9
mspi: support auto detect octal flash vendor
2021-10-08 15:59:57 +08:00
Ivan Grokhotkov
425a024db4
Merge branch 'bugfix/esp_partition_iterator_release_doc' into 'master'
...
spi_flash: state that esp_partition_iterator_release allows NULL arg
Closes IDFGH-5843
See merge request espressif/esp-idf!15169
2021-10-05 09:08:55 +00:00
Ivan Grokhotkov
3c5e7b89ab
spi_flash: extern spi_flash_chip_generic_timeout
...
spi_flash_generic_timeout is currently defined in the header file,
which makes it a common symbol between translation units where this
header file is included. It is also defined in
spi_flash_chip_generic.c.
Add an explicit `extern` to prevent multiple definition errors.
2021-09-16 11:07:54 +02:00
Ivan Grokhotkov
81b97b9a6b
spi_flash: only add GCC-specific flags when building with GCC
2021-09-16 11:07:54 +02:00
Ivan Grokhotkov
f94035ad85
spi_flash: state that esp_partition_iterator_release allows NULL arg
...
The implementation allows passing the NULL argument, and the function
is used in the examples accordingly. Fix the discrepancy in the
doxygen comment.
Closes https://github.com/espressif/esp-idf/issues/7545
2021-09-10 20:55:01 +02:00
Cao Sen Miao
6c0aebe279
esp_flash: add opi flash support in esp_flash chip driver, for MXIC
2021-09-07 14:44:40 +08:00
Cao Sen Miao
559c1ac3f9
esp_flash: add support mxic as a main flash under spi mode
2021-09-05 00:33:28 +08:00
Armando
a3dc625da6
mspi: support 120MHz Quad Flash and PSRAM on ESP32S3
2021-08-31 16:06:44 +08:00
Armando (Dou Yiwen)
3e172289b0
Merge branch 'feature/support_octal_flash_120m_str_mode_on_esp32s3' into 'master'
...
mspi: support octal flash 120MHz STR mode on esp32s3
Closes IDF-3146
See merge request espressif/esp-idf!14668
2021-08-20 08:40:02 +00:00
Konstantin Kondrashov
c480afa70a
Merge branch 'bugfix/select_boot_app' into 'master'
...
partition_table: Fix case when a few similar to otadata partitions in the table
Closes IDFGH-5282
See merge request espressif/esp-idf!13953
2021-08-19 14:33:48 +00:00
Armando
d325f4d557
mspi: support octal flash 120M STR mode on esp32s3
2021-08-19 10:44:30 +08:00
KonstantinKondrashov
9b654db032
partition_table: Fix case when a few similar to otadata partitions in the table
...
It was when in the partition table there is a partition with type="data" and suptype=""(empty),
in this case type=1, suptype=0. It is similar to otadata partition.
This commit fixes it, now it will handle it as type=1, suptype=6 (ESP_PARTITION_SUBTYPE_DATA_UNDEFINED).
2021-08-18 09:23:17 +05:00
Jakob Hasse
46e59e7194
[mocks]: moved already added spi_flash mocks
...
[nvs]: page test works with new overriden mock
[spi_flash]: Removed mocking code from CMake
* Renamed nvs test to be consistent with other
host test
2021-08-18 11:05:51 +08:00
Jakob Hasse
b3271a51af
Merge branch 'bugfix/common_components_linux' into 'master'
...
[build system]: Fixed common requirement for Linux target
Closes IDF-3638
See merge request espressif/esp-idf!14743
2021-08-17 08:48:38 +00:00
Michael (XIAO Xufeng)
a0d2efe1be
Merge branch 'bugfix/xmc_overerase' into 'master'
...
bootloader: add xmc spi_flash startup flow to improve reliability
See merge request espressif/esp-idf!13895
2021-08-13 15:27:48 +00:00
Jakob Hasse
7029f0537e
[build system]: Fixed common requirement for Linux
2021-08-13 16:50:29 +08:00
Michael (XIAO Xufeng)
dd40123129
bootloader: add xmc spi_flash startup flow to improve reliability
2021-08-12 17:22:42 +08:00
Jakob Hasse
84d184bdb0
Merge branch 'bugfix/nvs_corrupted_storage_crashes_app' into 'master'
...
[NVS]: fix crashes from entry state 1
See merge request espressif/esp-idf!14548
2021-08-06 09:14:21 +00:00
Jakob Hasse
9bb2fc2afd
Merge branch 'feature/esp_common_linux_in_host_tests' into 'master'
...
[nvs]: use real esp_common on host tests
See merge request espressif/esp-idf!14408
2021-08-05 08:31:21 +00:00
Armando (Dou Yiwen)
03fb3973a2
Merge branch 'feature/support_quad_flash_octal_psram_on_esp32s3' into 'master'
...
mspi: support up-to-80MHz quad flash & up-to-80MHz octal psram on esp32s3
Closes IDF-3603
See merge request espressif/esp-idf!14346
2021-08-04 03:57:16 +00:00
Jakob Hasse
0b86f81847
[nvs]: use real esp_common on host tests
2021-08-03 19:47:17 +08:00
Armando
2b52f7f696
mspi: fix no buffer reset before each psram read issue
...
In psram timing tuning driver, we rely on psram read and write functions
defined in `spi_timing_config.c`. If we don't do buffer reset (clear to
0), the function may untouch the buffer, which will keep last time value
(since we reuse the buffer). Therefore, if the first read is expected,
but next few reads didn't modify the buffer content, we will still see
the expected data.
These functions relies on `esp_rom_opiflash_exec_cmd`.
2021-08-03 16:54:01 +08:00
Armando
3cbf202267
mspi: cancel oct flash 40m dtr, oct flash 80m str, oct psram 40m tuning
2021-08-03 16:54:01 +08:00
Armando
038b7b1fa9
mspi: update 80MHz DTR tuning algorithm and Oct PSRAM 80M DTR tuning parameters
2021-08-03 16:54:00 +08:00