Commit Graph

21771 Commits

Author SHA1 Message Date
John
bcf7608cf8 i2c: Enable I2C Slave mode with input-only pin as SCL.
Merges https://github.com/espressif/esp-idf/pull/8312

If we use I2C in slave mode, we can use input-only pin for SCL line (GPI 34-39).
But there is a problem in i2c_set_pin() which is called by i2c_param_config().
In case of using GPI as SCL the following statements are failed:
	1. gpio_set_level(scl_io_num, I2C_IO_INIT_LEVEL);
Function fails because it cannot set level for input pin. As a result a ESP_LOGE() is called.
	2. gpio_set_direction(scl_io_num, GPIO_MODE_INPUT_OUTPUT_OD);
Function fails because it accepts only GPIO pins. ESP_LOGE() is called, input mode is not enabled for the pin and as a result - no interrupts from the pin.
2022-02-21 17:32:04 +08:00
Ivan Grokhotkov
f071558117
partition_table: add a test for total partition size error 2022-02-21 10:28:29 +03:00
rudi ;-)
f242a1705a
add support for Flash 32MB..128MB (S2, S3)
ESP32-S2 and ESP32-S3
supports up to 1 GB of external flash and RAM
add support for
-    32MB
-    64MB
-    128MB ( example NOR spiFLASH 1G-BIT W25Q01JVZEIQ Winbond 0xEF 0x40 0x21 )

Merges https://github.com/espressif/esp-idf/pull/7688

Signed-off-by: Ivan Grokhotkov <ivan@espressif.com>
2022-02-21 10:26:41 +03:00
David Čermák
c04803e88b Merge branch 'bugfix/mdns_clear_notif_value' into 'master'
mdns: Clear notification value in mdns_hostname_set

Closes IDFGH-6647

See merge request espressif/esp-idf!17121
2022-02-21 07:20:22 +00:00
David Cermak
e46aa515bd mdns: Remove legacy esp_event API 2022-02-21 07:54:07 +01:00
Anton Maklakov
7e569e1524 test_apps/panic: GDB in esp-2021r2-patch3 toolchain doesn't contain the fix for interrupted backtraced
Revert "test_apps/panic: remove workaround for incorrect GDB backtrace"

This reverts commit 3e3fa4bff2.
2022-02-21 10:51:41 +07:00
Anton Maklakov
d25c5b8ba9 tools: update esp-2021r2-patch3 toolchain for fixing GDB
Closes https://github.com/espressif/esp-idf/issues/8065
    Closes https://github.com/espressif/esp-idf/issues/8342
    Closes https://github.com/espressif/openocd-esp32/issues/210
2022-02-21 10:50:38 +07:00
Fu Hanxi
f02169bc04 Merge branch 'bugfix/fix_docs_build_failure' into 'master'
Fix regression in docs build failure

See merge request espressif/esp-idf!17208
2022-02-21 01:34:54 +00:00
Ivan Grokhotkov
413375453b
esp_common: update copyright headers 2022-02-21 00:51:49 +03:00
Ivan Grokhotkov
cbb361e2b7 Merge branch 'bugfix/sdmmc_int_err_done' into 'master'
sdmmc: accept CMD_DONE being reported together with RTO

See merge request espressif/esp-idf!14510
2022-02-20 21:47:21 +00:00
Marek Fiala
a4b0560014 tools: Remove tools that are not used by active ESP-IDF version.
Or remove unused archives from tools - older version, or unused tool archive
2022-02-20 19:48:50 +01:00
Ivan Grokhotkov
6782971332 sdmmc: accept CMD_DONE being is reported together with RTO
SDMMC databook specifies that when an error interrupt is generated
(such as RTO, DCRC, RCRC), CMD_DONE interrupt is also generated.
The code used to break out of the event handling loop to wait for
another interrupt event to happen, reporting CMD_DONE.
However if interrupt processing was delayed, it is possible that
a single event contains both RTO and CMD_DONE. Previously, CMD_DONE
would not be handled, and the state machine would be stuck in
SDMMC_SENDING_CMD state, until a timeout. This didn't change the
outcome (err=0x107), but delayed the handling of response timeout
event.

