Commit Graph

11801 Commits

Author SHA1 Message Date
Ivan Grokhotkov
fa72ef6bd8 Merge branch 'feature/add-eventfd' into 'master'
vfs: add eventfd support

See merge request espressif/esp-idf!12573
2021-04-16 10:33:06 +00:00
Mahavir Jain
d5e7bf0ee5 Merge branch 'feature/mbedtls_md5' into 'master'
mbedtls: Add CONFIG_MBEDTLS_ROM_MD to enable ROM MD acceleration

Closes IDF-255

See merge request espressif/esp-idf!13030
2021-04-16 10:24:21 +00:00
Michael (XIAO Xufeng)
58758486b2 Merge branch 'ci/enable_flash_suspend_test' into 'master'
spi_flash: enable unit-test for flash suspend

Closes IDF-3081

See merge request espressif/esp-idf!13115
2021-04-16 10:16:25 +00:00
Anton Maklakov
e55f2936fd Merge branch 'bugfix/build_failure_in_espcoredump' into 'master'
espcoredump: Fix string truncation build failure

See merge request espressif/esp-idf!13135
2021-04-16 07:01:44 +00:00
Angus Gratton
920edd4e73 partition_table: Add a "single factory app (large)" option for 1.5MB app size
Needed to build some examples in their default configurations (especially
ESP32-C3). Wasn't noticed until the CI checks for partition size were added.
2021-04-16 16:40:47 +10:00
Angus Gratton
b45b817e6f partition_table: Fix pylint issues in gen_esp32part.py 2021-04-16 16:40:47 +10:00
Angus Gratton
6f6b4c3983 cmake partition_table: Check binaries fit in partition spaces at build time
- Bootloader is checked not to overlap partition table
- Apps are checked not to overlap any app partition regions

Supported for CMake build system only.

Closes https://github.com/espressif/esp-idf/pull/612
Closes https://github.com/espressif/esp-idf/issues/5043
Probable fix for https://github.com/espressif/esp-idf/issues/5456
2021-04-16 16:40:47 +10:00
xiehang
9f27aa7db8 esp_wifi: Update libphy.a to V1800 20210413_e7ef680 for esp32s2 2021-04-16 11:21:07 +08:00
Jiang Jiang Jian
db67047eb9 Merge branch 'feature/support_esp32s3_beta3_wifi' into 'master'
esp_wifi: support esp32s3 beta3 wifi

Closes WIFI-3550

See merge request espressif/esp-idf!12863
2021-04-16 03:09:19 +00:00
Ivan Grokhotkov
e6fd582fdf Merge branch 'bugfix/panic_handler_not_in_iram' into 'master'
panic: handlers can now be placed in flash

Closes IDF-2851

See merge request espressif/esp-idf!12874
2021-04-16 02:47:05 +00:00
Angus Gratton
bc3d45026c Merge branch 'bugfix/deep_sleep_skip_verify_rtc_mem_heap' into 'master'
Fix bootloader "skip validate on exiting deep sleep" option if "use RTC memory as heap" is enabled

