Commit Graph

26818 Commits

Author SHA1 Message Date
laokaiyao
18d7ecc470 i2s: fix interrupt flag of pdm rx mode
Forgot to update in PR https://github.com/espressif/esp-idf/pull/10997
2023-05-04 04:23:30 +00:00
xiongweichao
b631852cb1 Fixed the issue that the a2dp source would not send the media start command due to the connection initiated by the peer device
Closes https://github.com/espressif/esp-idf/issues/11170
2023-05-04 12:10:33 +08:00
Myk Melez
7c67245da5 correct typo in reference to ESP-IDF repo
There's a reference to the ESP-ADF repo that looks like it was intended to be a reference to the ESP-IDF repo. This branch fixes the reference.
2023-05-04 11:43:17 +08:00
Jens Gutermuth
a2de1f0c67
improve thread safety in esp_timer
Inadequate locking in the esp_timer component allowed corruption
of the s_timers linked list:

1. timer_armed(timer) returns false
2. another task arms the timer and adds it to s_timers
3. the list is locked
4. the timer is inserted into s_timers again

The last step results in a loop in the s_timers list, which causes
an infinite loop when iterated. This change always locks the
list before checking if the timer is already armed avoiding
the data race.
2023-05-02 20:22:38 +02:00
isha.pardikar@espressif.com
3654dd0d6f NimBLE: Removed indicate flag from gatt db, added subscription case and corrected indentation
in spp_server example.
2023-05-02 05:58:00 +00:00
KonstantinKondrashov
11e71cd3eb fixup! efuse: Prevent burning XTS_AES and ECDSA keys into BLOCK9 (BLOCK_KEY5) 2023-05-01 06:23:23 +00:00
Mahavir Jain
da96a8a104 docs: add a note regarding EFuse Block9 key purpose quirk for some chips 2023-05-01 06:23:23 +00:00
KonstantinKondrashov
94ae902d78 efuse: Prevent burning XTS_AES and ECDSA keys into BLOCK9 (BLOCK_KEY5)
eFuse module has a hardware bug.
It is related to ESP32-C3, C6, S3, H2 chips:
    - BLOCK9 (BLOCK_KEY5) can not be used by XTS_AES keys.
For H2 chips, the BLOCK9 (BLOCK_KEY5) can not be used by ECDSA keys.
S2 does not have such a hardware bug.
2023-05-01 06:23:23 +00:00
Jin Chen
0f9ba10f4e ble:fix connection establishemnt timeout issue 2023-04-28 17:47:29 +08:00
Jiang Jiang Jian
f00c78b020 Merge branch 'ci/fix_idf_build_apps_in_5.0' into 'release/v5.0'
ci: add missing sdkconfig files (v5.0)

See merge request espressif/esp-idf!23134
2023-04-28 15:54:06 +08:00
Jiang Jiang Jian
04f04d6ccf Merge branch 'bugfix/owe_assoc_resp_fail_v5.0' into 'release/v5.0'
Fix association response processing in OWE (Backport v5.0)

