Commit Graph

22373 Commits

Author SHA1 Message Date
Gao Xu
8b953557c1 Merge branch 'bugfix/fix_adc_read_zero_h2' into 'master'
ADC: fix adc raw data get 0 because of signal delay on ESP32H2

See merge request espressif/esp-idf!26572
2023-10-30 20:51:08 +08:00
Jakob Hasse
bd34fc41bb fix(freertos): Fixed prvTaskCreateDynamicPinnedToCoreWithCaps
* The function was based on an outdated IDF/FreeRTOS
  combination which didn't always require zero-ing
  the TCB. This has been changed in the current
  IDF/FreeRTOS combination, leading to crashes.
  Unconditionally zero-ing the TCB fixes this problem.
2023-10-30 18:09:17 +08:00
zhanghaipeng
c1b39f7aa5 fix(bt/bluedroid): Fix BLE remove bond list status 2023-10-30 17:45:38 +08:00
Armando
16d8b7df41 feat(color): added helper to get color space and color pixel format 2023-10-30 17:32:47 +08:00
Armando
7efcf06c5d change(ll): update color space types, ll changes 2023-10-30 17:32:46 +08:00
Armando
97526e9288 feat(isp): isp af submodule low level driver 2023-10-30 17:32:46 +08:00
Tomáš Rohlínek
3f4698ac47
fix(storage/fatfs): add missing lock release introduced by IMMEDIATE_FSYNC 2023-10-30 10:22:08 +01:00
alanmaxwell
120e53b34d fix(phy): Fix ESP32C6 rx pkts fail in light sleep mode 2023-10-30 14:26:25 +08:00
alanmaxwell
2eb1a7f933 fix(wifi): Fix bug using CONFIG_WIFI_ENABLED macro 2023-10-30 14:24:31 +08:00
wanlei
7cd75c1075 feat(spi_slave): add p4 hp spi slave driver support 2023-10-30 12:51:56 +08:00
wuzhenghui
ad2629af54 ci(ulp_test): fix fake sleep of the maincore in ulp pytest cases 2023-10-30 11:18:01 +08:00
wuzhenghui
18f984fd9c fix(esp_hw_support): clear all type ULP wakeup intr status at ulp wakeup source enable 2023-10-30 11:18:01 +08:00
Wan Lei
7c21207bd3 Merge branch 'feature/esp32p4_twai_support' into 'master'
feat(twai): support legacy twai(can) driver for esp32p4

Closes IDF-7470

See merge request espressif/esp-idf!26073
2023-10-30 10:57:03 +08:00
Jiang Jiang Jian
7ade26caf1 Merge branch 'bugfix/connect_issue_for_zero_rssi' into 'master'
fix(esp_wifi): Fix issue of station disconnecting immediately after scanning

Closes WIFIBUG-132 and IDFCI-1847

See merge request espressif/esp-idf!25915
2023-10-30 10:16:27 +08:00
Jin Cheng
fc174f5811 feat(bt/bluedroid): Added mode to use BlueDroid host only without Bluetooth Controller 2023-10-30 00:52:26 +00:00
Mahavir Jain
5b047057ca
feat(mbedtls): add new deprecated cert list and relevant config
Cert bundle is periodically updated with the upstream Mozilla's NSS
root cert store. Retracted certs are moved to deprecated list now and
an additional config allows to include them in the default bundle. New
config is kept default disabled but can be enabled if one would like
to ensure 100% compatibility w.r.t. cert bundle across IDF minor or
patch releases. In IDF major release the deprecated list shall be reset.
2023-10-29 12:21:22 +05:30
Espressif BOT
24446bfab1
change(esp_crt_bundle): Update esp_crt_bundle certificates 2023-10-29 12:21:21 +05:30
C.S.M
59d029bf66 Merge branch 'feat/i2c_rcc_support' into 'master'
refactor(i2c): Add reset and clock control to i2c ll layer

See merge request espressif/esp-idf!26684
2023-10-28 10:01:06 +08:00
Mahavir Jain
11c8501f32 Merge branch 'refactor/hal_mpu_test' into 'master'
refactor(tools/test_apps): Move HAL tests for MPU to the `panic` test-app

Closes IDF-5590

See merge request espressif/esp-idf!26422
2023-10-27 20:50:19 +08:00
Mahavir Jain
fc1080dc6a Merge branch 'bugfix/mbedtls_linux_entropy' into 'master'
fix(mbedtls): allow to use built in entropy implementation for linux target

See merge request espressif/esp-idf!26413
2023-10-27 20:14:57 +08:00
luomanruo
b281a72fa1 ble: update c2 lib to 6ed444f2 2023-10-27 20:11:47 +08:00
Ivan Grokhotkov
cbb6fa0507 Merge branch 'bugfix/esp32s3_usb_otg_console_without_efuse' into 'master'
fix(console): switch USB PHY to OTG when OTG is used for console

Closes IDFGH-11281

See merge request espressif/esp-idf!26653
2023-10-27 20:09:09 +08:00
Jiang Jiang Jian
2133e28cf2 Merge branch 'bugfix/esp32c6_phy_coex_sleep_issue' into 'master'
fix(esp_phy): update esp32c6 libphy for coex zb rx and sleep bug

See merge request espressif/esp-idf!26667
2023-10-27 19:48:40 +08:00
zhanghaipeng
f4305753c8 feat(bt/bluedroid): Display BLE permission check handle in error trace 2023-10-27 19:31:44 +08:00
zhanghaipeng
6f400e1b5d feat(bt/bluedroid): Support BLE gattc notify registration number 2023-10-27 19:31:44 +08:00
Rahul Tank
a4e712f61a fix(nimble): remove IRAM_ATTR from npl_os_freertos.c file 2023-10-27 16:18:48 +05:30
C.S.M
4111b07076 Merge branch 'bugfix/flash_enc_plaintext' into 'master'
fix(flash_encryption): Fix the issue that XTS_AES Plain text memory size wrong