See merge request espressif/esp-idf!12032
2021-04-15 23:56:39 +00:00
Roland Dobai
c425ac7bed tools: Don't use revision argument for IDF Monitor if it is not defined 2021-04-15 19:56:39 +02:00
ChenJianxing
dd14e97375 esp_wifi: support esp32s3 beta3 wifi 2021-04-16 00:38:20 +08:00
wangmengyang
ae8f66889b fix bit definition for SYSTEM_WIFI_CLK_WIFI_EN, sync with ESP32-C3 2021-04-15 22:03:36 +08:00
zwj
764a778be1 phy reinit error due to i2c high 2021-04-15 22:03:25 +08:00
zwj
facadc86d8 support 727 esp32s3 BLE 2021-04-15 22:02:58 +08:00
Jiacheng Guo
bbb0e7a573 vfs: fix build & ci errors 2021-04-15 15:19:00 +08:00
Jiacheng Guo
0d986de363 vfs: add default initializer for vfs_eventfd 2021-04-15 15:19:00 +08:00
Jiacheng Guo
40035edcac vfs: add doc links 2021-04-15 15:19:00 +08:00
Jiacheng Guo
7c64d1530a vfs: modify copyright header 2021-04-15 15:18:59 +08:00
Jiacheng Guo
37a992bbde vfs: add example for eventfd 2021-04-15 15:18:59 +08:00
Jiacheng Guo
7b911e4641 vfs: add support for mutiple selects in eventfd 2021-04-15 15:18:59 +08:00
Jiacheng Guo
30e9345bc7 vfs: add unit tests for eventfd 2021-04-15 15:18:59 +08:00
Jiacheng Guo
f6fd2eb164 vfs: add eventfd support
eventfd imitates the behavior of POSIX api `man(2) eventfd`. This api
can be used to pass events to a select based message loop.
2021-04-15 15:18:59 +08:00
Angus Gratton
bfa9ec70f2 esp32s3: Add support for reusing RTC memory as heap 2021-04-15 16:24:44 +10:00
Angus Gratton
32c924b5cd esp32s3: Reserve RTC memory in bootloader in the app linker script 2021-04-15 16:20:58 +10:00
Angus Gratton
111098568a esp32c3: Reserve RTC memory from bootloader in the app linker script 2021-04-15 16:20:58 +10:00
Angus Gratton
83bf2e1ac1 bootloader: Fix "skip validate on exit deep sleep" when "Use RTC fast memory as heap" is enabled
RTC region used to store boot partition needs to remain reserved in the app.
2021-04-15 16:20:58 +10:00
Cao Sen Miao
ed16e9b5d6 spi_flash: enable unit-test for flash suspend 2021-04-15 12:05:40 +08:00
Omar Chebib
bb9aa806f7 panic: handlers can now be placed in flash
By unchecking "Place panic handler code in IRAM" in the menuconfig,
the panic handlers will be placed in flash. Of course, flash cache must
be activated when entering panic handlers.
2021-04-15 11:58:46 +08:00
Krzysztof Budzynski
d14661eaa3 Merge branch 'docs/programming_guide_c3_update_twai' into 'master'
Update TWAI driver docs and registers for esp32c3

Closes IDF-2349

See merge request espressif/esp-idf!12935
2021-04-15 02:35:28 +00:00
Marius Vikhammer
826b976ba5 timer: add IRAM_ATTR to spinlock give/take API
Closes https://github.com/espressif/esp-idf/issues/6824
2021-04-15 09:50:06 +08:00
Jiang Jiang Jian
a6f33a9d36 Merge branch 'bugfix/e8192_and_assert_param_master' into 'master'
Modify E8192 ELx200 ELx40 log level to LOGD

See merge request espressif/esp-idf!13008
2021-04-14 15:54:48 +00:00
Jiang Jiang Jian
98eeb8f61d Merge branch 'bugfix/fix_wifi_issue_for_pm_disconnected' into 'master'
esp_wifi: fix some issue about wifi pm

Closes WIFI-3583, WIFI-3584, WIFI-3585, and WIFI-3586

See merge request espressif/esp-idf!13137
2021-04-14 14:38:20 +00:00
Ivan Grokhotkov
e220e9b571 Merge branch 'feature/refactor-idf-monitor' into 'master'
Decompose idf_monitor.py

Closes IDF-2432

See merge request espressif/esp-idf!11815
2021-04-14 14:32:17 +00:00
Shubham Patil
78e387c2bc espcoredump: Fix string truncation build failure 2021-04-14 14:42:09 +05:30
Angus Gratton
b26dda9247 Merge branch 'bugfix/freertos_task_delete' into 'master'
freertos: Fix race condition using vTaskDelete() cross-core causing resource leak

Closes BT-1156

