Commit Graph

15729 Commits

Author SHA1 Message Date
Mahavir Jain
bb11770e38 Merge branch 'bugfix/low_wifi_throughput' into 'master'
ci, test: temporary adjust IDF_PERFORMANCE_MIN_TCP_RX_THROUGHPUT limit

Closes IDFCI-1302

See merge request espressif/esp-idf!18437
2022-06-10 19:28:36 +08:00
morris
4094f13fd3 rmt: fix error in rmt register file
Closes https://github.com/espressif/esp-idf/issues/9100
2022-06-10 18:38:42 +08:00
Mahavir Jain
fc43533859
mbedtls: enable all tests except SHA for ESP32-C2 2022-06-10 15:08:06 +05:30
Martin Vychodil
aa2cf79e13 Merge branch 'bugfix/fatfs_mtime_dst' into 'master'
fatfs: fix incorrect mtime returned for files created during DST

Closes IDFGH-7467

See merge request espressif/esp-idf!18333
2022-06-10 17:18:01 +08:00
Roland Dobai
724b4121b9 Merge branch 'feature/enable-lfn-for-fatfsparse' into 'master'
fatfs: enable long file names for fatfsparse.py

Closes IDF-4992

See merge request espressif/esp-idf!18212
2022-06-10 16:22:45 +08:00
Li Kun Qiao
20f5e180ee Merge branch 'support/esp32h2beta1_beta2_lib_update' into 'master'
ieee802154: update 802154 lib for supporting H2-beta1 and beta2

See merge request espressif/esp-idf!18442
2022-06-10 15:22:42 +08:00
Jiang Jiang Jian
70d7a362db Merge branch 'feature/wifi_beacon_loss_optimize' into 'master'
WiFi: beacon loss and noise check timer optimize for wifi power save

See merge request espressif/esp-idf!18447
2022-06-10 13:28:50 +08:00
Martin Vychodil
16a4ee7c36 Merge branch 'bugfix/spi_mode_status_check' into 'master'
sdmmc, sdspi: fixes related to status checks, R1b response support, erase fix for SPI mode, fix for erase timeout calculation

Closes IDF-4728

See merge request espressif/esp-idf!17727
2022-06-10 13:15:47 +08:00
morris
5daa73d236 Merge branch 'refactor/mcpwm_hal_driver_doc' into 'master'
mcpwm: don't support disable carrier one-shot pulse

Closes IDFGH-7406

See merge request espressif/esp-idf!18295
2022-06-10 10:28:59 +08:00
Simon
6ad7558ec1 Merge branch 'feature/esp32c2_configurable_mmu_new' into 'master'
MMU: add configurable MMU page size support (For ESP32C2)

Closes IDF-3821

See merge request espressif/esp-idf!17854
2022-06-10 10:20:49 +08:00
Adam Múdry
8af790da45 fatfs: Add mock option to ff_sdmmc_status function to increase IO speed
Adds `disk_status_check_enable` field to `esp_vfs_fat_mount_config_t` struct to control if ff_sdmmc_status is mocked or not.
2022-06-09 20:09:32 +00:00
Martin Vychodil
3e78898d2c Merge branch 'bugfix/spiffs_readdir_errno' into 'master'
spiffs: update submodule to fix SPIFFS_readdir errno issue

See merge request espressif/esp-idf!18366
2022-06-10 03:53:08 +08:00
Ivan Grokhotkov
39238f51ce fatfs: fix incorrect mtime returned for files created during DST
mktime function uses tm_isdst member as an indicator whether the time
stamp is expected to be in daylight saving time (1) or not (0).
FAT filesystem uses local time as mtime, so no information about DST
is available from the filesystem.

According to mktime documentation, tm_isdst can be set to -1, in which
case the C library will try to determine if DST was or wasn't in
effect at that time, and will set UTC time accordingly.

