Commit Graph

25783 Commits

Author SHA1 Message Date
David Čermák
92b42310b1 Merge branch 'fix/mesh_netif_without_dhcps' into 'master'
fix(wifi): Make DHCP server API calls only if available

Closes IDFGH-13061

See merge request espressif/esp-idf!31669
2024-06-27 17:37:46 +08:00
wuzhenghui
2b70104761
fix(esp_hw_support): wait eFuse controller idle after sleep wakeup 2024-06-27 17:36:21 +08:00
Martin Vychodil
5acaa74ec9 Merge branch 'docs/fix_ulp_doxygen_comment' into 'master'
docs(ulp): fix doxygen comment formatting

See merge request espressif/esp-idf!31765
2024-06-27 17:23:52 +08:00
Island
8106cfcf07 Merge branch 'bugfix/fixed_hci_uart_error_on_esp32c6_esp32h2' into 'master'
feat(bluetooth/controller): Fixed the issue of unresponsiveness when using hci...

Closes BLERP-828

See merge request espressif/esp-idf!31744
2024-06-27 17:19:23 +08:00
Marius Vikhammer
4c62b82180 docs(ulp): fix doxygen comment formatting 2024-06-27 16:17:05 +08:00
Sudeep Mohanty
f8a7af8f84 Merge branch 'feat/lp_core_lp_spi_support' into 'master'
feat(lp-spi): Added support for LP SPI to the LP core

Closes IDF-7538 and IDF-10210

See merge request espressif/esp-idf!31492
2024-06-27 14:20:29 +08:00
Jiang Guang Ming
1f2100fc4d fix(esp_rom): cleanup esp_rom CMakeList.txt 2024-06-27 11:45:23 +08:00
C.S.M
40089b23df Merge branch 'feat/i2c_port_handle_func' into 'master'
feat(i2c_master): Add an api for retrieveing handle via port

Closes IDFGH-13021

See merge request espressif/esp-idf!31588
2024-06-27 11:25:18 +08:00
Xiaoyu Liu
2cb9419b14 change(esp_rom): optimize target-specific header files layout in components/esp_rom 2024-06-27 11:24:45 +08:00
Myk Melez
c1e58e7d2d fix(pthread): Remove TLS pointer/deletion callback from correct thread
Originally, pthread_internal_local_storage_destructor_callback was only called from pthread_exit
on the thread whose TLS is being destroyed.

In b3755b751e, pthread_internal_local_storage_destructor_callback
started being called from pthread_join and pthread_detach on a different thread (whichever one
called one of those functions).

But pthread_internal_local_storage_destructor_callback is still calling
vTaskSetThreadLocalStoragePointer and vTaskSetThreadLocalStoragePointerAndDelCallback with a NULL
xTaskToSet argument, which causes those functions to set the TLS pointer and deletion callback
for the current thread, not the thread whose TLS is being destroyed.

This commit makes pthread_internal_local_storage_destructor_callback call
vTaskSetThreadLocalStoragePointer and vTaskSetThreadLocalStoragePointerAndDelCallback
with the handle of the thread whose TLS is being destroyed.
2024-06-26 16:31:48 -07:00
Aditya Patwardhan
ca4d5afc59 Merge branch 'fix/disable_ecdsa_key_manager_for_p4' into 'master'
fix(soc): Disable key manager and ECDSA peripheral support for esp32p4

See merge request espressif/esp-idf!31662
2024-06-26 22:01:34 +08:00
Armando (Dou Yiwen)
80f3e79b07 Merge branch 'feat/mmu_support_c5' into 'master'
mmu: remove SOC_MMU_PAGE_SIZE_CONFIGURABLE on c5 mp

See merge request espressif/esp-idf!31749
2024-06-26 21:10:48 +08:00
Armando (Dou Yiwen)
7755ce186e Merge branch 'bugfix/fix_none_iram_code_before_xip_psram' into 'master'
rtc: fixed non-iram rtc code in early stage on p4 leading xip_psram stuck

See merge request espressif/esp-idf!31742
2024-06-26 20:47:10 +08:00
Kevin (Lao Kaiyao)
be3e159cec Merge branch 'bugfix/update_rom_layout_for_c5' into 'master'
fix(rom): update rom layout for c5

