Commit Graph

14121 Commits

Author SHA1 Message Date
laokaiyao
af4e448928 i2s: impove the clock division calculation
Reported from: https://esp32.com/viewtopic.php?f=25&t=24542&p=87595#p87595
2021-12-29 10:13:13 +08:00
Sudeep Mohanty
e22b4007d3 esp_hw_support: Removed deprecated CPU util functions
The following files were deleted:
- components/esp_hw_support/include/soc/cpu.h
- components/soc/esp32s3/include/soc/cpu.h

The following functions are deprecated:
- get_sp()

The following functions declared in soc/cpu.h are now moved to esp_cpu.h:
- esp_cpu_configure_region_protection()

The following functions declared in soc/cpu.h are now moved to components/xtensa/include/esp_cpu_utils.h:
- esp_cpu_process_stack_pc()

All files with soc/cpu.h inclusion are updated to include esp_cpu.h instead.

Signed-off-by: Sudeep Mohanty <sudeep.mohanty@espressif.com>
2021-12-28 16:58:37 +05:30
xiewenxiang
54298708fe component/bt: Support set HW CCA threshold value 2021-12-28 18:15:18 +08:00
Mahavir Jain
355e8bba76 Merge branch 'feature/s3_rng' into 'master'
Bootloader add rng sampling

Closes IDF-1878 and IDF-4417

See merge request espressif/esp-idf!15737
2021-12-28 04:24:12 +00:00
morris
5624dffc52 Merge branch 'contrib/github_pr_8139' into 'master'
ledc.h - fix extern "C" to include ledc_cb_register() (GitHub PR)

Closes IDFGH-6484

See merge request espressif/esp-idf!16557
2021-12-28 03:50:22 +00:00
xiewenxiang
04328cf384 component/bt: fix periodic adv parameters detection issue 2021-12-28 11:29:41 +08:00
morris
f028107359 fast_gpio: support esp32c2/esp8684 2021-12-28 10:18:18 +08:00
morris
1a9dbf9e2f bootloader: print MMU info after 2nd bootloader banner 2021-12-28 10:12:57 +08:00
Guo Jia Cheng
f79602c65b Merge branch 'feature/update_openthread_lib' into 'master'
openthread: fix rcp version, update openthread lib and submodule

See merge request espressif/esp-idf!16544
2021-12-28 02:00:57 +00:00
Mahavir Jain
a5227db2a7 Merge branch 'bugfix/Wsign_conversion_compatibility' into 'master'
freertos: fix build warnings with -Wsign-conversion CFLAG

Closes IDFGH-2901

See merge request espressif/esp-idf!15311
2021-12-27 12:58:02 +00:00
huchaoru
675a9f95fc CI: change ap authmode from number to string 2021-12-27 19:55:56 +08:00
Jiang Jiang Jian
d95b56a435 Merge branch 'bugfix/rrm_dpp_task_delete' into 'master'
wpa_supplicant: Correct task deletion for RRM and DPP tasks

Closes IDFGH-5688

See merge request espressif/esp-idf!14940
2021-12-27 10:26:33 +00:00
Ivan Grokhotkov
8b6ff2299a Merge branch 'bugfix/modbus_port_fix_lgpl_licensed_files' into 'master'
freemodbus: fix port contains lgpl licensed files

Closes IDF-4317

See merge request espressif/esp-idf!16130
2021-12-27 10:01:27 +00:00
Mahavir Jain
5968bf6b0c Merge branch 'wifi_prov_mgr/service_key_check' into 'master'
wifi_prov_mgr: Added check for passphrase length in softAP scheme

Closes IDFGH-6404

See merge request espressif/esp-idf!16545
2021-12-27 09:34:24 +00:00
Omar Chebib
b54f7aa7b4 Merge branch 'bugfix/uart_no_int_after_flush' into 'master'
UART: RX interrupts are now properly restored after a flush

Closes IDF-4374