Note that the conversion from UTC to local time and then back to UTC
(time_t -> localtime_r -> FAT timestamp -> mktime -> time_t) does not
always recover the same UTC time. In particular, the local time in the
hour before DST comes into effect can be interpreted as "before DST"
or "after DST", which would correspond to different UTC values. In
this case which option the C library chooses is undefined.

Closes https://github.com/espressif/esp-idf/issues/9039
Originally reported in https://github.com/espressif/arduino-esp32/issues/6786
2022-06-09 19:50:00 +00:00
Roland Dobai
a280ecd83a Merge branch 'bugfix/esptool_flash_autodetect_build_issue' into 'master'
esptool: fix elf2image conversion with "--dont-append-digest"

See merge request espressif/esp-idf!18444
2022-06-09 23:26:46 +08:00
Yannis Huber
3397cf465d driver(spi): fix flag check in bus initialization
The current flag check in the SPI bus initialization is wrong and
causes exceptions when using certain SPI hosts in quad transfert mode.
2022-06-09 17:20:30 +02:00
Martin Gaňo
0f160c8f11 fatfs: enable long file names for fatfsparse.py 2022-06-09 15:51:03 +02:00
Aditya Patwardhan
815935b01e Merge branch 'ci/esp32c2_protocomm_ut' into 'master'
ci: Re-enable protocomm UTs for ESP32-C2

Closes IDF-5143

See merge request espressif/esp-idf!18394
2022-06-09 21:34:32 +08:00
likunqiao
41592e146a ieee802154: update 802154 lib for supporting H2-beta1 and beta2 2022-06-09 13:13:20 +00:00
Shu Chen
3df100662c Merge branch 'bugfix/rom_time_t_size_deps_esp32h2beta2' into 'master'
esp_rom: deprecate some esp32h2beta2 rom newlib funcs

See merge request espressif/esp-idf!18440
2022-06-09 20:56:09 +08:00
KonstantinKondrashov
5ec9baff36 efuse: Checks errors of 4x coding scheme for BLOCK0 if so then abort 2022-06-09 17:49:03 +08:00
KonstantinKondrashov
46f0313d6b reset_reasons: EFUSE_RST is treated as POWERON_RST
ESP32 does not have the EFUSE_RST, the rest chips has this reset reason.
2022-06-09 17:49:03 +08:00
Tomas Rezucha
5d202aa401 usb: Clean-up TinyUSB unnecessary code 2022-06-09 10:56:39 +02:00
Tomas Rezucha
d1d9b8f8f6 usb: Fixed RX buffer min size
Closes https://github.com/espressif/esp-idf/issues/9040
2022-06-09 10:56:39 +02:00
David Cermak
fd366fac9e esp_eth: Remove deprecated esp_eth_receive() 2022-06-09 07:55:40 +00:00
David Cermak
343cf2696e esp_eth: Reduce internal deps onto netif-glue 2022-06-09 07:55:40 +00:00
David Cermak
5e19b9c951 esp-netif: Make dependency on esp-eth optional
* esp-netif to optionally depend on esp-eth (only for l2tap config)
* esp_eth.h now includes the original ethernet header and the
ethernet-netif glue layer
* Updated examples and test to explicitely use esp-eth dependency if
needed
2022-06-09 07:55:40 +00:00
David Cermak
680f3a50c2 esp_eth: Rename drivers main header to esp_eth_driver
The original  would be used as API header bringing both driver and netif related includes
2022-06-09 07:55:40 +00:00
Li Shuai
7efa8b855a sleep: beacon loss and noise check timer optimize for wifi power save 2022-06-09 15:52:05 +08:00
morris
83eb2c4964 Merge branch 'bugfix/newlib_test_gcc11_esp32c2' into 'master'
newlib: ROM library is built with time_t 64bit in size

Closes IDFCI-1305 and IDFCI-1306

See merge request espressif/esp-idf!18424
2022-06-09 15:37:02 +08:00
David Čermák
f9c8d635c5 Merge branch 'feature/tcp_transport' into 'master'
tcp_transport: optimize memory

