Commit Graph

16271 Commits

Author SHA1 Message Date
muhaidong
8daab872c5 esp_wifi: fix sta reset beacon timeout timer issue 2022-07-13 16:35:34 +08:00
Jiang Jiang Jian
b610b47a83 Merge branch 'feature/esp32s3_memprot_additional_improvements' into 'master'
[System/Security] Memprot after-merge improvements (v5.0)

Closes IDF-5263 and IDF-5208

See merge request espressif/esp-idf!18893
2022-07-13 15:48:20 +08:00
Jiang Jiang Jian
9a5f9804de Merge branch 'bugfix/eapol_drop_issue' into 'master'
esp_wifi: Clear old keys before going for new connection

Closes WIFI-4542

See merge request espressif/esp-idf!18967
2022-07-13 14:07:50 +08:00
Jiang Jiang Jian
8d98fbe26a Merge branch 'bugfix/remove_unused_ble_rtc_source_sel' into 'master'
Remove can not use wake up source for esp32h2

See merge request espressif/esp-idf!18966
2022-07-13 13:50:26 +08:00
Chen Wu
f65071000a lwip: Fixed that ipv6 dns cannot work 2022-07-13 11:48:04 +08:00
Mahavir Jain
510515eb7d Merge branch 'bugfix/flash_encryption_8l_psram' into 'master'
flash_encryption: Fix issue that flash encryption cannot work when 8-line psram enabled

Closes IDFGH-7702 and IDFGH-7746

See merge request espressif/esp-idf!18980
2022-07-13 11:38:12 +08:00
Jakob Hasse
33a3616635 refactor (bootloader_support, efuse)!: remove target-specific rom includes
The following two functions in bootloader_support are private now:
* esp_secure_boot_verify_sbv2_signature_block()
* esp_secure_boot_verify_rsa_signature_block()
They have been moved into private header files
inside bootloader_private/

* Removed bootloader_reset_reason.h and
  bootloader_common_get_reset_reason() completely.
  Alternative in ROM component is available.

* made esp_efuse.h independent of target-specific rom header
2022-07-13 10:29:02 +08:00
Ivan Grokhotkov
9a00475bd9
esp_common: include stdlib.h into esp_err.h for 'abort' declaration
Closes https://github.com/espressif/esp-idf/issues/9093
2022-07-12 17:01:47 +02:00
Ivan Grokhotkov
ca7c9947fc
esp_system: fix address printed by ESP_ERROR_CHECK
...to point to the calling function, not to _esp_error_check_failed.
2022-07-12 17:01:47 +02:00
Ivan Grokhotkov
a334cd50ce
app_trace: perform initialization using ESP_SYSTEM_INIT_FN 2022-07-12 16:58:15 +02:00
Ivan Grokhotkov
0e53b32d2e
esp_hw_support: perform sleep initialization using ESP_SYSTEM_INIT_FN 2022-07-12 16:58:15 +02:00
Ivan Grokhotkov
bb771fb7c4
esp_timer: perform initialization using ESP_SYSTEM_INIT_FN
(startup.c still calls esp_timer_early_init directly)
2022-07-12 16:58:15 +02:00
Ivan Grokhotkov
42654927d5
esp_system: add a script to check the startup priorities 2022-07-12 16:58:14 +02:00
Ivan Grokhotkov
523aacd413
esp_system: allow defining priorities for startup functions
* Some components have initialization dependencies. To account for
  them, simple numeric priority values are introduced.
* esp_system_init_fn_array moved into Flash from DRAM
* System init functions defined using ESP_SYSTEM_INIT_FN now return
  an error code. This enables simpler and more consistent error
  handling in the init functions. Returning an error from an init
  function is now a valid approach — the startup code will print
  an error and abort.
2022-07-12 16:58:14 +02:00
Jiang Jiang Jian
258585f50a Merge branch 'bugfix/correct_blecmd_for_rf_path' into 'master'
Bluedroid: Fixed compilation error due to incorrect macro name

See merge request espressif/esp-idf!18983
2022-07-12 19:35:40 +08:00
Kapil Gupta
ff00a1c7a2 esp_wifi: Clear old keys before going for new connection 2022-07-12 16:37:55 +05:30
Jessy Chen
631bf1ad63 esp_phy: Support 26M and 40M crystal for esp32c2 phy 2022-07-12 05:59:26 -04:00
Jiang Jiang Jian
4c1f114eab Merge branch 'bugfix/ble_50_sync_periodic_adv_lost_data' into 'master'
components/bt: Fix ble sync periodic adv report will lost data

See merge request espressif/esp-idf!18957
2022-07-12 16:18:01 +08:00
Cao Sen Miao
683d92bc88 flash_encryption: Fix issue that flash encryption cannot work when 8-line psram enabled,
Closes https://github.com/espressif/esp-idf/issues/9244,
                  Closes https://github.com/espressif/esp-idf/issues/9287
2022-07-12 16:08:57 +08:00
Li Qi Gan
e58bb91c2f Merge branch 'bugfix/fix_memory_leak_in_hidh' into 'master'
Fix memory leak in bt_hidh.c

Closes IDFGH-7786

See merge request espressif/esp-idf!18968
2022-07-12 15:51:56 +08:00
Jiang Jiang Jian
1523a1bdef Merge branch 'bugfix/fix_esp32_c3_s3_adv_report_duplicate_check' into 'master'
Fix esp32c3/s3 adv report duplicate check

Closes BT-2440

See merge request espressif/esp-idf!18961
2022-07-12 14:00:33 +08:00
Omar Chebib
e5c83211a7 Merge branch 'bugfix/interrupt_stack_bss' into 'master'
System: move interrupt stack to .bss instead of .data section

Closes IDFGH-7635

See merge request espressif/esp-idf!18697
2022-07-12 13:44:07 +08:00
GengYuchao
df6d3eb602 Remove can not use wake up source for esp32h2 2022-07-12 11:23:59 +08:00
Jiang Jiang Jian
3630713e5f Merge branch 'docs/esp32c2_sys_feature_api_guides' into 'master'
docs: update system API-guides for ESP32-C2

Closes IDF-4202, IDF-4213, and IDF-4222

See merge request espressif/esp-idf!18979
2022-07-12 10:59:12 +08:00
Jiang Jiang Jian
eba22b98fd Merge branch 'bugfix/fix_beacon_timeout_timer_issue' into 'master'
esp_wifi: reset beacon timeout timer when keep alive null works or hw drop beacon