See merge request espressif/esp-idf!16328
2021-12-27 08:56:00 +00:00
Harshit Malpani
2c84db95d2 freertos: fix build warnings with -Wsign-conversion CFLAG
Closes https://github.com/espressif/esp-idf/issues/4946
2021-12-27 13:31:34 +05:30
Cao Sen Miao
f82ab4c757 usb_serial_jtag: can print when wifi enabled by default
Closes https://github.com/espressif/esp-idf/issues/8131
2021-12-27 14:52:07 +08:00
Mahavir Jain
d9b71e7c5d Merge branch 'bugfix/memprot_debug_mode_c3' into 'master'
memprot: fix debug mode check for ESP32-C3

See merge request espressif/esp-idf!16529
2021-12-27 06:51:44 +00:00
Jakob Hasse
64a355eba8 feat (bootloader): added rng sampling
Set maximum RNG query frequency to save value known from tests
2021-12-27 13:59:20 +08:00
Laukik Hase
5261d7adf1 wifi_prov_mgr: Added check for passphrase length in softAP scheme
Closes https://github.com/espressif/esp-idf/issues/8063
2021-12-27 10:57:50 +05:30
Omar Chebib
708e3b6ec0 UART: RX interrupts are now properly restored after a flush
Added a unit test to make sure the expected behavior happens
2021-12-27 12:31:25 +08:00
zhangwenxu
1b8e55d730 openthread: fix rcp version, update openthread lib and submodule 2021-12-27 12:13:53 +08:00
Michael (XIAO Xufeng)
322a0beb87 Merge branch 'bugfix/sdio_slave_dma_desc_int' into 'master'
sdio_slave: Fixed the issue that DMA descriptors allocated to non-DMA capable area

See merge request espressif/esp-idf!16159
2021-12-27 03:10:52 +00:00
Ivan Grokhotkov
2dd6b66375 Merge branch 'contrib/github_pr_8107' into 'master'
Fix GDB backtraces in optimized builds (GitHub PR)

Closes IDFGH-6444

See merge request espressif/esp-idf!16436
2021-12-24 11:47:34 +00:00
Ivan Grokhotkov
a13fcc00db Merge branch 'bugfix/freertos_appcpu_int_disable' into 'master'
freertos: ensure interrupts are disabled before enabling tick timer

See merge request espressif/esp-idf!16460
2021-12-24 11:45:07 +00:00
Omar Chebib
28f08197e3 Merge branch 'bugfix/fatfs_volumes_crash' into 'master'
FATFS: fix system crash when mounting more than 2 volumes

See merge request espressif/esp-idf!16435
2021-12-24 10:39:25 +00:00
Kapil Gupta
69e404e7b8 wpa_supplicant: Correct task deletion for RRM and DPP tasks
Closes https://github.com/espressif/esp-idf/issues/7409
2021-12-24 13:52:29 +05:30
Jiang Jiang Jian
2e06f1fee5 Merge branch 'bugfix/install_key_refactor' into 'master'
esp_wifi: refactor key install code

Closes WIFI-4014

See merge request espressif/esp-idf!14878
2021-12-24 06:56:41 +00:00
Zhang Wen Xu
048efc3e14 Merge branch 'support/ot_br_connect_wifi_using_console_input' into 'master'
openthread:support config wifi connect using console

See merge request espressif/esp-idf!16227
2021-12-24 05:31:13 +00:00
morris
0afafb743d Merge branch 'bugfix/app_compatible_with_3_1_bootloader' into 'master'
esp_system: Fix RTC_WDT protection in esp_restart_noos

See merge request espressif/esp-idf!16480
2021-12-24 03:43:52 +00:00
Jiang Jiang Jian
d7b83208c1 Merge branch 'bugfix/wpa3_memory_leak' into 'master'
esp_wifi: Fixes memory leak in wpa3.

Closes WIFI-4196

See merge request espressif/esp-idf!16520
2021-12-24 03:15:01 +00:00
Kevin (Lao Kaiyao)
4586bd7ec8 Merge branch 'bugfix/i2s_receive_data_lost' into 'master'
i2s: fix message queue overflow condition

Closes IDFGH-5854