See merge request espressif/esp-idf!31731
2024-06-26 20:38:36 +08:00
C.S.M
1709095c5b Merge branch 'bugfix/usb_serial_jtag_simplify' into 'master'
usb-serial-jtag driver simplification

See merge request espressif/esp-idf!31477
2024-06-26 20:19:02 +08:00
Jiang Jiang Jian
f68e5c4f70 Merge branch 'bugfix/fix_idfgh_12600' into 'master'
fix(coex): fix ESP32 Wi-Fi cant tx after sw_reset with BLE scan

Closes IDFGH-12600

See merge request espressif/esp-idf!31726
2024-06-26 19:43:58 +08:00
Sudeep Mohanty
70a0b4a1bf test: Added LP core unit tests for LP SPI
This commit adds tests for LP SPI master and LP SPI slave devices.
2024-06-26 13:43:55 +02:00
Sudeep Mohanty
6e85d744a8 feat(lp-spi): Added support for LP SPI driver to the LP Core on esp32p4
This commit adds LP SPI master and LP SPI slave support for the LP Core
on the esp32p4.
2024-06-26 13:43:55 +02:00
Kevin (Lao Kaiyao)
ef63ae2cfc Merge branch 'bugfix/rename_some_touch_regs2' into 'master'
refactor(lp_ana_periph): sync the reg names to TRM (part2)

See merge request espressif/esp-idf!31694
2024-06-26 19:34:17 +08:00
Song Ruo Jing
e5dbbf467c Merge branch 'feature/esp32c5_clock_support' into 'master'
feat(clk): Add basic clock support for esp32c5 mp

Closes IDF-8642 and IDF-9009

See merge request espressif/esp-idf!31514
2024-06-26 19:27:51 +08:00
Mahavir Jain
6669caf4cf Merge branch 'feature/esp32c5_memory_protection' into 'master'
Support memory protection using PMA and PMP for ESP32-C5

Closes IDF-8833

See merge request espressif/esp-idf!31245
2024-06-26 19:18:39 +08:00
Armando
d6e9618263 change(mmu): remove SOC_MMU_PAGE_SIZE_CONFIGURABLE 2024-06-26 17:35:26 +08:00
Armando
5fe080ea5a fix(rtc): fixed non-iram rtc code in early stage on p4 leading xip_psram stuck 2024-06-26 17:30:59 +08:00
zwl
b7b32952ff feat(bluetooth/controller): Fixed the issue of unresponsiveness when using hci uart mode on ESP32-C5 2024-06-26 17:19:33 +08:00
zwl
2bd3eaf288 feat(bluetooth/controller): Fixed the issue of unresponsiveness when using hci uart mode on ESP32-C6 and ESP32-H2 2024-06-26 17:19:00 +08:00
Jeroen Domburg
7982ece4af refactor(usb-serial-jtag): usb-serial-jtag driver simplification to fix rom print coexistence 2024-06-26 15:47:25 +08:00
Song Ruo Jing
40f3bc2e57 feat(clk): Add basic clock support for esp32c5 mp
- Support SOC ROOT clock source switch
- Support CPU frequency change
- Support RTC SLOW clock source switch
- Support RTC SLOW clock + RC FAST calibration
- Remove FPGA build
2024-06-26 14:26:34 +08:00
Guillaume Souchere
87b1e45564 fix(console): USB Serial JTAG freezes when input received before init
When data was sent through USB Serial JTAG before the
driver was installed, the bus was malfunctioning. This
was because the interrupt bit for data reception was cleared
regardless of whether data was received or not. Consequently,
usb_serial_jtag_isr_handler_default was not triggered and the
data was never read causing the bus to malfunction.

This commit is modifying usb_serial_jtag_driver_install to
prevent clearing USB_SERIAL_JTAG_INTR_SERIAL_OUT_RECV_PKT and
USB_SERIAL_JTAG_INTR_SERIAL_IN_EMPTY thus allowing the callback
usb_serial_jtag_isr_handler_default to trigger for possible data
exchanged prior to the call to usb_serial_jtag_driver_install.

This commit also modified the while logic in linenoiseProbe to
discard any data that doesn't match the expected chaaracter sequences
to prevent random input from interfering with evaluating whether the
terminal supports escape sequences or not.

