Commit Graph

49603 Commits

Author SHA1 Message Date
Zhang Shuxian
1d1bba2164 docs: Update cn translation for build-system.rst 2025-08-04 11:33:44 +08:00
Alexey Lapshin
019dc93ae0 feat(esp_system): switch to standard __libc_init_array initialization
Initially, ESP-IDF used the do_global_ctors() function to run global
constructors. This was done to accommodate Xtensa targets that emit
.ctors.* sections, which are ordered in descending order.

For RISC-V, compilation used .init_array.* sections, which are designed
to have ascending order. Priority constructors in .init_array.* sections
were correctly processed in ascending order. However, non-priority
.init_array section was processed in descending order, as it was done
for Xtensa .ctors.

Starting with ESP-IDF v6.0, the implementation switched to the standard
LibC behavior (__libc_init_array()), which processes both priority and
non-priority constructors in ascending order.

To achieve this, a breaking changes were introduced:
  - Xtensa .ctors.* priority entries converted to .init_array.* format
    (ascending), to be passed to __libc_init_array().
  - Processing order of non-priority .init_array and .ctors sections was
    changed from descending to ascending.

Also, this change introduces .preinit_array for linking. This may be
needed for some C++ or sanitizer features.

Related to https://github.com/espressif/esp-idf/issues/15529
2025-08-04 11:33:44 +08:00
armando
9956a6230e feat(soc): p4 hw ver2 registers 2025-08-04 02:14:10 +00:00
muhaidong
f1d55e162d feat(phy): update 11ax rate for cert test 2025-08-03 17:07:28 +08:00
muhaidong
8a425253d1 feat(phy): add 11ax rate for cert test 2025-08-03 17:07:28 +08:00
Gao Xu
819970f439 Merge branch 'fix/correct_adc_periph_num_on_c2' into 'master'
fix(adc): fix ESP32-C2/P4 wrong adc periph num

See merge request espressif/esp-idf!40542
2025-08-03 14:45:23 +08:00
Jiang Jiang Jian
397c273ec0 Merge branch 'feat/chip_esp32c61_update_libphy' into 'master'
feat(phy): update libphy for esp32c61/esp32c5/esp32h2

See merge request espressif/esp-idf!40907
2025-08-02 01:29:55 +08:00
Jiang Jiang Jian
47c0e262e0 Merge branch 'bugfix/fix_bt_hci_not_effective' into 'master'
Fixed bt hci event was not report to host when hci command was sent(master)

Closes BTQABR2023-538 and BTQABR2023-548

See merge request espressif/esp-idf!40992
2025-08-02 00:56:07 +08:00
Jiang Jiang Jian
97c4eed16a Merge branch 'bugfix/fixed_ble_dtm_err' into 'master'
Bugfix/fixed ble dtm err

Closes BLERP-2129

See merge request espressif/esp-idf!40935
2025-08-01 22:48:56 +08:00
wuzhenghui
9f53ff77a1 change(example): adds USB-Serial-JTAG console usage notes to sleep examples
Closes https://github.com/espressif/esp-idf/issues/16129
2025-08-01 20:28:09 +08:00
yinqingzhao
5eea5464c4 feat(phy): update libphy for esp32c61/esp32c5/esp32h2 2025-08-01 20:12:54 +08:00
zhanghaipeng
155c32be20 fix(bt/ble): Update esp32 libbtdm_app.a (722c907a)
- Fixed bt hci event was not report to host when hci command was sent
2025-08-01 19:21:28 +08:00
Shen Mengjing
a091b84298 docs: Edit the CN translation 2025-08-01 16:40:35 +08:00
Marius Vikhammer
978f2e9720 Merge branch 'bugfix/test_utils_comp_missing' into 'master'
test(system): fixed missing test_utils component dependency

See merge request espressif/esp-idf!40969
2025-08-01 16:17:18 +08:00
Chen Ji Chang
ee779a0b72 Merge branch 'feat/support_twai_on_h21' into 'master'
feat(twai): support twai on esp32h21

Closes IDF-11574 and IDF-11575