Closes IDFGH-7489

See merge request espressif/esp-idf!18963
2022-07-12 10:46:18 +08:00
Jakob Hasse
3010c41dc7 Merge branch 'bugfix/freertos_tasks_unused_var' into 'master'
bugfix (freertos): removed unused variable in tasks.c

See merge request espressif/esp-idf!18976
2022-07-12 09:56:31 +08:00
Marius Vikhammer
f463c42791 Merge branch 'bugfix/ringbuf_iram_fix' into 'master'
esp_ringbuf: placement in flash is no longer controlled by...

Closes IDFGH-7646

See merge request espressif/esp-idf!18774
2022-07-12 09:56:25 +08:00
Marius Vikhammer
d62421619c docs: update system API-guides for ESP32-C2 2022-07-12 09:32:43 +08:00
Roland Dobai
3d1508db9d Tools: Make espcoredump.py executable
Closes https://github.com/espressif/esp-idf/issues/9319
2022-07-11 17:32:47 +02:00
muhaidong
52f378ac7b esp_wifi: reset beacon timeout timer when keep alive null works or hw drop beacon 2022-07-11 20:54:25 +08:00
Rahul Tank
ac54468d1b Bluedroid: Fixed compilation error due to incorrect macro name 2022-07-11 16:40:51 +05:30
Jakob Hasse
0adb313441 bugfix (freertos): removed unused variable in tasks.c 2022-07-11 18:18:09 +08:00
Omar Chebib
bac62cfac8 System: move interrupt stack to .bss instead of .data section
The interrupt stack for Xtensa targets is now declared in C, automatically moving it to .bss section instead of .data section.

* Closes https://github.com/espressif/esp-idf/issues/9188
2022-07-11 17:49:21 +08:00
xiewenxiang
947d082b44 components/bt: Fix ble sync periodic adv report lost data issue 2022-07-11 16:51:22 +08:00
Jiang Jiang Jian
86deb8c0f5 Merge branch 'bugfix/remove_ulp_tsens' into 'master'
ulp: remove ESP32 ULP TSENS references

Closes IDF-1485

See merge request espressif/esp-idf!18883
2022-07-11 16:31:43 +08:00
Song Ruo Jing
ea97cc93ea Merge branch 'feature/c2_systimer_26mhz' into 'master'
esp32c2: 26 MHz XTAL support: Kconfig option, systimer support

Closes IDF-5412 and IDF-5413

See merge request espressif/esp-idf!18835
2022-07-11 16:17:25 +08:00
Wang Meng Yang
13d141de27 Merge branch 'bugfix/fix_osi_men_dbg_xxx_not_defined_when_enable_mem_dbg' into 'master'
bugfix/fix the issue of functions not defined when enable memory debug

Closes IDFGH-9248

See merge request espressif/esp-idf!18802
2022-07-11 15:36:46 +08:00
xiongweichao
b0b6ad21f8 coex: fixed crash when calculating end transfer time 2022-07-11 15:26:53 +08:00
liqigan
ea63a42f15 fix memory leak in esp_bt_hidh_dev_report_write and esp_bt_hidh_dev_set_report in bt_hidh.c
Closes https://github.com/espressif/esp-idf/issues/9323
2022-07-11 14:30:00 +08:00
Jiang Jiang Jian
4644e2c302 Merge branch 'bugfix/fix_esp32_ke_mem_c_assert' into 'master'
Fixed esp32 BLE ke_mem.c assert

See merge request espressif/esp-idf!18916
2022-07-11 14:02:39 +08:00
Anton Maklakov
22802392bc Merge branch 'fix/spinlock-performance' into 'master'
freertos: fix inlining for xtensa port

Closes IDF-5178, IDF-5221, and IDF-5179

See merge request espressif/esp-idf!18641
2022-07-11 12:33:20 +08:00
Marius Vikhammer
6cc871d793 Merge branch 'feature/ulp_riscv_adc' into 'master'
ulp-riscv: add support for using ADC as well as an example show-casing it.

Closes IDFGH-7564 and IDF-1714

See merge request espressif/esp-idf!18767
2022-07-11 12:30:31 +08:00
songruojing
996fb0cce8 G0: hal/regi2c_ctrl.h now defines all REGI2C macros to pass g0_components build test 2022-07-11 12:24:58 +08:00
wuzhenghui
a9c8065030 Kconfig: Update dependencies to avoid invalid configurations
1. Since the baud rate in the ROM cannot be changed,
   set the default baud rate of the 26Mhz version
   of esp32c2 to 74800
2. Since the systimer configuration of the 26Mhz
   version requires a non-integer systimer frequency
   configuration, and this feature is not supported
   in the current ROM, this option is disabled for
   the 26Mhz version esp32c2
2022-07-11 12:24:58 +08:00
songruojing
b3d8db3ae2 bootloader, esp_system: esp32c2 console uart to support 26MHz xtal
Gets the XTAL frequency from the RTC storage register, remove UART_CLK_FREQ_ROM macro from soc.h
2022-07-11 12:24:58 +08:00
songruojing
ef813b23fa rtc: esp32c2 support 26MHz xtal in startup code and rtc_clk.c 2022-07-11 12:24:58 +08:00
Ivan Grokhotkov
2e37218ce5 soc, hal: remove XTAL_CLK_FREQ
XTAL_CLK_FREQ now depends on the actual XTAL used, remove this macro
and get the XTAL frequency from the RTC register instead.
No uses of XTAL_CLK_FREQ found, other than in the UART LL.
2022-07-11 12:24:58 +08:00
Ivan Grokhotkov
5b54ae76d4 esp_timer, hal: add support for non-integer systimer frequency
When ESP32-C2 is paired with a 26 MHz XTAL, the systimer tick
frequency becomes equal to 26 / 2.5 = 10.4 MHz. Previously we always
assumed that systimer tick frequency is integer (and 1 MHz * power of
two, above that!).
This commit introduces a new LL macro, SYSTIMER_LL_TICKS_PER_US_DIV.
It should be set in such a way that:

1. SYSTIMER_LL_TICKS_PER_US / SYSTIMER_LL_TICKS_PER_US_DIV equals the
   actual systimer tick frequency,
2. and SYSTIMER_LL_TICKS_PER_US is integer.