See merge request espressif/esp-idf!15551
2021-12-24 03:12:12 +00:00
zhangwenxu
91f54c673d openthread: add a manual mode in Thread border router example 2021-12-24 11:09:51 +08:00
Omar Chebib
a37bf7753a Merge branch 'refactor/remove_task_snapshot_header_inclusion' into 'master'
FreeRTOS: Remove task_snapshot inclusion from task.h

Closes IDF-3683

See merge request espressif/esp-idf!16224
2021-12-24 02:21:28 +00:00
Emil Muratov
d4de08182e ledc.h - fix extern "C" to include ledc_cb_register() 2021-12-24 02:05:43 +03:00
Ivan Grokhotkov
6a37b41df8 memprot: fix debug mode check
Regression from dd938eb9, the fault injection check was always failing
in debug mode.
2021-12-23 16:39:12 +01:00
Mahavir Jain
3bd5ae6b78 Merge branch 'bugfix/rtc_section_alignment' into 'master'
System: fix RTCFAST section alignment

See merge request espressif/esp-idf!16513
2021-12-23 14:31:04 +00:00
Kapil Gupta
0336584f3e esp_wifi: Refactor key install code 2021-12-23 21:31:31 +08:00
Li Qi Gan
c3c37b95e7 Merge branch 'bugfix/fix_spp_open_err_bda' into 'master'
Component_bt/Fix SPP acceptor open with wrong remote address

Closes BT-2205

See merge request espressif/esp-idf!16503
2021-12-23 12:29:31 +00:00
Song Ruo Jing
7f5e93a582 Merge branch 'bugfix/remove_ref_tick_on_s3' into 'master'
ledc: Remove REF_TICK as a supported clock source for LEDC driver on S3

See merge request espressif/esp-idf!16408
2021-12-23 12:21:01 +00:00
Martin Vychodil
16891e7a6c System: fix RTCFAST section alignment
This bugfix contains 3 fixes:
1. .rtc_dummy section is removed (not needed for C3)
2. .rtc_text section is padded with 16B for possible CPU prefetch
3. .rtc_text section is aligned to 4B boundary to comply with PMS Memprot requirements
2021-12-23 19:58:39 +08:00
laokaiyao
45ea21e8a0 doc: add application notes for i2s 2021-12-23 18:59:56 +08:00
laokaiyao
c74b2e8635 i2s: fix the wrong condition of event queue 2021-12-23 18:59:56 +08:00
Ondrej Kosta
1150a11c56 Fixed ESP32 EMAC driver insufficient TX buffer size which could followed esp_eth_stop and esp_eth_start sequence 2021-12-23 10:48:38 +01:00
aditi_lonkar
1eeac4943c esp_wifi: Fixes memory leak in wpa3 connection. 2021-12-23 12:26:58 +05:30
morris
8f2199cd88 timer: unit test and doc update for esp8684 2021-12-23 11:54:41 +08:00
morris
4ed33afc3f timer: stop alarm if alarm value doesn't change in ISR handler
Alarm will be disabled by hardware when alarm event happend.
In the ISR, if auto-reload is enabled, we should re-enable the alarm.
If the alarm target value is changed in user's callback,
the alarm will be reenabled as well.

Closes https://github.com/espressif/esp-idf/issues/7001
Closes https://github.com/espressif/esp-idf/issues/8095
2021-12-23 11:39:32 +08:00
morris
2c810f8451 timer: save alarm value in driver layer 2021-12-23 11:39:32 +08:00
morris
b170aba93a timer: fix wrong kconfig soc caps 2021-12-23 11:39:32 +08:00
Wang Meng Yang
91e81877d2 Merge branch 'bugfix/scannable_adv_duration_estimation' into 'master'
[Coexistence]: fixed BLE scannable extended adv performance issue in case of Wi-Fi coexistence

Closes BT-1607

See merge request espressif/esp-idf!16438
2021-12-22 14:45:10 +00:00
liqigan
cccd22a080 fix SPP open with wrong remote bd_addr 2021-12-22 17:04:58 +08:00
liqigan
66e88fbdbe clear old event bits when malloc a slot 2021-12-22 16:44:51 +08:00
Jiang Jiang Jian
acee790f98 Merge branch 'bugfix/fix_heap_memory_corruption' into 'master'
Heap: Fix a bug in the TLSF allocator

