Commit Graph

21154 Commits

Author SHA1 Message Date
laokaiyao
9b0f7b657b i2s: fixed write timeout while setting the clock (v4.4) 2022-05-24 10:14:44 +08:00
Ivan Grokhotkov
064148212b Merge branch 'bugfix/read_eof_no_vfs_4.4' into 'release/v4.4'
newlib: fix return value of no-VFS _read_r if nothing received (v4.4)

See merge request espressif/esp-idf!18160
2022-05-23 17:53:47 +08:00
Mahavir Jain
9d2238d6e4 Merge branch 'bugfix/mbedtls_dynamic_buffer_crash_on_ssl_server_v4.4' into 'release/v4.4'
fix(mbedtls): fix ssl server memory leak when enable mbedtls dynamic buffer function(backport v4.4)

See merge request espressif/esp-idf!18166
2022-05-23 11:20:30 +08:00
David Čermák
fc8ef9d1c2 Merge branch 'bugfix/mdsn_fuzzer_extend_v4.4' into 'release/v4.4'
mdns: ~~Extend fuzzing and~~ Fix various petty issues (v4.4)

See merge request espressif/esp-idf!18056
2022-05-20 16:58:13 +08:00
David Čermák
db98a4b2ef Merge branch 'bugfix/vfs_sock_select_race_v4.4' into 'release/v4.4'
vfs: Fix potential select() race if both sock and other-fd trigger (v4.4)

See merge request espressif/esp-idf!18175
2022-05-20 12:55:09 +08:00
jingli
bef5b2ac6e remove wrong function rtc_cntl_ll_ulp_wakeup_enable for esp32s2 and esp32s3 2022-05-19 23:27:32 +08:00
jingli
25c49588f9 esp_hw_‎support/sleep: ‎fix cannot lightsleep again after a wakeup from ULP
Since ulp wakeup signal are connected to ulp int raw(except esp32), we
need to clear ulp int raw before sleep when ulp wakeup enabled. Otherwise,
if the ulp int raw is already set, chip will not sleep properly.

Closes https://github.com/espressif/esp-idf/issues/6229
2022-05-19 23:13:42 +08:00
David Cermak
f974099b42 vfs: Fix potential select() race if both sock and other-fd trigger
This fixes a potential race condition in select() if both a socket-fd
and non-socket fd trigger simultaneously to unblock this select.
In case of both fds, we use lwip's local thread semaphore, so we only
have to try return it (if it was taken/triggered more than once) when
we exit select().

Closes https://github.com/espressif/esp-idf/issues/8896
2022-05-19 16:57:39 +02:00
Michael (XIAO Xufeng)
ae6c52e9f9 Merge branch 'bugfix/fix_memory_miss_bug_v4.4' into 'release/v4.4'
esp32c3/esp32s3: Fix cpu crash bug when wakeup from lightsleep for memory data miss (backport v4.4)

See merge request espressif/esp-idf!17826
2022-05-19 13:47:20 +08:00
Jiang Jiang Jian
5d95cd58b2 Merge branch 'bugfix/fix_wifi_pm_state_v4.4' into 'release/v4.4'
esp_wifi: fix no null data after WiFi waking up. (backport v4.4)

See merge request espressif/esp-idf!18142
2022-05-19 10:51:59 +08:00
Jiang Jiang Jian
416d01db7a Merge branch 'bugfix/wifi_provisioning_arduino_v4.4' into 'release/v4.4'
provisioning: replace <lwip/inet.h> by <lwip/ip4_addr.h> in wifi_provisioning/wifi_config.h (v4.4)

See merge request espressif/esp-idf!18162
2022-05-19 10:45:38 +08:00
Jiang Jiang Jian
263e1cec64 Merge branch 'bugfix/tools_clang_atomic_alignment_v4.4' into 'release/v4.4'
cmake: add "-Wno-atomic-alignment" flag to cmake script (v4.4)

See merge request espressif/esp-idf!18163
2022-05-19 10:44:46 +08:00
Jiang Jiang Jian
9ce3973f19 Merge branch 'bugfix/errno_overlap_v4.4' into 'release/v4.4'
newlib: fix ESHUTDOWN and ENOTSOCK having the same numerical value (v4.4)

See merge request espressif/esp-idf!18164
2022-05-19 10:44:12 +08:00
Li Jingyi
81c195fed2 fix(mbedtls): fix ssl server memory leak when enable mbedtls dynamic buffer function 2022-05-19 10:41:40 +08:00
Jiang Jiang Jian
c5deb7a971 Merge branch 'bugfix/disable_bt_pll_track_v4.4' into 'release/v4.4'
Bluetooth: disable PLL track function for ESP32-C3/ESP32-S3 as it introduced coexistence issues(bacport v4.4)