Fix by not breaking out of the event handler, optionally processing
the CMD_DONE interrupt if it has been reported in the same message.
2022-02-20 12:39:36 +00:00
Mahavir Jain
39744f2e32 Fix regression in docs build failure 2022-02-20 14:15:43 +05:30
0xFEEDC0DE64
c86fba7919 Fix compiling when included from C++ 2022-02-18 15:37:07 +01:00
Darian Leung
5f5daaa420 freertos: Remove legacy hooks
This commit refactors the legacy hooks as follows:

- Removed CONFIG_FREERTOS_LEGACY_HOOKS
- FreeRTOS hooks are now enabled via:
    - CONFIG_FREERTOS_USE_IDLE_HOOK
    - CONFIG_FREERTOS_USE_TICK_HOOK
- Update IDF hooks documentation
2022-02-18 19:56:35 +08:00
h2zero
83a4ddbd25 mdns: Clear notification value in mdns_hostname_set
Merges https://github.com/espressif/esp-idf/pull/8284
2022-02-18 15:23:25 +04:00
Rahul Tank
3387d816e2 Nimble: Check stack initialization status before executing stack command
Previous commit added checks in some functions that can be called
    without stack initalization. Corrected such instances.
2022-02-18 11:47:48 +05:30
Dai Zi Yan
82c78db4df Merge branch 'docs/make_EN_CN_line_number_consistent' into 'master'
Docs/make en cn line number consistent

Closes DOC-2695

See merge request espressif/esp-idf!17123
2022-02-18 03:58:21 +00:00
daiziyan
60741e3be8 docs: make line number consistent for build-system, configure-ft2232h-jtag, ble-mesh-architecture, building-openocd-macos, error-handling" 2022-02-18 11:18:40 +08:00
Roland Dobai
67d2ee5973 Merge branch 'docs/8684README' into 'master'
Docs: Update the chip support matrix for v5.0

Closes IDF-4270

See merge request espressif/esp-idf!15817
2022-02-17 19:48:38 +00:00
Roland Dobai
e18fb46bc0 Merge branch 'contrib/github_pr_8419' into 'master'
Added typing to serial_write() (GitHub PR)

Closes IDFGH-6792

See merge request espressif/esp-idf!17193
2022-02-17 19:46:06 +00:00
Jakob Hasse
41e1eea9a9 Merge branch 'contrib/github_pr_8388' into 'master'
esp_event: constify event_data pointer (GitHub PR)

Closes IDFGH-6760

See merge request espressif/esp-idf!17195
2022-02-17 14:44:32 +00:00
Mahavir Jain
69f51a989c Merge branch 'feature/pre_encrypted_binary' into 'master'
feature: Pre Encrypted Binary during OTA updates

Closes IDF-3256, IDF-3254, and IDFGH-4334

See merge request espressif/esp-idf!16434
2022-02-17 13:36:54 +00:00
Krzysztof Budzynski
349aa001bc Merge branch 'docs/new_getting_started' into 'master'
New Getting Started install procedures by OS

Closes DOC-1849

See merge request espressif/esp-idf!15432
2022-02-17 12:22:15 +00:00
pedro.minatel
d049f30ad5 [Docs] Changes according to MR review 2022-02-17 10:50:59 +00:00
daiziyan
a4704d37e6 docs: updated CN translation for new get started 2022-02-17 10:50:59 +00:00
pedro.minatel
e4a766051c [Docs] Rebase conlicts fixed
[Docs] New getting started based on the ide and os selection
Missing file on zh_CN folder added
Added hidden toctree for missing files in CN version
docs: Added steps summary to the macOS procedures
[Docs] Changes on the titles and heading levels
[Docs] Review according to MR 15432
[Docs] Fixed the start a new project secction
2022-02-17 10:50:51 +00:00
Jakob Hasse
28d09c7dbe mdns: added missing includes 2022-02-17 16:20:52 +08:00
Jakob Hasse
b9d66670e8 wpa_supplicant: added missing includes 2022-02-17 16:11:56 +08:00
Jiang Jiang Jian
b66cc63c41 Merge branch 'bugfix/fix_ble_adv_underrun_error' into 'master'
components/bt: Fix ble adv_underrun issue