See merge request espressif/esp-idf!26640
2023-10-27 18:23:00 +08:00
gaoxu
1fa85abf46 ci(adc): add a test that adc read zero after getting done signal 2023-10-27 17:11:13 +08:00
Ondrej Kosta
fc59e9c160 Merge branch 'bugfix/make_eth_ci_nightrun' into 'master'
ci(esp_eth): make additional Ethernet chips test as nightly run

See merge request espressif/esp-idf!26695
2023-10-27 16:33:00 +08:00
luomanruo
d42fbcf144 ble: update c2 rom.ld 2023-10-27 16:03:32 +08:00
cjin
43b53a1885 change(ble): added option for msys buffer source 2023-10-27 16:03:05 +08:00
Zhang Hai Peng
9327274a7a Merge branch 'bugfix/fix_ble_hid' into 'master'
fix(bt/bluedroid): Fixed BLE hid example bugs

Closes BLERP-190

See merge request espressif/esp-idf!26613
2023-10-27 15:10:33 +08:00
Zhang Hai Peng
72fc360ad3 Merge branch 'fix/correct-typo-from-disbale-to-disable' into 'master'
fix: corrected typo from disbale to disable in numerous places

See merge request espressif/esp-idf!26644
2023-10-27 15:10:06 +08:00
luomanruo
d23e4d6f3e ble: update c6 h2 lib to 5bd7cb83, c2 lib to 1d31e175 2023-10-27 14:28:10 +08:00
morris
cfbf857924 Merge branch 'refactor/esp_driver_pcnt' into 'master'
refactor(pcnt): make pcnt driver as component

Closes IDF-8380

See merge request espressif/esp-idf!26476
2023-10-27 12:37:36 +08:00
Sarvesh Bodakhe
0a95914839 fix(esp_wifi): Fix issue of station disconnecting immediately when AP RSSI is zero 2023-10-27 09:35:20 +05:30
Ivan Grokhotkov
6f9d3bfc76
Merge branch 'update/version_5_3_0' into 'master'
Start of v5.3 development (v5.3-dev)

See merge request !26669
2023-10-27 06:02:37 +02:00
Cao Sen Miao
0bf1dce413 refactor(i2c): Add reset and clock control to i2c ll layer 2023-10-27 10:50:35 +08:00
morris
47a9396a8c Merge branch 'bugfix/i2c_ll_read_write_fifo_by_index' into 'master'
fix(i2c): read write FIFO memory by volatile

See merge request espressif/esp-idf!26658
2023-10-27 10:22:06 +08:00
Ivan Grokhotkov
8171b22c40
change(version): Update version to 5.3.0 2023-10-27 03:06:55 +02:00
chenjianhua
ada56ca062 Update bt lib for ESP32-C3 and ESP32-S3(f817304)
- Support get the range of TX power level
- Support clear legacy adv using vendor hci
2023-10-26 19:43:02 +08:00
Cao Sen Miao
420ac840ff fix(flash_encryption): Fix the issue that XTS_AES Plain text memory size wrong 2023-10-26 19:38:42 +08:00
Ondrej
58b6add55c ci(esp_eth): make additional Ethernet chips test as nightly run 2023-10-26 11:38:28 +00:00
zhanghaipeng
2e762ae3f7 fix(bt/bluedroid): Fix key size check in BLE smp 2023-10-26 19:21:21 +08:00
chenjianhua
7a1db4befb feat(bt/bluedroid): support clear legacy advertising 2023-10-26 19:14:54 +08:00
Xu Si Yu
030cac07df fix(coex): fix esp32c6 wrong reg offset 2023-10-26 17:59:09 +08:00
Mahavir Jain
804ed172dd
fix(mbedtls): allow to use built in entropy implementation for linux target 2023-10-26 15:12:42 +05:30
Aditya Patwardhan
a0d73b5155 fix(esp_https_server): Convert HTTPD_SSL_CONFIG_DEFAULT MACRO to function
Previously with HTTPD_SSL_CONFIG_DEFAULT being a MACRO, the
    configuration options could not be applied to it. This was casuing
    error in multiple scenarios. For e.g., here user_cert_cb is a part
    of httpd_ssl_config_t which this macro defines. But the type of
    user_cert_cb (esp_tls_server_callback_t) is only available when it is enabled
    in esp-tls. The MACRO however cannot be modified to set the defaults
    based on configuration option. This fix solves the issue without
    breaking the compatibility
2023-10-26 09:30:13 +00:00
Aditya Patwardhan
d4544a0d5c fix(esp_https_server): Remove dependency on CONFIG_ESP_TLS_SERVER
Closes https://github.com/espressif/esp-idf/issues/12023
2023-10-26 09:30:13 +00:00
Aditya Patwardhan
5ce93aa257 fix(esp_tls): Refactor esp-tls to remove ESP_TLS_SERVER config option 2023-10-26 09:30:13 +00:00
Martin Vychodil
1d5dbb8170 Merge branch 'update/sdcard_troubleshooting' into 'master'
fix(sd_card): update sd_card troubleshooting notes in readme.md

See merge request espressif/esp-idf!25879
2023-10-26 16:49:02 +08:00
Michael (XIAO Xufeng)
010a65d84e Merge branch 'bugfix/spi_master_fifo_use_dma' into 'master'
fix(spi): fixed undesired touching to DMA

Closes IDFGH-11065

See merge request espressif/esp-idf!26636
2023-10-26 16:43:22 +08:00
wanlei
d9d6f5a17a feat(twai): support legacy twai(can) driver for esp32p4 2023-10-26 16:20:45 +08:00
Kapil Gupta
04d874d6a3 fix(wpa_supplicant): implement sha1_finish for fastpbkdf2 2023-10-26 13:27:39 +05:30
morris
418494800c fix(i2c): read write FIFO memory by volatile 2023-10-26 14:40:07 +08:00
zhanghaipeng
f7e174e948 fix(bt/bluedroid): Optimize compatibility with Android 10 and later devices 2023-10-26 14:14:15 +08:00
gaoxu
a8e3122866 fix(adc): fix adc read zero after getting done signal on h2 2023-10-26 12:22:09 +08:00
Mo Fei Fei
a82b6f5c0b Merge branch 'docs/update_cn_trans_nvs_part_gen_readme' into 'master'
Docs: Update CN trans for components/nvs_flash/nvs_partition_generator/README.rst