See merge request espressif/esp-idf!11736
2021-04-14 09:10:32 +00:00
Darian Leung
7087f80b1e Update TWAI driver docs and registers for esp32c3
This commit updates the documentation and register struct
of the TWAI driver for the ESP32-C3. Note that the register
fields for ESP32-S3 have also been updated.
2021-04-14 15:00:07 +08:00
ninh
7629a0b22f esp_wifi: fix some issue about wifi pm 2021-04-14 14:42:22 +08:00
liuhan
e87c64dc44 mbedtls: Add CONFIG_MBEDTLS_ROM_MD5 to use ROM MD5 in mbedTLS 2021-04-14 06:42:13 +00:00
Jiang Jiang Jian
1f54d17503 Merge branch 'bugfix/esp32c3_deep_sleep_gpio_wakeup_issue' into 'master'
deep sleep: fix sleep gpio wakeup fail issue

Closes WIFI-3474

See merge request espressif/esp-idf!13074
2021-04-14 06:36:40 +00:00
Angus Gratton
ec01a66557 Merge branch 'feature/esp32c3_memprot_test3' into 'master'
ESP32C3/ESP32S2: memprot API upgrade and test application

Closes IDF-2641

See merge request espressif/esp-idf!12941
2021-04-13 18:42:46 +00:00
David Čermák
6d4b93c94e Merge branch 'refactor/using_generic_error_check_in_esp_eth' into 'master'
esp_eth: apply generic error check macros

Closes IDF-3030 and IDF-3031

See merge request espressif/esp-idf!13007
2021-04-13 16:48:25 +00:00
Martin Gano
1546e970db Merge branch 'master' into 'feature/refactor-idf-monitor'
# Conflicts:
#   tools/ci/mypy_ignore_list.txt
2021-04-13 20:55:19 +08:00
KonstantinKondrashov
fd867a11df bootloader: Suppress a Cmake warning - variables were not used by the project
Manually-specified variables were not used by the project: SECURE_BOOT_SIGNING_KEY
2021-04-13 11:28:13 +00:00
KonstantinKondrashov
9f932a2a18 bootloader: Fix error in Make build system when signature options is on 2021-04-13 11:28:13 +00:00
xiongweichao
4aafb1fd80 modify E8192 ELx200 ELx40 log level to LOGD 2021-04-13 17:08:23 +08:00
Michael (XIAO Xufeng)
1f29036ead Merge branch 'feat/c3_driver_api_cleanup' into 'master'
driver: cleanup i2c, i2s on C3

Closes IDF-2759 and IDF-2760

See merge request espressif/esp-idf!12329
2021-04-13 09:00:11 +00:00
Angus Gratton
23ae81c78c Merge branch 'bugfix/calc_8m_freq_test' into 'master'
rtc: increase CI acceptance range for calc 8M test

Closes IDFCI-79

See merge request espressif/esp-idf!13068
2021-04-13 08:32:51 +00:00
David Čermák
c2bab4be95 Merge branch 'bugfix/mdns_configure_strict_mode' into 'master'
mdns: Fix mdns to correctly answer non-strict queries (+ additional fixes)

Closes IDF-2928, WIFI-3107, and IDFGH-4797

See merge request espressif/esp-idf!12645
2021-04-13 08:04:43 +00:00
Michael (XIAO Xufeng)
f5f3c7143c Merge branch 'feat/c3_driver_api_cleanup_gpio' into 'master'
gpio, rtcio: removed unsupported features on different targets

See merge request espressif/esp-idf!13103
2021-04-13 06:51:33 +00:00
Michael (XIAO Xufeng)
54fdaa5986 Merge branch 'docs/spi_max_transfer_sz_limit' into 'master'
spi_docs: Fixed the default value of max_transfer_sz.

See merge request espressif/esp-idf!13000
2021-04-13 06:51:11 +00:00
David Čermák
10cdfab8c8 Merge branch 'bugfix/fix_lwip_debug_define' into 'master'
lw-ip: Fix LWIP_DEBUG define which is always defined

Closes IDF-3043