See https://github.com/espressif/esp-idf/issues/13940
2024-06-26 06:32:13 +02:00
Cao Sen Miao
b19f9242d7 fix(usb_otg): Fix bug that usb_otg console cannot work on esp32s3 2024-06-26 11:20:19 +08:00
Roman Leonov
d4f0b77d29 Merge branch 'feature/usb_host_ext_hub_driver' into 'master'
feat(ext_hub): Added External Hub Driver

Closes IDF-9697, IDF-9205, IDF-10073, and IDF-10100

See merge request espressif/esp-idf!30391
2024-06-26 04:37:22 +08:00
Konstantin Kondrashov
e7070e777a Merge branch 'feature/bootloader_skip_validate_in_deep_sleep_for_c2' into 'master'
feat(bootloader): BOOTLOADER_SKIP_VALIDATE_IN_DEEP_SLEEP for C2 (without RTC_MEM)

Closes IDF-9129

See merge request espressif/esp-idf!31241
2024-06-25 21:22:58 +08:00
laokaiyao
e845c15b47 fix(rom): update rom layout for c5 2024-06-25 17:51:24 +08:00
Roman Leonov
548b03c69f feat(ext_hub): Added External Hub driver 2024-06-25 11:28:03 +02:00
liuning
0dcbbb8eb9 fix(coex): fix ESP32 Wi-Fi cant tx after sw_reset with BLE scan
Closes https://github.com/espressif/esp-idf/issues/13598
2024-06-25 15:42:47 +08:00
morris
dcfcf83109 fix(rmt): fix gcc static analyzer warnings 2024-06-25 14:54:00 +08:00
harshal.patil
bd4e48d0d9
feat(cpu): Configure panic exception generation using asm illegal instruction 2024-06-25 11:55:24 +05:30
harshal.patil
84afc6a955
feat(esp_hw_support): Support memory protection using PMA and PMP for ESP32-C5 2024-06-25 11:55:15 +05:30
harshal.patil
980ac9bcf5
fix(soc): Fix ESP32-C5's rom mask high and subsystem high memory addresses 2024-06-25 11:39:22 +05:30
Jiang Jiang Jian
b5762b732b Merge branch 'feat/optimize_bt_porting_layer_0619' into 'master'
Feat/optimize bt porting layer 0619

See merge request espressif/esp-idf!31653
2024-06-25 13:57:40 +08:00
Marius Vikhammer
7ba8f6bc51 Merge branch 'feature/lp_timer_c5_mp' into 'master'
feat(lp-timer): support lp timer for C5

Closes IDF-8636

See merge request espressif/esp-idf!31631
2024-06-25 12:35:30 +08:00
Rahul Tank
986f6246fd fix(nimble): Pass the correct cb arg during reconnection attempt 2024-06-25 08:25:09 +05:30
chenjianxing
4dfeb9c26c fix(phy): add phy calibration data check when mode is not none calibration 2024-06-25 10:53:25 +08:00
Jiang Jiang Jian
6e59ca58e6 Merge branch 'bugfix/frequency_switching_issue_in_esp32h2_c6_coex' into 'master'
fix(esp_phy): fix the frequency switching issue in esp32h2/esp32c6 ble/ieee802154 coex

See merge request espressif/esp-idf!30895
2024-06-25 09:21:08 +08:00
Konstantin Kondrashov
ee605e35b4 feat(bootloader): BOOTLOADER_SKIP_VALIDATE_IN_DEEP_SLEEP for C2 (without RTC_MEM) 2024-06-25 02:09:59 +08:00
Sudeep Mohanty
e9a2f3b098 Merge branch 'fix/ulp_riscv_i2c_multi_byte' into 'master'
fix(ulp-risc-v): Fixed RTC I2C multi-byte read/write issue for ULP RISC-V

Closes IDFGH-11056

See merge request espressif/esp-idf!31666
2024-06-24 23:09:56 +08:00
Mahavir Jain
5920651ea7 Merge branch 'change/add_error_logs_for_incorrect_secure_boot_key' into 'master'
change: Add error logs for secure boot scheme and key mismatch