See merge request espressif/esp-idf!23098
2023-04-28 15:53:43 +08:00
Armando
08c77a7eaf sar: init sar periph power state 2023-04-27 10:52:38 +08:00
Adam Múdry
6bb750901d sdmmc: sdio combination cards correct setup
Co-authored-by: Mau Abata <mauabata@gmail.com>
Closes https://github.com/espressif/esp-idf/issues/9822
Closes https://github.com/espressif/esp-idf/issues/10280
2023-04-26 13:28:09 +02:00
Roman Leonov
424b5c32d1 usb_host: better debugging information during hcd_pipe_alloc() when usb_host_interface_claim() is being fulfiled. 2023-04-25 17:05:17 +02:00
isha.pardikar@espressif.com
8aff96d382 wifi_prov_mgr: Fixed memory leak after bluetooth stack was stopping. 2023-04-25 15:48:18 +05:30
Peter Dragun
1b03bfb3ea feat(monitor): flush terminal detection seq 2023-04-24 11:25:47 +02:00
Peter Dragun
f0dea7d9ff bug(monitor/ansi_converter): fix output decode detection 2023-04-24 11:25:47 +02:00
Peter Dragun
d47c309d7f fix(monitor/ansi_converter): do not catch status and cursor escape sequences 2023-04-24 11:25:47 +02:00
Peter Dragun
5746495450 bug(idf_monitor): fix color on windows with hints
Closes https://github.com/espressif/esp-idf/issues/9610
2023-04-24 11:25:32 +02:00
harshal.patil
35d466b814 mbedtls: fix ci failures for update v3.4.0
- While updating to mbedtls release/v3.4.0, building mbedtls/library/psa_crypto.c,
clang produced an unreachable-code warning, so added `-Wno-unreachable-code` compile option for clang.
- In `mbedtls/v3.4.0`, the ECDSA restartable sign and verify functions (`ecdsa.c`) were made public.
- But the `mbedtls_ecdsa_sign_det_restartable` function prototype was declared in the file `ecdsa.h`,
only when `MBEDTLS_ECDSA_SIGN_ALT` was not defined.
- added a patch in mbedtls library to fix it.
2023-04-24 12:07:10 +05:30
harshal.patil
c293708409 mbedtls: replace low-level sha apis with md apis in esp_ssl_tls 2023-04-24 12:03:55 +05:30
harshal.patil
8017e23611 mbedtls: Update config options as per release/v3.4.0
- Added a Kconfig option for the newly added mbedtls option MBEDTLS_PKCS7_C
2023-04-24 12:03:55 +05:30
harshal.patil
911c12b7f0 mbedtls: Update to release/v3.4.0
- Release Notes: https://github.com/Mbed-TLS/mbedtls/releases/tag/v3.4.0
2023-04-24 12:03:55 +05:30
Marius Vikhammer
b2c883f0c0 system: fix esp32 chip info not listing esp32 pico v3-02 as having embedded spiram
Closes https://github.com/espressif/esp-idf/issues/11233
2023-04-24 13:53:34 +08:00
Xiao Xufeng
8227ca97bd bootloader: enable super WDT and BOD reset on C2 2023-04-24 11:44:53 +08:00
Xiao Xufeng
6ce4fd9eab bootloader: cleanup ana reset config code 2023-04-24 11:44:53 +08:00
Xiao Xufeng
d43934f32d bootloader: fixed super watchdog not enabled issue on C3, S3, H4 2023-04-24 11:44:52 +08:00
Xiao Xufeng
1392cce5e1 bootloader: removed unavailable rtc features 2023-04-24 11:44:52 +08:00
Marius Vikhammer
07471019ef ulp-riscv: enable ULP-RISCV ADC example for esp32s2
ADC can now be used from the ULP-RISCV on S2 after the RTC power parameters were
fixed in a624d8d061