See merge request espressif/esp-idf!13004
2021-04-13 06:13:34 +00:00
Michael (XIAO Xufeng)
6ab5b9cbf9 gpio, rtcio: removed unsupported features on different targets 2021-04-13 13:21:08 +08:00
Jiang Jiang Jian
d6a2a67006 Merge branch 'bugfix/fix_some_pm_issue' into 'master'
esp_pm: fix an issue and add an interface

Closes IDF-2984 and IDF-2944

See merge request espressif/esp-idf!12787
2021-04-13 03:42:46 +00:00
Angus Gratton
7ec02161db Merge branch 'bugfix/cmake_ulp_reserved_size' into 'master'
ulp: Fix bug where ULP linker script not regenerated for new config

See merge request espressif/esp-idf!12979
2021-04-13 03:40:21 +00:00
Angus Gratton
191e649257 freertos: Add some comments about deleting tasks when using SMP
Some cases are not immediately obvious, so document them in comments.
2021-04-13 03:40:10 +00:00
Angus Gratton
f7b859ac84 freertos: Fix race condition using vTaskDelete() cross-core causing resource leak
Causes test added in parent commit to pass.

This race happens if the deleted task is running on the other CPU,
and is already spinning in a critical section waiting for xTaskQueueMutex
because it's about to be blocked for a resource.

The "deleted" task would end up blocked, possibly indefinitely, and
never actually deleted or its resources cleaned up by the idle tasks.

Details:

vTaskDelete() adds the target task to the xTasksWaitingTermination list,
expecting it to be yielded off CPU and then cleaned up later. However as soon as
vTaskDelete() releases xTaskQueueMutex, the target task runs and moves itself to the
xDelayedTaskList1. Because interrupts are already disabled on that CPU,
the "yield" to the other CPU sent by the vTaskDelete() comes afterward so
doesn't help.
2021-04-13 03:40:10 +00:00
Angus Gratton
db7d272873 freertos: Add unit test for deleting task which may be blocking 2021-04-13 03:40:10 +00:00
Michael (XIAO Xufeng)
93712eae49 Merge branch 'bugfix/fix_flash_ci' into 'master'
esp_flash: fix host number for passing ci

See merge request espressif/esp-idf!13090
2021-04-13 03:23:02 +00:00
morris
ef344d89ae esp_eth: apply generic error check macros 2021-04-13 10:54:33 +08:00
yuanjm
ef7583517d lwip: Fix LWIP_DEBUG define which is always defined 2021-04-12 14:41:46 +00:00
David Čermák
1b6b05f1ab Merge branch 'bugfix/pppos_configs' into 'master'
esp-modem: Add options to support LCP ECHO and UART_ISR_RAM in the example

Closes IDFGH-2470 and IDFGH-4759

See merge request espressif/esp-idf!12962
2021-04-12 14:30:38 +00:00
David Čermák
0f36a2dd16 Merge branch 'bugfix/eth_w5500_4byte_corruption' into 'master'
esp_eth: Fix w5500 read register operations

Closes IDFGH-4776 and IDFGH-4400

See merge request espressif/esp-idf!13060
2021-04-12 14:26:30 +00:00
David Cermak
5cce919cbe mdns: Fixed the ip header TTL to be correctly set to 255
Defined in https://tools.ietf.org/html/rfc6762#section-11: All Multicast DNS responses (including responses sent via unicast)
   SHOULD be sent with IP TTL set to 255
2021-04-12 13:24:19 +00:00
David Cermak
34049454df mdns: Fix parsing answers with questions when instance name not set
mdns resolver didn't correctly resolved queries when host name wasn't
assigned. Fixed by allowing processing also if some answer present
(non-strict mode)

Closes https://github.com/espressif/esp-idf/issues/6598
2021-04-12 13:24:19 +00:00
David Cermak
b649603a0d mdns: Fix the resolver to correctly parse it's own non-strict answers
The resolver was able to respond correctly, but would also resolve its
own queries and cause issues with BCT 1.5.2, specifically
* MULTIPLE QUESTIONS - DUPLICATE SUPPRESSION
* MULTIPLE QUESTIONS - DISTRIBUTED DUPLICATE SUPPRESSION
tests failed.
2021-04-12 13:24:19 +00:00
suren.gabrielyan
0eee31546d mdns: Add MDNS_STRICT_MODE config option
Strict mode was hardcoded in private header file, but it's useful for
users to enable/disable it depending on the mdns library they are using.
e.g. Avahi might not resolve the non-strict answers.
2021-04-12 13:24:19 +00:00
Michael (XIAO Xufeng)
7e06a60c0d Merge branch 'refactor/no_dac_on_esp32s3' into 'master'
dac: added DAC support macro

