Commit Graph

18130 Commits

Author SHA1 Message Date
Marius Vikhammer
4ddbaa4166 linux target: add support for building esp_hw_support, soc and hal components for linux target 2022-12-09 13:59:39 +08:00
chenjianhua
2afe5cdc76 bluedroid: add config for GAP service and periodic adv sync transfer 2022-12-09 13:28:31 +08:00
chenjianhua
702e06e09e bluedroid: add internal GATT API for PTS 2022-12-09 13:28:31 +08:00
chenjianhua
fa06476806 bluedroid: add config for robust caching and RPA timeout 2022-12-09 13:28:31 +08:00
chenjianhua
238d1375a8 bluedroid: support GATT robust caching feature 2022-12-09 13:28:31 +08:00
chenjianhua
f4cd0b687d bluedroid: support GATT services database hash calculate 2022-12-09 13:28:31 +08:00
chenjianhua
4a487a6a5c bluedroid: support periodic advertising sync transfer cmd 2022-12-09 13:28:31 +08:00
chenjianhua
6f0d34d323 bluedroid: support LE L2CAP credit based connection 2022-12-09 13:28:31 +08:00
chenjianhua
2048322429 bluedroid: support oob pairing for smp secure connection 2022-12-09 13:28:31 +08:00
Wang Meng Yang
7d7a710b60 Merge branch 'feature/report_acl_conn_cmp_stat_to_app' into 'master'
feature/report ACL link related events to application

Closes BT-2097 and BT-1863

See merge request espressif/esp-idf!19276
2022-12-09 13:10:52 +08:00
morris
62f1cbca2c gpio: support glitch filter 2022-12-09 11:33:42 +08:00
morris
2b9d3a37ee twai: fix coverity warnings 2022-12-09 11:33:42 +08:00
jofrev
60767c234d Set errno in adjtime if delta is too large
errno should be set to EINVAL in this case according to adjtime's man
page.
2022-12-08 22:35:50 +00:00
jofrev
1005b45ca8 Set errno in adjtime if newlib time funcs are not implemented
Other time functions (e.g. settimeofday) set errno to ENOSYS if
IMPL_NEWLIB_TIME_FUNCS is not set.
adjtime should probably do the same.
2022-12-08 22:34:49 +00:00
Rahul Tank
4bf8886042 Nimble: Support maximum number of connections to 9 on ESP32-C3 and ESP32-S3 2022-12-08 17:23:15 +05:30
Wu Zheng Hui
46917a87ba Merge branch 'bugfix/unstall_other_cpu_on_core_reset' into 'master'
bugfix: unstall other cpu on core reset

Closes IDFGH-8902

See merge request espressif/esp-idf!21495
2022-12-08 18:53:36 +08:00
Nathan Phillips
2d047f5439 Fix type of cast 2022-12-08 10:51:16 +00:00
Nathan Phillips
260fd5c5a5 Explicitly log an invalid digest in DS data 2022-12-08 10:33:59 +00:00
Nathan Phillips
057f5cb120 Distinguish 4 identical log messages
Say which certificate couldn't be parsed in each one.
2022-12-08 10:31:28 +00:00
Wan Lei
35a749a76e Merge branch 'test/re-enable_unit-test' into 'master'
test: re-enable some test cases of spi for esp32c2 and c6

Closes IDF-5146

See merge request espressif/esp-idf!21052
2022-12-08 17:54:04 +08:00
zwj
b5a6e9a528 Fixed some memory was not released after bluetooth controller initialization failed on ESP32-C3 and ESP32-S3 2022-12-08 17:26:14 +08:00
Song Ruo Jing
6f4d1ea436 Merge branch 'feature/esp32c6_ledc_support' into 'master'
ledc: Add basic support for esp32c6

Closes IDF-5328

See merge request espressif/esp-idf!21387
2022-12-08 16:07:46 +08:00
Vilem Zavodny
1303a7ceee Merge branch 'feature/support_rotating_lcd_ssd1306_1' into 'master'
Support rotation SSD1306, changed example for using LVGL port component and added SH1107 LCD support.

See merge request espressif/esp-idf!21196
2022-12-08 15:34:39 +08:00
wuzhenghui
0d345c814a bugfix: unstall other cpu on core reset
- Closes https://github.com/espressif/esp-idf/issues/10320
2022-12-08 15:30:39 +08:00
Darian Leung
486cc33fb3 freertos: Refactor port common functions
This commit refactors port_common.c so that it only contains implementation of
FreeRTOS port functions that are common to all FreeRTOS ports (i.e., on all
architectures and on all FreeRTOS implementations).
2022-12-08 01:57:30 +08:00
Darian Leung
09690906e7 freertos: Refactor OS startup functions
This commit refactors the OS startup functions as follows:

- Moved the OS/app startup functions listed below to "app_startup.c". Their
    implementations are now common to all ports (RISC-V and Xtensa) of all
    FreeRTOS implementations (IDF and Amazon SMP).
    - esp_startup_start_app()
    - esp_startup_start_app_other_cores()
- Removed esp_startup_start_app_common() as app startup functions are now
    already common to all ports.
- Added extra logs to "main_task" to help with user debugging

Note: Increased startup delay on "unity_task". The "unity_run_menu()" is non
blocking, thus if the main task or other startup tasks have not been freed
by the time "unity_run_menu()" is run, those tasks will be freed the next time
"unity_task" blocks. This could cause some tests to have a memory leak, thus
the "unity_task" startup delay has increased.
2022-12-08 01:57:30 +08:00
Alexey Gerenkov
9ac90acd9e Merge branch 'feature/add_newlib_nano_build_support_for_clang' into 'master'
Newlib nano build support for clang

