Commit Graph

14706 Commits

Author SHA1 Message Date
Ivan Grokhotkov
49e8b97de3
console: disable colored hints if CONFIG_LOG_COLORS is not set 2022-03-11 20:54:06 +01:00
Mahavir Jain
a8ba5a0264 Merge branch 'ci/all_alloc_psram_config' into 'master'
[ci] Add unit test configs with aggressive PSRAM allocations

See merge request espressif/esp-idf!14996
2022-03-11 00:30:56 +08:00
Konstantin Kondrashov
00ab35ade0 Merge branch 'feature/bootloader_add_app_test_lvl' into 'master'
bootloader: Adds a level selection for the app's test pin.

Closes IDFGH-6703

See merge request espressif/esp-idf!17425
2022-03-10 22:48:15 +08:00
Wang Meng Yang
c412cb15ac Merge branch 'feature/update_hfp_hf_version' into 'master'
component_bt:  Update HFP_HF version to 1.7.2

Closes BT-2082

See merge request espressif/esp-idf!16950
2022-03-10 20:17:06 +08:00
morris
f38c13adea Merge branch 'contrib/github_pr_8497' into 'master'
ledc: Do not drive output during init if the output is inverted (GitHub PR)

Closes IDFGH-6875

See merge request espressif/esp-idf!17433
2022-03-10 16:55:59 +08:00
Kapil Gupta
9130988299 Merge branch 'bugfix/security_validation' into 'master'
wpa_supplicant: Add BTM security checks

Closes WIFI-4075 and WIFI-4081

See merge request espressif/esp-idf!16619
2022-03-10 15:14:06 +08:00
David Čermák
0b58f987cd Merge branch 'feature/mdns_dynamic_interfaces' into 'master'
mdns: Add support for dynamic network interfaces

Closes IDF-939

See merge request espressif/esp-idf!14875
2022-03-10 15:11:35 +08:00
Anton Maklakov
101af84d77 Merge branch 'bugfix/spiffs_readdir_truntate_snprintf' into 'master'
spiffs: fix format-truncation warning

See merge request espressif/esp-idf!17240
2022-03-10 14:57:52 +08:00
Laukik Hase
3b3b668256 ci: Disable failing UTs
- For ESP32 | SPIRAM_MALLOC_ALWAYSINTERNAL=0
2022-03-10 05:01:17 +00:00
Laukik Hase
c5decf291e ci: Fix for ETSTimers arm & disarm run from IRAM UT
- For ESP32 | SPIRAM_MALLOC_ALWAYSINTERNAL=0
- Forced `esp_timer_create` to allocate resource from the internal memory
- WiFi/BT coexistence will sometimes arm/disarm timers from an ISR
  where flash may be disabled. This can lead to a cache-based
  exception as the timer instance will be located in the PSRAM.
2022-03-10 05:01:17 +00:00
Laukik Hase
6f9fc0ba8e esp_system: Place ipc_task semaphores on DRAM
- For CONFIG_SPIRAM_MALLOC_ALWAYSINTERNAL < 92, the ipc_task semaphores
  were allocated on SPIRAM rather than internal RAM
- SemaphoreHandle_t has a size of 92, thus the failure
2022-03-10 05:01:17 +00:00
Dai Zi Yan
1462367eeb Merge branch 'docs/translate_coexist' into 'master'
docs/ translate coexist

Closes DOC-2479

See merge request espressif/esp-idf!16830
2022-03-10 10:59:18 +08:00
Jiang Jiang Jian
7c7e8a83b9 Merge branch 'refactor/wifi_remove_legacy_evts' into 'master'
Remove legacy system event framework.

Closes IDF-3608

See merge request espressif/esp-idf!16240
2022-03-10 10:30:10 +08:00
Simon
fb4ee8e31f Merge branch 'feature/support_hpm_on_flash' into 'master'
spi_flash: Building a framework to enable HPM when flash works under high speed mode, take GD as an example.

Closes IDF-4537

See merge request espressif/esp-idf!16660
2022-03-10 03:04:21 +08:00
KonstantinKondrashov
21dd929c72 bootloader: Adds a level selection for the app's test pin.
Closes https://github.com/espressif/esp-idf/issues/8332
2022-03-09 19:52:37 +08:00
morris
b841332aa5 Merge branch 'component/esp_websocket_migration' into 'master'
websocket: Remove internal component, examples and test

Closes IDF-4076

See merge request espressif/esp-idf!17273
2022-03-09 19:12:55 +08:00
Cao Sen Miao
8dce0cbf6b spi_flash: Fix bug that in bootloader dummy is 0 when mosi is 0 2022-03-09 18:49:34 +08:00
Cao Sen Miao
85dd785d8d spi_flash: Building a framework to enable HPM when flash works under high speed mode 2022-03-09 18:49:34 +08:00
Sagar Bijwe
6501eff7f5 Remove legacy system event framework. 2022-03-09 15:53:45 +05:30
morris
da28f7e2d9 Merge branch 'feature/rmt_hal_dma' into 'master'
rmt: document and improve LL driver