Closes IDF-1777

See merge request espressif/esp-idf!13038
2021-04-12 10:52:33 +00:00
Michael (XIAO Xufeng)
8cfcf6da7a Merge branch 'bugfix/enable_gpio18_gpio19_esp32c3' into 'master'
gpio: Disable USB JTAG when setting pins 18 and 19 as GPIOs on ESP32C3

Closes IDF-2964

See merge request espressif/esp-idf!12753
2021-04-12 09:39:55 +00:00
Martin Gaňo
b77addea2f Decompose idf_monitor.py 2021-04-12 10:47:33 +02:00
David Cermak
7af358ed93 esp_eth: Fix w5500 to break from potentially infinite tx loop
The issue typically happens for link-down during Tx. Added two retry levels, one before checking the sanity of the w5500 phy register and another for the Tx done itself (if the device is in the sane state)

Closes https://github.com/espressif/esp-idf/issues/6233
2021-04-12 07:59:40 +00:00
David Cermak
dfe9580967 esp_eth: Fix w5500 to correctly read registers on -Os
Reading SPI data may come in 4-byte units and thus result in unwanted
overwrites if smaller size registers read, especially if multiple placed
one after another. Fixed by using direct reads to `trans` structure for
sizes smaller or equal to 4.

Closes https://github.com/espressif/esp-idf/issues/6579
2021-04-12 07:59:40 +00:00
Michael (XIAO Xufeng)
67941fc495 i2s: removed unsupported features on different targets 2021-04-12 15:51:54 +08:00
Michael (XIAO Xufeng)
82e4a2431a i2c: removed unsupported features on different targets 2021-04-12 15:51:19 +08:00
fuzhibo
357b64fd2c bugfix: add .rodata section for riscv ulp for esp32s2 2021-04-12 14:29:13 +08:00
morris
75dfd970b4 dac: added DAC support macro
Remove DAC support on ESP32-S3
2021-04-12 12:04:46 +08:00
Martin Vychodil
f27c9c5139 esp32c3: memprot API upgrade and test application
Closes IDF-2641
2021-04-12 13:44:11 +10:00
Angus Gratton
936523b904 Merge branch 'feature/secure_bootv2_c3' into 'master'
secure_boot_v2: Support SB_V2 for ESP32-C3 ECO3

Closes IDF-2647

See merge request espressif/esp-idf!13040
2021-04-12 01:31:25 +00:00
Angus Gratton
1ea54a6496 Merge branch 'bugfix/s2_lightsleep_regression' into 'master'
sleep: disable switch-case jump tables from being placed in flash

See merge request espressif/esp-idf!13083
2021-04-09 13:56:02 +00:00
Shu Chen
264ce1f037 Merge branch 'feature/ot-1.2-radio-api' into 'master'
openthread: add radio mac API implementation

See merge request espressif/esp-idf!13066
2021-04-09 11:34:18 +00:00
Cao Sen Miao
c185a4947f esp_flash: fix host number for passing ci 2021-04-09 17:43:39 +08:00
Mahavir Jain
06c5f623ea Merge branch 'feature/diagnostics_support' into 'master'
espcoredump: Get core dump summary API

See merge request espressif/esp-idf!11462
2021-04-09 08:50:07 +00:00
Mahavir Jain
81c8fcaf8f Merge branch 'bugfix/ota_and_http_client' into 'master'
Fix counters for POST request in OTA and compare auth string in case insensitive fashion

Closes IDFGH-5059, IDFGH-5055, and IDFGH-5056