See merge request espressif/esp-idf!21056
2022-12-07 20:24:58 +08:00
Andrei Safronov
2c5a9494fe Merge branch 'bugfix/fix_gnu_asm_struct' into 'master'
xtensa: remove asm struct expressions in header files

See merge request espressif/esp-idf!18836
2022-12-07 20:21:31 +08:00
Song Ruo Jing
9402ab427b ledc: Add basic support for esp32c6 2022-12-07 18:40:50 +08:00
Jin Cheng
f2f6aef019 correct the SR_mode selection when konw nothing about Peripheral 2022-12-07 09:47:03 +00:00
Vilem Zavodny
8631e4544b lcd: Support rotation SSD1306 and changed example for using LVGL port component. 2022-12-07 09:04:17 +01:00
Guillaume Souchere
4d16f46a88 esp_system: fix placement of __stack_chk_fail from flash to RAM
When stack check is enabled, certain functions (sometimes placed in RAM)
are being decorated with stack guards and a call to __stask_chk_fail() in
case ofr stack corruption. For this reason, __stack_chk_fail() must be
placed in RAM too.

Add stack check config in heap tests on all targets to find eventual flash to RAM
calls due to stack checks when running callgraph_check.py
2022-12-07 08:49:12 +01:00
morris
5c06e9cf40 etm: update etm event task new API 2022-12-07 15:43:20 +08:00
C.S.M
c645c9ba06 Merge branch 'feature/add_esp32h2_system_support' into 'master'
ESP32H2: Add system support for ESP32H2

See merge request espressif/esp-idf!21460
2022-12-07 15:39:45 +08:00
David Čermák
1aa1e265ea Merge branch 'bugfix/tcp_transport_psram' into 'master'
Bugfix for tcp_transport CI psram issue

See merge request espressif/esp-idf!17127
2022-12-07 15:17:54 +08:00
zwj
e9bfaf9a41 Fixed some memory was not released after bluetooth controller initialization failed on ESP32 2022-12-07 15:04:39 +08:00
morris
9cce5849e8 Merge branch 'bugfix/usb_host_dwc_hal_chan_halt_race_condition' into 'master'
USB Host: Fix USB DWC HAL host channel halt race condition + Incorrect bmRequestType direction flag

Closes IDF-6348

See merge request espressif/esp-idf!21452
2022-12-07 14:27:13 +08:00
Mahavir Jain
a46223bc4e Merge branch 'bugfix/fix_esp_https_server_initialize' into 'master'
esp_https_server: Fix initializers missing in esp_https_server

Closes IDFGH-8885

See merge request espressif/esp-idf!21437
2022-12-07 14:18:31 +08:00
Sachin Parekh
e997038ab4 Merge branch 'esp32c6/bootloader_region_protection' into 'master'
esp32c6: Enable IRAM-DRAM split using PMP

Closes IDF-5642 and IDF-5684

See merge request espressif/esp-idf!21199
2022-12-07 13:45:46 +08:00
Mahavir Jain
bdd822970c Merge branch 'bugfix/add_check_for_coredump_encrypted_flag' into 'master'
coredump: add partition encrypted flag check for flash encryption case

See merge request espressif/esp-idf!21410
2022-12-07 11:52:49 +08:00
Cao Sen Miao
8cc9260f86 ESP32H2: Add system support for ESP32H2 2022-12-07 11:38:51 +08:00
wanlei
dd50bb2d50 test: enable multi-board test of spi for c6 2022-12-07 11:37:48 +08:00
wanlei
7f14f9e487 spi_slave_hd: fix c6 bringup issue of dma interrupt invokr bit 2022-12-07 11:37:48 +08:00
wanlei
5c099a2a49 test: re-enable some test cases of spi for esp32c2 2022-12-07 11:37:48 +08:00
morris
171b849831 Merge branch 'doc/esp_lcd_class_diagram' into 'master'
RGB LCD multi-framebuffer support

Closes IDF-5309, IDF-5939, and IDF-6336

See merge request espressif/esp-idf!20975
2022-12-07 11:25:15 +08:00
Wang Meng Yang
c9b4f1995a Merge branch 'bugfix/reduce_BTU_TASK_stack_consumption' into 'master'
Reduce the stack consumption of BTU_TASK

Closes BT-3022 and BT-2950

See merge request espressif/esp-idf!21433
2022-12-07 11:13:41 +08:00
liqigan
2198c3ed77 fix HID device can not remove virtually cabled device without a connection
Closes https://github.com/espressif/esp-idf/issues/10107
2022-12-07 10:36:42 +08:00
jincheng
228bf596dc Added reporting for ACL link related events to application 2022-12-07 02:33:55 +00:00
Marius Vikhammer
2f348d93c7 Merge branch 'feature/linux_heap' into 'master'
heap: add linux target support

Closes IDF-6000

See merge request espressif/esp-idf!21401
2022-12-07 09:28:36 +08:00
Alexey Gerenkov
002411b169 riscv: Use 'li' instead of 'la' for loading peripheral reg address 2022-12-06 21:54:50 +03:00
Zim Kalinowski
c73f1f1d02 Merge branch 'feature/qemu-efuse' into 'master'
efuse: enable qemu tests

Closes QEMU-73

See merge request espressif/esp-idf!21419
2022-12-07 01:47:36 +08:00
Sachin Parekh
7af998d23f esp32c6: Enable IRAM-DRAM split using PMP 2022-12-06 14:50:55 +00:00
Wang Meng Yang
7b1bbd59eb Merge branch 'bugfix/spp_vfs_memory_leak' into 'master'
Component_bt/fix esp_spp_vfs_register memory leak