See merge request espressif/esp-idf!40888
2025-08-01 15:35:35 +08:00
Shen Mengjing
cbd1ede64c docs: Update CN translation for linux-macos-setup.rst 2025-08-01 14:39:42 +08:00
Peter Dragun
300ff9fc78 change: fix linting errors in python files 2025-08-01 08:05:13 +02:00
Peter Dragun
519042a1e2 feat: Deprecate Python 3.9
BREAKING CHANGE:
- Minimal supported Python version is now 3.10.
2025-08-01 08:05:10 +02:00
Jiang Jiang Jian
84b4605ffa Merge branch 'fix/wpsreg_crash_due_to_double_reset' into 'master'
fix(wifi): Fix crash in WPS-registrar due to nested 'eap_wsc_reset()' calls

Closes WIFIBUG-1342

See merge request espressif/esp-idf!40751
2025-08-01 13:55:17 +08:00
Marius Vikhammer
73bd521d7a test(system): fixed missing test_utils component dependency 2025-08-01 13:40:47 +08:00
C.S.M
142a8301e8 Merge branch 'fix/make_bootloader_flash_size_correct' into 'master'
fix(bootloader_flash): Make bootloader flash size accurate

See merge request espressif/esp-idf!40847
2025-08-01 12:02:42 +08:00
Armando (Dou Yiwen)
1b22d58779 Merge branch 'feat/h4_mmu' into 'master'
mmu: h4 support

Closes IDF-12305

See merge request espressif/esp-idf!40565
2025-08-01 03:58:33 +00:00
Marius Vikhammer
4065fb20f3 Merge branch 'feature/esp_test_utils_component' into 'master'
change(test_utils): moved test_utils out of unit-test-app project

See merge request espressif/esp-idf!40678
2025-08-01 11:04:37 +08:00
Jiang Jiang Jian
1c08475950 Merge branch 'bugfix/classic_bt-safe-string-handling' into 'master'
Bugfix/classic bt safe string handling

Closes IDFGH-16085

See merge request espressif/esp-idf!40868
2025-08-01 10:39:52 +08:00
Jiang Jiang Jian
2bbf9b6160 Merge branch 'fix/chip_esp32c5_eco2_supp' into 'master'
Get operating class in dual band

Closes IDF-10613

See merge request espressif/esp-idf!38892
2025-08-01 10:27:34 +08:00
Sarvesh Bodakhe
8631f5dafd fix(wifi): prevent crash in WPS-registrar due to nested 'eap_wsc_reset()' calls
When a WPS handshake is already in progress and the enrollee sends another EAPOL-Start
(e.g., due to missed packets or timeout), the registrar resets its state by calling
'eap_wsc_reset()'. This function frees 'sm->eap_method_priv' and then calls
'esp_wifi_ap_wps_disable()', which internally triggers another call to 'eap_wsc_reset()'.

This results in a double reset where the second invocation accesses the already freed
'sm->eap_method_priv', leading to a crash.

This fix sets 'sm->eap_method_priv' to NULL immediately after freeing it to ensure
any subsequent calls to eap_wsc_reset() do not access an invalid pointer.
2025-08-01 10:27:08 +08:00
Marius Vikhammer
96512006c0 Merge branch 'ci/core_tests_use_caps' into 'master'
ci(system): update system pytest apps to use SOC_CAPs

See merge request espressif/esp-idf!40865
2025-08-01 10:25:16 +08:00
JinCheng
720108b220 fix(bt/bluedroid): safe string returns and cleanups for bt_discovery example 2025-08-01 09:40:21 +08:00
Nikheel Savant
90782249c7 fix(bt/bluedroid): safe string returns and cleanups 2025-08-01 09:40:21 +08:00
Alex Lisitsyn
be5e48bf83 Merge branch 'feature/modbus_remove_examples' into 'master'
remove(modbus): remove modbus examples in IDF v6.0

Closes IDF-13491

