Commit Graph

15321 Commits

Author SHA1 Message Date
David Cermak
5b471a1848 esp_netif/lwip: Implement basic support for vanilla-lwip (2.1.3-REL)
* Reference lwip-2.1.3-REL vanilla lwip version
* Use inherent NETIF callbacks instead of dhcp/ipv6/autoip
2022-05-18 17:10:42 +02:00
Michael (XIAO Xufeng)
0adb814af3 Merge branch 'bugfix/fix_memory_miss_bug_esp32c3_esp32s3' into 'master'
ESP32C3/ESP32S3: Fix cpu crash bug  when wakeup from lightsleep for memory data miss

Closes IDF-162 and IDF-4923

See merge request espressif/esp-idf!17823
2022-05-18 12:05:08 +08:00
Martin Gano
e9716b1498 Merge branch 'feature/add-fatfs-parser' into 'master'
fatfsgen.py implement functionality for parsing fatfs

Closes IDF-4360

See merge request espressif/esp-idf!17951
2022-05-17 17:07:13 +08:00
David Čermák
285c6fc906 Merge branch 'bugfix/vfs_sock_select_race' into 'master'
vfs: Fix potential select() race if both sock and other-fd trigger

Closes IDFGH-7308

See merge request espressif/esp-idf!18023
2022-05-17 15:28:48 +08:00
Darian
4d751b9d6b Merge branch 'feature/task_watchdog_freeertos_smp' into 'master'
esp_system: Add task watchdog user feature and fix SMP FreeRTOS idle task watchdog

Closes IDF-3340

See merge request espressif/esp-idf!17768
2022-05-17 15:13:43 +08:00
Michael (XIAO Xufeng)
adcdcbaa0e Merge branch 'feat/pm_dbias_refactoring' into 'master'
pm: refactoring dbias related code

See merge request espressif/esp-idf!17994
2022-05-17 14:42:16 +08:00
Shu Chen
92b6fc5d1f Merge branch 'support/esp32h2beta2_libotport_and_libdriver' into 'master'
support build esp32h2beta1 & esp32h2beta2 on master

See merge request espressif/esp-idf!17858
2022-05-17 11:44:36 +08:00
Kapil Gupta
ba1daac5f0 Merge branch 'bugfix/wnm_rrm_caps_validation' into 'master'
esp_wifi: Add APIs to check for BTM, RRM support of connected AP

See merge request espressif/esp-idf!18092
2022-05-17 11:33:23 +08:00
Shu Chen
f1d1c5a876 Merge branch 'support/esp32h2beta2_phy_build' into 'master'
esp_phy: support esp32h2beta2 phy build

See merge request espressif/esp-idf!17856
2022-05-17 10:32:07 +08:00
David Čermák
d6459ab1a3 Merge branch 'bugfix/mqtt_read_neg_and_ping' into 'master'
mqtt: Fix incorrect reads on error; Update ping processing

Closes IDFGH-6859 and IDFGH-6930

See merge request espressif/esp-idf!18095
2022-05-17 03:02:59 +08:00
David Cermak
bf8ceae780 vfs: Fix potential select() race if both sock and other-fd trigger
This fixes a potential race condition in select() if both a socket-fd
and non-socket fd trigger simultaneously to unblock this select.
In case of both fds, we use lwip's local thread semaphore, so we only
have to try return it (if it was taken/triggered more than once) when
we exit select().

Closes https://github.com/espressif/esp-idf/issues/8896
2022-05-16 20:26:44 +02:00
David Cermak
58cf25193d mqtt: Fix incorrect reads on error; Update ping processing
* Update submodule: git log --oneline 4874bab35659bd2301e65fd849f6559d7380d4f1..64f88b4412ea6649dbf207a07370c2617160d044

Detailed description of the changes:
* Fix documentation of config struct
  - See merge request espressif/esp-mqtt!129
  - See commit https://github.com/espressif/esp-mqtt/commit/e31834c
* Changes the moment we update keepalive_tick.
  - See merge request espressif/esp-mqtt!127
  - See commit https://github.com/espressif/esp-mqtt/commit/2c2e6f3
* MQTT: Fix signature matching for some integer values
  - See merge request espressif/esp-mqtt!128
  - Closes https://github.com/espressif/esp-idf/issues/8482
  - MQTT: Fix signature matching for integer values (espressif/esp-mqtt@6b794e4)
* Make the mqtt submodule logging tags lower case
  - See merge request espressif/esp-mqtt!122
  - See commit https://github.com/espressif/esp-mqtt/commit/fb3184c