Closes BT-2344

See merge request espressif/esp-idf!17909
2022-12-06 20:14:51 +08:00
Alexey Gerenkov
2710749f21 riscv: Remove asm struct expressions in header files 2022-12-06 13:35:27 +03:00
Darian Leung
c2bc34ee84 usb: Fix incorrect bmRequestType direction flag in USB Host Library
usb_host_transfer_submit_control() uses the incorrect bmRequestType direction
flag. Therefore, when doing a transfer check, all transfers were mistakenly
treated as OUT transfers (only affects transfer check and not actual transfer).
2022-12-06 18:10:45 +08:00
Darian Leung
d69d1aafaf hal: Fix USB DWC HAL host channel halt race condition
This commit fixes a race condtion bug with usb_dwc_hal_chan_request_halt()
where a channel the channel is halted if it has just completed a transfer
(i.e., finished processing a QTD with the "HOC" flag set) but the channel is
still pending interrupt handling. In this case...

- usb_dwc_hal_chan_request_halt() would simply read the channel's underlying
register, determine it is not active, not set the "halt_requested" flag, and
simply return true.
- The caller assumes of usb_dwc_hal_chan_request_halt() will assume that the
channel has halted, and may proceed to reconfigure the pipe/port
- When usb_dwc_hal_chan_decode_intr() comes to process the pending interrupt
it will simply return USB_DWC_HAL_CHAN_EVENT_CPLT not knowing a halt has been
requested.

This commit updates the implementation of usb_dwc_hal_chan_request_halt() so
that a halt is properly requested even if the underlying channel has already
physically halted.
2022-12-06 18:08:54 +08:00
Alexey Gerenkov
893cc19f75 tools: Adds newlib nano support for clang builds 2022-12-06 12:33:09 +03:00
Shen Wei Long
67507baf37 Merge branch 'feature/add_comments_for_bt_connections_master' into 'master'
Explain how much memory that will be used by each connection/advertiser.

See merge request espressif/esp-idf!21321
2022-12-06 16:55:26 +08:00
Jiang Jiang Jian
8223a59183 Merge branch 'feat/espnow_rx_cb_opt' into 'master'
esp_wifi: upload more pkt info for espnow rx cb

Closes WIFI-4754

See merge request espressif/esp-idf!18261
2022-12-06 16:33:16 +08:00
Jiang Guang Ming
454aeb3a48 Merge branch 'feature/add_new_caps_for_rom_has_regi2c_bug' into 'master'
esp_rom: add ESP_ROM_HAS_REGI2C_BUG in rom caps

See merge request espressif/esp-idf!21418
2022-12-06 16:04:21 +08:00
Marius Vikhammer
6bd0be3e92 Merge branch 'bugfix/freertos_port_miss_header' into 'master'
freertos: add missing header include for esp_chip_info.h to port.c

Closes IDFGH-8889

See merge request espressif/esp-idf!21456
2022-12-06 12:46:54 +08:00
Marius Vikhammer
ea249dc3a6 freertos: add missing header include for esp_chip_info.h to port.c
Closes https://github.com/espressif/esp-idf/issues/10310
2022-12-06 11:31:15 +08:00
morris
8c7e8f2811 doc: add api reference for controller lcd drivers 2022-12-06 11:12:28 +08:00
morris
18545e9abe lcd: support multi framebuffers for RGB LCD driver 2022-12-06 11:12:28 +08:00
Marius Vikhammer
36cb08c379 heap: add linux target support
Add wrappers for public heap API for the linux target.
2022-12-06 10:49:59 +08:00
Andrei Safronov
9d257054c8 xtensa: remove asm struct expressions in header files 2022-12-05 22:00:07 +03:00
Jakob Hasse
91f04aa877 refactor(nvs): custom allocator for all objects allocated in NVS 2022-12-05 18:59:33 +01:00
jiangguangming
d65913d279 esp_psram: update esp_psram s2/s3 Kconfig description 2022-12-05 15:07:29 +00:00
Jessy Chen
45ead31bd5 esp_wifi: upload more wifi pkt info in rx callback for espnow & csi 2022-12-05 22:30:08 +08:00
Jiang Jiang Jian
6419436684 Merge branch 'bugfix/skip_sae_during_wps' into 'master'
esp_wifi: Add changes to skip SAE handshake during WPS connection

Closes ESPCS-875

See merge request espressif/esp-idf!21369
2022-12-05 22:26:45 +08:00
xiongweichao
9d56c4c215 Assert when malloc user_data fail 2022-12-05 20:30:45 +08:00
xiongweichao
6bce9b7029 Fixed memory leak when SPP initialization failed 2022-12-05 20:30:45 +08:00
xiongweichao
4a702a2011 Added esp_spp_vfs_unregister() to free memory allocated by esp_spp_vfs_register() 2022-12-05 20:30:43 +08:00
Ondrej Kosta
84ab32b4ef Merge branch 'bugfix/emac_memory_leak' into 'master'
Fixed false positive emac rx memory leak reported by Coverity

Closes IDF-6363

See merge request espressif/esp-idf!21341
2022-12-05 20:04:15 +08:00
Ondrej Kosta
600788da6a Merge branch 'contrib/github_pr_10292' into 'master'
fix small bug when logging eth error (GitHub PR)

Closes IDFGH-8869

See merge request espressif/esp-idf!21407
2022-12-05 17:58:37 +08:00
Zim Kalinowski
d4d76e1f5c efuse: enable qemu tests 2022-12-05 10:54:39 +01:00
C.S.M
7e12197324 Merge branch 'feature/add_esp32h2_g0_support' into 'master'
ESP32-H2: Last MR for g0 component support, (only hal left)