For ESP32-C2 this means that SYSTIMER_LL_TICKS_PER_US = 52 and
SYSTIMER_LL_TICKS_PER_US_DIV = 5.

This introduced two possible issues:

1. Overflow when multiplying systimer counter by 5
   - Should not be an issue, since systimer counter is 52-bit, so
     counter * 5 is no more than 55-bit.
2. The code needs to perform:
   - divide by 5: when converting from microseconds to ticks
   - divide by 52: when converting from ticks to microseconds
   The latter potentially introduces a performance issue for the
   esp_timer_get_time function.
2022-07-11 12:24:37 +08:00
Omar Chebib
f5c3c533bb Merge branch 'bugifx/heap_prefer_call_failed_callback' into 'master'
Heap: heap_caps_*_prefer functions now properly call alloc_failed callback

Closes IDFGH-7521

See merge request espressif/esp-idf!18427
2022-07-11 11:57:05 +08:00
Jiang Jiang Jian
9873d4d138 Merge branch 'bugfix/s2_s3_stack_extmem_config' into 'master'
psram: make SPIRAM_ALLOW_STACK_EXTERNAL_MEMORY configurable on S2 and S3

See merge request espressif/esp-idf!18894
2022-07-11 10:54:59 +08:00
chenjianhua
42667adf70 fix esp32c3/s3 adv report duplicate check 2022-07-11 10:25:32 +08:00
Marius Vikhammer
e8b5096f52 ulp-riscv: add support for using ADC as well as an example show-casing it. 2022-07-11 09:31:22 +08:00
Marius Vikhammer
fd37129651 esp_ringbuf: placement in flash is no longer controlled by CONFIG_FREERTOS_PLACE_FUNCTIONS_INTO_FLASH
esp-ringbuf funtion placement is now controlled by its own configs:
CONFIG_RINGBUF_PLACE_FUNCTIONS_INTO_FLASH and CONFIG_RINGBUF_PLACE_ISR_FUNCTIONS_INTO_FLASH

Closes https://github.com/espressif/esp-idf/issues/9198
2022-07-11 09:24:20 +08:00
Jiang Jiang Jian
7087449d43 Merge branch 'doc/ble_deinit' into 'master'
components/bt: Add description for de-initialize bt controller

See merge request espressif/esp-idf!17431
2022-07-10 15:37:13 +08:00
Martin Vychodil
0c87ae2a91 System/Security: Memprot API unified (ESP32S3)
Added missing features and improvements
2022-07-09 22:57:51 +02:00
Djordje Nedic
0331d0aa63 tools: Introduce support for blank lines in config and value files for mfg utility
Some users have requested this feature.

In order to avoid complete refactoring or introducing more code complexity, a design choice to create temporary files without blank lines is made.

Additionally, an extension check is added and there are multiple smaller code style and structure improvements.

Closes https://github.com/espressif/esp-idf/issues/8421
2022-07-08 13:22:35 +00:00
Jiang Jiang Jian
9ec829f352 Merge branch 'bugfix/wifi_sta_and_ble_disconnect_BCI-303_master' into 'master'
component_bt: Fix wifi is initialized before bluetooth initialization, bluetooth can't stay connected

Closes BCI-303

See merge request espressif/esp-idf!18643
2022-07-08 19:43:10 +08:00
Wei Tian Hua
8699a10929 Merge branch 'bugfix/redesign_hf_ag_init_deinit_api_param' into 'master'
component_bt: Change HF AG API

See merge request espressif/esp-idf!18592
2022-07-08 16:57:20 +08:00
Jiang Jiang Jian
a7bf3af687 Merge branch 'bugfix/reset_ble_hw_on_inititalization' into 'master'
component/bt: reset Bluetooth hardware during controller inititalization on ESP32-C3/ESP32-S3

Closes BT-2402

See merge request espressif/esp-idf!18831
2022-07-08 16:21:41 +08:00
Ivan Grokhotkov
f0f9890096 bootloader: set the initial XTAL frequency based on the Kconfig option 2022-07-08 15:04:26 +08:00
Ivan Grokhotkov
672e70a023 esp_hw_support: add 26 MHz XTAL option for esp32c2
Some esp32c2 boards will be produced with a 26 MHz XTAL. This commit
adds the basic Kconfig option for this type of hardware.
Support for CONFIG_ESP32C2_XTAL_FREQ_26 in other areas of IDF will be
implemented in subsequent commits.
2022-07-08 15:04:17 +08:00
Jiang Jiang Jian
7e2ee82160 Merge branch 'bugfix/fix_qos_null_update_ba_ssn' into 'master'
wifi:bugfix fix qos null update ba ssn

Closes IDFGH-6811

See merge request espressif/esp-idf!18882
2022-07-08 14:00:11 +08:00
Mahavir Jain
03c1ada871 Merge branch 'bugfix/netif_interface_reg_sequence_issue' into 'master'
esp_wifi: netif: set interface before registering Wi-Fi driver RX callback

Closes WIFI-4515 and WIFI-4472

See merge request espressif/esp-idf!18895
2022-07-08 13:23:31 +08:00
xiewenxiang
451a1dd937 doc(bt): Add description for de-initialize bt controller 2022-07-08 10:58:32 +08:00
jincheng
3de3a8b354 fix the issue of functions not defined when enable memory debug
Closes https://github.com/espressif/esp-idf/issues/9248
2022-07-08 10:57:29 +08:00
Shen Jun
d09e4d673c Merge branch 'bugfix/fix_esp32c2_tx_crash_issue' into 'master'
esp_wifi: fix esp32c2 tx crash issue

Closes WIFI-4581

See merge request espressif/esp-idf!18911
2022-07-08 10:37:27 +08:00
Roland Dobai
55d95dd813 Merge branch 'fix/esptool_esp32c2_minrev_v2' into 'master'
tools: Generate images for ESP32-C2 with required minimal revision

Closes IDF-5303

See merge request espressif/esp-idf!18917
2022-07-08 05:41:57 +08:00
Jiang Jiang Jian
f0172d5ae0 Merge branch 'bugfix/fix_wrong_params_in_hidd' into 'master'
Fix wrong parameter of get_report_by_id_and_type in bt_hidd.c

See merge request espressif/esp-idf!18892
2022-07-08 01:10:20 +08:00
zwj
9a46d06532 fix esp32 BLE ke_mem.c assert 2022-07-07 11:23:11 +00:00
Darian
ceffde5cb6 Merge branch 'bugfix/coredump_shebang' into 'master'
espcoredump: Fix espcoredump.py shebang and file mode