See merge request espressif/esp-idf!31199
2024-06-24 20:28:22 +08:00
xiaqilin
474bac76b3 fix(esp_phy): fix the frequency switching issue in esp32h2/esp32c6 ble/ieee802154 coex 2024-06-24 18:00:50 +08:00
C.S.M
992d8bc5f2 feat(i2c_master): Add an api for retrieveing handle via port,
Closes https://github.com/espressif/esp-idf/issues/13968
2024-06-24 16:06:34 +08:00
Chen Jichang
d81546628a feat(pcnt): add support for step notify
PCNT can add watch of value increment that we call step notify.
This commit add a step notify driver and a test for the driver.

Closes https://github.com/espressif/esp-idf/issues/9604
Closes https://github.com/espressif/esp-idf/issues/12136
2024-06-24 15:50:47 +08:00
laokaiyao
7ac331fea7 refactor(lp_ana_periph): sync the reg names to TRM (part2) 2024-06-24 15:30:55 +08:00
C.S.M
c77ea73ca9 Merge branch 'fix/i2c_semaphore_release' into 'master'
fix(i2c): Fix i2c not release semaphore in command send loop

Closes IDFGH-13014

See merge request espressif/esp-idf!31572
2024-06-24 15:27:32 +08:00
Sudeep Mohanty
c3888541f1 fix(ulp-risc-v): Fixed RTC I2C multi-byte read/write issue for ULP RISC-V
This commit fixes an issue where multi-byte reads and writes over the
RTC I2C peripheral got stuck on the esp32s2 and esp32s3.

Closes https://github.com/espressif/esp-idf/issues/12235
2024-06-24 09:17:59 +02:00
Konstantin Kondrashov
1bab9da223 Merge branch 'feature/esp_rom_vprintf_supports_precision_attr' into 'master'
feat(esp_rom): Support precision attribute for esp_rom_vprintf

See merge request espressif/esp-idf!31373
2024-06-24 15:03:45 +08:00
Wang Meng Yang
74d3c00fdb Merge branch 'fix/add_integrity_check_when_select_temporary_key' into 'master'
fix(bt): add integrity check when temporary link key selected

Closes BTQABR2023-315

See merge request espressif/esp-idf!31532
2024-06-24 14:58:19 +08:00
Liu Xiao Yu
69d849cbd6 Merge branch 'feature/console_unregister_cmd' into 'master'
feat(console): Add an API function to de-register the specified console command

Closes IDF-9996

See merge request espressif/esp-idf!31258
2024-06-24 14:44:18 +08:00
Mahavir Jain
1ec218260f Merge branch 'bugfix/c5_mpi_ecc_power_mode' into 'master'
fix(hal): correct mpi/ecc peripheral power up sequence for ESP32-C5

See merge request espressif/esp-idf!31621
2024-06-24 13:47:07 +08:00
Wu Zheng Hui
2d36e81ccd Merge branch 'fix/remove_esp32c6_h2_solved_todos' into 'master'
change(esp_hw_support): remove esp32c6 & esp32h2 solved todos

Closes IDF-5781 and IDF-6254

See merge request espressif/esp-idf!31401
2024-06-24 13:35:04 +08:00
Aditya Patwardhan
3e97a9f866
fix(soc): Disable key manager and ECDSA peripheral support for esp32p4
The support is disabled only for ECO1 and below
2024-06-24 10:26:51 +05:30
gongyantao
772b4dc26a fix(bt): add integrity check when temporary link key selected 2024-06-24 12:05:49 +08:00
Wu Zheng Hui
e254647b0a Merge branch 'feature/support_esp32p4_dcdc_always_on' into 'master'
feat(esp_hw_support): support esp32p4 dcdc always on during lightsleep

Closes PM-104 and PM-131

See merge request espressif/esp-idf!30449
2024-06-24 11:46:34 +08:00
Wu Zheng Hui
54c4984256 Merge branch 'fix/trigger_system_reset_in_brownout_isr' into 'master'
change(esp_system): trigger digital system reset in brownout isr

See merge request espressif/esp-idf!30512
2024-06-24 11:15:54 +08:00
Wu Zheng Hui
ee372c4842 Merge branch 'feat/esp32p4eco_sleep_feature_update' into 'master'
feat(esp_hw_support): esp32p4eco1 sleep feature update

Closes IDF-9564

See merge request espressif/esp-idf!30899
2024-06-24 11:15:47 +08:00
Zhang Wen Xu
9e5e1f085d Merge branch 'bugfix/openthread_uart_vfs_register' into 'master'
fix(openthread): register uart vfs devices when they are not registered