See merge request espressif/esp-idf!17297
2022-03-09 17:55:08 +08:00
Kevin (Lao Kaiyao)
733a991e2f Merge branch 'bugfix/touch_wait_circle_after_wakeup_from_sleep_on_s3' into 'master'
touch: fix the touch sensor wait cycle on s3

See merge request espressif/esp-idf!15531
2022-03-09 16:41:55 +08:00
Darian
98f27378f2 Merge branch 'contrib/github_pr_8372' into 'master'
fix: choose_va_arg macro (GitHub PR)

Closes IDFGH-6742

See merge request espressif/esp-idf!17367
2022-03-09 14:40:04 +08:00
David Cermak
42ba8a8338 mdns: Fix copyright messages, update API descrition
* Impove docs and comments on custom netifs
* Make predef interfaces const, minor docs fixes
2022-03-09 07:33:23 +01:00
David Cermak
b02468dc98 mdns: Add API to control custom network interfaces 2022-03-09 07:33:23 +01:00
Vamshi Gajjela
bee6053fc0 Merge branch 'feature/ftruncate_vfs_fatfs_support' into 'master'
fatfs: Implement ftruncate function in VFS and FAT VFS

Closes IDFGH-6641

See merge request espressif/esp-idf!17389
2022-03-09 13:20:54 +08:00
Kapil Gupta
c098c253b1 wpa_supplicant: Add BTM security checks 2022-03-09 03:58:39 +00:00
Marius Vikhammer
934a3951b8 Merge branch 'feature/s2_s3_support_ext_mem_stack' into 'master'
soc: support placing task stacks in external memory for S2 and S3

Closes IDF-2797 and IDF-1805

See merge request espressif/esp-idf!16186
2022-03-09 11:57:31 +08:00
Anton Maklakov
e7bfc44caf spiffs: fix format-truncation warning 2022-03-09 10:43:30 +07:00
Jiang Jiang Jian
4778c249e6 Merge branch 'Optimize/null_pointer_judgment_of_eb' into 'master'
esp_netif:optimize the null pointer judgment of eb

Closes IDF-4576

See merge request espressif/esp-idf!16934
2022-03-09 11:38:24 +08:00
morris
4dfbc9ee7b rmt: remove deprecated functions 2022-03-09 10:58:14 +08:00
morris
9f55712c03 rmt: document and improve LL driver 2022-03-09 10:58:12 +08:00
xiongweichao
6514f9e94c docs: translate coexist from CN to EN 2022-03-09 02:50:00 +00:00
David Čermák
06df46e26a Merge branch 'bugfix/security_update_pppos_crash' into 'master'
lw-ip: Apply security fixes from upstream; Fix PPPoS and NAPT ip-forward

Closes IDFGH-6668 and IDFGH-6825

See merge request espressif/esp-idf!17227
2022-03-09 03:04:52 +08:00
Mahavir Jain
5ca79a00dd Fix build issues for implicit declaration for esp_fill_random 2022-03-08 14:05:23 +00:00
Sachin Parekh
32a6550e87 mbedtls: Added ECC hardware accelerator support on ESP32C2
ESP32C2 has a ECC hardware accelerator capable of performing point
multiplication and point verification with a significant performance
boost
2022-03-08 14:05:23 +00:00
Sachin Parekh
bc1d35a14e esp32c2/hal: Added ECC HAL layer 2022-03-08 14:05:23 +00:00
David Cermak
98e9426b66 CI/mdns: Fix fuzzer build 2022-03-08 14:25:34 +01:00
David Cermak
bec42ff85d mdns: Add support for registering custom netif 2022-03-08 13:46:11 +01:00
David Cermak
f8495f1e86 mdns: Indicate interface using esp_netif in search results 2022-03-08 13:44:14 +01:00
David Cermak
f90b3b798b mdns: Use predefined interfaces to prepare for custom netifs 2022-03-08 13:44:14 +01:00
Suren Gabrielyan
f9892f77b8 mdns: Prepare for dynamic esp-netif support 2022-03-08 13:39:53 +01:00
Vladimir Chistyakov
216703c0ef esp_macro: Fix CHOOSE_MACRO_VA_ARG() for C++20
Closes https://github.com/espressif/esp-idf/pull/8372
Closes https://github.com/espressif/esp-idf/issues/8371

[darian@espressif.com: Updated macro description and commit message]
Signed-off-by: Darian Leung <darian@espressif.com>
2022-03-08 20:21:26 +08:00
Darian
8b902739ac Merge branch 'feature/freertos_smp_base_master_483237711' into 'master'
Add baseline SMP FreeRTOS

Closes IDF-3420, IDF-3348, IDF-3331, IDF-3333, IDF-3701, IDF-3341, IDF-3346, IDF-3339, IDF-3685, IDF-3338, and IDF-3342