See merge request espressif/esp-idf!18102
2022-06-09 15:25:08 +08:00
Mahavir Jain
7dc0a1db18
esptool: fix elf2image conversion with "--dont-append-digest"
Append elf2image args so that "--dont-append-digest" do not override earlier
flash settings.

This was observed in case of ESP32-C2 image build where image build was failing
with `CONFIG_ESPTOOLPY_FLASHSIZE_DETECT`.

Related from earlier commit: 9c46c98b4c
2022-06-09 12:19:09 +05:30
Rahul Tank
0395078a06 NimBLE: fix compilation issue in nimble examples for ESP32H2 2022-06-09 10:57:31 +05:30
Marius Vikhammer
08c4984773 Merge branch 'bugfix/s3_psram_spinlock' into 'master'
spinlock: fixed spinlocks not working on S3 if placed in PSRAM

Closes IDF-5169, IDFGH-7560, and IDF-5007

See merge request espressif/esp-idf!18425
2022-06-09 13:02:18 +08:00
Laukik Hase
872f8513fb
ci: Re-enable protocomm UTs for ESP32-C2 2022-06-09 09:55:09 +05:30
morris
6eb450fa87 newlib: ROM library is build with time_t 64bit on esp32c2 2022-06-09 10:48:31 +08:00
wuzhenghui
89319cd72f esp_rom: remove functions which depend on sizeof(struct stat) and all their callers for esp32h2-beta2 2022-06-09 10:40:09 +08:00
Marius Vikhammer
c8c2e78096 Merge branch 'bugfix/s3_sleep_voltage_enable_ulp' into 'master'
ulp: re-enable support, example and CI jobs for S2 and S3

Closes IDF-4514, IDFGH-7075, and IDFGH-7531

See merge request espressif/esp-idf!18308
2022-06-09 10:20:25 +08:00
Li Jingyi
21d65931fc tcp_transport: add websocket dynamic buffer feature
Free websocket transport buffer when connection succeed to save peak heap cost about WS_BUFFER_SIZE.
2022-06-08 19:13:25 +00:00
Anton Maklakov
da3fa37d66 ci, test: temporary adjust IDF_PERFORMANCE_MIN_TCP_RX_THROUGHPUT limit 2022-06-08 19:51:06 +07:00
Cao Sen Miao
6589daabb9 MMU: Add configurable mmu page size support on ESP32C2 2022-06-08 19:34:31 +08:00
Darian Leung
a65165dd52 hal: Fix incorrect spi_hal log usage
esp_flash_init_main() can be during startup before the OS has started, thus should use
the EARLY version of logging.
2022-06-08 19:19:44 +08:00
Anton Maklakov
a343ab813c spiffs, tests: increase stack size for a test 2022-06-08 17:07:53 +07:00
Marius Vikhammer
6e79cc69f9 re-enable riscv ulp gpio support and examples
Closes https://github.com/espressif/esp-idf/issues/8691
Closes https://github.com/espressif/esp-idf/issues/9094
2022-06-08 17:59:28 +08:00
Marius Vikhammer
9c4a12b11e Revert "ulp: Keep RTC_CNTL_COCPU_SHUT_RESET_EN set for ULP RISC-V"
This reverts commit f709faea7c.
2022-06-08 17:59:07 +08:00
Anton Maklakov
763deaea3c freertos, tests: increase stack size for a test 2022-06-08 16:45:31 +07:00
Zim Kalinowski
20bbfa128c Merge branch 'bugfix/freertos_smp_gcc11_build_errors' into 'master'
freertos: Fix GCC 11 SMP FreeRTOS build errors

See merge request espressif/esp-idf!18399
2022-06-08 16:29:58 +08:00
yuanjm
b9b1a7aba8 fix(websocket): Support handler deal with PING and CLOSE frame
Closes https://github.com/espressif/esp-idf/issues/8803
2022-06-08 16:16:57 +08:00
Marius Vikhammer
486316f222 spinlock: fixed spinlocks not working on S3 if placed in PSRAM
The compare and set instruction (S32C1I) cannot be used when
lock is not in internal memory.