See merge request espressif/esp-idf!21364
2022-12-05 17:32:21 +08:00
C.S.M
6b1d4b4d49 ESP32-H2: Last MR for g0 component support, (only hal left) 2022-12-05 17:32:21 +08:00
yuanjianmin
5862a64d1c esp_https_server: Fix initializers missing in esp_https_server
Closes https://github.com/espressif/esp-idf/issues/10306
2022-12-05 17:19:58 +08:00
zwj
e5a45f00e4 Reduce the stack consumption of BTU_TASK 2022-12-05 17:01:48 +08:00
Mahavir Jain
26e3f0bfbe Merge branch 'feature/http_request_cancel' into 'master'
Cancel an HTTP request

Closes IDFGH-8426

See merge request espressif/esp-idf!21171
2022-12-05 16:06:14 +08:00
Jiang Jiang Jian
f27a95c1f3 Merge branch 'feature/wps_registrar_example' into 'master'
WiFi: Add softAP WPS registrar example and events

See merge request espressif/esp-idf!18450
2022-12-05 16:04:43 +08:00
Jiang Jiang Jian
12180da408 Merge branch 'contrib/github_pr_9529' into 'master'
component_bt: Fixed memory leak due to not freeing memory if posting a message to a thread fails

See merge request espressif/esp-idf!19463
2022-12-05 15:37:02 +08:00
Jiang Jiang Jian
4bd1e3fd0f Merge branch 'optimization/lwip_dns_ipv4_ipv6_timer' into 'master'
lwip:optimization dns ipv4 ipv6 timer

Closes AUD-4073

See merge request espressif/esp-idf!20963
2022-12-05 15:04:27 +08:00
Euripedes Rocha
88844e1504 tcp_transport: Adjust test task priorities.
Raise the listener task priority to be higher than runner task priority.
2022-12-05 07:02:28 +00:00
jiangguangming
7db7269a92 esp_rom: patch systimer_hal_init/deinit for esp32h2 rom 2022-12-04 11:23:30 +08:00
jiangguangming
f9b6e25b55 esp_rom: update CMakeList.txt 2022-12-04 11:23:30 +08:00
jiangguangming
9e3ba8d061 esp_rom: update esp32h2 rom caps 2022-12-04 11:23:30 +08:00
jiangguangming
66a0cedf5a esp_rom: add ESP_ROM_HAS_REGI2C_BUG in rom caps 2022-12-03 21:48:57 +08:00
Abhik Roy
c92f5faa70 components/lwip: Add menuconfig option to enable NAPT debugging,
removed L2_TO_L3_COPY in LWIP Kconfig,
Also added DHCP server start log.
2022-12-02 21:57:53 +05:30
Ondrej
647a9dfde3 Improved emac rx task code to suppress Coverity false positive memory leak indication 2022-12-02 12:57:43 +00:00
Jakob Hasse
88fa51951c Merge branch 'feature/unity_test_runner_linux' into 'master'
refactor(unity): made unity runner compatible with Linux target

See merge request espressif/esp-idf!21195
2022-12-02 20:10:43 +08:00
Mahavir Jain
12b977dba6
coredump: add partition encrypted flag check for flash encryption case
Ref: https://esp32.com/viewtopic.php?f=13&t=30752
2022-12-02 17:15:01 +05:30
Kapil Gupta
924c709efe WiFi: Add WPS softAP registrar example and events 2022-12-02 15:12:25 +05:30
Jiang Jiang Jian
a6982a92fe Merge branch 'bugfix/fix_softap_beacon_memory_leak_issue' into 'master'
esp_wifi: fix softap beacon memory leak issue

Closes WIFI-4961, IDFGH-7780, and ESPCS-878

See merge request espressif/esp-idf!21079
2022-12-02 17:39:24 +08:00
chenjianhua
c37184aa85 bluedroid: fix encrypt keysize of GATT characteristic permission 2022-12-02 15:10:39 +08:00
Shen Weilong
b3d248df95 Explain how mush memory that will be used by each connection/advertiser. 2022-12-02 14:21:22 +08:00
Harshit Malpani
6de9e42122
esp_http_client: Add feature to cancel an HTTP request
Closes: https://github.com/espressif/esp-idf/issues/9892
2022-12-02 11:36:28 +05:30
Armando (Dou Yiwen)
f54df61486 Merge branch 'bugfix/fix_bootloader_sha256_flash_contents_mask_issue' into 'master'
bootloader: fix bootloader_sha256_flash_contents mmap issue

See merge request espressif/esp-idf!21391
2022-12-02 12:10:57 +08:00
Zhi Wei Jian
18e0cd6214 Merge branch 'feature/support_ble_max_conn_num_to_9' into 'master'
Support bluedroid host maximum number of connections to 9

Closes BT-2914, BT-3000, and BT-2915

See merge request espressif/esp-idf!20933
2022-12-02 12:10:27 +08:00
Omar Chebib
301cb74890 coredump: custom core dump stack is now supported on Xtensa targets 2022-12-02 12:01:19 +08:00
fuzhibo@espressif.com
a0df34093a regi2c: fix regi2c api for esp32c6 2022-12-02 10:58:23 +08:00
muhaidong
b07438f26f esp_wifi: fix softap beacon memory leak issue
1. fix softap beacon memory leak issue.
2. fix esp wifi sta get ap info does not return connected ssid issue.
3. update inactive timer when recv ps-poll or success send data.
4. decrease test memory leak threshold.
2022-12-02 02:24:02 +00:00
Jiang Jiang Jian
22f8bcdc27 Merge branch 'bugfix/flush_pmk_for_akm_change' into 'master'
esp_wifi: Flush PMK caching if bss akm has changed