See merge request espressif/esp-idf!18139
2022-05-19 10:41:27 +08:00
Jiang Jiang Jian
74dd39d8b0 Merge branch 'bugfix/Fix_ios_ble_adv_rsp_v4.4' into 'release/v4.4'
Fix iOS advertisement response and simplify (v4.4)

See merge request espressif/esp-idf!18038
2022-05-19 10:40:57 +08:00
Jiang Jiang Jian
7a72f8e852 Merge branch 'bugfix/driver_uart_fix_tx_bytes_rts_assert_failure_v44' into 'release/v4.4'
driver: fixes context switch while sending cause rts reset before send (backport v4.4)

See merge request espressif/esp-idf!17929
2022-05-19 10:40:34 +08:00
Alex Lisitsyn
6bf650c159 driver: fixes context switch while sending cause rts reset before send (backport v4.4) 2022-05-19 10:40:34 +08:00
Jiang Jiang Jian
0bbdd67231 Merge branch 'bugfix/fix_s3_bbpll_calibrate_fail_bug_v4.4' into 'release/v4.4'
ESP32S3: fix bbpll calibrate fail bug in high temperature  (backport v4.4)

See merge request espressif/esp-idf!17896
2022-05-19 10:39:52 +08:00
Jiang Jiang Jian
6382b51bfb Merge branch 'feature/check_block_after_burn_v4.4' into 'release/v4.4'
efuse: Validates data after burning and re-burnes it if necessary (v4.4)

See merge request espressif/esp-idf!17702
2022-05-19 10:39:17 +08:00
Jiang Jiang Jian
80c516e6ad Merge branch 'bugfix/vfs_fat_(p)write_on_diskfull_v4.4' into 'release/v4.4'
vfs: bugfix vfs_fat_write/pwrite upon disk-full (v4.4)

See merge request espressif/esp-idf!17649
2022-05-19 10:39:01 +08:00
Jiang Jiang Jian
8fe41e2e41 Merge branch 'fix/backport/usb_host/cdc_build' into 'release/v4.4'
usb_host: Don't build CDC host driver for unsupported targets (backport v4.4)

See merge request espressif/esp-idf!17526
2022-05-19 10:38:50 +08:00
Ivan Grokhotkov
b02cf33bfa
newlib: fix ESHUTDOWN and ENOTSOCK having the same numerical value 2022-05-18 19:52:15 +02:00
Andrei Safronov
50356cb073
cmake: add "-Wno-atomic-alignment" flag to clang scripts
Clang outputs performance warnings by default for atomic operations with
access size more then 4 bytes. So add "-Wno-atomic-alignment add" flag to
ESP-IDF cmake script.
2022-05-18 19:50:04 +02:00
Rodrigo Garcia
9359c61fea
provisioning: Fix include for Arduino INADDR_NONE 2022-05-18 19:44:05 +02:00
Ivan Grokhotkov
134b5153e3
newlib: fix return value of no-VFS _read_r if nothing received
'read' function should return 0 when encountering an end of file. When
newlib calls read and sees EOF returned, it assumes that this
condition is permanent and never calls 'read' for this file again
(unless the read pointer is moved using fseek).
The correct behavior in case no characters were received over UART is
to return -1. In this case newlib will retry reading from file on next
call to fread, fgetc or another function which calls __srefill_r.
2022-05-18 19:33:10 +02:00
chaijie
d222adbeeb solve memory error bug when in lightsleep mode 2022-05-18 17:43:13 +08:00
liuning
d6f51a5cab esp_wifi: fix no null data after WiFi waking up (backport v4.4). 2022-05-17 23:12:33 +08:00
Karl Wang
5c24b7f75f components/bt: disable Bluetooth PLL track function for ESP32-C3/ESP32-S3 as it introduced coexistence issues 2022-05-17 20:54:51 +08:00
Roland Dobai
fe1cf490b9 Merge branch 'feature/enable_component_manager_by_default_for_pure_cmake_v4.4' into 'release/v4.4'
tools: Enable the component manager by default in CMake (v4.4)

See merge request espressif/esp-idf!18121
2022-05-17 18:42:19 +08:00
Cao Sen Miao
04f7c342f0 I2C: patch for solving watchdog timeout issue 2022-05-17 16:36:40 +08:00
Michael (XIAO Xufeng)
bfce7241c4 example/deep_sleep: add example of EXT0 and using internal pullups 2022-05-17 10:45:31 +08:00
Sergei Silnov
66f60095c2 tools: Enable the component manager by default in CMake 2022-05-16 17:10:07 +02:00
morris
81391f57f6 Merge branch 'feature/disable_protection_v4.4' into 'release/v4.4'
bootloader: Create option for toggling memory region protection (v4.4)