See merge request espressif/esp-idf!16296
2021-12-22 08:35:07 +00:00
Mahavir Jain
1f435b4703 Merge branch 'feature/mbedtls_dynamic_memory' into 'master'
fix(mbedtls): fix compiling error when open MBEDTLS_SSL_PROTO_DTLS and disable...

Closes IDFGH-6437

See merge request espressif/esp-idf!16471
2021-12-22 08:19:14 +00:00
wangmengyang
219bffce9f component/bt: fixed coexistence scannable extended adv performance issue 2021-12-22 10:55:33 +08:00
Michael (XIAO Xufeng)
ad90373a69 sdio_slave: fixed the issue DMA desc not capable 2021-12-22 01:34:38 +08:00
David Čermák
2c0d760816 Merge branch 'bugfix/mdns_network_socket_err_prints' into 'master'
mdns: Minor err print fix in socket-networking layer (GitHub PR)

Closes IDFGH-6447 and IDFGH-6434

See merge request espressif/esp-idf!16427
2021-12-21 13:59:01 +00:00
Ivan Grokhotkov
1cbea5a504 Merge branch 'feature/espefuse_adds_args_to_execute_scripts_cmd' into 'master'
esptool/espefuse: execute_scripts can be run nested way

See merge request espressif/esp-idf!16411
2021-12-21 12:24:06 +00:00
Martin Válik
4f7c36d859 Merge branch 'feature/usb-msc' into 'master'
USB MSC class

Closes IDFGH-4584

See merge request espressif/esp-idf!14573
2021-12-21 10:22:54 +00:00
Kapil Gupta
826aee5683 Merge branch 'bugfix/wps_fixes' into 'master'
wpa_supplicant: Add WPS Fixes

Closes WIFI-4185

See merge request espressif/esp-idf!16331
2021-12-21 09:17:30 +00:00
Mahavir Jain
2264f4d9b8 Merge branch 'feature/memprot_api_unified_c3' into 'master'
Memprot API unified - ESP32C3

Closes IDF-3849

See merge request espressif/esp-idf!15086
2021-12-21 08:45:33 +00:00
Li Jingyi
2b1402890d fix(mbedtls): fix compiling error when open MBEDTLS_SSL_PROTO_DTLS and disable MBEDTLS_SSL_PROTO_DTLS when open MBEDTLS_DYNAMIC_BUFFER 2021-12-21 16:11:03 +08:00
Omar Chebib
fcd11ba125 FreeRTOS: Remove task_snapshot inclusion from task.h
Remove ESP's addition of task_snapshot.h from task.h. This line was
added previously for backward compatibility. For IDF v5.0, this can
be removed.
2021-12-21 07:10:22 +00:00
Michael (XIAO Xufeng)
59f3d98d45 Merge branch 'feat/support_mxic_unlock' into 'master'
spi_flash: support unlock MXIC flash chips

Closes IDF-3575

See merge request espressif/esp-idf!15238
2021-12-21 07:09:57 +00:00
Mahavir Jain
c408aa397e Merge branch 'feature/mbedtls-2.16.12-integration' into 'master'
mbedtls: upgrade to release v2.16.12

Closes IDF-4463

See merge request espressif/esp-idf!16442
2021-12-21 07:03:02 +00:00
KonstantinKondrashov
ff96769b0e esp_system: Fix RTC_WDT protection in esp_restart_noos
Fixed issue - v4.3 app not compatible with 3.1 bootloader
2021-12-21 14:48:14 +08:00
Jiang Jiang Jian
ae63455164 Merge branch 'bugifx/nimble_timer_memory_leak' into 'master'
[NimBLE]: Fixed memory leak of timer during NimBLE Host start-stop process

Closes BT-2142

See merge request espressif/esp-idf!16430
2021-12-21 04:31:28 +00:00
Guo Jia Cheng
cfd2d177be Merge branch 'feature/mdns-always-announce-address' into 'master'
mdns: always send A/AAAA records in announcements