Closes WIFI-5014

See merge request espressif/esp-idf!21179
2022-12-02 10:20:13 +08:00
Alexander Hübener
93a8510dc5 fixed args order 2022-12-01 21:36:13 +01:00
Jakob Hasse
ec986651db bugfix(nvs_flash): fixed wrong error check after open_nvs_handle
Closes https://github.com/espressif/esp-idf/issues/10240
2022-12-01 18:05:56 +01:00
Jiang Jiang Jian
367abc1591 Merge branch 'bugfix/sta_set_extra_ies_for_open_AP_1' into 'master'
esp_wifi: STA set extra IEs for open AP

Closes IDFCI-1533

See merge request espressif/esp-idf!21360
2022-12-01 23:49:45 +08:00
Armando
d88236678a bootloader: fix bootloader_sha256_flash_contents mmap issue 2022-12-01 21:39:57 +08:00
harshal.patil
1f5122c90f esptool_py: Added a sector-pad option for bootloader image
When SECURE BOOT V2 is enabled and CONFIG_SECURE_BOOT_SIGNED_BINARIES
is not set, sector-pad the bootloader image, which is required for an
external PKCS#11 interface to generate a signature.
2022-12-01 18:24:29 +05:30
Wan Lei
6cc9380ac9 Merge branch 'bugfix/fix_slave_gpio_cs_mixed_with_iomux_bus' into 'master'
spi_slave: fix slave can't use iomux bus mixed with gpio cs_pin

See merge request espressif/esp-idf!21287
2022-12-01 20:09:11 +08:00
Michael (XIAO Xufeng)
b8e103bb6b Merge branch 'bugfix/wafer_version_minor_s3' into 'master'
esp32s3: fixed bug chip v0.0 detected as vX.8

See merge request espressif/esp-idf!21350
2022-12-01 19:08:51 +08:00
Jakob Hasse
1e7daf316a refactor(unity): made unity runner compatible with Linux target 2022-12-01 12:02:05 +01:00
Kapil Gupta
4967e90571 esp_wifi: Add changes to skip SAE handshake during WPS connection 2022-12-01 15:37:43 +05:30
Ondrej Kosta
4ded1ea4cf Merge branch 'feature/eth_bridge_test' into 'master'
lwIP bridge FDB add entry fix and bridge test

Closes IDF-5394

See merge request espressif/esp-idf!20464
2022-12-01 17:51:11 +08:00
Konstantin Kondrashov
7bc15f78a5 Merge branch 'feature/efuse_remove_warnings_for_memcpy' into 'master'
all: Remove warnings for memcpy/memset

Closes IDF-6298

See merge request espressif/esp-idf!21164
2022-12-01 16:03:29 +08:00
Tomas Rezucha
7ae5705977 Merge branch 'feature/usb_v5_update' into 'master'
usb: Run usb_host tests in CI

See merge request espressif/esp-idf!19468
2022-12-01 15:29:01 +08:00
Jiang Jiang Jian
1669bc000f Merge branch 'bugfix/fix_espnow_crash_when_modify_peer' into 'master'
esp_wifi: fix the ESPNOW crash when modify the interface of the peer

Closes WIFI-5046 and WIFI-5047

See merge request espressif/esp-idf!21192
2022-12-01 14:24:15 +08:00
C.S.M
7683b1ae7d Merge branch 'feature/add_esp32h2_rom_support' into 'master'
ESP32H2: Add ROM linker file and support

See merge request espressif/esp-idf!21334
2022-12-01 11:54:39 +08:00
Kapil Gupta
9e0e7bf5ba esp_wifi: STA set extra IEs for open AP
Fixed regression caused by !21292
2022-12-01 09:24:06 +05:30
Ivan Grokhotkov
29430e464d Merge branch 'fix/esp32s3_memprot' into 'master'
ESP32S3: Add memory protection for Icache region

Closes IDF-6390

See merge request espressif/esp-idf!21329
2022-12-01 11:41:47 +08:00
zhangyanjiao
4b5904aa58 esp_wifi: fix the ESPNOW crash when modify the interface of the peer
Closes WIFI-5046
Closes WIFI-5047
2022-12-01 11:13:10 +08:00
Wan Lei
226870dce3 Merge branch 'contrib/github_pr_10224' into 'master'
SPI_Master: Fix DMA rxbuf size calculation (GitHub PR)

Closes IDFGH-8793

See merge request espressif/esp-idf!21198
2022-12-01 10:43:18 +08:00
wanlei
0ffc813ac8 spi_slave: fix slave can't use iomux bus mixed with gpio cs_pin 2022-12-01 10:38:22 +08:00
Cao Sen Miao
283e2c8e5f ESP32H2: Add ROM linker file and support 2022-12-01 10:31:17 +08:00
Tomas Rezucha
a0dacf826f usb: Don't access uninit pointer if usbh_install fails 2022-11-30 18:48:31 +00:00
Jiang Jiang Jian
0dd6826a05 Merge branch 'bugfix/unprot_sa_query_issue' into 'master'
Fix unprotected SA Query issue and scan regression

See merge request espressif/esp-idf!21206
2022-12-01 01:25:27 +08:00
Tomas Rezucha
645592e157 usb: Refactor USB Host tests
* USB tests migrated to pytest
* Error messages improved
* Configurable for different mock devices
2022-11-30 18:12:54 +01:00
Michael (XIAO Xufeng)
cff1cb3988 esp32s3: fixed bug chip v0.0 detected as vX.Y
A typical value is 2.8.