Closes DOC-6449

See merge request espressif/esp-idf!26589
2023-10-26 12:19:26 +08:00
Mo Fei Fei
4f24d3a39c Docs: Update CN trans for components/nvs_flash/nvs_partition_generator/README.rst 2023-10-26 12:19:25 +08:00
morris
15cefab479 fix(rmt): a disabled channel may pick up a pending transaction
because in the trans_done interrupt, the driver didn't check the channel FSM
2023-10-26 12:11:07 +08:00
gaoxu
811a790aaf fix(adc): fix adc oneshot mod do not split clk 2023-10-26 10:59:35 +08:00
Armando (Dou Yiwen)
e15de479ce Merge branch 'bugfix/fix_wrong_hal_assertion_sdmmc_ll' into 'master'
sdmmc: fix ll layer wrong assertion

See merge request espressif/esp-idf!26590
2023-10-26 10:32:58 +08:00
Djordje Nedic
04dba7a80d Merge branch 'fix/esp32_p4_lp_reserved_seg_fix' into 'master'
fix: Fix ESP32-P4 lp_reserved_seg origin

See merge request espressif/esp-idf!26663
2023-10-26 10:32:02 +08:00
Jakob Hasse
228c40c2ac Merge branch 'feature/freertos_task_private_create_psram' into 'master'
feat(freertos): Added private task creation functions allocating stack in PSRAM

See merge request espressif/esp-idf!25404
2023-10-26 10:27:00 +08:00
Zim Kalinowski
3888ffdda6 Merge branch 'bugfix/enable-ringbuffer-build-on-linux' into 'master'
fix(ringbuf): Enable build on Linux

See merge request espressif/esp-idf!26649
2023-10-25 23:44:14 +08:00
Jiang Jiang Jian
9f6bf3b029 Merge branch 'bugfix/fix_wifi_ld_c3_eco7' into 'master'
fix(rom): remove related rom funcs in c3 rom eco7 MR

See merge request espressif/esp-idf!26651
2023-10-25 20:53:48 +08:00
Roland Dobai
d20654e7ed Merge branch 'bugfix/libphy_orphaned_sections' into 'master'
fix(lf): fix orphaned .phyiram sections

Closes WIFI-6279

See merge request espressif/esp-idf!26295
2023-10-25 16:34:19 +08:00
xiaqilin
c8f4fa2866 fix(esp_phy): update esp32c6 libphy for coex zb rx and sleep bug 2023-10-25 16:10:27 +08:00
Konstantin Kondrashov
a304cc230e Merge branch 'feature/esp32h2_adds_adc_calib_efuses' into 'master'
feat(efuse): Adds efuse ADC calibration data for ESP32H2

See merge request espressif/esp-idf!26305
2023-10-25 15:58:24 +08:00
Island
0f84e7d8c6 Merge branch 'bugfix/fix_set_adv_data_bug' into 'master'
Fix bugs in setting adv data and scan response data(ESP32C3 ESP32S3)

Closes BLERP-142, BLERP-141, BLERP-185, and BLERP-186

See merge request espressif/esp-idf!26538
2023-10-25 15:55:04 +08:00
sonika.rathi
91eada4acc fix(fatfs): free allocated memory for base path before unmounting the card 2023-10-25 09:33:42 +02:00
Djordje Nedic
e32bdb66e3 fix: Fix ESP32-P4 lp_reserved_seg origin
Apparently, this part of the linker script was copied from elsewhere
and the origin was not corrected.
2023-10-25 08:09:33 +02:00
Armando
263e39c32b fix(sdmmc): fix ll layer wrong assertion 2023-10-25 06:03:25 +00:00
Mahavir Jain
aaa438a3a2 Merge branch 'feature/tls_v1.2_and_v1.3_simultaneously' into 'master'
fix(esp-tls): Use TLS 1.2 and TLS 1.3 simultaneously

Closes IDF-8189 and IDF-8344

See merge request espressif/esp-idf!26304
2023-10-25 12:26:23 +08:00
Kapil Gupta
53939de34e fix(wpa_supplicant): Fix compilation issue in EAP disabled 2023-10-25 09:55:12 +05:30
Marius Vikhammer
d6a79b5108 Merge branch 'feature/hello_world_linux' into 'master'
feat(linux_target): enable hello world example for linux target

See merge request espressif/esp-idf!26638
2023-10-25 10:22:49 +08:00
Marius Vikhammer
20b6d92b91 Merge branch 'ci/reduce_heap_tests' into 'master'
ci(heap): reduce the number of test apps built

See merge request espressif/esp-idf!26643
2023-10-25 09:23:18 +08:00
C.S.M
fec9a11f4a Merge branch 'feature/i2c_slave_new_driver' into 'master'
feat(i2c_slave): Add new APIs for I2C-slave, and add multi-board tests with I2C-master

Closes IDF-8111

See merge request espressif/esp-idf!25403
2023-10-25 01:22:05 +08:00
Adam Múdry
687c5cc8d5 Merge branch 'fix/remove_wno-format_from_storage_components' into 'master'
refactor: Remove -Wno-format from storage related components

Closes IDF-6793

See merge request espressif/esp-idf!26531
2023-10-24 21:25:34 +08:00
Ivan Grokhotkov
a8e175364a
fix(console): switch USB PHY to OTG when OTG is used for console
On ESP32-S3 with the default efuse settings, USB PHY is connected to
the USB_SERIAL_JTAG peripheral. If USB OTG peripheral is used for the
console, we need to additionally switch the PHY to USB OTG, otherwise
we won't get any output.