See merge request espressif/esp-idf!18902
2022-07-07 19:20:15 +08:00
Alexey Lapshin
7e5a7921fe freertos: fix inlining for xtensa port 2022-07-07 09:04:51 +00:00
Guillaume Souchere
9b8c558e63 Merge branch 'bugfix/backtrace_formatting_add_missing_space' into 'master'
Reverts Backtrace: format to what it used to be

Closes IDFGH-7580

See merge request espressif/esp-idf!18783
2022-07-07 16:51:47 +08:00
morris
75bd6fc2d9 Merge branch 'contrib/github_pr_9302' into 'master'
ESP32S3 USB external PHY pinout (GitHub PR)

Closes IDFGH-7761

See merge request espressif/esp-idf!18909
2022-07-07 16:17:26 +08:00
Roland Dobai
9ee3661b4b tools: Generate images for ESP32-C2 with required minimal revision 2022-07-07 15:44:55 +08:00
xueyunfei
95591fdf65 wifi:bugfix fix qos null update ba ssn 2022-07-07 15:23:29 +08:00
Marius Vikhammer
f78d13398e Merge branch 'bugfix/enable_freertos_tests_c2' into 'master'
freertos: re-enable tests disabled for C2

Closes IDF-5140

See merge request espressif/esp-idf!18885
2022-07-07 14:14:46 +08:00
Rahul Tank
020dc7b2ec Merge branch 'bugfix/fix_extra_event_init_periodic' into 'master'
NimBLE: Removed extra event init done during periodic_sync_alloc

See merge request espressif/esp-idf!18494
2022-07-07 13:02:53 +08:00
morris
b0e228f756 soc: update copyright for usb phy pins 2022-07-07 11:50:06 +08:00
Michael (XIAO Xufeng)
a58362a429 Merge branch 'feature/efuse_rev_major_minor' into 'master'
efuse: Adds major and minor versions

See merge request espressif/esp-idf!18255
2022-07-07 11:48:54 +08:00
shenjun
988f9b3a59 esp_wifi: fix esp32c2 tx crash issue 2022-07-07 11:32:00 +08:00
Island
0d86ca59a6 Merge branch 'update/esp32h2_h2_beta2_controller_lib_to_cd9dd20' into 'master'
Update esp32h2 beta2 lib to controller master

See merge request espressif/esp-idf!18876
2022-07-06 22:13:05 +08:00
Song Ruo Jing
b662f4b74f Merge branch 'feature/support_26M_32M_xtal_bbpll_c2' into 'master'
support c2 26M/32M xtal for bbpll

Closes IDF-5485

See merge request espressif/esp-idf!18769
2022-07-06 21:17:52 +08:00
Darian Leung
5de652bbe2 espcoredump: Fix espcoredump.py shebang and file mode
This commit adds back the shebang and executable file mode for
espcoredump.py
2022-07-06 21:03:11 +08:00
lsita
9ceff23c6d USB external PHY pinout set as in Reference Manual Figure 29-3. 2022-07-06 14:54:35 +02:00
morris
a92cce9861 Merge branch 'bugfix/calib_i2c_clk' into 'master'
I2C: Make I2C clock frequency accurate

Closes IDF-5363

See merge request espressif/esp-idf!18686
2022-07-06 20:52:31 +08:00
Zim Kalinowski
5ed792a296 Merge branch 'bugfix/fix_sdio_master_slave_test_with_freertos_smp' into 'master'
freertos-smp: Fix sdio driver master slave performance test with FreeRTOS SMP

See merge request espressif/esp-idf!18865
2022-07-06 19:39:03 +08:00
Jiang Jiang Jian
7b3ee47c67 Merge branch 'bugfix/fix_ble_ke_mem_c_assert_on_c3_s3' into 'master'
Fixed BLE ke_mem.c assert on esp32c3 and esp32s3

Closes BT-2405, BT-2406, and BCI-302

See merge request espressif/esp-idf!18863
2022-07-06 16:58:07 +08:00
wangmengyang
f86efb2bc2 fix licence copyright for header file syscon_reg.h on ESP32C3 and ESP32S3 2022-07-06 16:24:03 +08:00
wangmengyang
1d55f12c2d component/bt: reset Bluetooth hardware during controller inititalization on ESP32-C3/ESP32-S3
1. Rename MACROs SYSTEM_WIFI_RST_EN register bit fields to be more recognizable
2. reset Bluetooth baseband and clock bits to fix the issue of task watchdog triggered during controller initialization due to invalid hardware state
2022-07-06 16:23:48 +08:00
morris
627b171a3c Merge branch 'feature/enable_rpa_modem_reset_function_in_esp32h2' into 'master'
Enable rpa_moudle reset function

See merge request espressif/esp-idf!18891
2022-07-06 14:47:37 +08:00
xiongweichao
155c4a5cb3 Fix wifi is initialized before bluetooth initialization, bluetooth can't stay connected 2022-07-06 14:42:46 +08:00
Zim Kalinowski
ecac5d02fc Merge branch 'bugfix/fix_esp_event_test_with_freertos_smp' into 'master'
freertos-smp: Update performance threshold for esp_event performance test with FreeRTOS SMP

Closes IDF-5449

See merge request espressif/esp-idf!18848
2022-07-06 12:41:05 +08:00
Guo Jia Cheng
fb181e0482 Merge branch 'bugfix/timer-overflow' into 'master'
openthread: update library to fix timer overflow

See merge request espressif/esp-idf!18889
2022-07-06 12:21:25 +08:00
Rahul Tank
d3e7d9b090 NimBLE: Removed extra event init done during periodic_sync_alloc 2022-07-06 09:50:17 +05:30
Marius Vikhammer
457e31a715 freertos: re-enable tests disabled for C2 2022-07-06 12:15:04 +08:00
Zim Kalinowski
6062748203 Merge branch 'bugfix/fix_vfs_test_with_freertos_smp' into 'master'
freertos-smp: Update performance thresholds for VFS Open, Write, Close test with FreeRTOS SMP

Closes IDF-5448