Previous commit 32ef2b321a doesn't fix the issue cleanly. The MSB of wafer_minor also has this problem.
2022-12-01 01:05:09 +08:00
Kapil Gupta
73bd4ea619 Merge branch 'bugfix/sta_set_extra_ies_for_open_AP' into 'master'
esp_wifi: STA set extra IEs for open AP

Closes WIFI-5012

See merge request espressif/esp-idf!21292
2022-11-30 22:28:03 +08:00
Jiang Jiang Jian
236a5301a0 Merge branch 'bugfix/fix_bt_sleep_hangs_when_enable_light_sleep' into 'master'
bt: fix bt sleep flow hangs in btdm_sleep_clock_sync

Closes BT-2990

See merge request espressif/esp-idf!21311
2022-11-30 21:55:40 +08:00
Sachin Parekh
97709b899f esp32s3/memprot: Fix DRAM fault address calculation 2022-11-30 13:46:53 +00:00
Sachin Parekh
90d40b96e2 esp32s3/memprot: Fix SRAM region high addresses 2022-11-30 13:46:53 +00:00
Sachin Parekh
2a01e66b25 esp32s3/memprot: Set permission for Icache region 2022-11-30 13:46:53 +00:00
Jiang Guang Ming
0c4d5cfc51 Merge branch 'bugfix/update_esp_rom_lldesc_header' into 'master'
esp_rom: remove lldesc_xxx definitions since no actual function bodies

Closes IDFGH-8772

See merge request espressif/esp-idf!21289
2022-11-30 21:18:07 +08:00
Jakob Hasse
56acd2ee03 Merge branch 'feature/uart_new_critical_section_api' into 'master'
driver: added new critical section API to UART driver

See merge request espressif/esp-idf!19678
2022-11-30 19:53:44 +08:00
KonstantinKondrashov
9fd8f3786a all: Replaces memset/memcpy with hal_mem.. funcs where were used -Wstringop-overread, -Wstringop-overflow, -Warray-bounds
hal: Adds hal_memcpy and hal_memset
2022-11-30 19:22:41 +08:00
Nachiket Kukade
b625554643 esp_wifi: Update wifi libs
- Fixed regression caused in commit ef80cf0b65
- Fixed unprotected SA Query issue
2022-11-30 11:21:53 +00:00
Liu Ning
cb7686eec7 Merge branch 'bugfix/fix_ci_phy_modem_deinit_esp32c2' into 'master'
ci: fix esp_phy_modem_deinit issue

Closes IDFCI-1532

See merge request espressif/esp-idf!21338
2022-11-30 19:17:51 +08:00
Ondrej Kosta
d849f290d1 Merge branch 'feature/eth_test_all_chips' into 'master'
Ethernet related tests improvements

Closes IDF-5387

See merge request espressif/esp-idf!20982
2022-11-30 17:53:48 +08:00
liuning
d9ef6aed66 ci: fix esp_phy_modem_deinit issue 2022-11-30 16:39:40 +08:00
Jiang Jiang Jian
09231b4fa2 Merge branch 'bugfix/fix_failure_of_wifi_channel_configuration' into 'master'
phy: only set phy_init_flag at power domain off, when all modems deinit

Closes WIFI-4983

See merge request espressif/esp-idf!21235
2022-11-30 14:41:08 +08:00
Aditya Patwardhan
7955a11384 Merge branch 'feature/use_gettimeofday_instead_of_xTaskGetTickCount' into 'master'
esp-tls: use gettimeofday() instead of xTaskGetTickCount()

See merge request espressif/esp-idf!21300
2022-11-30 14:08:21 +08:00
Mahavir Jain
bcb4fd7ead Merge branch 'fix/fix_behaviour_of_api_to_set_fe_release_mode' into 'master'
esp_flash_encrypt: If it is supported then Enable secure download mode in...

See merge request espressif/esp-idf!21310
2022-11-30 14:02:34 +08:00
Jiang Jiang Jian
70426ed4c0 Merge branch 'bugfix/sta_transition_disable_wpa2_authmode' into 'master'
esp_wifi:Mandate stations to have minimum security wpa3

See merge request espressif/esp-idf!19228
2022-11-30 13:01:41 +08:00
Shreyas Sheth
377eeedfef esp_wifi:Mandate stations to have minimum security wpa3 2022-11-30 13:01:40 +08:00
Jiang Jiang Jian
36012433f9 Merge branch 'bufix/a2dp_fail_connect_again_after_disconnect' into 'master'
component_bt: Fixed a2dp failing to connect again after disconnect

Closes BT-1803

See merge request espressif/esp-idf!16947
2022-11-30 11:56:59 +08:00
tgotic
36fcb4b3a1 SPI fix DMA rxbuf size calculation
(x+31)/8 doesn't round to 4 bytes (32 bits), e.g. (16+31)/8=47/8=5,
where ((x+31)/32)*4 does round to 4 bytes: (16+31)/32=(47/32)*4=1*4=4
2022-11-30 11:46:18 +08:00
Jiang Jiang Jian
7869f4e151 Merge branch 'feature/esp32c2_optimize_ble_init' into 'master'
Fixed memory leak when RAM free size is insufficient or setting ext scan...

See merge request espressif/esp-idf!21261
2022-11-30 11:09:51 +08:00
xiongweichao
592675fd5b Fixed incorrect parameters in switching to BTC context 2022-11-30 10:41:54 +08:00
xiongweichao
3268075231 bt:Modify the member variable *arg in struct btc_msg to arg[0] 2022-11-30 10:41:54 +08:00
xiongweichao
40f6239fd7 bt: Fixed memory leak due to not freeing memory if posting a message to a thread fails 2022-11-30 10:41:52 +08:00
C.S.M
593335578f Merge branch 'feature/bringup_usj_esp32c6' into 'master'
usb_serial_jtag: add support for esp32c6