Closes https://github.com/espressif/esp-idf/issues/12437
2023-10-24 13:29:15 +02:00
Cao Sen Miao
c9f85d8d1b feat(i2c_test): Add multi board test for I2C master and I2C slave 2023-10-24 18:46:27 +08:00
Cao Sen Miao
8d639492f2 feat(i2c_slave): Add new implementation and API for I2C slave 2023-10-24 18:44:49 +08:00
liuning
7532df427a fix(rom): remove related rom funcs in c3 rom eco7 MR 2023-10-24 18:05:10 +08:00
Zim Kalinowski
3589478a9e fix(esp_ringbuffer): Enable build on Linix 2023-10-24 11:30:03 +02:00
Li Shuai
fa489d3c20 change(Power Management): the xpd_xtal32k value depends on system slow clock source config option when pmu initialize 2023-10-24 17:11:53 +08:00
Michael (XIAO Xufeng)
d2d75efeff Merge branch 'bugfix/hpm_dc_default_disabled' into 'master'
spi_flash: fixed issue that enabling HPM-DC by default may cause app unable to restart

See merge request espressif/esp-idf!24380
2023-10-24 15:24:50 +08:00
zhanghaipeng
5727802497 fix(bt/bluedroid): Optimize compatibility with IOS and MACOS devices 2023-10-24 14:52:56 +08:00
Sudeep Mohanty
96933837ce Merge branch 'ci/ulp_test_app_depends_components' into 'master'
ci(system): Restrict ULP test apps being built and run on CI

Closes IDF-8401

See merge request espressif/esp-idf!26628
2023-10-24 14:31:57 +08:00
DevinNorgarb
001b10ec45 fix: corrected typo from disbale to disable in numerous places 2023-10-24 14:10:39 +08:00
Marius Vikhammer
7e8181b976 ci(heap): reduce the number of test apps built 2023-10-24 12:38:56 +08:00
Xiao Xufeng
8315221523 fix(spi): fixed undesired touching to DMA
Closes https://github.com/espressif/esp-idf/issues/12241
2023-10-24 10:50:42 +08:00
zhanghaipeng
9804a8b0f9 fix(ble/controller): Fix bugs in setting adv data and scan response data 2023-10-24 10:48:31 +08:00
Xiao Xufeng
88954841b1 doc(spi_flash): hide unsupported optional features 2023-10-24 10:38:11 +08:00
Xiao Xufeng
1f5fb3f921 spi_flash: fixed issue that enabling HPM-DC by default may cause app unable to restart 2023-10-24 10:38:08 +08:00
Lou Tian Hao
ca32e5268b Merge branch 'change/change_some_code_for_sleep_callback' into 'master'
change(pm): change sleep callback implement

See merge request espressif/esp-idf!26461
2023-10-24 10:15:09 +08:00
Marius Vikhammer
8c52b0845d feat(linux_target): enable hello world example for linux target 2023-10-24 10:04:09 +08:00
Marius Vikhammer
88af378d2e Merge branch 'feature/p4_multi_core_wdt' into 'master'
WDT: Multi-core support for RISC-V WDT

Closes IDF-6516 and IDF-8136

See merge request espressif/esp-idf!25689
2023-10-24 09:39:58 +08:00
Jiang Jiang Jian
345565d8c1 Merge branch 'feature/support_esp32c2_rom_mbedtls' into 'master'
feat(mbedtls): support c2 mbedtls can use crypto algorithm in ROM

See merge request espressif/esp-idf!25272
2023-10-24 09:30:15 +08:00
Marius Vikhammer
679b1dc4bb Merge branch 'docs/ulp_lp_uart' into 'master'
docs(ulp): add info about lp-uart to lp-core docs

See merge request espressif/esp-idf!26405
2023-10-24 08:30:29 +08:00
wuzhenghui
8bc69e0354 fix(esp_system): increase esp32h2 slow clock calibration timeout watchdog threshold 2023-10-23 21:24:56 +08:00
Song Ruo Jing
5318c8d67d Merge branch 'contrib/github_pr_12424' into 'master'
fix(driver/gpio): Fix SIG_GPIO_OUT_IDX comment for signal conn (GitHub PR)

See merge request espressif/esp-idf!26566
2023-10-23 20:36:13 +08:00
Harshit Malpani
27681a5073
fix(esp-tls): Use TLS 1.2 and TLS 1.3 simultaneously
This commit fixes the issue with TLS 1.2 connection when TLS 1.3 is
enabled in config.
2023-10-23 16:23:10 +05:30
Zhang Wen Xu
a6126067ef Merge branch 'fix/support_qa_test_ot_host_config' into 'master'
fix(openthread): fix host interface mdoe none

See merge request espressif/esp-idf!26595
2023-10-23 18:27:16 +08:00
Marius Vikhammer
22091c8744 feat(wdt): add multicore support for WDTs on RISCV 2023-10-23 18:26:08 +08:00
Sudeep Mohanty
f6ecaa12e9 ci(system): Restrict ULP test apps being built and run on CI
This commit updates the dependency list of the ULP test apps. These test
apps will now only build and run when the ULP component is updated.
2023-10-23 10:54:36 +02:00
Omar Chebib
51434a8367 Merge branch 'feature/esp32p4_fpu_support' into 'master'
feat(riscv): implement FPU support for RISC-V targets

Closes IDF-7770

See merge request espressif/esp-idf!25871
2023-10-23 16:50:36 +08:00
Lou Tianhao
13a405a32b change(pm): Change sleep callback implement 2023-10-23 08:13:47 +00:00
morris
767595a22f Merge branch 'feature/mcpwm_timer_change_freq' into 'master'
feat(mcpwm): support update timer period dynamically

Closes IDFGH-11145

See merge request espressif/esp-idf!26419
2023-10-23 15:51:14 +08:00
Jiang Jiang Jian
6481080f69 Merge branch 'feature/support_ble_esp32c3_eco7' into 'master'
Feature/support ble esp32c3 eco7

Closes CBLE50Y23-56

See merge request espressif/esp-idf!26144
2023-10-23 14:22:40 +08:00
Guillaume Souchere
787a4ad6c9 Merge branch 'feat/use-singly-linked-hashmap' into 'master'
feat(heap): update hash map to use singly linked list