See merge request espressif/esp-idf!18849
2022-07-06 12:14:19 +08:00
Marius Vikhammer
342f4f315c psram: make SPIRAM_ALLOW_STACK_EXTERNAL_MEMORY configurable on S2 and S3
SPIRAM_ALLOW_STACK_EXTERNAL_MEMORY was always enabled on S2 and S3, but this option is not
compatible with ESP_COREDUMP_ENABLE_TO_FLASH. Make it configurable to allow users to deactive
it so that ESP_COREDUMP_ENABLE_TO_FLASH can be used.
2022-07-06 12:11:15 +08:00
Cao Sen Miao
e218723e0e I2C: Make I2C clock frequency accurate 2022-07-06 11:58:08 +08:00
Mahavir Jain
f45dbd1f97
esp_wifi: netif: set interface before registering Wi-Fi driver RX callback
If appropriate interface is not set then RX callback can potentially dereference
null pointer from `s_wifi_netifs` table. This in-fact resulted in `LoadProhibited` exception
in HTTP server example test case.

Order here for setting interface and then registering callback was correct but
it was modified in 0e71a325de causing this regression.
2022-07-06 09:03:08 +05:30
Song Ruo Jing
2bc0f45d85 Merge branch 'feature/uart_get_free_tx_buffer_size' into 'master'
uart: Add a new API to get the free space size of tx buffer

Closes IDFGH-7348 and IDFGH-642

See merge request espressif/esp-idf!18749
2022-07-06 11:18:57 +08:00
Jiang Jiang Jian
5134af1c6b Merge branch 'bugfix/ext_adv_param_check' into 'master'
Bluedroid: fix channel map of ext adv params check

See merge request espressif/esp-idf!18877
2022-07-06 11:02:46 +08:00
Jiang Jiang Jian
8b30b7a489 Merge branch 'contrib/github_pr_9264' into 'master'
Fix tinyusb_driver_install (dangling pointer) (GitHub PR)

Closes IDFGH-7723

See merge request espressif/esp-idf!18874
2022-07-06 10:53:38 +08:00
Omar Chebib
c017f006cd Merge branch 'contrib/github_pr_9255' into 'master'
Fix datatype conversion compiler error #9254 (GitHub PR)

Closes IDFGH-7713

See merge request espressif/esp-idf!18872
2022-07-06 10:37:30 +08:00
Marius Vikhammer
cf41c255bb Merge branch 'bugfix/cache_disabled_log_c3' into 'master'
esp_hw_support: always inline cpu_hal_set_vecbase to avoid issues at -O0

See merge request espressif/esp-idf!18630
2022-07-06 09:55:20 +08:00
Zim Kalinowski
613e53f0a1 freertos-smp: Fix sdio driver master slave performance test with FreeRTOS SMP
This commit relaxes the performance thresholds for sdio driver test when
FreeRTOS SMP is enabled.
2022-07-05 22:05:33 +02:00
Darian
ee808f55a4 Merge branch 'bugfix/freertos_smp_stack_tcb_allocation_order' into 'master'
FreeRTOS: Fix stack and TCB allocation order

See merge request espressif/esp-idf!18841
2022-07-06 03:22:52 +08:00
Jakob Hasse
5a3310ff3b Merge branch 'refactor/remove_rom_deps_cache_lldesc' into 'master'
SOC: removed target-specific ROM dependencies

See merge request espressif/esp-idf!18705
2022-07-06 02:06:30 +08:00
Zim Kalinowski
3d38de9f00 Merge branch 'bugfix/fix_spi_speed_with_freertos_smp' into 'master'
freertos-smp: Fix spi_speed test for FreeRTOS SMP

Closes IDF-5464

See merge request espressif/esp-idf!18842
2022-07-06 01:38:05 +08:00
Darian
91fb280d4c Merge branch 'bugfix/twdt_deinit_freertos_smp' into 'master'
TWDT: esp_task_wdt_deinit() should deregister idle hook callback under CONFIG_FREERTOS_SMP

Closes IDF-5461

See merge request espressif/esp-idf!18867
2022-07-06 00:45:58 +08:00
Shu Chen
87f9fbaed1 Merge branch 'feature/hide_build_from_src' into 'master'
build: move build_from_src options to env

See merge request espressif/esp-idf!18735
2022-07-05 22:54:18 +08:00
David Čermák
53b9213757 Merge branch 'bugfix/mqtt_ping_timer_restart' into 'master'
[MQTT] - Adds esp-timer as dependency and update esp_mqtt.

See merge request espressif/esp-idf!18409
2022-07-05 22:01:32 +08:00
David Čermák
8417079218 Merge branch 'component/asio_migration' into 'master'
ASIO: Remove internal component, examples, test and docs

Closes IDF-4625

See merge request espressif/esp-idf!18297
2022-07-05 21:26:48 +08:00
GengYuchao
d145c337e0 Enable rpa_moudle reset function 2022-07-05 20:50:31 +08:00
liqigan
2873cefe78 fix wrong params of get_report_by_id_and_type in bt_hidd.c 2022-07-05 20:50:11 +08:00
Sudeep Mohanty
d447c54513 freertos-smp: Update performance thresholds for VFS Open, Write, Close test with FreeRTOS SMP
This commit relaxes performance thresholds for VFS Open, Write and Close
test with FreeRTOS SMP enabled.
2022-07-05 12:13:40 +00:00
Sudeep Mohanty
1da0fe6f9b freertos-smp: Update performance threshold for esp_event performance test with FreeRTOS SMP
This commit updates the performance thresholds for esp_event performance
test with FreeRTOS SMP enabled.
2022-07-05 12:12:45 +00:00
Jiacheng Guo
d02de327b5 openthread: update library to fix timer overflow
Closes https://github.com/espressif/esp-idf/issues/9278
2022-07-05 19:28:07 +08:00
songruojing
9d73475e44 uart: Add a new API to get the free space size of tx buffer
Closes https://github.com/espressif/esp-idf/issues/8932

Closes https://github.com/espressif/esp-idf/issues/3078
2022-07-05 18:39:22 +08:00
Jiang Jiang Jian
77a7fa77e2 Merge branch 'bugfix/wrong_configuration_of_static_txbuf' into 'master'
wifi:bugfix for wrong configuration of static txbuf

Closes IDFGH-7667