Closes https://github.com/espressif/esp-idf/issues/9120
2022-06-08 14:31:16 +08:00
Fu Hanxi
da947e2544 Merge branch 'test/remove_rtc_power_pytest' into 'master'
test_rtc: remove invalid test case file

See merge request espressif/esp-idf!18374
2022-06-07 23:56:28 +08:00
Kapil Gupta
bb23d783c0 Merge branch 'bugfix/sta_rejoin_softap_mode_issue' into 'master'
wpa_supplicant: Add changes to deinit sta_info correctly

Closes WIFI-4441

See merge request espressif/esp-idf!18395
2022-06-07 21:47:14 +08:00
Wang Meng Yang
e2bc3f865e Merge branch 'bugfix/uninitialized-element' into 'master'
component_bt:initialize all elements of esp_bt_controller_config_t

Closes IDFGH-7506

See merge request espressif/esp-idf!18343
2022-06-07 17:24:39 +08:00
xiongweichao
d52cb7d6e4 update hfp_ag version to 1.7.2 2022-06-07 17:17:03 +08:00
Darian Leung
3c6185788f freertos: Fix GCC 11 SMP FreeRTOS build errors
This commit fixes the following build errors in SMP FreeRTOS when building with GCC 11:

- "-Wattributes" warning due to conflicting attributes on xPortInterruptedFromISRContext()
- "-Wtype-limits" warning due to taskVALID_CORE_ID() not casting xCoreID
2022-06-07 16:33:22 +08:00
Rahul Tank
27b34d60c1 Nimble: Added check to free keypair if already allocated to avoid memory
leak. Added an API that allows to free keypair
2022-06-07 13:38:15 +05:30
Kapil Gupta
ed35b6d4fc Merge branch 'bugfix/supplicant_issues' into 'master'
fix some supplicant issues

Closes WIFI-4446 and WIFI-4445

See merge request espressif/esp-idf!18362
2022-06-07 15:49:38 +08:00
Chen Jian Xing
44989a9ea0 Merge branch 'feature/update_phy_lib_c3_s3_20220504' into 'master'
esp_phy: optimize phy calibration for C3 and S3

Closes IDFGH-5903

See merge request espressif/esp-idf!18028
2022-06-07 14:19:26 +08:00
Kapil Gupta
ed2bed49c0 wpa_supplicant: Add changes to deinit sta_info correctly
Incase sta pointer is not null during station join, deinit of
previous sm causing crash due to incorrect typecast.

Add changes to correct this.
2022-06-07 11:41:53 +05:30
xiongweichao
a2ea4f5bc9 Fix AVDTP general reject format error. 2022-06-07 02:45:46 +00:00
Zim Kalinowski
e6c5badfe2 Merge branch 'bugfix/freertos_smp_disable_scheduler_suspension_tests' into 'master'
freertos: Disable scheduler suspension tests for SMP FreeRTOS

Closes IDF-5077

See merge request espressif/esp-idf!18361
2022-06-07 00:25:02 +08:00
Kapil Gupta
28a06d07f7 Corrected hash size for sta_info structure 2022-06-06 16:38:04 +05:30
Michael (XIAO Xufeng)
773715d900 Merge branch 'feature/support_refresh_brownout_v1' into 'master'
spi_flash: send reset when brownout detected on XMC flash

Closes IDF-3882

See merge request espressif/esp-idf!16873
2022-06-06 16:27:58 +08:00
Kapil Gupta
e9128b3b5b wpa_supplicant: Removed ESP32 reference from generic APIs/Code 2022-06-06 11:03:36 +05:30
Kapil Gupta
e60ebc0cbe Use snprintf instead of sprintf 2022-06-06 11:03:36 +05:30
Kapil Gupta
2aa6853d3e Remove strcpy/strncpy function callings from supplicant 2022-06-06 11:03:35 +05:30
Kapil Gupta
916a4d6524 Fix coverity reported issues 2022-06-06 11:03:35 +05:30
Kapil Gupta
944690a5e7 Correct condition for not to use pmk caching 2022-06-06 11:03:35 +05:30
Mahavir Jain
3de609800b Merge branch 'fix/menuconfig_option_esp_cryptoauthlib' into 'master'
esp_tls_mbedtls.c: Fix esp-idf integration of esp-cryptoauthlib