Closes IDFGH-9846

See merge request espressif/esp-idf!26441
2023-10-23 13:12:37 +08:00
Jiang Guang Ming
e882782f0d feat(mbedtls): add new option CONFIG_MBEDTLS_USE_CRYPTO_ROM_IMPL for mbedtls pytest 2023-10-23 13:10:44 +08:00
Jiang Guang Ming
37ec1cc592 feat(mbedtls): support C2 mbedtls can use crypto algorithm in ROM 2023-10-23 13:10:44 +08:00
morris
78937173cd Merge branch 'bugfix/wrong_dma_bus_use' into 'master'
bugfix(driver): fix wrong DMA bus usage

See merge request espressif/esp-idf!26569
2023-10-23 12:16:34 +08:00
Marius Vikhammer
789a8b3446 docs(ulp): add info about lp-uart to lp-core docs 2023-10-23 12:11:34 +08:00
Omar Chebib
a8b1475fe7 feat(riscv): implement coprocessors save area and FPU support
This commit mainly targets the ESP32-P4. It adds supports for coprocessors on
RISC-V based targets. The coprocessor save area, describing the used coprocessors
is stored at the end of the stack of each task (highest address) whereas each
coprocessor save area is allocated at the beginning of the task (lowest address).
The context of each coprocessor is saved lazily, by the task that want to use it.
2023-10-23 11:10:28 +08:00
Marius Vikhammer
b0124b9b9f Merge branch 'feature/freertos_upgrade_to_v10_5_1' into 'master'
change(freertos): Upgrade ESP-IDF to use FreeRTOS v10.5.1, remove v10.4.3

Closes IDF-8191, IDF-8200, IDF-8201, IDF-8363, and IDF-8364

See merge request espressif/esp-idf!26261
2023-10-23 11:00:08 +08:00
morris
98b5ea7bdf refactor(pcnt): make pcnt driver as component 2023-10-23 01:45:43 +00:00
Adam Múdry
e151184da7 refactor: Remove -Wno-format from storage related components 2023-10-22 17:56:41 +00:00
Jiang Jiang Jian
0049cc663a Merge branch 'feature/support_output_internal_clock' into 'master'
feature(gpio): Add api to support output internal clock

Closes IDF-8016 and IDF-4935

See merge request espressif/esp-idf!25753
2023-10-22 22:06:13 +08:00
Erhan Kurubas
6cd8030160 Merge branch 'check_debug_aware_config' into 'master'
fix(esp_hw_support): re-enable CONFIG_ESP_DEBUG_OCDAWARE functionality

Closes IDF-5881

See merge request espressif/esp-idf!26533
2023-10-21 15:20:26 +08:00
Darian Leung
94b46599c3 change(freertos/idf): Update FreeRTOS documentation build
This commit does the following:

- Update doxygen comments in FreeRTOS headers to remove unsupported doxygen
labels and internal functions
- Fixed existing doxygen warnings in FreeRTOS headers
2023-10-21 04:39:17 +08:00
Darian Leung
fdfdfc6d9e change(freertos/idf): Temporarily disable "Test suspend-resume CPU works with xTimer'"
The test is flakey with the v10.5.1 kernel.
2023-10-21 04:39:16 +08:00
Darian Leung
0d846ffe26 fix(freertos/idf): Add missing vPortSetStackWatchpoint() call
This commit restores a missing call to vPortSetStackWatchpoint() in the
V10.5.1 kernel.
2023-10-21 04:39:16 +08:00
Darian Leung
6c6a6ad44a fix(freertos/idf): Add workaround for same priority preemption in xTaskIncrementTick()
This commit temporarily disables a bugfixed introduced by FreeRTOS v10.5.1 that
ensures timed out tasks will only preempt if their priority is higher than the
currently running task.

This bugfix has been temporarily reversed due to some compatibility issues with
some IDF tests.
2023-10-21 04:39:16 +08:00
Darian Leung
4d14717e77 fix(freertos/idf): Add work around vTaskResumeAll() compiler optimization
This commit adds a workaround for a compiler optimization issue in FreeRTOS
v10.5.1 in xTaskResumeAll() where pxTCB is only read once, even if in a loop.

A follow up ticket has been added to properly resolve this issue.
2023-10-21 04:39:16 +08:00
Darian Leung
0c15815c2b fix(freertos/idf): vTaskStepTick assertions in SMP
Fixes vTaskStepTick() assertions in SMP, where SMP uses critical sections
instead of scheduler suspension when handling tickless idling.
2023-10-21 04:39:16 +08:00
Darian Leung
ec1ba78b7c fix(freertos/idf): Fix utility function performance
This commit optimizes the following utility functions to achieve higher
overall system performance:

xTaskGetCurrentTaskHandle():
- Made into stand alone function instead of wrapper call to "ForCore" variant
- Replaced critical sections with disabling interrupts. Lack of lock contention
improves performance.

xTaskGetCurrentTaskHandleForCore():
- Removed unecessary critical sections

xTaskGetSchedulerState():
- Replaced critical sections with disabling interrupts. Lack of lock contention
improves performance.
2023-10-21 04:39:16 +08:00
Darian Leung
b13b9c1163 fix(freertos/idf/linux): Fix configMAX_PRIORITIES for linux port
Previously the linux port of FreeRTOS set configMAX_PRIORITIES to 7. However,
multiple linux POSIX simulator examples will call API that create tasks with
priortiies >= 7.

This commit fixes the configMAX_PRIORITIES and unifies all ports to have 25
priorities.
2023-10-21 04:39:16 +08:00
Darian Leung
5c0449a63a change(freertos/idf): Update single-core macros to prevent unused variable error
Various convenience macros in tasks.c will simply leave macro arguments unused
when built for single-core. This leads to an 'unused variable' warning.

This commit updates those macrso so that the unused arguments have a
'(void)' statement.
2023-10-21 04:39:16 +08:00
Darian Leung
82ad04e3ba change(freertos/idf): Update version number, licenses, and sbom to v10.5.1
Following the upgrade to FreeRTOS kernel v10.5.1, this commit updates the
version numbers, licenses, and SBOM files of FreeRTOS files to reflect v10.5.1.

