Commit Graph

14430 Commits

Author SHA1 Message Date
Scott Shawcroft
94ce8444fc esp_netif: Fix -Wundef issues with esp_netif.h
Partially addresses https://github.com/espressif/esp-idf/pull/5179
2022-01-14 16:19:31 +01:00
Ivan Grokhotkov
bce69ab7c1 vfs: add test for errno value after 'open' 2022-01-14 13:34:22 +01:00
hörbert
71fe41d0e0 vfs: don't overwrite errno by a hard coded ENOENT
Calling "open" in CHECK_AND_CALL sets a perfectly correct errno.
There is no need to overwrite that with a value of ENOENT, since doing
so hides lower level errors like EIO.

Closes https://github.com/espressif/esp-idf/pull/8036
2022-01-14 13:34:21 +01:00
Ivan Grokhotkov
f010729e74 Merge branch 'contrib/esp_idf_github_pr_7413' into 'master'
vfs: fix wrong VFS being freed when esp_vfs_register_fd_range fails (Github PR)

Closes IDFGH-5692

See merge request espressif/esp-idf!14972
2022-01-14 12:32:20 +00:00
morris
6050388f51 Merge branch 'feature/i80_lcd_psram_s3' into 'master'
lcd: i80 lcd can transfer framebuffer in PSRAM

Closes IDFGH-6426

See merge request espressif/esp-idf!16548
2022-01-14 06:36:08 +00:00
Mahavir Jain
833f8bf6fb Merge branch 'bugfix/check_chip_id_at_start_ota' into 'master'
esp_https_ota: fix for checking chip id at start of OTA

Closes IDF-1724

See merge request espressif/esp-idf!16739
2022-01-14 04:14:01 +00:00
morris
a611b39254 lcd: update i80 lcd example to work with PSRAM 2022-01-14 11:35:34 +08:00
morris
070dc53e0b lcd: i80 bus can transfer PSRAM buffer
Closes https://github.com/espressif/esp-idf/issues/8085
2022-01-14 11:03:50 +08:00
Marius Vikhammer
ef3724411e AES: improve AES-GCM test coverage. 2022-01-14 10:55:06 +08:00
caixf
6c3b528917 vfs: fix wrong VFS being freed when esp_vfs_register_fd_range fails
Closes https://github.com/espressif/esp-idf/pull/7413
2022-01-13 17:17:42 +01:00
KonstantinKondrashov
f49787ac9f esp_system: ipc_isr does not use its own initialization task, it is done from ipc_task()
It helps to reduce the memory usage at startup.

Closes https://github.com/espressif/esp-idf/issues/8111
2022-01-13 21:28:08 +08:00
Omar Chebib
bb730292d4 i2c: fix the controller count in the header description
Closes https://github.com/espressif/esp-idf/issues/8133
2022-01-13 18:25:41 +08:00
Harshit Malpani
c0b796532b esp_https_ota: fix for checking chip id at start of OTA 2022-01-13 15:20:26 +05:30
Shu Chen
991874ae43 Merge branch 'feature/lwip-ip6-input-hook' into 'master'
ladd ip6 input hook

See merge request espressif/esp-idf!16646
2022-01-13 07:21:15 +00:00
Armando (Dou Yiwen)
ebf7e811b1 Merge branch 'refactor/spiram_common_file' into 'master'
psram: abstract MMU/Cache and PSRAM hardware related code into lower layer on ESP32S2

Closes IDF-4328

See merge request espressif/esp-idf!16090
2022-01-13 05:49:34 +00:00
Jiacheng Guo
d6c4e2cb34 lwip: add ip6 input hook
The MR adds Kconfig options and a default weak implementation for the
lwIP ip6 input hook.
2022-01-13 12:23:38 +08:00
Armando
7240ad2b3a psram: refactor spiram.c on esp32s2 2022-01-13 11:07:57 +08:00
Armando
9cf4126656 psram: add a ut for putting flash.text and rodata in psram 2022-01-13 11:07:57 +08:00
Ivan Grokhotkov
b83d249e61 Merge branch 'feature/cmake_time_t_automatic' into 'master'
newlib: auto-detect sizeof(time_t)

See merge request espressif/esp-idf!16682
2022-01-12 23:49:22 +00:00
Michael (XIAO Xufeng)
7fb3e06c69 Merge branch 'bugfix/adc_include_sdkconfig' into 'master'
adc: add explicit sdkconfig.h include

See merge request espressif/esp-idf!16746
2022-01-12 15:35:13 +00:00
Michael (XIAO Xufeng)
a2fc3629bd adc: add explicit sdkconfig.h include 2022-01-12 15:35:12 +00:00
Armando (Dou Yiwen)
342c830d9b Merge branch 'feature/support_spi_on_8684' into 'master'
spi: support spi on 8684

Closes IDF-4470 and IDF-4024

See merge request espressif/esp-idf!16475
2022-01-12 09:10:21 +00:00
Hrudaynath Dhabe
190b31bb1b Merge branch 'bugfix/eap_method_selection' into 'master'
esp_wifi: Fix the negotiation of method with eap server.

Closes IDFGH-6088

See merge request espressif/esp-idf!16246
2022-01-12 08:46:32 +00:00
Yuan Jian Min
9485873669 Merge branch 'bugfix/fix_smartconfig_setopt_fail' into 'master'
smartconfig: Fix smartconfig set socket option fail

Closes IDFGH-6539

See merge request espressif/esp-idf!16634
2022-01-12 06:16:47 +00:00
Laukik Hase
ca84d2d6c9 esp_http_client: Added event for HTTP redirect
- Allows users to manually intercept and process the HTTP redirection
 when disable_auto_redirect (from the esp_http_client handle) is set to true

Closes https://github.com/espressif/esp-idf/issues/8029
2022-01-12 11:40:32 +05:30
Mahavir Jain
b08323c903 Push out expat to idf-extra-components repository
This component will be used through IDF component manager.
2022-01-12 10:13:23 +05:30
Armando
6a74cb695d spi: support spi on 8684 2022-01-12 11:30:29 +08:00
Ivan Grokhotkov
d2b894862c newlib: auto-detect sizeof(time_t)
To make the transition from 32-bit time_t to 64-bit time_t smoother,
detect the size of this type in CMake and remove the manual option in
Kconfig.
The information about 64-bit time_t support is moved from Kconfig help
string into the "system time" section of the API reference.
2022-01-11 19:01:21 +01:00
yuanjm
467a8726c4 esp_https_ota: Fix esp_https_ota_begin may return ESP_OK when http status code is not 200 and may exist memory leak
Closes https://github.com/espressif/esp-idf/issues/8195
2022-01-11 22:01:17 +08:00
Mahavir Jain
fba8582da4 Merge branch 'feature/nghttp_sh2lib_component_manager' into 'master'
Push out nghttp and sh2lib to IDF component manager

Closes IDF-4529

See merge request espressif/esp-idf!16618
2022-01-11 13:45:59 +00:00
Ivan Grokhotkov
18af031791 Merge branch 'bugfix/rom_time_t_size_deps' into 'master'
esp_rom: remove functions which depend on sizeof(struct stat) and all their callers

Closes IDFGH-6318

See merge request espressif/esp-idf!16679
2022-01-11 12:58:55 +00:00
David Čermák
8f476e586f Merge branch 'bugfix/lwip_lowpan6_config' into 'master'
lw-ip: Prepare lwip CMake for 6LoWPAN options (GitHub PR)