See merge request espressif/esp-idf!31524
2024-06-24 11:03:57 +08:00
morris
cd9d0365e1 Merge branch 'fix/lcd_build_error_in_cpp' into 'master'
fix(lcd): build errors with deprecated lcd types in cpp

Closes IDFGH-13083 and IDFGH-13090

See merge request espressif/esp-idf!31639
2024-06-24 10:17:40 +08:00
Jiang Jiang Jian
e14eadf952 Merge branch 'bugfix/wifi-6570' into 'master'
fix the issue of wifipwr losing its clock during sleep on the esp32c6 eco1

Closes WIFI-6570

See merge request espressif/esp-idf!31586
2024-06-24 09:57:52 +08:00
morris
466f54e375
fix(i2c_lcd): using function overloading to keep esp_lcd_new_panel_io_i2c
becuase _Generic is not available in C++

Closes https://github.com/espressif/esp-idf/issues/14037
2024-06-23 21:57:36 +08:00
morris
478a8b5dd6
fix(lcd): build errors with deprecated lcd types in cpp
Closes https://github.com/espressif/esp-idf/issues/14029
2024-06-23 21:54:26 +08:00
David Cermak
c6c980b893 fix(wifi): Call DHCP server API only if DHCPS enabled
Closes https://github.com/espressif/esp-idf/issues/14006
2024-06-21 18:10:36 +02:00
wuzhenghui
1679b509be
feat(esp_hw_support): support DCDC always on 2024-06-21 16:55:49 +08:00
wuzhenghui
35180988b5
feat(esp_pm): add DCDC always on config 2024-06-21 16:55:49 +08:00
Harshit Malpani
ff16ce4314
change: Add error logs for secure boot scheme and key mismatch 2024-06-21 13:56:22 +05:30
cjin
b4ded34fd8 fix(ble): added c6 config check for ble light sleep 2024-06-21 14:58:39 +08:00
zwl
842e3b13a2 feat(bluetooth/controller): adjust bt/porting code structure and delete redundant code 2024-06-21 14:58:35 +08:00
David Čermák
d9bae333ca Merge branch 'fix/lwip_cleanup_freertos_port' into 'master'
fix(lwip): Cleanup freertos port to use more readable checks

Closes IDF-9939

See merge request espressif/esp-idf!30760
2024-06-21 13:42:21 +08:00
Mahavir Jain
e1499ddde3
fix(hal): correct the power up sequence for MPI/ECC peripherals in ESP32-C5 2024-06-21 09:42:57 +08:00
David Cermak
72c389f771 fix(lwip): Cleanup lwip -> ethernet dependencies 2024-06-20 17:00:19 +02:00
Tomas Rezucha
67c10eafaa Merge branch 'feature/usb_host_multi_configuration' into 'master'
USB Host multiconfiguration support pt1 (getting the configuration descriptor)

Closes IDFGH-11532 and IDF-8732

See merge request espressif/esp-idf!26760
2024-06-20 20:29:12 +08:00
C.S.M
8e1698aa05 fix(i2c): Fix i2c not release semaphore in command send loop 2024-06-20 19:22:49 +08:00
Kevin (Lao Kaiyao)
e301e4ee34 Merge branch 'feature/support_parlio_on_c5' into 'master'
feat(parlio): support parlio on c5

Closes IDF-8685 and IDF-8686

See merge request espressif/esp-idf!31604
2024-06-20 19:16:12 +08:00
C.S.M
38db7e60e7 Merge branch 'feat/usb_serial_jtag_c5' into 'master'
feat(usb_serial_jtag): Add usb serial jtag support on esp32c5

Closes IDF-8721 and IDF-10257

See merge request espressif/esp-idf!31544
2024-06-20 18:49:16 +08:00
Nachiket Kukade
918b5a0823 Merge branch 'bugfix/wpa3_sta_mem_leak' into 'master'
Fix memory leak in wpa3 station mode