Note:

- Updated licenses as v10.5.1 now uses SPDX format
- Removed CVE-2021-43997 as it was fixed post v10.4.5
2023-10-21 04:39:16 +08:00
Darian Leung
16ccb31d33 change(freertos/idf): Make v10.5.1 the default kernel
This commit makes v10.5.1 the default FreeRTOS kernel in ESP-IDF by removing
the CONFIG_FREERTOS_USE_KERNEL_10_5_1 option and v10.4.3 specific code
blocks.
2023-10-21 04:39:16 +08:00
Darian Leung
2025a77dd6 change(freertos/idf): Move v10.5.1 kernel files
This commit moves the v10.5.1 kernel files to the 'FreeRTOS-Kernel' directory.
2023-10-21 04:39:16 +08:00
Darian Leung
fe5a577198 change(freertos/idf): Remove v10.4.3 kernel files
This commit removes the v10.4.3 kernel files in prepartion for upgrading to
v10.5.1.

- Portable files still remain
- Added as a separate commit to preserve commit history
2023-10-21 04:39:16 +08:00
Martin Vychodil
8cd898ebee Merge branch 'docs/nvs_add_return_error_description_for_nvs_open' into 'master'
docs: nvs_open* add ESP_ERR_INVALID_ARG to return description

Closes IDF-1528

See merge request espressif/esp-idf!26583
2023-10-20 22:27:42 +08:00
Ivan Grokhotkov
40347c9c27 Merge branch 'feature/app_trace_component_test_app' into 'master'
feat(app_trace): migrate the tests from unit-test-app

Closes IDF-5564

See merge request espressif/esp-idf!26273
2023-10-20 21:45:05 +08:00
zhiweijian
0914d9b8d8 feat: support ble esp32c3 eco7 2023-10-20 19:54:36 +08:00
Jiang Jiang Jian
aa22a66c22 Merge branch 'feat/support_esp32c3_eco7_wifi' into 'master'
Feat/support esp32c3(v1.1) wifi

Closes WIFI-6274

See merge request espressif/esp-idf!26132
2023-10-20 19:13:03 +08:00
morris
df2c62d270 bugfix(driver): fix wrong DMA bus usage
in SPI, RMT, parlio
2023-10-20 09:08:54 +00:00
morris
0cbcb9f5ea feat(mcpwm): support update timer period dynamically
Implement the requirement asked in
https://www.esp32.com/viewtopic.php?f=13&t=35919
2023-10-20 16:57:25 +08:00
Armando (Dou Yiwen)
37a5ab0f09 Merge branch 'bugfix/fix_bootloader_random_multiple_build_issue' into 'master'
rng: only build bootloader_random apis once

See merge request espressif/esp-idf!26571
2023-10-20 15:48:22 +08:00
laokaiyao
e2c182ab4b refactor(i2s): stop to output mclk after uninstalled on esp32 2023-10-20 14:55:10 +08:00
wuzhenghui
d6cda1b6e1 ci(esp_hw_support): add test case for gpio output internal clock feature ci 2023-10-20 14:55:10 +08:00
wuzhenghui
7195bf19df feat(esp_hw_support): support one-to-many signal-gpio mapping output 2023-10-20 14:55:06 +08:00
wuzhenghui
6a436286dc feat(esp_hw_support): add api to gpio driver to support output internal clock on GPIO 2023-10-20 14:35:26 +08:00
zwx
1dc2a98d1e fix(openthread): fix host interface mdoe none 2023-10-20 14:03:24 +08:00
Rahul Tank
e7e478205b Merge branch 'bugfix/fix_espcoredump_compilation_warning' into 'master'
fix(espcoredump): fixed compilation warning

Closes IDFGH-11151

See merge request espressif/esp-idf!26395
2023-10-20 13:41:47 +08:00
alanmaxwell
4d33bf7ee9 feat(wifi): support esp32c3 v1.1 WiFi
1.bringup c3 v1.1 and sync func to c3 eco7 rom
2.support to set null&probe lifetime
3.support to adjust listen interval to dtim period
4.support tx pkt w/o wake null
5.allow to tx null0 if requtest to rx data
2023-10-20 11:01:07 +08:00
Jiang Guang Ming
5f00b8a4d5 fix(esp32c3): Update esp32c3 chip revision 2023-10-20 11:01:07 +08:00
Jiang Guang Ming
d1fbec028c feat(esp32c3): Add rom ld with ROM tag esp32c3-eco7-20230720 2023-10-20 11:01:07 +08:00
Armando (Dou Yiwen)
1bce665e73 Merge branch 'feat/sdspi_esp32p4' into 'master'
sdspi: supported sdspi on esp32p4

Closes IDF-7501

See merge request espressif/esp-idf!26458
2023-10-20 10:41:44 +08:00
morris
565b9fd117 Merge branch 'refactor/hal_util_bitwise_reverse8' into 'master'
hal: add util function to reverse a 8bit byte

See merge request espressif/esp-idf!26532
2023-10-20 09:43:15 +08:00
Jiang Jiang Jian
865d29ea18 Merge branch 'bugfix/update_ble_lib_1018' into 'master'
change(ble): update ble lib on c6 h2 and c2 chip

Closes BLERP-144, BLERP-134, BLERP-143, BLERP-128, BLERP-136, BLERP-135, BLERP-132, BLERP-146, BLERP-147, BLERP-148, BLERP-149, BLERP-150, BLERP-145, BLERP-151, BLERP-152, BLERP-153, BLERP-154, BLERP-155, and BLERP-156

See merge request espressif/esp-idf!26541
2023-10-20 00:40:54 +08:00
wuzhenghui
1f10c84a4f change(hal): rewrite gpio_ll_set_iomux_pin_ctrl api 2023-10-19 22:24:08 +08:00
Armando (Dou Yiwen)
471f1f61ae Merge branch 'feature/support_sdmmc_ver2_on_p4' into 'master'
sdmmc: esp32p4 support