Closes https://github.com/espressif/esp-idf/issues/11052
Closes https://github.com/espressif/esp-idf/issues/11040
2023-04-24 10:12:09 +08:00
Peter Dragun
c8e800ce8a bug(console_reader): replace TIOCSTI with busy wait to suppport kernel > 6.2
Closes https://github.com/espressif/esp-idf/issues/11027
2023-04-21 15:35:36 +02:00
Darian Leung
b79cdd7e54 usb_host: Update docs and comments regarding first configuration enumeration
This commit updates some comments and documentation regarding changes made in
PR https://github.com/espressif/esp-idf/pull/11113.
2023-04-21 12:50:00 +08:00
Jason
62e1e5b765 Fix usb enumeration stage error for some device 2023-04-21 12:50:00 +08:00
Wang Zi Yan
72d9b9d94f
docs: remove outdated section on custom toolchain for 64-bit time_t
Co-authored-by: Ivan Grokhotkov <ivan@espressif.com>
2023-04-20 17:42:32 +02:00
Suren Gabrielyan
58a3498305 docs: migrated documentetation from github.io to docs.espressif.com 2023-04-20 13:33:52 +04:00
KonstantinKondrashov
b1315b27c5 esp_timer: Adds IRAM_ATTR for esp_timer_restart and esp_timer_is_active
Closes https://github.com/espressif/esp-idf/issues/10522
Closes https://github.com/espressif/esp-idf/issues/10859
2023-04-20 14:49:12 +08:00
wuzhenghui
46a1253022 bugfix: fix deepsleep saradc leakage 2023-04-20 11:45:58 +08:00
Li Shuai
d84cdace52 sleep: fix sleep current issue caused by sar adc 2023-04-20 11:45:58 +08:00
chenjianhua
cceb2b4db6 bluedroid: support get bluetooth device name 2023-04-20 10:54:16 +08:00
chenjianhua
3eb5185b7b bluedroid: report status after clearing the BLE white list 2023-04-20 10:38:23 +08:00
chenjianhua
11147b0473 bluedroid: fix GATTC cache address save 2023-04-20 10:37:13 +08:00
chenjianhua
fa051d8dc4 bluedroid: fix adv and scan state conflict 2023-04-20 10:36:14 +08:00
Fu Hanxi
2a3ee80fba ci: add missing sdkconfig files 2023-04-20 10:35:16 +08:00
Armando
85980884d7 adc: improve adc power logic 2023-04-20 10:34:37 +08:00
Armando
1ebeea7763 sdmmc: I/O phase adjustments
1. Fix incorrect meaning of SDMMC.clock bits, synchronize the names
   with the TRM.
2. Choose input and output phases to satisfy typical timing
   requirements.
3. Move use_hold_reg setting into the host driver, since it is related
   to timing.

Closes https://github.com/espressif/esp-idf/issues/8521
Related to https://github.com/espressif/esp-idf/issues/8257
2023-04-19 15:38:57 +08:00
Fu Hanxi
15a76983a8 ci: add missing sdkconfig files 2023-04-19 15:38:53 +08:00
Peter Dragun
9c4282ac5f feat(esptool): allow to set force for write_flash 2023-04-18 13:47:09 +02:00
morris
2b9ca66752 spi_lcd: test spi lcd io can transfer color data to a fixed window region
also test the io tx_param and tx_color can skip the command phase
2023-04-18 10:46:52 +08:00
morris
f4d27b0f92 spi_lcd: maximum transfer size should respect bus configuration
Also this commit added the SPI_TRANS_CS_KEEP_ACTIVE flag for io_tx_color
2023-04-18 10:46:52 +08:00
Sudeep Mohanty
dc53189e46 esp_ringbuf: Added functions to linker.lf file which can be placed in Flash
This commit adds symbols from the ringbuf.c file which can be placed in
Flash in order to free up IRAM space.
2023-04-17 16:11:23 +02:00
Frantisek Hrbata
8be7a05487 tools: fix progress output in asyncio.run with zero terminal width
Currently the forced progress in RunTool is trying to fit the output
line into a terminal width, but it doesn't take into an account a
situation when the terminal width is reported as zero. This manifests
when running in docker image with redirected output and can be seen
in the github workflow output for esp-idf-ci-action.

docker run --rm -t my_ubuntu_esp python3 -c 'import os,sys; print(os.get_terminal_size(), sys.stdout.isatty())'
os.terminal_size(columns=238, lines=59) True

vs

docker run --rm -t my_ubuntu_esp python3 -c 'import os,sys; print(os.get_terminal_size(), sys.stdout.isatty())' | tee
os.terminal_size(columns=0, lines=0) True

Since the output is reported as tty and the terminal width as 0, the
fit_text_in_terminal() function returns empty string. I also verified this
by running idf.py build inside a testing docker image.

This fix adjusts the fit_text_in_terminal() function to return original
line if the terminal width is zero.

Also simplify the progress print and use same approach as ninja
https://github.com/ninja-build/ninja/blob/master/src/line_printer.cc#L66

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2023-04-15 12:22:37 +02:00