See merge request espressif/esp-idf!16729
2022-02-17 06:07:04 +00:00
Mahavir Jain
fbc9c729b2 esp_https_ota: rename config option for more clarity 2022-02-17 10:54:06 +05:30
Mahavir Jain
7fd2d5ea03 esp_https_ota: add support for decryption callback
- Decryption callback is additional feature, default disabled
- This callback can help to plug in external components managing
additional encapsulation layers on firmware image format
2022-02-17 10:54:04 +05:30
Mahavir Jain
3eb8f3b54e esp_https_ota: add some return values to API documentation 2022-02-17 10:49:15 +05:30
Mahavir Jain
4ae6cce2a5 esp_https_ota: add check for image descriptor magic in relevant API 2022-02-17 10:49:15 +05:30
Mahavir Jain
0b3a8881e0 esp_https_ota: Increase default ota buffer size and few other cleanups
- Increased OTA buffer size to 1K, this can easily cover image headers
- Reduced OTA redirection buffer size, this buffer is used to only consume
redirection headers
- Added static assert to check on OTA buffer size
2022-02-17 10:49:15 +05:30
Harshit Malpani
5a6dbaa487 feature: Pre Encrypted Binary for OTA updates
This feature enables using encrypted binaries for OTA updates

Closes https://github.com/espressif/esp-idf/issues/6172
2022-02-17 10:48:41 +05:30
Marius Vikhammer
b6540b7a4a Merge branch 'feature/c2_clean_up_not_supported_periphs' into 'master'
docs: remove peripherals docs that are not supported on C2

Closes IDF-4201, IDF-4673, and IDF-4658

See merge request espressif/esp-idf!17168
2022-02-17 03:12:04 +00:00
Jakob Hasse
2d836275db Merge branch 'bugfix/linux_portmacro_include' into 'master'
[freertos]: add stdint.h to linux portmacro

See merge request espressif/esp-idf!17169
2022-02-17 03:05:46 +00:00
Roland Dobai
03fb3fd25b Merge branch 'bugfix/monitor_baud_rate' into 'master'
Tools: Rename the monitor's baud argument for consistency and use the global baud if not defined

Closes IDFGH-6686

See merge request espressif/esp-idf!17065
2022-02-16 18:13:50 +00:00
Roland Dobai
dafd9f8a71 Merge branch 'bugfix/python_version_checker' into 'master'
Tools: Fix silent failure about the incompatible Python

See merge request espressif/esp-idf!17179
2022-02-16 18:02:33 +00:00
Roland Dobai
d93380e8f6 Tools: Don't print git failure message for version detection 2022-02-16 18:47:08 +01:00
Roland Dobai
49e9f254c5 Tools: Don't check the environment during idf.py shell completion
Closes https://github.com/espressif/esp-idf/issues/8362
2022-02-16 18:47:08 +01:00
Roland Dobai
a93e372364 Tools: Fix silent failure about the incompatible Python 2022-02-16 18:44:13 +01:00
Niklas Lantau
9f97e5c84e Added typing to serial_write()
Added type annotation for serial_write() parameters and return types.
2022-02-16 16:47:05 +01:00
Amaryllis Kulla
1858901241 esp_event: constify event_data pointer
Also update copyright headers.
2022-02-16 16:16:45 +01:00
Jakob Hasse
d5e1362e14 bugfix (freertos): added stdint.h to linux portmacro header 2022-02-16 16:51:22 +08:00
xiewenxiang
dd9e2f4ac6 components/bt: Fix ble adv_underrun issue
components/bt: Fix LLCP collision for channel map update
2022-02-16 16:35:00 +08:00
morris
0d03c17ab2 Merge branch 'bugfix/eth_test_emac_init' into 'master'
ci/esp_eth: Fix incorrect esp32 emac init

See merge request espressif/esp-idf!17178
2022-02-16 08:15:47 +00:00
Mahavir Jain
af9a194672 Merge branch 'feature/websocket_server_support_close_handle' into 'master'
esp_http_server: Websocket CLOSE frame can support callback function

Closes IDFGH-5785

See merge request espressif/esp-idf!17086
2022-02-16 07:08:57 +00:00
Yuan Hong Hui
1ff2b724f4 ble mesh:example:correct the output log level 2022-02-16 14:47:19 +08:00