See merge request espressif/esp-idf!18117
2022-05-16 22:09:44 +08:00
Michael (XIAO Xufeng)
4efab0d0ff soc/esp32s3: merge gpio caps into soc_caps.h 2022-05-16 22:01:11 +08:00
Gustavo Henrique Nihei
477d11e9c1 bootloader: Create option for enabling memory region protection
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2022-05-16 09:39:51 -03:00
Mahavir Jain
4995e24199 Merge branch 'feature/optimize_wifi_provisioning_memory_v4.4' into 'release/v4.4'
feat(wifi_provisioning): Optimize memory for wifi scan ap number (backport v4.4)

See merge request espressif/esp-idf!18113
2022-05-16 15:20:44 +08:00
yuanjm
a706a482c6 feat(wifi_provisioning): Optimize memory for wifi scan ap number 2022-05-16 14:07:19 +08:00
Michael (XIAO Xufeng)
e119d6cb06 pm: add powerdown for int_8m on ESP32-H2
Also move the xtal fpu logic to sleep_modes.c
2022-05-16 00:59:36 +08:00
Roland Dobai
3806b240cf Merge branch 'bugfix/interrupted_thread_gdb_bt_v4.4' into 'release/v4.4'
riscv: Fixes GDB backtrace of interrupted threads (v4.4)

See merge request espressif/esp-idf!17716
2022-05-13 21:59:18 +08:00
Omar Chebib
caa5444c93 RISC-V: Fix vectors.S assembly file indentation and macro usage
The file is now more consistent as the macros have been fixed, more comments
have been added and the indentation is now using spaces only.
2022-05-13 12:54:21 +03:00
Alexey Gerenkov
9017ff235b riscv: Use semihosting to set breakpoint and watchpoint when running under debugger 2022-05-13 12:54:21 +03:00
Alexey Gerenkov
46a98fb8d1 riscv: Adds support for returning from exception handler 2022-05-13 12:52:06 +03:00
Alexey Gerenkov
300d67411a riscv: Fixes GDB backtrace end function to point to prvTaskExitError 2022-05-13 12:52:06 +03:00
Alexey Gerenkov
44bfddd784 riscv: Fixes GDB backtrace of interrupted threads
Save missed SP value on stack
2022-05-13 12:52:06 +03:00
Jiang Jiang Jian
80ea94dd36 Merge branch 'bufix/esp32c3_s3_build_err_v4.4' into 'release/v4.4'
component_bt: Fix ESP32C3/S3 build error after enable light sleep(v4.4)

See merge request espressif/esp-idf!17995
2022-05-13 15:39:38 +08:00
Zim Kalinowski
832c199c25 Merge branch 'bugfix/fix_heap_free_memory_v4.4' into 'release/v4.4'
Heap: fix free bytes calculation for TLSF heap (backport v4.4)

See merge request espressif/esp-idf!17688
2022-05-12 16:20:32 +08:00
Michael (XIAO Xufeng)
17b9cc6b4a pm: fixed RTC8M domain power issues
introduced in e44ead5356

1. The int8M power domain config by default is PD. While LEDC is using
RTC8M as clock source, this power domain will be kept on.

But when 8MD256 is used as RTC clock source, the power domain should
also be kept on.

On ESP32, there was protection for it, but broken by commit
e44ead5356. Currently the power domain
will be forced on when LEDC is using RTC8M as clock source &&
!int8m_pd_en (user enable ESP_PDP_DOMAIN_RTC8M in lightsleep). Otherwise
the power domain will be powered off, regardless of RTC clock source.

In other words, int8M domain will be forced off (even when 8MD256
used as RTC clock source) if LEDC not using RTC8M as clock source, user
doesn't enable ESP_PDP_DOMAIN_RTC8M, or in deep sleep.

On later chips, there's no such protection, so 8MD256 could't be used as
RTC clock source in sleep modes.

This commit adds protection of 8MD256 clock to other chips. Fixes the
incorrect protection logic overriding on ESP32. Now the power domain
will be determiend by the logic below (order by priority):

    1. When RTC clock source uses 8MD256, power up
    2. When LEDC uses RTC8M clock source, power up
    3. In deepsleep, power down
    4. Otherwise determined by user config of ESP_PDP_DOMAIN_RTC8M,
       power down by default. (This is preferred to have highest
       priority, but it's kept as is because of current code structure.)

2. Before, after the macro `RTC_SLEEP_CONFIG_DEFAULT` decides dbias, the
protection above may force the int8m PU. This may cause the inconsistent
of dbias and the int8m PU status.

This commit lifts the logic of pd int8m/xtal fpu logic to upper layer
(sleep_modes.c).

Related: https://github.com/espressif/esp-idf/issues/8007, https://github.com/espressif/esp-idf/pull/8089

temp
2022-05-12 15:57:09 +08:00
Omar Chebib
18fb3d60b8 Apply 1 suggestion(s) to 1 file(s) 2022-05-12 07:49:28 +00:00
KonstantinKondrashov
06aeeff54e efuse: fix 2022-05-12 07:49:28 +00:00