See merge request espressif/esp-idf!18852
2022-07-05 18:07:36 +08:00
cje
e16165f263 support c2 26M/32M xtal for bbpll 2022-07-05 17:45:03 +08:00
Marius Vikhammer
3d61c6d7d7 ulp: remove ESP32 ULP TSENS references
Due to poor accuracy the ESP32 ULP TSENS instructions is not recommend for use.
We keep the instruction itself to support users which are already using it,
but should remove it from examples and docs to avoid encouring any new usage of it.
2022-07-05 17:37:13 +08:00
Jiang Jiang Jian
f747ffd63a Merge branch 'bugfix/add_ttl_for_ping_socket' into 'master'
lw-ip:bugfix for add ttl for ping socket

Closes WIFI-4340

See merge request espressif/esp-idf!18376
2022-07-05 17:09:53 +08:00
chenjianhua
3a1a5e284a Bluedroid: fix channel map of ext adv params check 2022-07-05 16:02:37 +08:00
GengYuchao
509ac4e748 Update esp32h2 beta2 lib to master 2022-07-05 15:15:41 +08:00
KonstantinKondrashov
0f8ff5aa15 efuse: Adds major and minor versions and others 2022-07-05 14:38:27 +08:00
Darian Leung
a0ab1c2acd freertos: Fix stack and TCB allocation order in SMP FreeRTOS
This commit fixes the allocation order of task stacks and TCBs in
order to reduce the chance of a stack overflow overwriting a TCB.
2022-07-05 14:27:44 +08:00
xueyunfei
a7ae72e1f5 wifi:bugfix for wrong configuration of static txbuf 2022-07-05 14:02:31 +08:00
Jakob Hasse
f8b5ed5d6c refactor (soc, esp_rom)!: removed target-specific ROM dependencies 2022-07-05 13:57:58 +08:00
Omar Chebib
a0ca353cda Heap: heap_caps_*_prefer functions now properly call alloc_failed callback
heap_caps_*_prefer functions will now only call heaps_caps_alloc_failed
callback if all attempts to allocation memory fail (and not after each attempt
anymore).

* Closes https://github.com/espressif/esp-idf/issues/9086
2022-07-05 05:57:04 +00:00
Omar Chebib
fca7be2ddb Merge branch 'bugfix/fix_disassembler_interpreting_padding' into 'master'
(Xtensa) Build: add .xt.prop to the compiled ELF file

See merge request espressif/esp-idf!17268
2022-07-05 13:48:42 +08:00
Darian Leung
c7fbcd754f esp_system: TWDT needs to deregister idle hook callback on esp_task_wdt_deinit()
This commit fixes a bug in esp_task_wdt_deinit() where under CONFIG_FREERTOS_SMP,
the idle hook callback is not deregistered.
2022-07-05 13:40:46 +08:00
Sudeep Mohanty
5ab7beea4a freertos-smp: Fix spi_speed test for FreeRTOS SMP
Updated performance thresholds for spi_speed test with FreeRTOS SMP is
enabled.
2022-07-05 05:11:16 +00:00
Jiang Jiang Jian
271f4e4c40 Merge branch 'bugfix/rm_deauth_when_first_auth' into 'master'
esp_wifi: remove deauth before first auth

Closes IDFGH-6544

See merge request espressif/esp-idf!18803
2022-07-05 12:58:05 +08:00
Omar Chebib
3c9856bdd1 (Xtensa) Build: add .xt.prop and .xt.lit to the compiled ELF file
Adding prop and lit sections to the ELF will let the debugger and the disassembler
have more info about data bytes present in the middle of the Xtensa
instructions, usually used for padding.
2022-07-05 04:39:29 +00:00
xueyunfei
45ad770c37 Icmp: get tos parameter in icmp reply 2022-07-05 11:37:41 +08:00
xueyunfei
b569f4069a bugfix for add ttl for ping socket 2022-07-05 11:37:41 +08:00
zwj
f15d7d28b5 fix ble ke_mem.c assert on esp32c3 and esp32s3 2022-07-05 03:18:14 +00:00
chenjianxing
ce1ab731be esp_wifi: remove deauth before first auth
1.fix deep sleep can't reconnect to ap when pmf enable
2.fix some ap will ignore auth when rx deauth for some time
2022-07-05 02:42:08 +00:00
GengYuchao
3be5ab7268 Update nimble port init changes 2022-07-05 02:40:49 +00:00
GengYuchao
ee13e58b16 update head files for nimble
Remove some useless error printing display
2022-07-05 02:40:49 +00:00
GengYuchao
9e1466a34d move init func to nimble 2022-07-05 02:40:49 +00:00
Zim Kalinowski
e4b692b6f6 fixing build problem 2022-07-04 22:20:26 +02:00
gabsuren
79d3655106 ASIO: Remove internal component, examples, test and docs 2022-07-04 22:15:24 +04:00
Jiang Jiang Jian
8ab78803d4 Merge branch 'bugfix/s3_wakeup_light_sleep_rtc_wdt_timeout' into 'master'
component_bt: Fixed rtc watchdog timeout when waking up light sleep due to some functions not in IRAM

See merge request espressif/esp-idf!18757
2022-07-04 18:21:29 +08:00
David Čermák
46fe7dbc8c Merge branch 'component/mdns_migration' into 'master'
mdns: Remove internal component, examples, test and docs

Closes IDF-4074

See merge request espressif/esp-idf!17683
2022-07-04 17:45:27 +08:00
Omar Chebib
cfeaa50b53 Merge branch 'bugfix/esp32c2_missing_eh_frame_sections' into 'master'
espsystem: add missing eh_frame sections on esp32c2

See merge request espressif/esp-idf!18629
2022-07-04 17:13:40 +08:00
morris
7863c1bc45 Merge branch 'bugfix/fix_rtc_freq_err_for_h2_beta1' into 'master'
Bugfix/fix rtc freq err for h2 beta1

See merge request espressif/esp-idf!18682
2022-07-04 16:46:17 +08:00
Martin Vychodil
29c0703d7e Merge branch 'bugfix/esp32s3_memprot_wrong_check_unicore' into 'master'
System/Security: fix missing checks for CPU-count sensitive Memprot APIs (ESP32S3)

Closes IDF-5401

See merge request espressif/esp-idf!18834
2022-07-04 16:41:45 +08:00
Wang Meng Yang
cb74a64768 Merge branch 'feature/support_for_wr_sugg_data_len_cmd' into 'master'
feature/added read-write sugg default datalen cmds

See merge request espressif/esp-idf!17863
2022-07-04 15:17:44 +08:00
Mahavir Jain
a269a704af Merge branch 'bugfix/main_task_on_cpu1_startup_failure' into 'master'
freertos: Fix issue with bootup failure in ESP_MAIN_TASK_AFFINITY_CPU1 config