Closes IDFGH-5731

See merge request espressif/esp-idf!14956
2022-01-11 09:09:08 +00:00
Omar Chebib
a07b3acf9a Merge branch 'bugfix/coredump_data_section' into 'master'
espcoredump: fix a bug where tracked DRAM data were not dumped

Closes IDFGH-6498

See merge request espressif/esp-idf!16573
2022-01-11 07:43:25 +00:00
Jiang Jiang Jian
1d6f6044f8 Merge branch 'bugfix/support_esp32s2_eco1' into 'master'
ESP32S2: Support ESP32S2 ECO1

Closes WIFI-4227

See merge request espressif/esp-idf!16264
2022-01-11 07:12:25 +00:00
Kevin (Lao Kaiyao)
cc3adce8d7 Merge branch 'bugfix/i2s_return_error_code' into 'master'
i2s: revert the reading/writing can return timeout error

Closes IDFGH-6464

See merge request espressif/esp-idf!16546
2022-01-11 07:06:01 +00:00
Kevin (Lao Kaiyao)
7e36902ea7 Merge branch 'feature/peripherals_support_chip_specific_clock_frequency' into 'master'
ESP32H2: Fix the unit of apb frequency

Closes IDF-3614

See merge request espressif/esp-idf!15834
2022-01-11 06:21:17 +00:00
Mahavir Jain
77929ec0ac docs/en: Add entry for http_parser in copyrights page 2022-01-11 10:26:25 +05:30
Mahavir Jain
e7db313c63 mqtt: replace nghttp with http_parser references 2022-01-11 10:26:25 +05:30
Mahavir Jain
8e94cf2bb1 Add http_parser (new component) dependency 2022-01-11 10:26:25 +05:30
Mahavir Jain
a67d7b7d5b nghttp: Remove component and move to idf-extra-components repository
This component will now be used through ESP-IDF component manager
2022-01-11 10:26:25 +05:30
Mahavir Jain
d2956f208b http_parser: Split nghttp port and create new http_parser component
Note: nghttp will be moved to IDF component manager
2022-01-11 10:26:24 +05:30
Jiang Jiang Jian
8b38fe6dda Merge branch 'bugfix/move_lib_printf_esp_phy' into 'master'
Bugfix:Move lib_printf.c to esp_phy

See merge request espressif/esp-idf!16728
2022-01-11 04:07:34 +00:00
marcusbirkin
b65447ac09 lwIP: Remove redundant lowspan6 source files
This is a preparation for adding 6LoWPAN config options. We would
optionally add:
*       "lwip/src/netif/lowpan6_common.c"
*       "lwip/src/netif/lowpan6.c"
*       "lwip/src/netif/lowpan6_ble.c"
But only if LWIP_LOWPAN6_SUPPORT is enabled in lwip menuconfig.

Merges https://github.com/espressif/esp-idf/pull/7436
2022-01-10 11:51:13 +01:00
morris
f8bb2741d4 Merge branch 'refactor/remove_toolchain_prefix_in_kconfig' into 'master'
cmake: using toolchain prefix determined by cmake itself

See merge request espressif/esp-idf!16703
2022-01-10 10:17:33 +00:00
likunqiao
8b3cddf09a esp_phy: move lib_printf.c to esp_phy
* fix the issue when esp32h2 target using phy_printf and rtc_printf
2022-01-10 17:51:52 +08:00
Fu Hanxi
60c5b37bfe Merge branch 'refactor/ldgen' into 'master'
refactor: ldgen

Closes IDF-605 and IDFGH-6271

See merge request espressif/esp-idf!16509
2022-01-10 09:15:44 +00:00
laokaiyao
6e39b4b3bd i2s: revert reading/writing return error code
Closes https://github.com/espressif/esp-idf/issues/8121

Revert reading/writing return ESP_ERR_TIMEOUT introduced in commit b26da6f
2022-01-10 15:51:01 +08:00
laokaiyao
cd10bb7fa2 esp32h2: fix apb freq bug 2022-01-10 12:43:31 +08:00
Wang Meng Yang
df1f9ec26e Merge branch 'bugfix/a2dp_source_congest' into 'master'
component_bt: Fixed a2dp source audio data packet congestion causing choppy audio in a2dp sink

Closes IDFGH-6485

See merge request espressif/esp-idf!16537
2022-01-10 03:00:05 +00:00
morris
1267738149 cmake: using toolchain prefix determined by cmake itself 2022-01-10 10:06:09 +08:00
David Čermák
7d43be9675 Merge branch 'contrib/github_pr_8106' into 'master'
Add mDNS miss comment (GitHub PR)

Closes IDFGH-6445

See merge request espressif/esp-idf!16629
2022-01-07 15:58:13 +00:00
David Cermak
6f2e0d53a4 lwip: Fix spacing issue 2022-01-07 16:38:40 +01:00
David Cermak
c83678f64f mdns: Fix copyright 2022-01-07 16:16:31 +01:00
Mahavir Jain
397639da7d Merge branch 'feature/rsa_intr' into 'master'
MPI: add kconfig option for doing intr-based exp-mod operations

Closes IDF-4389

See merge request espressif/esp-idf!16558
2022-01-07 13:27:53 +00:00
yuanjm
2e31779931 smartconfig: Fix smartconfig set socket option fail
Closes https://github.com/espressif/esp-idf/issues/8189
2022-01-07 20:05:21 +08:00
chenjianxing
7a9947f3c6 esp_phy: Update ESP32S2 phy lib to support eco1 chip 2022-01-07 19:59:41 +08:00
David Cermak
1882cbe44e mdns: Make fuzzer layers compatible with llvm>=6 2022-01-07 16:18:32 +08:00
Fu Hanxi
4f779bb7c6 ci: use python -m coverage instead of coverage executable 2022-01-07 16:18:32 +08:00
morris
705788a13f unit_tests: replace legacy timer group with gptimer 2022-01-07 14:59:09 +08:00
morris
02f6b83f47 app_trace: support gptimer as timestamp source 2022-01-07 14:59:09 +08:00
morris
7000f5d85a legacy_timer: move unit test to test app 2022-01-07 14:44:50 +08:00
morris
5deb83b12d gptimer: new driver for previous timer group 2022-01-07 14:44:50 +08:00
Marius Vikhammer
79cc650d75 Merge branch 'feature/deprecate_freertos_assert' into 'master'
freertos: remove FREERTOS_ASSERT option

Closes IDF-2294

See merge request espressif/esp-idf!16563
2022-01-07 06:35:05 +00:00
Anton Maklakov
d500c8205e Merge branch 'bugfix/fix_spi_cs_hold_time_issue' into 'master'
spi_master: fix spi cs_ena_posttrans issue

Closes IDFGH-6077

See merge request espressif/esp-idf!15925
2022-01-07 04:06:12 +00:00
Marius Vikhammer
ba3f12a9fe rsa: add generate RSA keys test case 2022-01-07 11:35:35 +08:00
Wang Meng Yang
da63b3bb5a Merge branch 'bugfix/config_parse_crash_after_flash_erase' into 'master'
component_bt: fixed config parse crash after flash_erase

Closes IDFGH-4331

See merge request espressif/esp-idf!16677
2022-01-07 03:05:40 +00:00
Wang Meng Yang
5f28c0c36b Merge branch 'bugfix/PRs_on_esp_hid' into 'master'
bugfix/handle_3_esp_hid_PRs

Closes IDFGH-5889, IDFGH-3402, and IDFGH-2586