See merge request espressif/esp-idf!13069
2021-04-09 07:40:59 +00:00
David Čermák
9e8b2d8c66 Merge branch 'feature/sperate_slip_component' into 'master'
esp_netif: Use CONFIG_LWIP_SLIP_SUPPORT to sperate slip component

Closes IDF-3042

See merge request espressif/esp-idf!13006
2021-04-09 06:57:41 +00:00
David Cermak
d6f66465ff lwip: Made LCP ECHO bool for better user experience 2021-04-09 06:53:30 +00:00
Marius Vikhammer
38d9251bda sleep: disable switch-case jump tables from being placed in flash
sleep_modes.c contains switch statements that should be placed in flash.
Settings for avoiding this was not updated during sleep_modes refactor.
2021-04-09 14:16:27 +08:00
Jörg Henne
19024671ea esp_http_client: Make http_utils_get_string_between and http_utils_str_starts_with case insensitive
Closes: https://github.com/espressif/esp-idf/pull/6841
Closes: https://github.com/espressif/esp-idf/issues/6840

Signed-off-by: Shubham Kulkarni <shubham.kulkarni@espressif.com>
2021-04-09 06:03:02 +00:00
Shubham Kulkarni
b8b104a8f0 esp_https_ota: Fix counters for sending POST body
Closes: https://github.com/espressif/esp-idf/issues/6844
2021-04-09 06:03:02 +00:00
Aditya Patwardhan
48987ad9df esp_https_ota: Enable option of using global_ca_store and x509_crt_bundle
Closes https://github.com/espressif/esp-idf/issues/5504
2021-04-09 04:33:37 +00:00
Shubham Patil
356e2bbe6d espcoredump: On device core dump parsing to generate summary 2021-04-09 09:43:40 +05:30
Marius Vikhammer
0633ee3e18 docs: fix doxygen compile warnings for doxygen 1.9.1
Newer versions of doxygen will give warnings for comments in
INPUT lists

Delete all comment lines to fix these warnings, our folder structure
stil gives an OK overview of what we are including
2021-04-09 11:57:03 +08:00
Li Shuai
2c2ae5aa0a deep sleep: fix sleep gpio wakeup fail issue 2021-04-09 11:35:32 +08:00
Angus Gratton
7154866e80 Merge branch 'feature/update_libsodium_submodule' into 'master'
libsodium: Update library to v1.0.18

Closes IDF-2731

See merge request espressif/esp-idf!13026
2021-04-08 22:45:37 +00:00
Mahavir Jain
bc4cb7f67e Merge branch 'bugfix/crashing_after_debug_logs_enabled_esp32c3' into 'master'
esp32c3: Fix issue of crashing if debug logs are enabled.

Closes WIFI-3534

See merge request espressif/esp-idf!12788
2021-04-08 12:59:18 +00:00
Michael (XIAO Xufeng)
57af5acefe Merge branch 'ci/enable_all_test_for_i2c_on_c3' into 'master'
I2C: enable all unit test for i2c on esp32c3

Closes IDF-2494

See merge request espressif/esp-idf!12474
2021-04-08 12:31:51 +00:00
Marius Vikhammer
58d83dda40 rtc: increase CI acceptance range for calc 8M test 2021-04-08 18:50:56 +08:00
Rahul Tank
6395eae955 esp-idf: Added an option in menuconfig to configure maximum gatt services
Currently Max GATT services count cannot be configured externally and
hence user needs to modify code ,everytime the count is to be
modified.

 Added an option in menuconfig to provide a way to user to set the count.

Fixes: https://jira.espressif.com:8443/browse/BT-1508
2021-04-08 10:42:47 +00:00
Angus Gratton
cef3b26a91 Merge branch 'refactor/move_from_esp_system' into 'master'
Movements from esp_system

Closes IDF-2165

See merge request espressif/esp-idf!12695
2021-04-08 10:16:08 +00:00
Jiacheng Guo
3630099d29 openthread: add radio api for Thread 1.2 to work 2021-04-08 17:49:16 +08:00