Closes IDFGH-7705

See merge request espressif/esp-idf!18755
2022-07-04 14:54:14 +08:00
Jiang Jiang Jian
c154d09c52 Merge branch 'bugfix/resolve_redefinition_in_spp_and_hid' into 'master'
resolve redefinition in btc_spp.h and btc_hd.h/btc_hh.h

Closes IDFGH-7647

See merge request espressif/esp-idf!18617
2022-07-04 14:12:35 +08:00
Marius Vikhammer
4720607229 Merge branch 'bugfix/c2_mac_address' into 'master'
mac addr: fix wrong offset being used for C2 BT mac address

Closes IDF-5046

See merge request espressif/esp-idf!18717
2022-07-04 14:04:13 +08:00
Omar Chebib
7e42038c86 Merge branch 'refactor/move_regi2c_headers' into 'master'
Refactor: move regi2c_*.h header files from esp_hw_support to soc component

See merge request espressif/esp-idf!18676
2022-07-04 11:32:30 +08:00
Mahavir Jain
cd1555ec03 Merge branch 'esp32c2_check_ocd_mode' into 'master'
esp32c2: check ocd mode before configure memprot

See merge request espressif/esp-idf!18655
2022-07-04 11:22:25 +08:00
Onkar
731a8d357f feature/added read-write sugg default datalen cmds 2022-07-03 13:50:12 +05:30
Martin Vychodil
ee9aa9a302 System/Security: fix missing checks for CPU-count sensitive Memprot APIs (ESP32S3)
Some of the Memory Protection (internal) API functions dealing with per-CPU operations were missing appropriate handling of the CPU count actually configured by CONFIG_FREERTOS_UNICORE. The flaw was fixed across all the places found in the code as the issue was of general type
2022-07-02 20:12:56 +00:00
Wang Meng Yang
73cfc078a0 Merge branch 'bugfix/restore_edr_en_and_protect_for_vhci_env' into 'master'
bugfix/restore edr_en and add protect for vhci_env

Closes IDFGH-6254, IDFGH-6766, IDFGH-7605, and AUD-3629

See merge request espressif/esp-idf!18388
2022-07-01 19:31:01 +08:00
Jakob Hasse
daacc19149 Merge branch 'bugfix/fatfs_spiffs_vfs_dep' into 'master'
fatfs, spiffs: add missing dependency on vfs

See merge request espressif/esp-idf!18613
2022-07-01 18:13:51 +08:00
Armando (Dou Yiwen)
4cc0492901 Merge branch 'bugfix/reserve_dma_ram_in_segments' into 'master'
psram: reserve dma pool in the step of heap max block

Closes IDF-4936

See merge request espressif/esp-idf!18740
2022-07-01 15:48:23 +08:00
Adam Múdry
0e98905e51 Merge branch 'feature/usb_midi_example' into 'master'
usb: Added MIDI example + fixed TinyUSB MIDI config

Closes IDFGH-6921

See merge request espressif/esp-idf!17753
2022-07-01 15:03:42 +08:00
Simon
f4eea001c8 Merge branch 'refactor_flash/remove_legacy_driver' into 'master'
spi_flash: Totally remove legacy driver (prefix with `spi_flash`) support on V5.0

Closes IDF-4473

See merge request espressif/esp-idf!18026
2022-07-01 14:45:39 +08:00
Li Qi Gan
22c76baaec Merge branch 'bugfix/fix_sink_wrong_sniff_params' into 'master'
Fix A2DP Sink Wrong Sniff Parameters which Caused by HID Porting

See merge request espressif/esp-idf!18730
2022-07-01 14:35:44 +08:00
Darian
c9e7a799ee Merge branch 'bugfix/freertos_event_group_unblock_race_condition' into 'master'
FreeRTOS: Fix event group task list race condition

See merge request espressif/esp-idf!18727
2022-07-01 14:14:45 +08:00
Mahavir Jain
311822da25 freertos: Fix issue with bootup failure in ESP_MAIN_TASK_AFFINITY_CPU1 config
Idle tick hook that indicates completion of scheduler init must be launched
on other core than the one where main task runs. Earlier it was assumed that
main task shall always run on PRO cpu but that behavior can be changed with
ESP_MAIN_TASK_AFFINITY_CPU1 and hence this fix.

Closes https://github.com/espressif/esp-idf/issues/9247
Closes IDFGH-7705
2022-07-01 05:40:46 +00:00
Darian
100ee84b0f Merge branch 'bugfix/freertos_smp_startup_race_cond' into 'master'
freertos: Add SMP FreeRTOS startup race condition workaround

Closes IDF-5284 and IDF-5288

See merge request espressif/esp-idf!18683
2022-07-01 12:14:24 +08:00
Island
c6fc5038eb Merge branch 'bugfix/no_proxy_beacon_send_after_deinit' into 'master'
ble_mesh: stack: Bugfix for proxy beacon send after reinit mesh

See merge request espressif/esp-idf!18079
2022-07-01 11:35:21 +08:00
Cao Sen Miao
a690a87829 spi_flash: Remove legacy spi_flash drivers 2022-07-01 11:01:34 +08:00
Cao Sen Miao
d9b4b82edc spi_flash: Modify documentations 2022-07-01 10:59:34 +08:00
Cao Sen Miao
64147c3794 CXX: Make spi_flash related part works 2022-07-01 10:59:34 +08:00
Cao Sen Miao
435bbb444c spi_flash: move cache stuff to private 2022-07-01 10:59:34 +08:00
Jiang Jiang Jian
6264fe3f60 Merge branch 'bugfix/close_sniffer_mode_when_wifi_stop' into 'master'
wifi:bugfix for close sniffer mode when wifi stop

Closes WIFI-4536

See merge request espressif/esp-idf!18744
2022-07-01 10:42:09 +08:00
Darian Leung
0cf1fd3a5a freertos: Add multi-core OS startup race condition workaround
FreeRTOS uses a single "xSchedulerRunning" variable to tack whether the
scheduler has started, and this variable is set to "pdTRUE" by core 0
via calling vTaskStartScheduler().

However, with SMP FreeRTOS, there is a race condition where core 0 has
already started the scheduler and another core has not called xPortStartScheduler()
yet and calls some FreeRTOS API. Thus the resultant FreeRTOS API can
cause errors as it thinks the scheduler has started.