See merge request espressif/esp-idf!16538
2022-01-07 01:49:47 +00:00
Marius Vikhammer
7255497146 freertos: remove FREERTOS_ASSERT option
Freertos asserts are now configured the same way as all other asserts in IDF,
i.e. by configuring COMPILER_OPTIMIZATION_ASSERTION_LEVEL.
2022-01-07 09:16:48 +08:00
morris
4bf67afd0a Merge branch 'refactor/remove_public_api_soc_dependency' into 'master'
remove public api soc dependency

Closes IDF-4424, IDF-3670, and IDFGH-6525

See merge request espressif/esp-idf!16541
2022-01-06 23:50:24 +00:00
Jiang Jiang Jian
cde8b94a65 Merge branch 'bugfix/dpp_no_ip_issue' into 'master'
Fix STA not getting IP after DPP issue

Closes IDFGH-5958

See merge request espressif/esp-idf!15578
2022-01-06 15:16:47 +00:00
morris
f7c9b8fd58 soc: remove dport register assert for esp32s2
Closes https://github.com/espressif/esp-idf/issues/8176
2022-01-06 23:10:22 +08:00
morris
869bed1bb5 soc: don't expose unstable soc header files in public api 2022-01-06 23:10:22 +08:00
Ivan Grokhotkov
24c20d188e esp_rom: remove functions which depend on sizeof(struct stat)
...and all their callers.

With the upcoming switch from sizeof(time_t)==4 to sizeof(time_t)==8,
sizeof(struct stat) is also increasing.

A few newlib functions present in ROM allocate 'struct stat' on the
stack and call _fstat_r on this structure. The implementation of
fstat is provided in ESP-IDF. This implementation will often do
memset(st, 0, sizeof(*st)), where st is 'struct stat*', before setting
some fields of this structure. If IDF is built with sizeof(st)
different from sizeof(st) which ROM was built with, this will lead
to an out-of-bounds write and a stack corruption.

This commit removes problematic ROM functions from the linker script.
Here are the functions which allocate 'struct stat':
* _isatty_r (in ROM)
* __swhatbuf_r, called by __smakebuf_r, called by __swsetup_r and
  __srefill_r (in ROM)
* _fseeko_r (not in ROM)
* glob2 (not in ROM)
* _gettemp (not in ROM)

As a result, these functions are used from libc.a, and use correct
size of 'stat' structure.

Closes https://github.com/espressif/esp-idf/issues/7980
2022-01-06 15:20:04 +01:00
morris
24acdf23ee soc: move peripheral base address into reg_base.h 2022-01-06 21:43:12 +08:00
morris
8cdcb4e291 rmt: move RMT item definition from soc to driver 2022-01-06 21:43:12 +08:00
morris
d8f2eaf94e gpio: remove legacy rtc_io description for esp32 2022-01-06 21:43:12 +08:00
Darian
d95b15c557 Merge branch 'feature/usb_host_cleanup' into 'master'
USB: Host stack cleanup and QOL update

Closes IDFGH-6120, IDF-2747, IDFGH-4592, and IDFGH-6402

See merge request espressif/esp-idf!16349
2022-01-06 12:18:47 +00:00
xiongweichao
6d86b07546 fixed config parse crash after flash_erase
Closes https://github.com/espressif/esp-idf/issues/6170
2022-01-06 20:17:43 +08:00
Armando
56a707eef4 spi_master: fix spi cs_ena_posttrans issue 2022-01-06 17:54:58 +08:00
Omar Chebib
51917cb49c espcoredump: add a test for coredump dumped sections 2022-01-06 16:53:41 +08:00
Omar Chebib
b0afae5e60 espcoredump: fix a bug where tracked DRAM data where not dumped
Variables marked as COREDUMP_DRAM_ATTR will now be part of the core dump.

* Closes https://github.com/espressif/esp-idf/issues/8151
2022-01-06 16:53:35 +08:00
Darian Leung
ada1c9c5b8 usb: Add USB Host Library documentation
This commit adds the USB Host Library documentation and fixes some nitpicks
in the Host Stack types.

Closes https://github.com/espressif/esp-idf/issues/6408
2022-01-06 15:15:32 +08:00
Darian Leung
b6dfadb168 usb: Update USB Host Library
This commit updates the USB Host Library as follows:

- usb_helpers.h
    - Removed dependency on USB Host Library API
    - Added function to print string descriptors
- usbh
    - Fixed bug where an interface/endpoint could be claimed/allocated multiple times
    - Removed redundant device ref_count change
- Added unit test for USB Host Library API usage
2022-01-06 15:14:10 +08:00
Darian Leung
22c152c388 usb: Hub Driver and USBH recover port automatically after disconnection
This commit updates the Hub Driver and USBH as follows:
- Updated communication mechanism between Hub Driver and USBH
    - USBH notifies the Hub Driver via Hub request callback (usbh_hub_req_cb_t)
    - Hub Driver notifies the USBH via usbh_hub_pass_event()
- Hub Driver now defers all event handling to hub_process.
- Hub Driver and USBH will now automatically recover the port after a disconnected
    device has been closed.
- Fixed incorrect assert in usbh_dev_close()
2022-01-06 15:12:16 +08:00
Darian Leung
1aad12468a usb: Hub Driver Update and Refactor
Hub Driver is refactored as follows:

This commit update and refactors the Hub Driver as follows:

- Refactored enumeration state machine and stage functions
    - Enumeration stage is now incremented
    - Combined transfer stages of enumeration into common functions
- Comments updated
- Fixed usbh_hal_disable_debounce_lock() that would cause root_port_handle_events()
    to fail the HCD_PORT_CMD_RESET call because the previous port connection interrupt
    was not cleared.

The following features were added to the Hub Driver

- Enumeration config descriptor is now fetched in two separate stages
    - Header is fetched first to determine the wTotalLength of the descriptor
    - Fetching the full descriptor will request exactly wTotalLength bytes
    - This works around some non-compliant devices that will babble/return zero
        when requesting a length > wTotalLength
    - Closes https://github.com/espressif/esp-idf/issues/7799
- Enumeration now stores string descriptors
    - The Manufacturer, Product, and Serial Number string descriptors are
        now read and stored during enumeration
    - String descriptors are now part of usb_device_info_t
- Added unit test to test enumeration
2022-01-06 15:11:13 +08:00
Darian Leung
854127a57c usb: USB Host stack uses USB PHY driver
This commit updates the USB Host stack to use the USB PHY driver. The
USB PHY and the OTG Controller should now both be setup/deleted using
usb_new_phy() and usb_del_phy() respectively.

- The hcd_install() now expects the USB PHY and OTG Contorller to be
    already setup before it is called
- usb_host_install() now has an option to skip calling usb_del_phy() if
    the user wants to setup their own USB PHY (e.g., in the case of using
    and external PHY).
- CDC-ACM and MSC examples/test updated to use internal PHY

Closes https://github.com/espressif/esp-idf/issues/8061
2022-01-06 15:09:39 +08:00
Darian Leung
5a2ef15565 usb: HCD multiple fixes
This commit fixes the following bugs in the HCD

- HCD control pipes fill incorrect transfer size

_buffer_fill_ctrl() would fill the transfer descriptors length with
wLength instead of transfer->num_bytes. Therefore, the remaining length
would be incorrect when a control transfer requests more bytes than are
available.

- Fix USB_TRANSFER_FLAG_ZERO_PACK behavior