See merge request espressif/esp-idf!16254
2021-12-21 04:09:29 +00:00
songruojing
8e3bc160bc ledc: Remove REF_TICK as a supported clock source for LEDC driver on esp32s3 2021-12-21 11:43:18 +08:00
baohongde
d4aeef6ced components/bt: Update the document of demo bt discovery 2021-12-21 10:54:54 +08:00
Martin Vychodil
dd938eb952 System/Security: Memprot API unified (ESP32C3)
Unified Memory protection API for all PMS-aware chips (ESP32C3)

Closes JIRA IDF-3849
2021-12-21 01:50:36 +01:00
Ivan Grokhotkov
5d32e80ea7 freertos: ensure interrupts are disabled before enabling tick timer
xPortStartScheduler calls vPortSetupTimer -> _frxt_tick_timer_init,
which enables tick timer interrupt and sets up the first timeout.
From that point on, the interrupt can fire. If the interrupt happens
while _frxt_dispatch is running, the scheduler will enter an infinite
loop. This is because _frxt_dispatch isn't supposed to be preemptable,
and the tick interrupt will overwrite some of the registers used by
_frxt_dispatch.
Note that this situation doesn't practically occur on the real
hardware, where the execution of vPortSetupTimer and _frxt_dispatch
happens quickly enough. However it can be reproduced on an emulator
if the tick period is set to 1ms.

Add an explicit call to portDISABLE_INTERRUPTS in xPortStartScheduler
to guarantee that _frxt_dispatch doesn't run with interrupts enabled.
This is similar to the esprv_intc_int_set_threshold(1); call in
RISC-V version of port.c.
2021-12-20 17:25:56 +01:00
Kapil Gupta
14b949077d wpa_supplicant: Add WPS Fixes
Add following bugfixes

1. Station not able to connect when WPS pin is pressed first on AP.
2. PBC overlap getting detected for selected registrar PIN APs.
3. Station not considering authorised MACs for PIN method.
4. For PIN methodm If no AP is found, station will loop through
   APs in its vicinity and try to do WPS with them one by one till
   WPS timeout occurs. This is for some APs which do not set
   selected registrar correctly.
2021-12-20 17:34:30 +05:30
Martin Valik
73dce765d5 USB: added MSC Host Driver with VFS support
Closes https://github.com/espressif/esp-idf/issues/6401
2021-12-20 12:39:45 +01:00
Guo Jia Cheng
5fdbd40404 Merge branch 'bugfix/mdns-query-instance-filter' into 'master'
mdns: filter instance name for ANY queries

See merge request espressif/esp-idf!16255
2021-12-20 10:38:19 +00:00
Michael (XIAO Xufeng)
9894019909 bootloader: support unlock MXIC flash chips 2021-12-20 18:01:12 +08:00
Wang Mengyang
5e95537f9c component/bt/host/nimble: fixed memory leak due to timer not destroyed during NimBLE host start-stop 2021-12-20 15:49:14 +08:00
Mahavir Jain
36c712368d mbedtls: upgrade to release v2.16.12
For release notes, please refer to:
https://github.com/ARMmbed/mbedtls/releases/tag/v2.16.12
2021-12-20 10:28:14 +05:30
Mahavir Jain
bcadeeb7d3 mbedtls: small documentation update 2021-12-20 10:27:44 +05:30
Marius Vikhammer
c2d00810a6 Merge branch 'feature/esp8684_doc_build' into 'master'
docs: update docs to be able to build with esp8684

Closes IDF-4313