See merge request espressif/esp-idf!18373
2022-06-06 12:41:05 +08:00
Mahavir Jain
2acab7c783 Merge branch 'feature/c2_rng_support' into 'master'
esp32c2: Add support for RNG

Closes IDF-4021

See merge request espressif/esp-idf!18149
2022-06-06 12:38:28 +08:00
Mahavir Jain
89e936f495 Merge branch 'feature/add_option_allow_short_app_partition' into 'master'
bootloader: Allows app partition length not 64KB aligned for NO SECURE BOOT

Closes IDF-4984

See merge request espressif/esp-idf!18364
2022-06-06 12:21:12 +08:00
Darian Leung
593fbe0b23 freertos: Disable scheduler suspension tests for SMP FreeRTOS
The behavior of vTaskSuspendAll() has changed in SMP FreeRTOS. This commit
disables scheduler suspension related unit tests for SMP FreeRTOS.

The tests will be updated in IDF-5201
2022-06-06 12:15:44 +08:00
Michael (XIAO Xufeng)
e372710b35 test_rtc: remove invalid test case file 2022-06-06 00:36:21 +08:00
Jiang Jiang Jian
b617ccfb4c Merge branch 'feature/esp32c2_eco1_bluetooth_update_0525_for_MR' into 'master'
Support bluetooth for esp32c2 chip

See merge request espressif/esp-idf!18243
2022-06-04 17:35:17 +08:00
Geng Yuchao
cef8c506fd Synchronously modify the nibmle repo 2022-06-04 12:11:31 +08:00
Geng Yuchao
910b296d72 Add missing configuration items for BLE controller 2022-06-04 11:35:18 +08:00
Aditya Patwardhan
2ea419db22 esp_tls_mbedtls.c: Fix esp-idf integration of esp-cryptoauthlib
menuconfig option
2022-06-03 23:12:11 +05:30
Jiang Jiang Jian
95fd68a0ab Merge branch 'bugfix/pm_enabled_bt_build_fail' into 'master'
component_bt: Bluetooth build fail when power management is enabled

Closes BT-2372 and IDFGH-7514

See merge request espressif/esp-idf!18331
2022-06-04 01:15:37 +08:00
Geng Yuchao
3ee9ce9d06 Sync nimble repo 2022-06-04 01:00:04 +08:00
Geng Yuchao
8533457208 Add bluetooth controller lib for esp32c2 2022-06-04 01:00:04 +08:00
Geng Yuchao
0722e6a0b7 Update controller lib for esp32h2 2022-06-04 01:00:04 +08:00
Geng Yuchao
5bba3ebed9 Fix esp32h2 controller support. 2022-06-04 00:59:56 +08:00
Geng Yuchao
5c3f0bfe7c Add esp32c2 controller support. 2022-06-04 00:59:21 +08:00
Michael (XIAO Xufeng)
d798662421 Merge branch 'bugfix/s3_sleep_voltage' into 'master'
esp32s3: fixed dangerous power parameters in sleep modes

See merge request espressif/esp-idf!18168
2022-06-04 00:47:32 +08:00
Geng Yuchao
a692abd423 Optimize the Cmake file structure, support esp32c2.
Follow Kconfig to update the nimble config macro name.
2022-06-03 22:41:33 +08:00
Geng Yuchao
50b762af1f Add Bluetooth controller menuconfig option for esp32c2 and esp32h2 2022-06-03 22:41:33 +08:00
Geng Yuchao
02636688eb Refactor Kconfig options structure 2022-06-03 22:41:20 +08:00
Geng Yuchao
c1505d045c Add periph_module needed for BT 2022-06-03 21:47:58 +08:00
Geng Yuchao
8012af37d1 Fix soc caps for BT 2022-06-03 21:45:40 +08:00
morris
067e0f65bd Merge branch 'bugfix/c2_uart_default_pin_num' into 'master'
C2: Added default UART pin numbers