Closes https://github.com/espressif/esp-idf/issues/8482
Closes https://github.com/espressif/esp-idf/issues/8550
2022-05-16 20:23:26 +02:00
Martin Gaňo
005af75da3 Added FATFS partition parser 2022-05-16 14:32:17 +02:00
zhangwenxu
9440430db2 esp_phy: support esp32h2beta2 phy build 2022-05-16 10:50:44 +00:00
Kapil Gupta
ee33c6ae05 esp_wifi: Add APIs to check BTM and RRM support of connected AP 2022-05-16 15:57:59 +05:30
Jiang Jiang Jian
8377a3fff1 Merge branch 'bugfix/fix_ble_ext_adv_parameter_detection' into 'master'
component/bt: check the ble ext adv parameters

See merge request espressif/esp-idf!15977
2022-05-16 16:13:56 +08:00
Anton Maklakov
cc2010682d Merge branch 'bugfix/bluedroid_warnings' into 'master'
bluedroid: fix warnings

Closes GCC-242

See merge request espressif/esp-idf!17872
2022-05-16 13:36:36 +08:00
chaijie
cc0a5a4edb solve memory error bug when in lightsleep mode 2022-05-16 11:43:00 +08:00
Armando (Dou Yiwen)
ad747b237a Merge branch 'toos/add_s3_ut_based_on_quad_octal_psram' into 'master'
ci: add s3 ut based on quad octal psram

See merge request espressif/esp-idf!18087
2022-05-16 09:57:21 +08:00
Michael (XIAO Xufeng)
1f6fad6f48 Merge branch 'test/rtc_8m_d256' into 'master'
rtc: fixed 8MD256 can't be used as RTC slow src on ESP32

See merge request espressif/esp-idf!17989
2022-05-16 01:30:25 +08:00
Michael (XIAO Xufeng)
cb1abdf33e Merge branch 'bugfix/remove_mislead_psram_type_is25' into 'master'
Kconfig: remove misleading psram name IS25WP032 in the Kconfig option

See merge request espressif/esp-idf!18025
2022-05-16 00:09:09 +08:00
Michael (XIAO Xufeng)
6f507d527c rtc: fixed 8MD256 can't be used as RTC slow src on ESP32
Sync configuration from other chips

Closes: https://github.com/espressif/esp-idf/issues/8007, https://github.com/espressif/esp-idf/pull/8089
2022-05-14 22:35:41 +08:00
Michael (XIAO Xufeng)
b920676e59 pm: add test for RTC using 8MD256 as clock source 2022-05-14 22:35:41 +08:00
Michael (XIAO Xufeng)
234628b3ea pm: putting dbias and pd_cur code into same function 2022-05-14 02:35:11 +08:00
Jing Li
ac0d16cdc8 Merge branch 'bugfix/fix_cannot_lslp_again_after_ulp_wakeup' into 'master'
sleep: fix cannot lightsleep again after a wakeup from ULP

Closes IDFGH-4396

See merge request espressif/esp-idf!17970
2022-05-13 22:25:23 +08:00
Mahavir Jain
a0e27a186b Merge branch 'esp32c2/support_secure_boot' into 'master'
ESP32C2: Support Secure Boot V2

Closes IDF-3846 and IDF-4209

See merge request espressif/esp-idf!17442
2022-05-13 19:46:22 +08:00
Mahavir Jain
dae6467263 Merge branch 'bugfix/remove_http_server_header_file' into 'master'
esp_http_server: Remove http_server.h Header file

See merge request espressif/esp-idf!18074
2022-05-13 19:34:13 +08:00
Harshit Malpani
73fc12cdcd esp_http_server: Remove http_server.h Header file 2022-05-13 16:00:17 +05:30
Darian Leung
7c02bde904 esp_system: Update task watchdog unit tests and example
This commit does the following:

- Update existing unit tests that use the TWDT to call the new
  esp_task_wdt_init() API
- Add a set of dedicate TWDT unit tests
- Updates the TWDT example
2022-05-13 18:01:28 +08:00
Darian Leung
5953bca376 esp_system: Add arbitrary user feature to TWDT
This commit moidifies the TWDT as follows:

- Adds a feature to allows subscribing arbitrary users to the TWDT
- Changes esp_task_wdt_init() API to accept configuration structure
- Changes esp_task_wdt_init() and esp_task_wdt_deinit() to subscribe/unsubscribe
  idle tasks of various cores.
- Adds support for SMP FreeRTOS idle tasks
- Updates startup code TWDT initialization
- Updates API documentation
2022-05-13 18:01:28 +08:00
Darian Leung
4877a9fcba esp_system: Refactor task_wdt
This commit refactors the task watchdog as follows:

- Renamed variables, types, and functions
- Replaced manual linked list implementation with SLIST()
- Moved calloc()/free() calls out of critical sections
- Shortened ISR critical sections
- Updated API description
- Updated code formatting
2022-05-13 17:57:44 +08:00
Anton Maklakov
39146a1d85 ble_mesh: correct function declaration 2022-05-13 15:24:17 +07:00
Djordje Nedic
e09ef86d7c partition_table: Add warning when partitions are nearly full
This adds a warning in cases where the smallest partition is nearly full.
A test with a specially crafted partition table is created for the smallest partition warning.
If the threshold or the template itself change, change the factory app partition size as well.
2022-05-13 07:14:04 +00:00
Anton Maklakov
b69efa20ad bluedroid: fix -Wchar-subscripts warning
'unsigner char' cast recommended, https://stackoverflow.com/a/60696378
2022-05-13 06:55:22 +00:00
Anton Maklakov
bcfec4ad74 bluedroid: suppress some -Waddress-of-packed-member warnings 2022-05-13 06:55:22 +00:00
Anton Maklakov
e44d7fbaed bluedroid: fix argument type according its usage 2022-05-13 06:55:22 +00:00
Anton Maklakov
9a5f0f6c53 bluedroid: fix argument type to correct narrow one 2022-05-13 06:55:22 +00:00
Anton Maklakov
29b2beffc0 bluedroid: fix type for passing argument in function 2022-05-13 06:55:22 +00:00
Anton Maklakov
87bf3260dd bluedroid: fix argument type in functions 2022-05-13 06:55:22 +00:00
Mahavir Jain
dcaa74ebb3 Merge branch 'feature/optimize_wifi_provisioning_memory' into 'master'
feat(wifi_provisioning): Optimize memory for wifi scan ap number

Closes AEG-67

See merge request espressif/esp-idf!18067
2022-05-13 13:58:34 +08:00
Yuan Jian Min
74ae372c73 feat(wifi_provisioning): Optimize memory for wifi scan ap number 2022-05-13 13:58:34 +08:00
Kapil Gupta
72e53d116a Merge branch 'feature/internal_tls_code_update' into 'master'
wpa_supplicant: sync eap code with upstream

See merge request espressif/esp-idf!16962
2022-05-13 12:57:48 +08:00
Kapil Gupta
c2429f1cf9 wpa_supplicant: sync eap code with upstream 2022-05-13 12:57:47 +08:00
Sudeep Mohanty
1f47466664 Merge branch 'test/ignore_freertos_yield_tests' into 'master'
freertos: ignore freertos yield test failures

See merge request espressif/esp-idf!18078
2022-05-13 11:45:15 +08:00
Ivan Grokhotkov
849a296675 Merge branch 'bugfix/newlib_implement_atomic_load_store' into 'master'
newlib: implement __atomic_load/__atomic_store functions

Closes LLVM-144

See merge request espressif/esp-idf!17561
2022-05-13 02:14:15 +08:00
jingli
a85e187ea7 remove wrong function rtc_cntl_ll_ulp_wakeup_enable for esp32s2 and esp32s3 2022-05-12 21:51:21 +08:00
Darian
8dae294ab6 Merge branch 'refactor/freertos_kconfig_options' into 'master'
Freertos: Refactor Kconfig options

See merge request espressif/esp-idf!18043
2022-05-12 21:47:18 +08:00
Armando
591d45151d psram: add quad mode kconfig macro on 32/s2 2022-05-12 21:36:18 +08:00
jingli
abb6bb1181 esp_hw_support/sleep: fix cannot enable sleep reject in some cases
When enable sleep reject before this fix, we have two limitations:
1. it must be light sleep
2. RTC GPIO wakeup source must be set

We require light sleep because `esp_deep_sleep_start` function has
been declared with "noreturn" attribute, So developers don't expect
that this function may return (due to an error or a sleep reject).
But the requirement for RTC GPIO wakeup source is not reasonable for
all chips. This requirement exists because ESP32 only supports RTC GPIO
and SDIO sleep reject sources. But later chips support all sleep reject
sources.

This fix brings the following changes:
for ESP32: RTC GPIO and SDIO sleep reject sources can be enabled
           when corresponding wakeup source is set.

for later chips: all sleep reject sources can be enabled when
                 corresponding wakeup source is set.
2022-05-12 19:09:57 +08:00
jingli
ddcc5bfe38 improve ulp riscv test case
Add second sleep and wakeup test in test case `ULP-RISC-V is able to wakeup main CPU from light sleep`
2022-05-12 19:08:57 +08:00