Closes IDF-5330

See merge request espressif/esp-idf!21319
2022-11-30 01:55:38 +08:00
C.S.M
b5dfe52ce1 Merge branch 'feature/add_esp32h2_soc_support' into 'master'
ESP32-H2: Add SOC headers for esp32-h2

See merge request espressif/esp-idf!21256
2022-11-29 22:09:43 +08:00
Song Ruo Jing
56302544f6 Merge branch 'ci/enable_esp32c6_target_test_stage' into 'master'
CI: Enable esp32c6 target test stage

Closes IDF-5830 and IDF-5831

See merge request espressif/esp-idf!21010
2022-11-29 19:54:05 +08:00
Cao Sen Miao
a57500d29c usb_serial_jtag: add support for esp32c6 2022-11-29 19:27:04 +08:00
Cao Sen Miao
5520e3b811 ESP32H2: Add SOC files for esp32h2 2022-11-29 18:55:12 +08:00
Konstantin Kondrashov
0786539047 Merge branch 'feature/remove_efuse_dependency' into 'master'
esp_hw_support: Removes efuse dependency

Closes IDF-4713

See merge request espressif/esp-idf!21212
2022-11-29 18:12:26 +08:00
Wang Meng Yang
4b2ac6cdde Merge branch 'bugfix/spp_add_ertm_option_master' into 'master'
bt: Added esp_spp_enhanced_init() API to indicate whether to enable L2CAP ERTM

Closes BT-2411

See merge request espressif/esp-idf!21126
2022-11-29 17:40:40 +08:00
zwj
51c739c181 update BLE lib for ESP32-C3 and ESP32-S3
- Fixed lld_con.c line 3048 assert
- Fixed crash sometimes when connected as a slave by 8th device
2022-11-29 17:37:04 +08:00
Jakob Hasse
f2dfe2bcac Merge branch 'docs/test_utils_no_butter' into 'master'
docs: heap records are not eatable!

See merge request espressif/esp-idf!21303
2022-11-29 17:28:25 +08:00
zhiweijian
957bf03d6a bluedroid host supports the maximum number of connections to 9 2022-11-29 16:33:17 +08:00
zwl
81d6b8f011 Fixed interrupt latency when cache is disable on ESP32-C2 2022-11-29 16:29:32 +08:00
zwl
1732a6d044 Fixed memory leak when RAM free size is insufficient or setting ext scan parameters failed on ESP32-C2 2022-11-29 16:29:26 +08:00
Konstantin Kondrashov
2f23825f60 Merge branch 'fix/esp_timer_tests' into 'master'
esp_timer: Fix tests for C2 chip

Closes IDF-5052 and IDF-5011

See merge request espressif/esp-idf!21280
2022-11-29 15:24:40 +08:00
jingli
cf244a14f0 bt: fix bt sleep flow hangs in btdm_sleep_clock_sync
Bluetooth low power related logic and regs have separate power domain from MAC and BB,
and do not power down during light sleep. If reset when power up MAC and BB in sleep
flow, it may destroy the state of bt low power part.
2022-11-29 14:28:32 +08:00
Jiang Jiang Jian
b04e33256d Merge branch 'bugfix/fix_esp32c3_connect_fail' into 'master'
esp_wifi: fix esp32c3 connect fail

Closes IDFCI-1524

See merge request espressif/esp-idf!21297
2022-11-29 14:24:27 +08:00
Aditya Patwardhan
8d047ea910 esp_flash_encrypt: If it is supported then Enable secure download mode in release mode instead of disabling it completely. 2022-11-29 11:44:18 +05:30
Darian
1e953e31fc Merge branch 'feature/freertos_restore_single_core_task_selection_algorithm' into 'master'
FreeRTOS(IDF): Restore vanilla task selection algorithm if building for single core with optimized selection is disabled

See merge request espressif/esp-idf!21001
2022-11-29 14:04:44 +08:00
Harshit Malpani
295507bc1b
esp-tls: use gettimeofday() instead of xTaskGetTickCount() 2022-11-29 11:04:54 +05:30
Sudeep Mohanty
3082fc7911 Merge branch 'feature/freertos_vtasklist_include_coreid' into 'master'
freertos-smp: Made CONFIG_FREERTOS_VTASKLIST_INCLUDE_COREID available only for IDF-FreeRTOS

Closes IDF-5295

See merge request espressif/esp-idf!21291
2022-11-29 11:52:57 +08:00
xiongweichao
c497d7d6c1 bt: Remove SPP default send buffer size option and add parameters to configure send buffer size in esp_spp_enhance_init() 2022-11-29 10:20:47 +08:00
Martin Vychodil
9f5fb63c23 Merge branch 'bugfix/c2_partition_sha256_api_fail' into 'master'
[ESP32C2] Failed test esp_partition_get_sha256() on big partitions

Closes IDFCI-1515

See merge request espressif/esp-idf!21245
2022-11-29 04:57:28 +08:00
xiongweichao
ecf2eea1d6 bt: Added esp_spp_enhance_init() API to indicate whether to enable L2CAP ERTM 2022-11-28 20:42:53 +08:00
KonstantinKondrashov
f6f173e3d3 esp_timer: Fix tests for C2 chip 2022-11-28 20:02:06 +08:00
Darian
297670300d Merge branch 'contrib/github_pr_10199' into 'master'
Removed the 'configASSERT( xInheritanceOccurred == pdFALSE )' assertion from xQueueSemaphoreTake (GitHub PR)

Closes IDFGH-8766