This commit adds a temporary workaround (by having each core maintain their
own "xSchedulerRunning" variable.
2022-06-30 20:24:53 +08:00
Darian Leung
16e739a09e freertos: Fix flakey event group unit test
The "FreeRTOS Event Groups" main task will only wait a single tick for the created
tasks to set their response bits. This short delay may not be sufficent if the tick
frequency is high.

This commit updates the test so that

- the main task waits indefinitely for all the response bits to be set.
- created tasks are cleand up by the main task
2022-06-30 20:19:39 +08:00
Darian Leung
1625a3aae2 freertos: Fix event group task list race condition
FreeRTOS synchronization primitives (e.g., queues, eventgroups) use various event lists (i.e., task lists) to track what
tasks are blocked on a current primitive. Usually these event lists are accessed via one of the event lists functions
(such as vTask[PlaceOn|RemoveFrom]UnorderedEventList()), which in turn ensure that the global task list spinlock
(xTaskQueueMutex) is taken when accessing these lists.

However, some functions in event_groups.c manually traverse their event lists. Thus if a tick interrupt occurs on
another core during traversal and that tick interrupt unblocks a task on the event list being traversed, the event list
will be corrupted.

This commit modifies the following event_groups.c functions so that they take the global task list lock before
traversing their event list.

- xEventGroupSetBits()
- vEventGroupDelete()
2022-06-30 20:12:26 +08:00
Armando
f0e93ed0f8 psram: reserve dma pool in the step of heap max block
As heap block may be allocated into multiple non-contiguous chunks, to
reserve enough memory for dma/internal usage, we do the malloc in the
step of max available block.

On ESP32 we use this way, this commit follows this way, on ESP32S2 and
ESP32S3
2022-06-30 10:18:20 +00:00
Omar Chebib
cd48baf979 Refactor: move regi2c_*.h header files from esp_hw_support to soc component
When creating G0 layer, some regi2c_*.h headers were moved out from
esp_hw_support (G1) to soc (G0). In order to be consistent with that change,
move all the remaining regi2c_*.h headers to soc too.
2022-06-30 09:40:44 +00:00
Zhang Xiao Yan
be4d13d888 Merge branch 'docs/add_chiptype_link_gpio' into 'master'
docs: Add chip target and link to gpio.h

Closes DOC-3169

See merge request espressif/esp-idf!18623
2022-06-30 17:12:04 +08:00
GengYuchao
10fd1daa10 Add ETM clk gate defines for h2 2022-06-30 17:02:00 +08:00
GengYuchao
95c8d775d0 Update lib for h2 beta2 2022-06-30 17:02:00 +08:00
GengYuchao
b474c83840 Add support for esp32h2 beta2 2022-06-30 17:02:00 +08:00
GengYuchao
e1d07c0cf2 Support H2 periodic advertiser list option on h2 2022-06-30 17:02:00 +08:00
GengYuchao
07a470bccc Update ble lib for h2 beta1 2022-06-30 17:02:00 +08:00
GengYuchao
29a2c83173 Fix default option value 2022-06-30 17:02:00 +08:00
Jiang Jiang Jian
af83290002 Merge branch 'bugfix/fix_some_c2_ble_bugs' into 'master'
Fixed ESP32C2 BLE  bugs

See merge request espressif/esp-idf!18693
2022-06-30 16:39:50 +08:00
xueyunfei
46a68f4d41 wifi:bugfix for close sniffer mode when wifi stop 2022-06-30 15:47:50 +08:00
wangjialiang
45adb0ef24 ble_mesh: stack: Bugfix for proxy beacon send after reinit mesh 2022-06-30 07:41:23 +00:00
David Čermák
5fcb860a10 Merge branch 'bugfix/lwip_gcc11_warnings' into 'master'
lw ip: suppress some GCC 11 warnings

See merge request espressif/esp-idf!18479
2022-06-30 13:48:47 +08:00
Jiang Jiang Jian
927f9e369a Merge branch 'bugfix/fix_stale_pmf_config' into 'master'
Fix stale PMF config in NVS issue

See merge request espressif/esp-idf!18469
2022-06-30 12:32:10 +08:00
Mu Hai Dong
b0b44221ed Merge branch 'bugfix/fix_deinit_init_connect_fail_issue' into 'master'
esp_wifi: clear phy calibrated flag when phy pd memory deinit

Closes WIFI-4467, WIFI-4555, and WIFI-4543

See merge request espressif/esp-idf!18716
2022-06-30 12:13:36 +08:00
Omar Chebib
fa9856c815 espsystem: add missing eh_frame sections on esp32c2 2022-06-30 02:51:37 +00:00
lsita
db90b512a1 Fix tinyusb_driver_install (dangling pointer) 2022-06-29 17:40:19 +02:00
Sudeep Mohanty
3cd2b67f84 Revert "hal: Fix incorrect spi_hal log usage"
This reverts commit a65165dd52.
2022-06-29 14:52:28 +00:00
Adam Múdry
2dfaec3106 usb: Added MIDI example + fixed TinyUSB MIDI config
Closes https://github.com/espressif/esp-idf/issues/8541
2022-06-29 14:02:00 +00:00
gabsuren
d413a71f61 mdns: Remove internal component, examples, test and docs 2022-06-29 17:30:34 +04:00
0xFEEDC0DE64
d0c10eb83a Fix datatype conversion compiler error #9254 2022-06-29 14:39:36 +02:00
Shu Chen
85c668b7c7 build: move build_from_src options to env 2022-06-29 20:26:50 +08:00
xiongweichao
9531fae1d3 Fixed rtc watchdog timeout when waking up light sleep due to some functions not in IRAM 2022-06-29 19:56:47 +08:00
Euripedes Rocha
33fccf6405 [MQTT] - Adds esp-timer as dependency and change version.
- Current time is now from esp_timer.
2022-06-29 11:50:32 +00:00
Anton Maklakov
d2ce9abb2a lwip: suppress some GCC 11 warnings
Closes https://github.com/espressif/esp-idf/issues/9142
2022-06-29 11:42:09 +00:00
Mahavir Jain
9ee26516a7 Merge branch 'fix/update_docs_for_hmac_api' into 'master'
esp_hmac: Fix documentation for API and Programming Guide

See merge request espressif/esp-idf!18703
2022-06-29 16:06:33 +08:00