The previous behavior of USB_TRANSFER_FLAG_ZERO_PACK was incorrect, and did not
support interrupt pipes. A zero length packet can now be added to Bulk/Interrupt
OUT transfers where the length is a multiple of the endpoint's MPS.

- Fixed HCD port suspend and resume test case

Halting a control pipe mid control transfer can lead some test devices to get stuck
2022-01-06 15:07:56 +08:00
Darian Leung
bb29b199ad usb: Tidy up usbh
- Remove enum_todo_flags from usbh
- USBH move config_desc to constant fields
2022-01-06 15:06:44 +08:00
xiongweichao
83b9320d2e btc_a2dp_control_set_datachnl_stat is only used by a2dp sink 2022-01-06 14:10:18 +08:00
xiongweichao
688700f33b remove btc_a2dp_dispatch_datapath_evt and event 2022-01-06 14:02:03 +08:00
xiongweichao
c5af97759f Fixed the crash caused by calling esp_a2d_media_ctrl(ESP_A2D_MEDIA_CTRL_START) after stream started 2022-01-06 14:02:03 +08:00
xiongweichao
061ae4c07a Fixed a2dp source audio data packet congestion causing choppy audio in a2dp sink 2022-01-06 14:02:03 +08:00
Michael (XIAO Xufeng)
476da74796 Merge branch 'bugfix/ledc_fade_array_check' into 'master'
ledc: fixed check to s_ledc_fade_rec array

See merge request espressif/esp-idf!16086
2022-01-06 03:28:10 +00:00
Michael (XIAO Xufeng)
466f3a91cb ledc: fixed check to s_ledc_fade_rec array 2022-01-06 03:28:05 +00:00
Michael (XIAO Xufeng)
b84abb1b17 Merge branch 'bugfix/rtcio_increase_size' into 'master'
sleep: fixed ext1 cannot wakeup via RTCIO >= 18 issue

Closes IDF-4526 and IDF-4505

See merge request espressif/esp-idf!16617
2022-01-06 03:03:58 +00:00
Wang Meng Yang
d29755b7d5 Merge branch 'bugfix/rd_rem_ext_feats_delayed_cs' into 'master'
bugfix/fix cs event for rd_rem_ext_feats delayed issue

Closes ESPCS-7232

See merge request espressif/esp-idf!15919
2022-01-06 00:39:47 +00:00
Tomas Rezucha
af28416116 Merge branch 'feature/usb_device/multi_cdc' into 'master'
USB: Extend USB CDC device with second channel

See merge request espressif/esp-idf!16458
2022-01-05 09:53:04 +00:00
Ondrej Kosta
fa9cc49b9e Merge branch 'bugfix/esp_eth_start_tx_buff' into 'master'
Fixed ESP32 EMAC driver `insufficient TX buffer size`

Closes WIFI-4194

See merge request espressif/esp-idf!16457
2022-01-05 09:40:12 +00:00
Jiang Jiang Jian
477cf09f45 Merge branch 'bugfix/ci_check_blobs' into 'master'
ci: improve checks for Wi-Fi/PHY libraries

See merge request espressif/esp-idf!16625
2022-01-05 09:26:42 +00:00
Tomas Rezucha
6330d5d312 usb: Extend CDC device with second CDC channel
Closes https://github.com/espressif/esp-idf/issues/7020
Closes https://github.com/espressif/esp-idf/pull/8011
2022-01-05 08:18:03 +01:00
Guo Jia Cheng
fa8364a544 Merge branch 'bugfix/openthread-socket-multicast' into 'master'
openthread: sync lwip multicast groups to Thread stack

See merge request espressif/esp-idf!16490
2022-01-05 07:04:30 +00:00
Mahavir Jain
6e1f534cab Merge branch 'feature/esp_tls_api_cleanup' into 'master'
esp-tls: mark esp_tls_conn_delete API as deprecated

See merge request espressif/esp-idf!16647
2022-01-05 07:04:09 +00:00
jincheng
6a9afa65a2 fix cs event for rd_rem_ext_feats delayed issue 2022-01-05 14:48:04 +08:00
Murray Fordyce
00a23ec544 Fixed left right key confusion in comments.
"Left" and "Right" were swapped in some comments.
2022-01-05 14:23:47 +08:00
morris
ce2a220098 Merge branch 'refactor/make_adc2_wifi_private' into 'master'
clean up deprecated and private header files for driver and esp_hw_support component

See merge request espressif/esp-idf!16605
2022-01-05 05:42:42 +00:00
morris
ef5cfb217c Merge branch 'contrib/github_pr_8172' into 'master'
Fix compile issue when TinyUSB task is not enabled. (GitHub PR)

Closes IDFGH-6521

See merge request espressif/esp-idf!16611
2022-01-04 13:21:23 +00:00
Jiacheng Guo
d610282742 openthread: sync lwip multicast groups to Thread stack
This MR synchornizes the lwIP multicast groups to the Thread stack. This
will fix sockets failing to receive messages sent to multicast groups
issue.
2022-01-04 20:08:15 +08:00
Nachiket Kukade
02a415d494 esp_wifi: Update wifi lib
Fix STA not getting IP after DPP

Closes https://github.com/espressif/esp-idf/issues/7646
2022-01-04 16:24:45 +05:30
Jiang Jiang Jian
69757842aa Merge branch 'bugfix/ftm_misc_issues' into 'master'
Miscellaneous FTM bugfixes

Closes WIFI-4126

See merge request espressif/esp-idf!16525
2022-01-04 10:39:42 +00:00
Mahavir Jain
201e0b39a7 esp-tls: remove redundant snippet from CMakeList 2022-01-04 15:41:06 +05:30
Mahavir Jain
c26500cd5a esp-tls: mark esp_tls_conn_delete API as deprecated
It is recommended to use `esp_tls_conn_destroy` API instead
2022-01-04 15:40:07 +05:30
Jack
9802bf41d6 phy: update phy lib to remove ets_printf references 2022-01-04 15:41:58 +08:00
morris
113cbb88a6 hw_support: remove deprecated header files 2022-01-04 14:16:17 +08:00
morris
090b4aa1f3 adc: make adc2_wifi share resource private 2022-01-04 13:59:24 +08:00
Wang Meng Yang
7e39aa61fa Merge branch 'bugfix/fix_null_pointer_deference_issue_master_mr' into 'master'
Fix the null pointer deference issue via Reconnection Spamming

See merge request espressif/esp-idf!16502
2022-01-04 04:06:27 +00:00
Omar Chebib
a8b40927b5 Merge branch 'bugfix/i2c_spiram_bug' into 'master'
I2C: fix buffer check when SPIRAM used as a heap

Closes IDFGH-6522

See merge request espressif/esp-idf!16612
2022-01-04 02:48:46 +00:00
morris
6e661871c5 tusb: optional compile tusb_task 2022-01-04 10:38:13 +08:00
morris
cba1f57147 tusb: update copyright header 2022-01-04 10:25:06 +08:00
Ivan Grokhotkov
3049ac6dbb ci: improve checks for Wi-Fi/PHYlibraries
- add missing Wi-Fi header MD5 checks for esp32c3, esp32s3
- check PHY libraries for references to ets_printf, in addition to
  checking Wi-Fi libraries. This used to happen until libphy.a was
  moved into a separate submodule.

Reported in https://github.com/espressif/esp-phy-lib/issues/3
2022-01-04 00:30:55 +01:00
Roland Dobai
c43d14c2bf Merge branch 'contrib/github_pr_8169' into 'master'
fix fatfs_create_spiflash_image() feature