Closes IDF-6502

See merge request espressif/esp-idf!25405
2023-10-19 22:00:40 +08:00
Jiang Jiang Jian
06822da186 Merge branch 'fix/phy_pll_track_corner' into 'master'
fix(esp_phy): fix pll track corner case

Closes WIFIBUG-199

See merge request espressif/esp-idf!26546
2023-10-19 21:33:10 +08:00
Guillaume Souchere
07165308f6 feat(heap): update hash map to use singly linked list
Previously, the hash map was a doubly linked list but was never
using the characteristics of it.

This commit switches the hash map to a singly linked list instead

This commit also fixes memory leak in heap trace tests by setting
hashmap size to 10 for the tests (instead of the default value of 250)

See https://github.com/espressif/esp-idf/issues/11173
2023-10-19 14:50:05 +02:00
Adam Múdry
6154f22ab3 docs: nvs_open* add ESP_ERR_INVALID_ARG to return description
ESP_ERR_INVALID_ARG is returned from underlying functions but this was not easily evident
2023-10-19 14:36:10 +02:00
Rahul Tank
d2e9314c24 fix(espcoredump): fixed compilation warning
Added conditional compilation for logging stack usage only when CONFIG_ESP_COREDUMP_LOGS is
enabled.

Closes: https://github.com/espressif/esp-idf/issues/12318
2023-10-19 16:48:28 +05:30
Jiang Jiang Jian
6db16c6e81 Merge branch 'feature/sta_sae_ext_key' into 'master'
feat(wifi): Add support for sae ext key for station

Closes WIFI-6170

See merge request espressif/esp-idf!24833
2023-10-19 18:49:15 +08:00
Armando
05c147c3e8 fix(rng): only build bootloader_random apis once 2023-10-19 16:15:52 +08:00
luomanruo
b5767372a8 fix(ble): fixed ble connection timeout issue on ESP32H2 2023-10-19 14:28:18 +08:00
Jiang Jiang Jian
a94bb6201b Merge branch 'bugfix/deep_sleep_force_to_sleep' into 'master'
fix(esp_hw_support): Return deep sleep APIs to the original behavior

Closes IDFGH-11192, PM-11, and IDF-7600

See merge request espressif/esp-idf!26341
2023-10-19 14:27:02 +08:00
Xue Yun Fei
e64712b263 Merge branch 'lost_timer_failed_to_start_when_sta_is_connected' into 'master'
esp-netif:lost timer failed to start when sta is disconnected

Closes WIFI-5984

See merge request espressif/esp-idf!24076
2023-10-19 14:12:17 +08:00
Zhi Wei Jian
e925665f94 Merge branch 'bugfix/fix_ble_bond_error_after_reboot' into 'master'
fix(ble/bluedroid): fixed BLE bond error after reboot

Closes CBLE50Y23-58

See merge request espressif/esp-idf!26392
2023-10-19 11:58:16 +08:00
Zhang Xiao Yan
dffe28b787 Merge branch 'docs/add_parameter_description_to_esp_netif' into 'master'
docs: add parameter description to esp_netif.h

See merge request espressif/esp-idf!26487
2023-10-19 10:52:51 +08:00
zwx
b96064a740 fix(esp_phy): fix pll track corner case 2023-10-19 10:46:24 +08:00
Wan Lei
a9b6c98489 Merge branch 'refactor/spi_using_rcc_automic_lock' into 'master'
refac(spi): update periph_module_xxx with rcc_atomic_lock for periph bus

Closes IDF-8159

See merge request espressif/esp-idf!26394
2023-10-18 20:36:51 +08:00
Guillaume Souchere
63952fe2f6 Merge branch 'feat/make-task-tracking-independant-from-poisoning' into 'master'
feat(heap): Dissociate heap poisoning from task tracking functionalities

Closes IDF-8332

See merge request espressif/esp-idf!26311
2023-10-18 20:18:22 +08:00
Zim Kalinowski
fa1a3ce0b5 Merge branch 'refactor/components_linux_compatible' into 'master'
Exclude all currently incompatible components from Linux build

Closes IDF-8318 and IDF-5996

See merge request espressif/esp-idf!25598
2023-10-18 20:17:49 +08:00
Jakob Hasse
8aba6a53e4 feat(freertos): Added private PSRAM stack task creation functions
* Added prvTaskCreateDynamicAffinitySetWithCaps
  and prvTaskCreateDynamicPinnedToCoreWithCaps
  which allocate the task's stack in PSRAM instead of
  internal RAM. These functions are only available if
  PSRAM is enabled.
2023-10-18 20:06:42 +08:00
Armando
7879b29b0c feat(dma): added a helper api to check buffer is dma aligned 2023-10-18 11:57:55 +00:00
Armando
4eaf233bb8 change(sdmmc): replace periph_module_x with rcc 2023-10-18 11:57:55 +00:00
Armando
2d3736fa11 change(sdmmc): update the volatile location of the sdmmc_struct.h 2023-10-18 11:57:55 +00:00
Armando
70314b56d5 feat(sdmmc): supported sd2.0 on esp32p4 2023-10-18 11:57:55 +00:00
Shreyas Sheth
ee9ce51133 feat(wifi): Add SAE EXT key support for esp station 2023-10-18 17:10:31 +05:30
Jouni Malinen
98cc860e86 feat(wifi): Pull in wpa_supplicant upstream code for SAE EXT key
SAE: Derive a variable length PMK with the new AKM suites

Select the PMK length based on the used group (prime length) when using
the new AKM suites for SAE.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
2023-10-18 16:50:24 +05:30
Jouni Malinen
3ec105067c feat(wifi): Pull in wpa_supplicant upstream code for SAE EXT key
SAE: Indicate AKM suite selector in commit for new AKM suites