See merge request espressif/esp-idf!31419
2024-06-20 17:33:06 +08:00
C.S.M
d53add5d84 fix(usb_serial_jtag): fix regs are not handled properly for half-word instructions 2024-06-20 16:58:15 +08:00
C.S.M
5bd39b54d3 feat(usb_serial_jtag): Add usb serial jtag support on esp32c5 2024-06-20 16:55:55 +08:00
Marius Vikhammer
24e9736532 feat(lp-timer): support lp timer for C5 2024-06-20 16:13:49 +08:00
laokaiyao
b51fc7c390 ci(parlio_rx): enable target test for h2 and p4 2024-06-20 16:02:21 +08:00
David Cermak
70645836fc fix(lwip): Cleanup freertos port to use more readable checks
It also removes incorrect comment that's not valid any more (leftover from 6933c103e5)
It also removes ESP_THREAD_SAFE macro and sys_mbox_set_owner() which were not used
It also fixes CID 460613: Uninitialized pointer read in api_lib.c, netconn_gethostbyname_addrtype
Updated lwip submodule: git log --oneline 4297782b..aa4f6e78
* api_msg: Fix unused local variable if LWIP_NETCONN_SEM_PER_THREAD=1 (espressif/esp-lwip@aa4f6e78)
2024-06-20 08:57:25 +02:00
Sudeep Mohanty
d0eed3a65e Merge branch 'fix/lp_i2c_reg_redefinition_on_esp32c5' into 'master'
fix(lp-i2c): Fixed register definition namespace for LP I2C registers on esp32c5

See merge request espressif/esp-idf!31599
2024-06-20 14:40:53 +08:00
morris
2e2a621dca Merge branch 'test/emac_regsiter_rw' into 'master'
test(emac): register are not read/write by half-word

Closes IDF-10258

See merge request espressif/esp-idf!31619
2024-06-20 14:30:13 +08:00
laokaiyao
1818bbaa79 remove(parlio): remove parlio caps in c61 2024-06-20 14:28:37 +08:00
laokaiyao
f301db44b8 feat(parlio): support parlio on C5 2024-06-20 14:28:37 +08:00
morris
55d2c23e0b Merge branch 'fix/lcd_regsiter_rw_check' into 'master'
fix(lcd): workaround register check failure

Closes IDF-10244

See merge request espressif/esp-idf!31615
2024-06-20 14:26:47 +08:00
Shyamal Khachane
0fac1ebe40 fix(esp_wifi): Fix a memory leak that occurs when the SAE connection is interrupted
1. Free temporary data used by SAE before memsetting the same
2. Drop any received auth responses that use a different algorithm than the one currently in use
2024-06-20 11:45:16 +05:30
Mahavir Jain
f0781c4641 Merge branch 'contrib/github_pr_13945' into 'master'
fix(esp_http_client): Do not allocate client->if_name twice in esp_http_client_init. (GitHub PR)

Closes IDFGH-12994

See merge request espressif/esp-idf!31497
2024-06-20 09:20:39 +08:00
morris
96e1fe5029
test(emac): register are not read/write by half-word 2024-06-19 22:39:50 +08:00
Jiang Jiang Jian
c9a504cdcb Merge branch 'bugfix/hardware_mgmt_decryption_regression' into 'master'
fix(wifi): Disable IC_PMF variable properly when station disconnects and always clear keys in tx_cb

Closes WIFI-6544

See merge request espressif/esp-idf!30695
2024-06-19 21:01:18 +08:00
Alexey Lapshin
b0ba5689f1 Merge branch 'feature/gcc-fanalyzer' into 'master'
feat(ci): add gnu static analyzer job

See merge request espressif/esp-idf!30902
2024-06-19 19:31:53 +08:00
Lou Tian Hao
ec9c9413bc Merge branch 'feature/esp32c5mp_light_sleep_support_stage_1' into 'master'
feat(esp_hw_support): esp32c5mp sleep support (Stage 1: support modem clock)

See merge request espressif/esp-idf!31028
2024-06-19 19:09:43 +08:00
morris
a8f2a94fe8
fix(lcd): workaround register check failure 2024-06-19 19:00:11 +08:00
Rahul Tank
0cfefb8a42 Merge branch 'bugfix/free_memory_before_reattempt' into 'master'
fix(nimble): Clear resource before re-starting advertising

Closes BT-3776

See merge request espressif/esp-idf!31548
2024-06-19 18:40:22 +08:00
David Čermák
1fd6a83f62 Merge branch 'fix/netif_napt_fix' into 'master'
fix(esp_netif): Don't warn about disabling napt if wasn't enabled

See merge request espressif/esp-idf!31076
2024-06-19 17:36:22 +08:00