Closes IDFGH-6383

See merge request espressif/esp-idf!16601
2022-01-03 15:19:38 +00:00
Hrudaynath Dhabe
6d81821516 esp_wifi: Fix the negotiation of method with eap server. 2022-01-03 13:31:32 +05:30
Martin Gaňo
140f5be289 Updated typehints from str values to bytes 2022-01-03 01:02:16 +01:00
Martin Gaňo
f7983fd313 Use bytes instead of strings in tests 2022-01-03 00:47:00 +01:00
Michael (XIAO Xufeng)
46f8d868d3 soc: updated soc_caps about rtc_io and the format 2022-01-01 03:13:45 +08:00
Michael (XIAO Xufeng)
9382b24d1d sleep: fixed ext1 cannot wakeup via RTCIO >= 18 issue 2021-12-31 08:09:43 +00:00
Ivan Grokhotkov
f1c5dfbfc9 Merge branch 'contrib/github_pr_8013' into 'master'
Add message about alternative functions. (GitHub PR)

Closes IDFGH-6352

See merge request espressif/esp-idf!16610
2021-12-31 07:09:08 +00:00
Omar Chebib
8d1fa78378 i2c: fix buffer check when SPIRAM used as a heap
* Closes https://github.com/espressif/esp-idf/issues/8173
2021-12-31 14:36:16 +08:00
Xie Wen Xiang
6cb6087dd0 Merge branch 'bugfix/fix_bluedroid_compile_issue' into 'master'
components/bt: Fix bluedroid compile issue

Closes IDFGH-6486

See merge request espressif/esp-idf!16589
2021-12-31 02:03:49 +00:00
Venelin Efremov
8e3ad708b2 Fix compile isse when TinyUSB task is not enabled. 2021-12-30 04:49:03 -08:00
Song Ruo Jing
2906fbfb9e Merge branch 'feature/support_esp8684_gpio' into 'master'
ESP8684: Support ESP8684 gpio

Closes IDF-4019 and IDF-3841

See merge request espressif/esp-idf!15667
2021-12-30 09:16:23 +00:00
“YangZhao”
8d48a56249 There is an issue that if the the btm_cb.p_sec_dev_rec_list is full,but at the same
time we can't find old device to be replaced,then this can cause crash. So we need
to change the way to malloc the new device or replace the old in the list.
2021-12-30 15:50:07 +08:00
Nachiket Kukade
f38144a689 esp_wifi: Miscellaneous FTM bugfixes
1. Update wifi libs with bugfixes for corner cases
2. Avoid ASSERT for scan failure in FTM example

Closes https://github.com/espressif/esp-idf/issues/8127
2021-12-30 12:22:42 +05:30
Cao Sen Miao
d397464fc4 spi_flash: refactor spi_flash.h to esp_rom_spiflash.h but keep the content in spi_flash.h 2021-12-30 14:12:31 +08:00
morris
8e220f7bbe esp_rom: add README to describe the component layout 2021-12-30 14:05:12 +08:00
Cao Sen Miao
b0decda1e3 bootloader: move bootloader flash support to isolate folders 2021-12-30 14:05:12 +08:00
Cao Sen Miao
3a4db97cec spi_flash: move patch files to common rom patch folder 2021-12-30 14:05:12 +08:00
Cao Sen Miao
3dd1cfea18 spi_flash: refactor spi_flash.h to decline duplicated code 2021-12-30 14:05:12 +08:00
xiewenxiang
50748009e4 components/bt: Fix bluedroid compile issue 2021-12-30 11:54:47 +08:00
Levente Tamas
df2ae4689c fix fatfs_create_spiflash_image() feature (IDFGH-6383)
Open the files in binary mode, and remove the redundant encode
2021-12-30 00:22:13 +02:00
Sudeep Mohanty
6a2a6e4220 Merge branch 'feature/remove-depricated-cpu-util-functions' into 'master'
esp_hw_support: Removed deprecated CPU util functions

Closes IDF-2868

See merge request espressif/esp-idf!16391
2021-12-29 16:44:17 +00:00
songruojing
e0bc3a923c esp8684: support GPIO peripheral, IO_MUX, GPIO matrix.
Generic GPIO example and GPIO unit test on esp8684 are both supported as well.
2021-12-29 22:01:45 +08:00
Marius Vikhammer
a9a7160cb6 MPI: add kconfig option for doing intr-based exp-mod operations 2021-12-29 18:55:48 +08:00
José Simões
dd9fe9761a
Replace lwIP byte order functions with built-in functions 2021-12-29 09:49:18 +00:00
Kevin (Lao Kaiyao)
952b4d848f Merge branch 'bugfix/apll_coeff_calculate' into 'master'
i2s: impove the clock division calculation

Closes IDFGH-6283

See merge request espressif/esp-idf!16095
2021-12-29 09:35:13 +00:00
Simon
d204bf4651 Merge branch 'bugfix/usb_default_print_wifi' into 'master'
esp_phy: enable usb under default(without choosing USB_SERIAL_JTAG).

Closes IDFGH-6474

See merge request espressif/esp-idf!16504
2021-12-29 08:54:34 +00:00
Jiang Jiang Jian
95c02402be Merge branch 'bugfix/fix_task_wdt_timeout_when_ota_temporarily' into 'master'
heap: adjust the order of RTC memory heap caps and regions

See merge request espressif/esp-idf!16031
2021-12-29 08:49:44 +00:00
Jing Li
a0e794b2ca heap: adjust the order of RTC memory heap caps and regions 2021-12-29 08:49:42 +00:00
morris
1f06c1bd1b Merge branch 'feature/fast_gpio_esp32c2' into 'master'
fast gpio support on esp32c2/esp8684

See merge request espressif/esp-idf!16531
2021-12-29 07:01:41 +00:00
Wang Meng Yang
bc1a679052 Merge branch 'doc/update_document_of_demo_bt_discovery' into 'master'
Doc/update document of demo bt discovery

Closes BT-2133

See merge request espressif/esp-idf!16265
2021-12-29 06:07:19 +00:00
Chen Yu Dong
e8cfba0745 Merge branch 'bugfix/set_authmode_by_switching_number_to_string' into 'master'
CI: change ap authmode from number to string

Closes IDFCI-1019

See merge request espressif/esp-idf!16552
2021-12-29 04:27:37 +00:00
Xie Wen Xiang
446ec9dc65 Merge branch 'bugfix/fix_bluedroid_ble50_adv_data_length_issue' into 'master'
Bugfix/fix bluedroid ble50 adv data length issue

See merge request espressif/esp-idf!16565
2021-12-29 03:57:45 +00:00
laokaiyao
4f28b33bbc apll: add lock for apll 2021-12-29 10:13:13 +08:00
laokaiyao
af4e448928 i2s: impove the clock division calculation
Reported from: https://esp32.com/viewtopic.php?f=25&t=24542&p=87595#p87595
2021-12-29 10:13:13 +08:00
Sudeep Mohanty
e22b4007d3 esp_hw_support: Removed deprecated CPU util functions
The following files were deleted:
- components/esp_hw_support/include/soc/cpu.h
- components/soc/esp32s3/include/soc/cpu.h

The following functions are deprecated:
- get_sp()

The following functions declared in soc/cpu.h are now moved to esp_cpu.h:
- esp_cpu_configure_region_protection()