SAE authentication needs to known which AKM suite is being used to be
able to determine the correct PMK length for the new AKM suite selectors
that use variable length keys.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
2023-10-18 16:50:24 +05:30
Jouni Malinen
5719f7908d feat(wifi): Pull in wpa_supplicant upstream code for SAE EXT key
SAE: EAPOL-Key and key/MIC length information for the new AKM suites

Update the AKM suite specific mapping of various EAPOL-Key key lengths
and algorithms to include the new SAE AKM suites with variable length
keys.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
2023-10-18 16:50:24 +05:30
Jouni Malinen
21ac680eac feat(wifi): Pull in wpa_supplicant upstream code for SAE EXT key
SAE: Internal WPA_KEY_MGMT_* defines for extended key AKMs

Define new WPA_KEY_MGMT_* values for the new SAE AKM suite selectors
with variable length keys. This includes updates to various mapping and
checking of the SAE key_mgmt values.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
2023-10-18 16:50:24 +05:30
Jouni Malinen
7dbfd8c6da feat(wifi): Pull in wpa_supplicant upstream code for SAE EXT key
SAE: Use wpa_key_mgmt_sae() helper

Use the existing helper function instead of maintaining multiple copies
of lists of SAE key management suites.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
2023-10-18 16:50:24 +05:30
Jouni Malinen
b95ace06b8 feat(wifi): Pull in wpa_supplicant upstream code for SAE EXT key
Define new RSN AKM suite selector values

Add the new AKM suite selectors defined in IEEE P802.11-REVme/D1.3.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
2023-10-18 16:50:24 +05:30
Shreyas Sheth
e746fc0deb feat(wifi): Refactor and update wpa_supplicant with upstream 2023-10-18 16:50:24 +05:30
luomanruo
5f891fae7e ble: update controller log module for ESP32-C6, ESP32-H2 and ESP32-C2 2023-10-18 18:10:25 +08:00
Lucas Saavedra Vaz
64f8222ec6 fix(driver/gpio): Fix SIG_GPIO_OUT_IDX comment for signal connect 2023-10-18 12:04:48 +02:00
zwl
ee869ddd9b fix(ble): fixed ble connection timeout issue on ESP32H2 2023-10-18 17:08:51 +08:00
luomanruo
0b7cba39de ble: update controller log module for ESP32-C2 2023-10-18 17:08:51 +08:00
luomanruo
8f30d922ac ble: update controller log module for ESP32-H2 and ESP32-C6 2023-10-18 17:08:51 +08:00
cjin
c9cf190847 change(ble): update ble lib on c6 h2 and c2 chip 2023-10-18 17:08:51 +08:00
Jiang Jiang Jian
fdb4e0e532 Merge branch 'bugfix/spurious_beacon_timeout' into 'master'
Fixed some WiFi Issues

Closes WIFIBUG-169, WIFIBUG-164, WIFI-6251, WIFIBUG-144, WIFIBUG-153, and WIFIBUG-171

See merge request espressif/esp-idf!26403
2023-10-18 16:42:17 +08:00
Jiang Jiang Jian
7e4d7388c7 Merge branch 'bugfix/fix_pm_tests' into 'master'
fix(esp_hw_support): fix pm tests failure caused by non-iram safe test code

Closes IDFCI-1840

See merge request espressif/esp-idf!26530
2023-10-18 16:26:32 +08:00
Guillaume Souchere
d6def6c06e Merge branch 'fix/check_integrity_on_used_blocks' into 'master'
heap: fix integrity check on used blocks by the tlsf component

Closes IDFGH-11050

See merge request espressif/esp-idf!26289
2023-10-18 15:47:25 +08:00
Jiang Jiang Jian
249e45a5d6 Merge branch 'bugfix/coex_cfg_option_invisible' into 'master'
fix(esp_coex): Fix dependency errors in coexist configuration

Closes BT-3435

See merge request espressif/esp-idf!26484
2023-10-18 15:36:22 +08:00
Wan Lei
9f413d5d8d Merge branch 'feature/esp32p4_hp_ledc_support' into 'master'
feat(ledc): support ledc on esp32p4

Closes IDF-6510

See merge request espressif/esp-idf!25356
2023-10-18 15:27:54 +08:00
Erhan Kurubas
2d55270006 fix(esp_hw_support): re-enable CONFIG_ESP_DEBUG_OCDAWARE functionality 2023-10-18 08:48:45 +02:00
zhiweijian
d86a990be5 fix(ble/bluedroid): fixed BLE bond error after reboot 2023-10-18 14:40:16 +08:00
Kapil Gupta
23a9880544 Merge branch 'bugfix/wps_condition_chain' into 'master'
fix(wifi): Fix static analyzer warning for WPS code

See merge request espressif/esp-idf!26492
2023-10-18 14:22:04 +08:00
Zhi Wei Jian
daf1fc790a Merge branch 'bugfix/fix_dtm_test_failed_on_ble_5.0' into 'master'
fix(ble/bluedroid): fixed bluedroid host DTM API

Closes BLEQABR23-690 and BLECRT-42

See merge request espressif/esp-idf!26345
2023-10-18 14:04:54 +08:00
Guillaume Souchere
7492c862af feat(heap): Dissociate heap poisoning from task tracking
In order to enable CONFIG_HEAP_TASK_TRACKING, some kind
of poisoning had to be enabled (!HEAP_POISONING_DISABLED).
However since those functionalities don't seem to be related
in any way, this commit decouple them by removing
MULTI_HEAP_BLOCK_OWNER from poison_head_t in multi_heap_poisoning.c
and handling the block ownership in heap_caps.c instead.

Note that handling task tracking in multi_heap.c would necessitate
updating the ROM implementation of multi_heap.c as well. For this
reason, the task tracking feature has to be handled in heap_caps.c.
2023-10-18 06:43:22 +02:00
Mahavir Jain
2407813a67 Merge branch 'feature/update_esp32c6-h2_apm_api' into 'master'
apm: updated APM HAL/LL APIs.

See merge request espressif/esp-idf!26368
2023-10-18 12:26:38 +08:00
morris
e92a1515be feat(hal): add util function to reverse a 8bit byte 2023-10-18 09:48:14 +08:00