See merge request espressif/esp-idf!15849
2021-12-20 03:32:28 +00:00
Omar Chebib
1bad4f18ed FATFS: fix system crash when mounting more than 2 volumes
* Fixes https://github.com/espressif/esp-idf/issues/7513
2021-12-20 03:16:18 +00:00
Omar Chebib
95d0514c57 Heap: Add a target test to check that TLFS allocates the requested size 2021-12-20 11:10:16 +08:00
Omar Chebib
9516fd09c2 Heap: Fix a possible bug in the TLSF allocator
Fix a bug that could return a chunk of memory smaller than requested,
easily leading to a memory corruption, when the required memory alignment
passed to the allocator is 4.
2021-12-20 10:57:43 +08:00
Marius Vikhammer
82325f6037 docs: update docs to be able to build with esp8684 2021-12-20 10:32:49 +08:00
morris
c14638878b Merge branch 'bugfix/dedic_gpio_initial_occupy_mask' into 'master'
fast_gpio: fix wrong initial occupy mask

See merge request espressif/esp-idf!16219
2021-12-18 05:39:53 +00:00
Ivan Grokhotkov
b5d17f85a8 Merge branch 'bugfix/stdatomic_sync_op_and_fetch' into 'master'
newlib: stdatomic: implement missing "op_fetch", "nand" builtins

Closes IDF-4397

See merge request espressif/esp-idf!16404
2021-12-17 14:42:57 +00:00
Dániel Buga
a02d1e35ee Allow enabling task function wrappers in more cases 2021-12-17 11:17:21 +01:00
Jakob Hasse
7c7fbb1fd0 Merge branch 'feature/i2c_cxx_improve' into 'master'
I2C C++ Several improvements, breaking changes

See merge request espressif/esp-idf!16102
2021-12-17 09:45:27 +00:00
David Čermák
8caa8195d4 Merge branch 'bugfix/mdns_null_deref_fuzzer' into 'master'
mdns: Fix potential null deref reported by fuzzer test

See merge request espressif/esp-idf!16299
2021-12-17 09:37:55 +00:00
morris
e8c5f8656b fast_gpio: fix wrong initial occupy mask 2021-12-17 15:49:44 +08:00
Jakob Hasse
7572f75d6b refactor (cxx)!: I2C C++ classes use strong value types now
Added host-based I2C C++ unit tests

BREAKING CHANGE: I2C C++ interface changes, raw values for
    arguments are mostly not allowed anymore.
2021-12-17 14:05:52 +08:00
David Cermak
f1b8f5c102 mdns: Minor err print fix in socket-networking layer 2021-12-16 16:00:44 +01:00
KonstantinKondrashov
4cef1e2f8b esptool/espefuse: execute_scripts can be run nested way
Added args for execute_scripts cmd
Cleaned up only_burn_at_end args, it does not need anymore
2021-12-16 22:32:20 +08:00
Ivan Grokhotkov
5b3b5f006f Merge branch 'feature/cmake_weak_deps_helper' into 'master'
cmake: add idf_component_optional_requires utility function, simplify some component dependencies

Closes IDF-3086

See merge request espressif/esp-idf!16373
2021-12-16 13:46:45 +00:00
David Čermák
e8a4c4b440 Merge branch 'bugfix/mdns_add_result_count_async' into 'master'
mdns: Added results count to async API (GitHub PR)

Closes IDFGH-6340

See merge request espressif/esp-idf!16362
2021-12-16 12:48:39 +00:00
David Čermák
c86183d54d Merge branch 'bugfix/mdns_server_instance_mismatch' into 'master'
mdns: fix mdns server instance mismatch

Closes IDFCI-1011

See merge request espressif/esp-idf!16420
2021-12-16 12:05:04 +00:00
morris
5efc7bf2b4 Merge branch 'bugfix/build_spaces_in_path_kconfig_ldgen_esptool' into 'master'
kconfig, ldgen, esptool, cmake: changes to support spaces in paths

See merge request espressif/esp-idf!15429
2021-12-16 10:32:49 +00:00
zhangwenxu
6173dd7809 mdns: fix mdns server instance mismatch 2021-12-16 16:52:05 +08:00
caffreyfans
87506f46e2 unified errno format 2021-12-16 14:10:52 +08:00
Marius Vikhammer
5040803ff0 Merge branch 'feature/remove_deprecated_rom_headers' into 'master'
rom: remove deprecated headers from esp32 components

Closes IDF-2828

See merge request espressif/esp-idf!16372
2021-12-16 04:36:33 +00:00