The following functions declared in soc/cpu.h are now moved to components/xtensa/include/esp_cpu_utils.h:
- esp_cpu_process_stack_pc()

All files with soc/cpu.h inclusion are updated to include esp_cpu.h instead.

Signed-off-by: Sudeep Mohanty <sudeep.mohanty@espressif.com>
2021-12-28 16:58:37 +05:30
xiewenxiang
54298708fe component/bt: Support set HW CCA threshold value 2021-12-28 18:15:18 +08:00
Mahavir Jain
355e8bba76 Merge branch 'feature/s3_rng' into 'master'
Bootloader add rng sampling

Closes IDF-1878 and IDF-4417

See merge request espressif/esp-idf!15737
2021-12-28 04:24:12 +00:00
morris
5624dffc52 Merge branch 'contrib/github_pr_8139' into 'master'
ledc.h - fix extern "C" to include ledc_cb_register() (GitHub PR)

Closes IDFGH-6484

See merge request espressif/esp-idf!16557
2021-12-28 03:50:22 +00:00
xiewenxiang
04328cf384 component/bt: fix periodic adv parameters detection issue 2021-12-28 11:29:41 +08:00
morris
f028107359 fast_gpio: support esp32c2/esp8684 2021-12-28 10:18:18 +08:00
morris
1a9dbf9e2f bootloader: print MMU info after 2nd bootloader banner 2021-12-28 10:12:57 +08:00
Guo Jia Cheng
f79602c65b Merge branch 'feature/update_openthread_lib' into 'master'
openthread: fix rcp version, update openthread lib and submodule

See merge request espressif/esp-idf!16544
2021-12-28 02:00:57 +00:00
Mahavir Jain
a5227db2a7 Merge branch 'bugfix/Wsign_conversion_compatibility' into 'master'
freertos: fix build warnings with -Wsign-conversion CFLAG

Closes IDFGH-2901

See merge request espressif/esp-idf!15311
2021-12-27 12:58:02 +00:00
huchaoru
675a9f95fc CI: change ap authmode from number to string 2021-12-27 19:55:56 +08:00
Jiang Jiang Jian
d95b56a435 Merge branch 'bugfix/rrm_dpp_task_delete' into 'master'
wpa_supplicant: Correct task deletion for RRM and DPP tasks

Closes IDFGH-5688

See merge request espressif/esp-idf!14940
2021-12-27 10:26:33 +00:00
Ivan Grokhotkov
8b6ff2299a Merge branch 'bugfix/modbus_port_fix_lgpl_licensed_files' into 'master'
freemodbus: fix port contains lgpl licensed files

Closes IDF-4317

See merge request espressif/esp-idf!16130
2021-12-27 10:01:27 +00:00
Mahavir Jain
5968bf6b0c Merge branch 'wifi_prov_mgr/service_key_check' into 'master'
wifi_prov_mgr: Added check for passphrase length in softAP scheme

Closes IDFGH-6404

See merge request espressif/esp-idf!16545
2021-12-27 09:34:24 +00:00
Omar Chebib
b54f7aa7b4 Merge branch 'bugfix/uart_no_int_after_flush' into 'master'
UART: RX interrupts are now properly restored after a flush

Closes IDF-4374

See merge request espressif/esp-idf!16328
2021-12-27 08:56:00 +00:00
Harshit Malpani
2c84db95d2 freertos: fix build warnings with -Wsign-conversion CFLAG
Closes https://github.com/espressif/esp-idf/issues/4946
2021-12-27 13:31:34 +05:30
Cao Sen Miao
f82ab4c757 usb_serial_jtag: can print when wifi enabled by default
Closes https://github.com/espressif/esp-idf/issues/8131
2021-12-27 14:52:07 +08:00
Mahavir Jain
d9b71e7c5d Merge branch 'bugfix/memprot_debug_mode_c3' into 'master'
memprot: fix debug mode check for ESP32-C3

See merge request espressif/esp-idf!16529
2021-12-27 06:51:44 +00:00
Jakob Hasse
64a355eba8 feat (bootloader): added rng sampling
Set maximum RNG query frequency to save value known from tests
2021-12-27 13:59:20 +08:00
Laukik Hase
5261d7adf1 wifi_prov_mgr: Added check for passphrase length in softAP scheme
Closes https://github.com/espressif/esp-idf/issues/8063
2021-12-27 10:57:50 +05:30
Omar Chebib
708e3b6ec0 UART: RX interrupts are now properly restored after a flush
Added a unit test to make sure the expected behavior happens
2021-12-27 12:31:25 +08:00
zhangwenxu
1b8e55d730 openthread: fix rcp version, update openthread lib and submodule 2021-12-27 12:13:53 +08:00
Michael (XIAO Xufeng)
322a0beb87 Merge branch 'bugfix/sdio_slave_dma_desc_int' into 'master'
sdio_slave: Fixed the issue that DMA descriptors allocated to non-DMA capable area

See merge request espressif/esp-idf!16159
2021-12-27 03:10:52 +00:00
Ivan Grokhotkov
2dd6b66375 Merge branch 'contrib/github_pr_8107' into 'master'
Fix GDB backtraces in optimized builds (GitHub PR)

Closes IDFGH-6444

See merge request espressif/esp-idf!16436
2021-12-24 11:47:34 +00:00
Ivan Grokhotkov
a13fcc00db Merge branch 'bugfix/freertos_appcpu_int_disable' into 'master'
freertos: ensure interrupts are disabled before enabling tick timer

See merge request espressif/esp-idf!16460
2021-12-24 11:45:07 +00:00
Omar Chebib
28f08197e3 Merge branch 'bugfix/fatfs_volumes_crash' into 'master'
FATFS: fix system crash when mounting more than 2 volumes

See merge request espressif/esp-idf!16435
2021-12-24 10:39:25 +00:00
Kapil Gupta
69e404e7b8 wpa_supplicant: Correct task deletion for RRM and DPP tasks
Closes https://github.com/espressif/esp-idf/issues/7409
2021-12-24 13:52:29 +05:30
Robin Krens
08acf7979b spacing styling correction 2021-12-24 16:21:06 +08:00
Robin Krens
8d5a823a41 minor styling changes 2021-12-24 16:20:44 +08:00
Robin Krens
ba5f19e5b1 esp_hid: fix output report char declaration
Current issue: output reports sent by Windows not received.
The report characteristic declaration should also support write without
response as specified by HIDS profile:
See https://www.bluetooth.com/specifications/GATT/ (page 14)
2021-12-24 16:20:31 +08:00
jincheng
b7a99614a1 fix on esp_hidh report map length checking function
Closes https://github.com/espressif/esp-idf/issues/7586
2021-12-24 15:21:48 +08:00
Jiang Jiang Jian
2e06f1fee5 Merge branch 'bugfix/install_key_refactor' into 'master'
esp_wifi: refactor key install code

Closes WIFI-4014

See merge request espressif/esp-idf!14878
2021-12-24 06:56:41 +00:00
Zhang Wen Xu
048efc3e14 Merge branch 'support/ot_br_connect_wifi_using_console_input' into 'master'
openthread:support config wifi connect using console

See merge request espressif/esp-idf!16227
2021-12-24 05:31:13 +00:00
morris
0afafb743d Merge branch 'bugfix/app_compatible_with_3_1_bootloader' into 'master'
esp_system: Fix RTC_WDT protection in esp_restart_noos