See merge request espressif/esp-idf!21272
2022-11-28 19:37:41 +08:00
Ondrej
2bf7255285 Ethernet related tests improvements
esp_eth: tests migrated to pytest and added support of multiple Ethernet devices

esp_netif: l2tap test migrated to pytest
2022-11-28 11:34:34 +00:00
Jakob Hasse
cb20f3ba1c docs(test_utils): heap records are not eatable!
Instead of becoming spread, heap records should go into a buffer.
Hungry commits shall be avoided.
2022-11-28 12:01:44 +01:00
Ondrej
c40e4eb499 esp_eth: DM9051 stop/start issue fixed 2022-11-28 10:54:43 +00:00
Martin Vychodil
537aca747b esp_partition: fixed esp_partition_get_sha256() test for big partitions
esp_partition_get_sha256() test for big partitions has been improved in allocation of MMU pages
2022-11-28 10:46:23 +01:00
Cao Sen Miao
fa3a8fdd91 esp_flash: correct veriable 'size' description 2022-11-28 16:54:03 +08:00
zhangyanjiao
8226de767c esp_wifi: fix esp32c3 connect fail
Closes IDFCI-1524
2022-11-28 16:09:24 +08:00
Marius Vikhammer
4144451bdc bootloader: increase iram_loader_seq size on S2
Segment was full when compiling with -O0
2022-11-28 15:16:48 +08:00
Shreyas Sheth
340778cb13 esp_wifi: STA set extra IEs for open AP 2022-11-28 06:48:09 +00:00
Sudeep Mohanty
d451a7539d freertos-smp: Made CONFIG_FREERTOS_VTASKLIST_INCLUDE_COREID available only for IDF-FreeRTOS
Since core affinity is supported in task stats by default in Amazon
FreeRTOS SMP, the Kconfig option
CONFIG_FREERTOS_VTASKLIST_INCLUDE_COREID is now made only available for
IDF-FreeRTOS.
2022-11-28 12:09:56 +05:30
Darian Leung
dff138f883 freertos(IDF): Restore vanilla task selection algorithm for single core
This commit restores the vanilla behavior for taskSELECT_HIGHEST_PRIORITY_TASK
when configNUM_CORES == 1 && configUSE_PORT_OPTIMISED_TASK_SELECTION == 0. This
results in the SMP selection algorithm (taskSelectHighestPriorityTaskSMP) to
only be run when configNUM_CORES > 1.
2022-11-28 13:55:03 +08:00
Darian Leung
2537dd8eca freertos(IDF): Add preprocessor check for configNUM_CORES configuration
This commit adds preprocessing time checks to ensure that

- configNUM_CORES is defined to 1 or 2
- Incompatible configurations are not set depending on configNUM_CORES
2022-11-28 13:55:03 +08:00
Kevin (Lao Kaiyao)
766dc3eead Merge branch 'bugfix/fix_i2s_tdm_multi_dev_pytest' into 'master'
i2s_test: update multi dev pytest script

Closes IDFCI-1523

See merge request espressif/esp-idf!21247
2022-11-28 13:52:38 +08:00
Song Ruo Jing
1575b9e43a ci: Disable all currently failed target tests for esp32c6 2022-11-28 12:09:08 +08:00
Song Ruo Jing
7466ddfa8c ci: Make consistence between pytest_*.py and .build-test-rules.yml for esp32c6 (i.e. to pass check_test_scripts_build_test_rules.py) 2022-11-28 11:58:30 +08:00
Song Ruo Jing
e13a4ad963 ci: Disable some unit-test-apps for esp32c6 to pass ci build stage 2022-11-28 11:58:30 +08:00
xiongweichao
cbf3467d4e Fixed a2dp failing to connect again after disconnect 2022-11-28 11:37:14 +08:00
jiangguangming
86126b83fa esp_rom: remove lldesc_xxx definitions since no actual function bodies
Closes https://github.com/espressif/esp-idf/issues/10204
2022-11-28 11:27:19 +08:00
laokaiyao
502495dec1 i2s_test: update multi dev pytest script 2022-11-28 11:10:22 +08:00
Marius Vikhammer
6a450c4113 Merge branch 'feature/esp_hw_support_pytest' into 'master'
esp_hw_support: migrate to pytest

See merge request espressif/esp-idf!20938
2022-11-28 10:38:54 +08:00
Jakob Hasse
fd04374aa5 feat (driver) added new critical section API to UART driver 2022-11-25 18:11:35 +01:00
KonstantinKondrashov
741e89cbaa esp_hw_support: Removes efuse dependency 2022-11-25 19:27:33 +08:00
Rahul Tank
03942846c8 Merge branch 'bugfix/disable_prov_encryption' into 'master'
Wifi Prov: Disabled the default support for BLE Encrpytion on characteristics read /write

See merge request espressif/esp-idf!20297
2022-11-25 16:53:42 +08:00
Marius Vikhammer
59e40fafba esp_hw_support: move test to pytest 2022-11-25 16:21:35 +08:00
Armando (Dou Yiwen)
2ad7b85a9e Merge branch 'bugfix/improve_ext_virtual_memory_allocation_in_2nd_btld' into 'master'
bootloader: improve irom & drom mapping way in 2nd bootloader on esp32c6

Closes IDF-6331

See merge request espressif/esp-idf!21173
2022-11-25 15:24:06 +08:00
Guillaume Souchere
1d16ca6a26 Merge branch 'feature/lower-iram-utilization-of-heap-component' into 'master'
heap: lower the utilization of IRAM by the heap component binary

Closes IDF-2282 and IDFGH-6233

See merge request espressif/esp-idf!20926
2022-11-25 15:22:05 +08:00