See merge request espressif/esp-idf!40477
2025-07-31 14:44:33 +01:00
tarun.kumar
5a5b20f44d fix(wifi): Get operating class in dual band 2025-07-31 21:01:59 +08:00
Mahavir Jain
8096a2a295 Merge branch 'feat/mbedtls_no_buffer_alloc_on_session_reset' into 'master'
feat(mbedtls): disable unnecessary buffer allocation in dynamic buffer session reset

See merge request espressif/esp-idf!40126
2025-07-31 17:53:50 +05:30
Song Ruo Jing
e94d9cee7a Merge branch 'refactor/rtc_cal_clk' into 'master'
refactor(clk): add soc_clk_calibration_clk_src_t for all targets

Closes IDF-11790

See merge request espressif/esp-idf!40737
2025-07-31 19:49:17 +08:00
Samuel Obuch
7024babc31 fix(lp_core): dont reset lp cpu with debug attached 2025-07-31 13:48:45 +02:00
Samuel Obuch
1a49af0fb6 feat(ulp): esp32c5 support in debugging example 2025-07-31 13:48:40 +02:00
Fu Hanxi
6bd8b52ad7 Merge branch 'ci/improve-check_build_test_rules-output' into 'master'
ci: improve the output of check_build_test_rules.py

See merge request espressif/esp-idf!40703
2025-07-31 13:42:26 +02:00
Marius Vikhammer
9788d33351 ci(system): update system pytest apps to use SOC_CAPs 2025-07-31 19:05:58 +08:00
Jiang Jiang Jian
1a25df75a6 Merge branch 'fix/c6_phylib_for_modem_state' into 'master'
fix(esp_phy): fix c6 modem state

Closes TZ-1912 and BT-4020

See merge request espressif/esp-idf!40867
2025-07-31 18:15:12 +08:00
aleks
50e724a534 remove(modbus): remove modbus examples in IDF v6.0 2025-07-31 18:10:34 +08:00
Fu Hanxi
fdcc1930d2 ci: improve the output of check_build_test_rules.py 2025-07-31 11:52:13 +02:00
Fu Hanxi
1adb3d6bfe ci: update pre-commit image tag to 2 2025-07-31 11:52:13 +02:00
Aditya Patwardhan
a783974d00 Merge branch 'feat/support_authentication_feature_for_ws' into 'master'
Added pre handshake callback for websocket

Closes IDF-13605

See merge request espressif/esp-idf!40706
2025-07-31 15:04:07 +05:30
Peter Dragun
dba8cb3f76 Merge branch 'feat/ide_requirements' into 'master'
feat(tools/requirements): Add IDE requirements files

See merge request espressif/esp-idf!40348
2025-07-31 17:31:50 +08:00
Jiang Jiang Jian
73e638ecc0 Merge branch 'feat/softap_gcmp_support' into 'master'
fix(wifi): add GCMP_128 cipher support for SoftAP mode

Closes WIFIBUG-558

See merge request espressif/esp-idf!40764
2025-07-31 16:44:22 +08:00
zwl
6f0a61ab0d fix(ble): fixed dtm function error on ESP32-C5 2025-07-31 14:53:29 +08:00
zwl
43c82b3b20 fix(ble): fixed dtm function error on ESP32-H2 2025-07-31 14:52:59 +08:00
zwl
ca0fdad4f2 fix(ble): fixed dtm function error on ESP32-C6 2025-07-31 14:17:07 +08:00
hrushikesh.bhosale
a40ceffb19 feat(esp_http_server): Added pre handshake callback for websocket
1. If the user wants authenticate the request, then user needs to do
this before upgrading the protocol to websocket.
2. To achieve this, added pre_handshake_callack, which will execute
before handshake, i.e. before switching protocol.
2025-07-31 11:06:18 +05:30
wuzhenghui
bf19cddafd change(esp_hw_support): warning in esp_sleep_pd_config instead of assert
Closes https://github.com/espressif/esp-idf/issues/16872#event-18649904083
2025-07-31 11:56:20 +08:00
armando
67ce0580b5 feat(mmu): supported esp_mmu_map and flash_mmap drivers on esp32h4 2025-07-31 03:43:15 +00:00