Simon
1c82e6eac7
Merge branch 'ci/8684_build_ci' into 'master'
...
CI: Enable ESP8684 build (2nd stage) CI on master (except example build)
Closes IDF-4388
See merge request espressif/esp-idf!16197
2021-12-14 11:12:10 +00:00
Cao Sen Miao
e81841318f
CI: Enable ESP8684 build stage CI on master
2021-12-13 19:18:47 +08:00
Cao Sen Miao
56edc81b5d
spi_flash: add support for th 1M flash
2021-12-13 11:47:48 +08:00
Simon
9a0e902045
Merge branch 'refactor/fun_pointer_opi' into 'master'
...
opi_flash: Add a function pointer for opi required registers
See merge request espressif/esp-idf!16322
2021-12-09 16:16:30 +00:00
Mahavir Jain
203f82cc49
Fix various warnings generated from Coverity scan
...
esp_timer:
Control flow issues (DEADCODE)
Execution cannot reach this statement: "break;".
protocomm_httpd:
(UNUSED_VALUE)
Assigning value from "cookie_session_id" to "cur_cookie_session_id" here, but that stored value is overwritten before it can be used.
esp_flash_api:
Null pointer dereferences (REVERSE_INULL)
Null-checking "chip" suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
2021-12-09 09:38:53 +05:30
Cao Sen Miao
32cdfb36ec
opi_flash: Add a function pointer for opi required registers
2021-12-09 09:57:59 +08:00
Cao Sen Miao
eddc196081
esp_clk: refactor target/clk.h to private/esp_clk.h
2021-11-26 14:56:30 +08:00
morris
2e008825a9
Merge branch 'feat/rm_makefiles' into 'master'
...
Build & config: Remove leftover files from the unsupported make build system
Closes IDF-4273 and IDF-2827
See merge request espressif/esp-idf!15829
2021-11-16 03:44:41 +00:00
Jakob Hasse
c14c81733d
Merge branch 'bugfix/nvs_partition_encrypted_flag_compatibility' into 'master'
...
nvs: add config to ignore "encrypted" flag of nvs partitions
Closes IDFGH-6162
See merge request espressif/esp-idf!15912
2021-11-12 03:24:19 +00:00
Roland Dobai
766aa57084
Build & config: Remove leftover files from the unsupported "make" build system
2021-11-11 15:32:36 +01:00
Mahavir Jain
ad9230fb34
spi_flash: minor cleanup, use type/subtype from esp_partition.h
2021-11-11 16:35:55 +05:30
Mahavir Jain
e67128dd0a
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-11 15:20:57 +05:30
Omar Chebib
9d5923a13e
IPC: Move ipc sources to esp_system
...
IPC shall be put back into esp_system as it is an 'OS additions'.
2021-11-11 10:30:01 +08:00
Jing Li
caa9e323cc
Merge branch 'bugfix/fix_ota_crash' into 'master'
...
fix: app crash when OTA because the OTA task's stack is in rtc fast memory
See merge request espressif/esp-idf!15720
2021-11-09 08:45:01 +00:00
Cao Sen Miao
3934e24d22
ESP8684: add spi_flash, efuse, hw_support support
2021-11-06 17:33:44 +08:00
jingli
efbc980d4f
fix: app crash when OTA because the OTA task's stack is in rtc fast memory
2021-11-03 20:56:42 +08:00
KonstantinKondrashov
884a6b17cc
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-01 21:49:24 +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
Armando
0f91a01a46
mspi: support up-to-80MHz quad flash & up-to-80MHz octal psram on esp32s3
2021-08-03 16:54:00 +08:00
Cao Sen Miao
992de2750e
spi_flash: add support for ext flash
2021-07-31 14:11:35 +08:00
Jakob Hasse
de6b54de66
[nvs_flash]: Entries with state == 1 don't crash
2021-07-30 18:33:27 +08:00
Cao Sen Miao
c29b3e2e36
spi_flash: move the unlock patch to bootloader and add support for GD
2021-07-29 10:46:33 +08:00
Michael (XIAO Xufeng)
58022f8599
Merge branch 'bugfix/esp_flash_erase_0' into 'master'
...
esp_flash: fix esp_flash_erase_region over-erase with 0 length (Github PR)
Closes IDFGH-5592
See merge request espressif/esp-idf!14498
2021-07-28 15:09:08 +00:00
Ivan Grokhotkov
7534c4467f
rom, spi_flash: add a patch for esp_flash_erase_region for C3, S3, H2
2021-07-24 13:28:25 +02:00
Ivan Grokhotkov
118fafef07
spi_flash: add test case for esp_flash_erase_region with 0 size
2021-07-23 14:14:57 +02:00