See merge request espressif/esp-idf!18351
2022-06-03 20:35:11 +08:00
morris
aa3ddbc3c6 Merge branch 'test/enable_c2_target_tests' into 'master'
ci: enable target tests for ESP32-C2

Closes IDF-4989

See merge request espressif/esp-idf!18182
2022-06-03 16:41:24 +08:00
Anton Maklakov
e0d2e186bf Merge branch 'feature/toolchain_2022r1' into 'master'
Bring 2022r1-RC1 toolchains, GCC 11

Closes GCC-180, GCC-178, IDFGH-5559, IDFGH-6180, IDFGH-5101, and IDFGH-4380

See merge request espressif/esp-idf!16797
2022-06-03 16:05:49 +08:00
David Čermák
46e599c56d Merge branch 'feature/lwip_rework_patches' into 'master'
lw-IP: Reworked patches

Closes IDFGH-6197

See merge request espressif/esp-idf!17388
2022-06-03 15:26:55 +08:00
Darian
64947546a3 Merge branch 'feature/freertos_smp_newlib_dynamic_reent' into 'master'
freertos: Add support for newlib dynamic reentrancy

Closes IDF-5135

See merge request espressif/esp-idf!18216
2022-06-03 15:21:59 +08:00
David Cermak
c67f4c2b4c lwip: Remove vanilla-lwip config until it's fully deployable 2022-06-02 20:45:24 +02:00
Ivan Grokhotkov
d34f061bc1
spiffs: update submodule to fix SPIFFS_readdir errno issue
See https://github.com/pellepl/spiffs/pull/288 for the description
of the issue.
Reported in https://github.com/esp-rs/rust/issues/117#issuecomment-1142159661
2022-06-02 18:42:48 +02:00
KonstantinKondrashov
b4d14902e7 bootloader: Allows app partition length not 64KB aligned for NO SECURE BOOT 2022-06-02 22:40:12 +08:00
Mu Hai Dong
2905223889 Merge branch 'bugfix/fix_country_policy_issue' into 'master'
esp_wifi: fix country policy issue

Closes WIFI-3908, WIFI-4287, and WIFI-4279

See merge request espressif/esp-idf!17366
2022-06-02 20:01:07 +08:00
Anton Maklakov
bc932c646e Merge branch 'bugfix/dirent-definition' into 'master'
newlib: dirent d_ino type fix

See merge request espressif/esp-idf!18336
2022-06-02 19:48:53 +08:00
Jessy Chen
7d25f254b8 esp_phy: optimize phy calibration for C3 and S3 2022-06-02 17:12:45 +08:00
muhaidong
06fb6b2e32 esp_wifi: fix country policy issue
1. Fix not update phy according to country code.
    2. Update regdomain max channel according to country info from nvs and or AP.
    3. Change nvs default country from "CN" to "01".
    4. Channel 14 is allowed only 11b mode.
    5. Remove csa when switch channel from/to 14 channel.
    6. Update phy mode nvs when softap channel from 14 to other.
    7. Fix the bug that check whether channel parameter is valid.

Docs: change default country from "CN" to "01"
2022-06-02 16:15:48 +08:00
Darian Leung
d8eb55d83b freertos: Add newlib dynamic reentrancy support
SMP FreeRTOS adds support for dynamic reentrancy in the following commit:
34b8e24d7c

This commit does the following:

- Pulls in the upstream changes
- Move __getreent() to "freertos_tasks_c_additions.h"
- Add the required configNEWLIB_REENTRANT_IS_DYNAMIC to SMP FreeRTOS port
2022-06-02 15:42:02 +08:00