See merge request espressif/esp-idf!16480
2021-12-24 03:43:52 +00:00
Jiang Jiang Jian
d7b83208c1 Merge branch 'bugfix/wpa3_memory_leak' into 'master'
esp_wifi: Fixes memory leak in wpa3.

Closes WIFI-4196

See merge request espressif/esp-idf!16520
2021-12-24 03:15:01 +00:00
Kevin (Lao Kaiyao)
4586bd7ec8 Merge branch 'bugfix/i2s_receive_data_lost' into 'master'
i2s: fix message queue overflow condition

Closes IDFGH-5854

See merge request espressif/esp-idf!15551
2021-12-24 03:12:12 +00:00
zhangwenxu
91f54c673d openthread: add a manual mode in Thread border router example 2021-12-24 11:09:51 +08:00
Omar Chebib
a37bf7753a Merge branch 'refactor/remove_task_snapshot_header_inclusion' into 'master'
FreeRTOS: Remove task_snapshot inclusion from task.h

Closes IDF-3683

See merge request espressif/esp-idf!16224
2021-12-24 02:21:28 +00:00
Emil Muratov
d4de08182e ledc.h - fix extern "C" to include ledc_cb_register() 2021-12-24 02:05:43 +03:00
Ivan Grokhotkov
6a37b41df8 memprot: fix debug mode check
Regression from dd938eb9, the fault injection check was always failing
in debug mode.
2021-12-23 16:39:12 +01:00
Mahavir Jain
3bd5ae6b78 Merge branch 'bugfix/rtc_section_alignment' into 'master'
System: fix RTCFAST section alignment

See merge request espressif/esp-idf!16513
2021-12-23 14:31:04 +00:00
Kapil Gupta
0336584f3e esp_wifi: Refactor key install code 2021-12-23 21:31:31 +08:00
Li Qi Gan
c3c37b95e7 Merge branch 'bugfix/fix_spp_open_err_bda' into 'master'
Component_bt/Fix SPP acceptor open with wrong remote address

Closes BT-2205

See merge request espressif/esp-idf!16503
2021-12-23 12:29:31 +00:00
Song Ruo Jing
7f5e93a582 Merge branch 'bugfix/remove_ref_tick_on_s3' into 'master'
ledc: Remove REF_TICK as a supported clock source for LEDC driver on S3

See merge request espressif/esp-idf!16408
2021-12-23 12:21:01 +00:00
Martin Vychodil
16891e7a6c System: fix RTCFAST section alignment
This bugfix contains 3 fixes:
1. .rtc_dummy section is removed (not needed for C3)
2. .rtc_text section is padded with 16B for possible CPU prefetch
3. .rtc_text section is aligned to 4B boundary to comply with PMS Memprot requirements
2021-12-23 19:58:39 +08:00
laokaiyao
45ea21e8a0 doc: add application notes for i2s 2021-12-23 18:59:56 +08:00
laokaiyao
c74b2e8635 i2s: fix the wrong condition of event queue 2021-12-23 18:59:56 +08:00
Ondrej Kosta
1150a11c56 Fixed ESP32 EMAC driver insufficient TX buffer size which could followed esp_eth_stop and esp_eth_start sequence 2021-12-23 10:48:38 +01:00
aditi_lonkar
1eeac4943c esp_wifi: Fixes memory leak in wpa3 connection. 2021-12-23 12:26:58 +05:30
morris
8f2199cd88 timer: unit test and doc update for esp8684 2021-12-23 11:54:41 +08:00
morris
4ed33afc3f timer: stop alarm if alarm value doesn't change in ISR handler
Alarm will be disabled by hardware when alarm event happend.
In the ISR, if auto-reload is enabled, we should re-enable the alarm.
If the alarm target value is changed in user's callback,
the alarm will be reenabled as well.

Closes https://github.com/espressif/esp-idf/issues/7001
Closes https://github.com/espressif/esp-idf/issues/8095
2021-12-23 11:39:32 +08:00
morris
2c810f8451 timer: save alarm value in driver layer 2021-12-23 11:39:32 +08:00
morris
b170aba93a timer: fix wrong kconfig soc caps 2021-12-23 11:39:32 +08:00
Wang Meng Yang
91e81877d2 Merge branch 'bugfix/scannable_adv_duration_estimation' into 'master'
[Coexistence]: fixed BLE scannable extended adv performance issue in case of Wi-Fi coexistence

Closes BT-1607

See merge request espressif/esp-idf!16438
2021-12-22 14:45:10 +00:00
liqigan
cccd22a080 fix SPP open with wrong remote bd_addr 2021-12-22 17:04:58 +08:00
liqigan
66e88fbdbe clear old event bits when malloc a slot 2021-12-22 16:44:51 +08:00
Jiang Jiang Jian
acee790f98 Merge branch 'bugfix/fix_heap_memory_corruption' into 'master'
Heap: Fix a bug in the TLSF allocator

See merge request espressif/esp-idf!16296
2021-12-22 08:35:07 +00:00
Mahavir Jain
1f435b4703 Merge branch 'feature/mbedtls_dynamic_memory' into 'master'
fix(mbedtls): fix compiling error when open MBEDTLS_SSL_PROTO_DTLS and disable...

Closes IDFGH-6437

See merge request espressif/esp-idf!16471
2021-12-22 08:19:14 +00:00
wangmengyang
219bffce9f component/bt: fixed coexistence scannable extended adv performance issue 2021-12-22 10:55:33 +08:00
Michael (XIAO Xufeng)
ad90373a69 sdio_slave: fixed the issue DMA desc not capable 2021-12-22 01:34:38 +08:00
David Čermák
2c0d760816 Merge branch 'bugfix/mdns_network_socket_err_prints' into 'master'
mdns: Minor err print fix in socket-networking layer (GitHub PR)

Closes IDFGH-6447 and IDFGH-6434

See merge request espressif/esp-idf!16427
2021-12-21 13:59:01 +00:00
Ivan Grokhotkov
1cbea5a504 Merge branch 'feature/espefuse_adds_args_to_execute_scripts_cmd' into 'master'
esptool/espefuse: execute_scripts can be run nested way

See merge request espressif/esp-idf!16411
2021-12-21 12:24:06 +00:00
Martin Válik
4f7c36d859 Merge branch 'feature/usb-msc' into 'master'
USB MSC class

Closes IDFGH-4584

See merge request espressif/esp-idf!14573
2021-12-21 10:22:54 +00:00
Kapil Gupta
826aee5683 Merge branch 'bugfix/wps_fixes' into 'master'
wpa_supplicant: Add WPS Fixes

Closes WIFI-4185

See merge request espressif/esp-idf!16331
2021-12-21 09:17:30 +00:00
Mahavir Jain
2264f4d9b8 Merge branch 'feature/memprot_api_unified_c3' into 'master'
Memprot API unified - ESP32C3

Closes IDF-3849

See merge request espressif/esp-idf!15086
2021-12-21 08:45:33 +00:00
Li Jingyi
2b1402890d fix(mbedtls): fix compiling error when open MBEDTLS_SSL_PROTO_DTLS and disable MBEDTLS_SSL_PROTO_DTLS when open MBEDTLS_DYNAMIC_BUFFER 2021-12-21 16:11:03 +08:00
Omar Chebib
fcd11ba125 FreeRTOS: Remove task_snapshot inclusion from task.h
Remove ESP's addition of task_snapshot.h from task.h. This line was
added previously for backward compatibility. For IDF v5.0, this can
be removed.
2021-12-21 07:10:22 +00:00
Michael (XIAO Xufeng)
59f3d98d45 Merge branch 'feat/support_mxic_unlock' into 'master'
spi_flash: support unlock MXIC flash chips