See merge request espressif/esp-idf!17016
2022-03-08 19:58:11 +08:00
Vamshi Gajjela
ea9f7cc370 fatfs: Add ftruncate api support for VFS and FAT-VFS
Unit test cases added to verify ftruncate within fatfs tests.

Closes https://github.com/espressif/esp-idf/issues/8279
2022-03-08 16:58:25 +05:30
Omar Chebib
cfee73658b Merge branch 'bugfix/fix_heap_free_memory' into 'master'
Heap: fix free bytes calculation for TLSF heap

Closes IDFGH-6628

See merge request espressif/esp-idf!17337
2022-03-08 18:08:30 +08:00
Shu Chen
fcfe75b7d6 Merge branch 'feature/openthread-update-220303' into 'master'
openthread: Update OpenThread submodule

See merge request espressif/esp-idf!17338
2022-03-08 18:02:20 +08:00
laokaiyao
93b162c767 touch: fix the touch sensor wait cycle on s3 2022-03-08 09:11:14 +00:00
David Cermak
92f7ecd632 lwip: Security fixes; PPPoS null-deref; NAPT ip-forward
* Cherry-pick important fixes to 2.1.2-esp
  - CVE-2020-22283: Attacker could craft a packet that would disclose 8 bytes of some heap memory:
    - icmp6: Don't copy too much data
    - icmp6: Fix copying of chained pbuf in reply
    - icmp6: keep to the RFC and send as much as possible with icmp6 error messages
  - CVE-2020-22284: ZEP - ZigBee Encapsulation Protocol/6LoWPAN is not supported in IDF,
    the netif module (zepif.c) is not included in the build, but users can still inject
    the file into compilation process, implement IO interface and use this.
    - zepif: Copy possibly chained output pbuf properly
    - Add #define for minimum IPv6 MTU length
    - pbuf: Add pbuf_copy_partial_pbuf library function
* PPPoS: Fix null-deref when processing double break packet
  - pppos: fix in_tail null (espressif/esp-lwip@537c69d5)
  - PPP: Add test exhibiting empty packet null-deref (espressif/esp-lwip@202a07da)
* NAPT: Fix PBUF_REF type to clone the pbuf before forwarding
  - IP-FORWARD: If packet-type is PBUF_REF clone it before forwarding
  - Add NAPT unit test to exercise NAT feature for both RAM and REF pbuf types
* version: Update version numbers to match 2.1.2-esp

* Update submodule: 2749568fe1...76303df238
  - test/napt: Add unit test for IP forward with PBUF_REF (espressif/esp-lwip@76303df2)
  - napt: Fix PBUF_REF type to clone the pbuf before forwarding (espressif/esp-lwip@39068263)
  - version: Update version numbers to match 2.1.2-esp (espressif/esp-lwip@2b922919)
  - pppos: fix in_tail null (espressif/esp-lwip@537c69d5)
  - PPP: Add test exhibiting empty packet null-deref (espressif/esp-lwip@202a07da)
  - pbuf: Add pbuf_copy_partial_pbuf library function (espressif/esp-lwip@1c9cd9c1)
  - Add #define for minimum IPv6 MTU length (espressif/esp-lwip@d2dc577b)
  - zepif: Copy possibly chained output pbuf properly (espressif/esp-lwip@64ab7f2a)
  - icmp6: Don't copy too much data (espressif/esp-lwip@4a64731b)
  - icmp6: Fix copying of chained pbuf in reply (espressif/esp-lwip@7c822ff4)
  - icmp6: keep to the RFC and send as much as possible with icmp6 error messages (espressif/esp-lwip@29100ab6)
  - dns: Add API to clear dns cache (espressif/esp-lwip@ee59f77d)
  - CI: Fixed adding gitlab key (espressif/esp-lwip@5a2bdba7)
  - test case: modify test case test_tcp_new_max_num_remove_FIN_WAIT_1 (espressif/esp-lwip@6b090f7d)

Closes https://github.com/espressif/esp-idf/issues/8300
Closes https://github.com/espressif/esp-idf/issues/8451
2022-03-08 09:38:42 +01:00
Darian Leung
c2f2b1e228 freertos: Add SMP FreeRTOS porting notes
This commit adds some notes about the SMP FreeRTOS port
2022-03-08 14:59:18 +08:00
Darian Leung
27f5c90e2e freertos: Fix usage of vTaskSuspendAll()/xTaskResumeAll()
IDF FreeRTOS uses vTaskSuspendAll()/xTaskResumeAll() to stop preemption
on a particular core. However, those functions behave differently in FreeRTOS SMP.
This commit replaces all calls of vTaskSuspendAll()/xTaskResumeAll() with
vTaskPreemptionDisable()/vTaskPreemptionEnable() when compiling with SMP FreeRTOS.
2022-03-08 14:59:18 +08:00