Closes IDF-3575

See merge request espressif/esp-idf!15238
2021-12-21 07:09:57 +00:00
Mahavir Jain
c408aa397e Merge branch 'feature/mbedtls-2.16.12-integration' into 'master'
mbedtls: upgrade to release v2.16.12

Closes IDF-4463

See merge request espressif/esp-idf!16442
2021-12-21 07:03:02 +00:00
KonstantinKondrashov
ff96769b0e esp_system: Fix RTC_WDT protection in esp_restart_noos
Fixed issue - v4.3 app not compatible with 3.1 bootloader
2021-12-21 14:48:14 +08:00
Jiang Jiang Jian
ae63455164 Merge branch 'bugifx/nimble_timer_memory_leak' into 'master'
[NimBLE]: Fixed memory leak of timer during NimBLE Host start-stop process

Closes BT-2142

See merge request espressif/esp-idf!16430
2021-12-21 04:31:28 +00:00
Guo Jia Cheng
cfd2d177be Merge branch 'feature/mdns-always-announce-address' into 'master'
mdns: always send A/AAAA records in announcements

See merge request espressif/esp-idf!16254
2021-12-21 04:09:29 +00:00
songruojing
8e3bc160bc ledc: Remove REF_TICK as a supported clock source for LEDC driver on esp32s3 2021-12-21 11:43:18 +08:00
baohongde
d4aeef6ced components/bt: Update the document of demo bt discovery 2021-12-21 10:54:54 +08:00
Martin Vychodil
dd938eb952 System/Security: Memprot API unified (ESP32C3)
Unified Memory protection API for all PMS-aware chips (ESP32C3)

Closes JIRA IDF-3849
2021-12-21 01:50:36 +01:00
Ivan Grokhotkov
5d32e80ea7 freertos: ensure interrupts are disabled before enabling tick timer
xPortStartScheduler calls vPortSetupTimer -> _frxt_tick_timer_init,
which enables tick timer interrupt and sets up the first timeout.
From that point on, the interrupt can fire. If the interrupt happens
while _frxt_dispatch is running, the scheduler will enter an infinite
loop. This is because _frxt_dispatch isn't supposed to be preemptable,
and the tick interrupt will overwrite some of the registers used by
_frxt_dispatch.
Note that this situation doesn't practically occur on the real
hardware, where the execution of vPortSetupTimer and _frxt_dispatch
happens quickly enough. However it can be reproduced on an emulator
if the tick period is set to 1ms.

Add an explicit call to portDISABLE_INTERRUPTS in xPortStartScheduler
to guarantee that _frxt_dispatch doesn't run with interrupts enabled.
This is similar to the esprv_intc_int_set_threshold(1); call in
RISC-V version of port.c.
2021-12-20 17:25:56 +01:00
Kapil Gupta
14b949077d wpa_supplicant: Add WPS Fixes
Add following bugfixes

1. Station not able to connect when WPS pin is pressed first on AP.
2. PBC overlap getting detected for selected registrar PIN APs.
3. Station not considering authorised MACs for PIN method.
4. For PIN methodm If no AP is found, station will loop through
   APs in its vicinity and try to do WPS with them one by one till
   WPS timeout occurs. This is for some APs which do not set
   selected registrar correctly.
2021-12-20 17:34:30 +05:30
Martin Valik
73dce765d5 USB: added MSC Host Driver with VFS support
Closes https://github.com/espressif/esp-idf/issues/6401
2021-12-20 12:39:45 +01:00
Guo Jia Cheng
5fdbd40404 Merge branch 'bugfix/mdns-query-instance-filter' into 'master'
mdns: filter instance name for ANY queries

See merge request espressif/esp-idf!16255
2021-12-20 10:38:19 +00:00
Michael (XIAO Xufeng)
9894019909 bootloader: support unlock MXIC flash chips 2021-12-20 18:01:12 +08:00
Wang Mengyang
5e95537f9c component/bt/host/nimble: fixed memory leak due to timer not destroyed during NimBLE host start-stop 2021-12-20 15:49:14 +08:00
Mahavir Jain
36c712368d mbedtls: upgrade to release v2.16.12
For release notes, please refer to:
https://github.com/ARMmbed/mbedtls/releases/tag/v2.16.12
2021-12-20 10:28:14 +05:30
Mahavir Jain
bcadeeb7d3 mbedtls: small documentation update 2021-12-20 10:27:44 +05:30
Marius Vikhammer
c2d00810a6 Merge branch 'feature/esp8684_doc_build' into 'master'
docs: update docs to be able to build with esp8684

Closes IDF-4313

See merge request espressif/esp-idf!15849
2021-12-20 03:32:28 +00:00
Omar Chebib
1bad4f18ed FATFS: fix system crash when mounting more than 2 volumes
* Fixes https://github.com/espressif/esp-idf/issues/7513
2021-12-20 03:16:18 +00:00
Omar Chebib
95d0514c57 Heap: Add a target test to check that TLFS allocates the requested size 2021-12-20 11:10:16 +08:00
Omar Chebib
9516fd09c2 Heap: Fix a possible bug in the TLSF allocator
Fix a bug that could return a chunk of memory smaller than requested,
easily leading to a memory corruption, when the required memory alignment
passed to the allocator is 4.
2021-12-20 10:57:43 +08:00
Marius Vikhammer
82325f6037 docs: update docs to be able to build with esp8684 2021-12-20 10:32:49 +08:00
morris
c14638878b Merge branch 'bugfix/dedic_gpio_initial_occupy_mask' into 'master'
fast_gpio: fix wrong initial occupy mask

See merge request espressif/esp-idf!16219
2021-12-18 05:39:53 +00:00
Ivan Grokhotkov
b5d17f85a8 Merge branch 'bugfix/stdatomic_sync_op_and_fetch' into 'master'
newlib: stdatomic: implement missing "op_fetch", "nand" builtins

Closes IDF-4397

See merge request espressif/esp-idf!16404
2021-12-17 14:42:57 +00:00
Dániel Buga
a02d1e35ee Allow enabling task function wrappers in more cases 2021-12-17 11:17:21 +01:00
Jakob Hasse
7c7fbb1fd0 Merge branch 'feature/i2c_cxx_improve' into 'master'
I2C C++ Several improvements, breaking changes

See merge request espressif/esp-idf!16102
2021-12-17 09:45:27 +00:00
David Čermák
8caa8195d4 Merge branch 'bugfix/mdns_null_deref_fuzzer' into 'master'
mdns: Fix potential null deref reported by fuzzer test

See merge request espressif/esp-idf!16299
2021-12-17 09:37:55 +00:00
caffreyfans
08e081340d Add mDNS miss comment 2021-12-17 16:39:43 +08:00
caffreyfans
119b4a9dd1 Fix mDNS memory leak 2021-12-17 16:21:21 +08:00
caffreyfans
f5ffd53aeb Fix mDNS memory leak 2021-12-17 16:05:38 +08:00
morris
e8c5f8656b fast_gpio: fix wrong initial occupy mask 2021-12-17 15:49:44 +08:00
Jakob Hasse
7572f75d6b refactor (cxx)!: I2C C++ classes use strong value types now
Added host-based I2C C++ unit tests

BREAKING CHANGE: I2C C++ interface changes, raw values for
    arguments are mostly not allowed anymore.
2021-12-17 14:05:52 +08:00