Commit Graph

9542 Commits

Author SHA1 Message Date
Michael (XIAO Xufeng)
b183ef2586 esp_flash: fix write issue using buffer on stack out of lifetime 2022-02-20 03:25:37 +08:00
Wang Meng Yang
605fb98948 Merge branch 'bugfix/config_parse_crash_after_flash_erase_v4.1' into 'release/v4.1'
component_bt: fixed config parse crash after flash_erase(v4.1)

See merge request espressif/esp-idf!16732
2022-02-18 05:01:40 +00:00
Jiang Jiang Jian
e3433724cc Merge branch 'bugfix/fix_ble_adv_underrun_error_v4.1' into 'release/v4.1'
components/bt: Fix ble adv_underrun issue(backport v4.1)

See merge request espressif/esp-idf!17167
2022-02-17 04:49:18 +00:00
Zim Kalinowski
ea815ca751 Merge branch 'bugfix/sdio_slave_dma_desc_int_v4.1' into 'release/v4.1'
sdio_slave: Fixed the issue that DMA descriptors allocated to non-DMA capable area (v4.1)

See merge request espressif/esp-idf!17140
2022-02-16 13:24:18 +00:00
xiewenxiang
abcd2a7c9e components/bt: Fix ble adv_underrun issue
components/bt: Fix LLCP collision for channel map update
2022-02-16 00:30:05 +08:00
songruojing
08efd3e495 ledc: Fix FADE_NO_WAIT mode concurrency problem.
Add test cases for fade concurrency issue and fade timing check.

Closes https://github.com/espressif/esp-idf/issues/6710

(cherry picked from commit be2ab09832)
2022-02-15 12:43:08 +08:00
songruojing
370d24d001 ledc: Simplify the procedure to perform a one-time duty update
Avoid adding one extra fade cycle when performing a one-time duty update.
Add some notes to ledc_get_duty and ledc_update_duty APIs, so that users
are aware of when the new duty will be effective.

Closes https://github.com/espressif/esp-idf/issues/7288

(cherry picked from commit e175086226)
2022-02-15 12:43:08 +08:00
xiongweichao
52f6ed8646 btc_a2dp_control_set_datachnl_stat is only used by a2dp sink 2022-02-15 11:56:45 +08:00
xiongweichao
b432340266 remove btc_a2dp_dispatch_datapath_evt and event 2022-02-15 11:56:45 +08:00
xiongweichao
cd05f5252a Fixed the crash caused by calling esp_a2d_media_ctrl(ESP_A2D_MEDIA_CTRL_START) after stream started 2022-02-15 11:56:45 +08:00
xiongweichao
b29ec46c88 Fixed a2dp source audio data packet congestion causing choppy audio in a2dp sink 2022-02-15 11:56:44 +08:00
Wang Meng Yang
8c1aa176f2 Merge branch 'bugfix/clear_whitelist_v4.1' into 'release/v4.1'
Nimble : Modify `ble_gap_wl_set` to support clearing complete whitelist (v4.1)

See merge request espressif/esp-idf!17142
2022-02-15 03:20:41 +00:00
Michael (XIAO Xufeng)
ece06a9016 sdio_slave: fixed the issue that interrupt may be cleared with finished trans unhandled 2022-02-15 00:02:02 +08:00
Jiang Jiang Jian
6ebe70287c Merge branch 'bugfix/wps_fixes_v4.1' into 'release/v4.1'
wpa_supplicant: Add WPS Fixes (backport V4.1)

See merge request espressif/esp-idf!17061
2022-02-14 13:05:05 +00:00
Rahul Tank
eee592d809 Nimble : Modify ble_gap_wl_set to support clearing complete whitelist 2022-02-14 16:44:57 +05:30
Michael (XIAO Xufeng)
786bbc26eb sdio_slave: fixed the issue DMA desc not capable 2022-02-14 12:58:14 +08:00
Michael (XIAO Xufeng)
7916c4079c Merge branch 'flash/add_th_support_v4.1' into 'release/v4.1'
spi_flash: add support for th 1M flash(backport v4.1)

See merge request espressif/esp-idf!16719
2022-02-14 04:46:59 +00:00
Michael (XIAO Xufeng)
793b1cc8e8 Merge branch 'feature/support_new_psram_v4.1' into 'release/v4.1'
psram: add ESP32-D0WD-R2-V3 support(backport v4.1)

See merge request espressif/esp-idf!16711
2022-02-13 14:46:01 +00:00
Kapil Gupta
b3d03e8db7 wpa_supplicant: Fix invalid memory dereference 2022-02-12 10:36:40 +05:30
Wang Meng Yang
5ea980e80c Merge branch 'bugfix/rd_rem_ext_feats_delayed_cs_v4.1' into 'release/v4.1'
bugfix/fix cs event for rd_rem_ext_feats delayed issue (v4.1)

See merge request espressif/esp-idf!16816
2022-02-10 09:46:44 +00:00
jincheng
c726a25d98 fix cs event for rd_rem_ext_feats delayed issue 2022-02-10 15:40:41 +08:00
xiongweichao
f5516d661c fixed config parse crash after flash_erase
Closes https://github.com/espressif/esp-idf/issues/6170
2022-02-09 19:20:20 +08:00
Kapil Gupta
9f70b89794 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.
2022-02-08 17:09:41 +05:30
Michael (XIAO Xufeng)
d199dc421d Merge branch 'bugfix/modbus_add_task_affinity_and_callbacks_v41' into 'release/v4.1'
freemodbus: add affinity option for modbus stack tasks (backport v4.1)

See merge request espressif/esp-idf!14543
2022-02-07 09:44:38 +00:00
Jiang Jiang Jian
df2856c13d Merge branch 'bugfix/wps_wfa_cert_fixes_v4.1' into 'release/v4.1'
wpa_supplicant: Add WPS strict in config option(backport v4.1)

See merge request espressif/esp-idf!14229
2022-01-28 13:04:12 +00:00
aditi_lonkar
445852da8d esp_wifi: Fixes memory leak in wpa3 connection. 2022-01-28 16:50:36 +05:30
Jiang Jiang Jian
fb948175f8 Merge branch 'bugfix/alarm_update_invalid_v4.1' into 'release/v4.1'
timer: stop alarm if alarm value doesn't change in ISR callback (v4.1)

See merge request espressif/esp-idf!16535
2022-01-28 09:26:54 +00:00
aditi_lonkar
d9ed6d93e9 wpa_supplicant: Add WPS strict in config option
WPS strict disables workarounds with different APs and may cause
IOT issues. Remove this as default and introduce as a config option.

Also declare esp device as single band mobile device otherwise
WFA sniffer was not able to identify it in the certification setup.
2022-01-28 16:52:51 +08:00
Jiang Jiang Jian
4066200d98 Merge branch 'bugfix/fix_spp_open_err_bda_v4.1' into 'release/v4.1'
Component_bt/Fix SPP acceptor open with wrong remote address[backport 4.1]

See merge request espressif/esp-idf!16616
2022-01-28 08:47:25 +00:00
Jiang Jiang Jian
916e3ef1f1 Merge branch 'bugfix/fix_tbtt_and_phy_issues_v4.1' into 'release/v4.1'
esp_wifi: fix tbtt and phy issues (Backport v4.1)

See merge request espressif/esp-idf!16842
2022-01-27 10:29:15 +00:00
zhangyanjiao
3410711f9b esp_wifi:
1. fix the issue that no tbtt is generated in station+softap mode when maximum modem sleep is enabled
2. update libphy.a to V4670 719f9f6_20210218 for esp32
2022-01-27 14:37:28 +08:00
Michael (XIAO Xufeng)
9bc21c4906 spi_flash_test: remove threshold from unit test 2022-01-18 16:34:19 +08:00
yuanjm
b59e3b88b6 smartconfig: Fix smartconfig set socket option fail 2022-01-12 14:56:22 +08:00
Cao Sen Miao
0fc751ad6c spi_flash: add support for th 1M flash 2022-01-10 11:58:57 +08:00
Cao Sen Miao
19d2a765d3 psram: add ESP32-D0WD-R2-V3 support 2022-01-10 11:13:00 +08:00
Jiang Jiang Jian
b84233626e Merge branch 'bugfix/set_authmode_by_switching_number_to_string_v4.1' into 'release/v4.1'
CI: set authmode by switching number to string (backport v4.1)

See merge request espressif/esp-idf!16556
2022-01-06 10:10:27 +00:00
liqigan
09d97a007b fix SPP open with wrong remote bd_addr 2021-12-31 15:48:48 +08:00
Zim Kalinowski
fa9ca143c1 Merge branch 'bugfix/ringbuf_read_pointer_wrap_v4.1' into 'release/v4.1'
ringbuf: Fix bug where comparision between a signed and unsigned operand resulted in incorrect free size for no-split/allow-split buffers (v4.1)

See merge request espressif/esp-idf!15884
2021-12-30 02:23:29 +00:00
Jiang Jiang Jian
ebf628e4ae Merge branch 'feature/support_ble_direct_ind_low_adv_v4.1' into 'release/v4.1'
components/bt: Support low duty cycle directed advertising(backport release/v4.1)

See merge request espressif/esp-idf!16380
2021-12-29 06:09:51 +00:00
huchaoru
9e9be2538d bugfix: set authmode by switching number to string (backport v4.1) 2021-12-27 20:01:58 +08:00
Sudeep Mohanty
30cd5a6f0f ringbuf: Fix bug where comparision between a signed and unsigned operand resulted in incorrect free size for no-split/allow-split buffers
This commit fixes a bug in no-split and allow-split ring buffers free buffer size calculation.
When the free size available in the buffers less than the size of one item header,
the function prvGetCurMaxSizeNoSplit/AllowSplit() incorrectly returned the maxItemSize instead of 0.
This is due to the comparision between a negative and a positive value
where both operands are treated as unsigned during the comparision operation,
thereby treating the negative operand as a large integer.

Also added new unit tests to test buffer-full and almost-full conditions
where this scenario is likely to be hit.

Closes https://github.com/espressif/esp-idf/issues/7344
Closes https://github.com/espressif/esp-idf/pull/7371
2021-12-27 15:13:52 +08:00
Jiang Jiang Jian
6cd99a7ebd Merge branch 'bugfix/fix_rx_fragment_error_issue_v4.1' into 'release/v4.1'
esp_wifi: fix fragment issue and PMF compatible for faulty APs(Backport v4.1)

See merge request espressif/esp-idf!16400
2021-12-24 08:39:09 +00:00
Sudeep Mohanty
0a68ce5952 Merge branch 'bugfix/ringbuf_send_semaphore_release_order_v4.1' into 'release/v4.1'
esp_ringbuf: Fix order of semaphore release in xRingbufferSend (v4.1)

See merge request espressif/esp-idf!16232
2021-12-24 06:16:16 +00:00
morris
7abb92fbea 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-24 13:10:49 +08:00
Jiang Jiang Jian
2515d115fe Merge branch 'feature/mbedtls-2.16.12-integration_v4.1' into 'release/v4.1'
mbedtls: upgrade to release v2.16.12 (v4.1)

See merge request espressif/esp-idf!16486
2021-12-24 03:21:59 +00:00
Zim Kalinowski
2b23f04968 Merge branch 'bugfix/fix_select_timeout_v4.1' into 'release/v4.1'
VFS: `select` function's timeout is now POSIX compliant (backport v4.1)

See merge request espressif/esp-idf!16192
2021-12-22 05:50:32 +00:00
Mahavir Jain
b47a7353ac 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-21 14:08:11 +05:30
Wang Meng Yang
284fa65271 Merge branch 'bugfix/fix_spp_listen_err_v4.1' into 'release/v4.1'
Component_bt/Fix SPP cannot malloc slot bugs[backport v4.1]

See merge request espressif/esp-idf!16386
2021-12-21 08:01:18 +00:00
Jiang Jiang Jian
0d500b84df Merge branch 'doc/nvs_get_used_entry_count__clarify_4.1' into 'release/v4.1'
[doc]: NVS documentation updates (backport 4.1)

See merge request espressif/esp-idf!16431
2021-12-21 03:33:25 +00:00
Jiang Jiang Jian
7e7ea6c779 Merge branch 'feature/add_coex_hci_command_v4.1' into 'release/v4.1'
Add hci command to set coexistence status (v4.1)

See merge request espressif/esp-idf!16056
2021-12-21 03:31:57 +00:00
Jiang Jiang Jian
6f737fdca8 Merge branch 'bugfix/leedarson_v4.1' into 'release/v4.1'
component_bt: Fix some code logic errors (v4.1)

See merge request espressif/esp-idf!16039
2021-12-21 03:31:43 +00:00
Jiang Jiang Jian
bdb45af57e Merge branch 'bugfix/fix_supplicant_log_v4.1' into 'release/v4.1'
wpa_supplicant: Fix compilation when debug prints are enabled

See merge request espressif/esp-idf!14222
2021-12-21 03:30:50 +00:00
Jiang Jiang Jian
7a81db5c54 Merge branch 'bugfix/fix_blufi_encryption_fail_v4.1' into 'release/v4.1'
components/bt: fix blufi encryption fail(backport release/v4.1)

See merge request espressif/esp-idf!16317
2021-12-21 03:29:11 +00:00
Jakob Hasse
908dbe0595 [doc]: NVS documentation updates
* Better comment of nvs_get_used_entry_count()
* Mention C++ example in API reference
* WIP: Used target instead of hard code ESP32
* Note that strings can only span one page
* Reflect that item types have been moved
* Some clarification about nvs_commit()
* Improved reference to the ESP Partition API
* fixed little mistake in documenting-code.rst
* Change of nvs_open_from_part() to
  nvs_open_from_partition() reflected in docs
* Corrected documentation of
  NVSHandle::get_string(), NVSHandle::get_blob()
  and NVSHandle::get_item_size().

* Closes IDF-1563
* Closes IDF-859
* Closes https://github.com/espressif/esp-idf/issues/6123
2021-12-17 16:13:23 +08:00
xiewenxiang
e4d61c3d85 components/bt: fix blufi encryption fail 2021-12-16 16:22:23 +08:00
xiewenxiang
554b71c541 components/bt: Fix high duty cycle directed advertising will not be stopped when timeout 2021-12-16 16:21:52 +08:00
xiewenxiang
2aa8b8794c components/bt: Support low duty cycle directed advertising 2021-12-16 16:21:52 +08:00
yuanjm
7ca2fa5fd2 lwip: Add macro to disable vendor class option 2021-12-16 11:42:58 +08:00
Konstantin Kondrashov
e6943e970c Merge branch 'bugfix/fix_esp32h2_efuse_get_ext_mac_v4.1' into 'release/v4.1'
efuse_table_gen: Fixes wrong joining fields with omitted names (v4.1)

See merge request espressif/esp-idf!15740
2021-12-15 15:33:12 +00:00
NikLeberg
4b8ae70256 allow for minimal scope of wifi_init_config_t
With this change one can use the default config as a variable with minimal scope: esp_wifi_init(&(wifi_init_config_t)WIFI_INIT_CONFIG_DEFAULT())
2021-12-14 20:20:11 +08:00
Shang Zhou
626ce87ffb docs: Update miswritten and abbreviated words and syntax errors for initialize WiFi section in esp_wifi.h header file 2021-12-14 20:19:26 +08:00
muhaidong
171a59cc88 esp_wifi: fix fragment issue and PMF compatible for faulty APs
1. fix(pp): fix fragment plt loss when 2td pn compare with 1th pn
2. pmf allow keyindex in big endian format to workaround faulty APs
3. docs: update miswritten and abbreviated words and syntax errors for initialize WiFi section in esp_wifi.h header file
4. allow for minimal scope of wifi_init_config_t
2021-12-14 20:15:42 +08:00
liqigan
70375166ba fix SPP server bugs when the BTC layer can not allocate a slot for the listen port 2021-12-14 11:22:53 +08:00
Wang Meng Yang
22d127ecc1 Merge branch 'bugfix/fix_memory_leak_controller_deinit_v4.1' into 'release/v4.1'
ESP32: Fix memory leak in controller deinit function v4.1

See merge request espressif/esp-idf!15971
2021-12-09 02:36:52 +00:00
Jiang Jiang Jian
abdad421bb Merge branch 'bugfix/fix_wifi_bugs_20211206_v4.1' into 'release/v4.1'
esp_wifi: fix wifi bugs 20211206 (Backport v4.1)

See merge request espressif/esp-idf!16271
2021-12-08 03:02:39 +00:00
xiongweichao
edd24b518b Add hci command to set coexistence status 2021-12-07 17:41:59 +08:00
zhangyanjiao
2cdf9b5d9d esp_wifi:
1. Fix airkiss and esptouch find channel crash issue
2. Fix issue of softAP not initating 4-way handshake if max length passphrase is set
3. Fix issue of esptouch find hidden AP fail
4. Clear hostpot bss when auth timeout happens
5. Fix not connect to open AP when WPA3 auth fail
6. Fix issue with hidden AP scans after connecting AP
7. Fix the watchdog issue when receiving action frame
8. Fix set config return value error
9. Fix the issue of reason code change from 15 to 204 when provide wrong password
10. Fix ampdu age timer memory leak
11. Fix issue of esp_wifi_80211_tx
12. Fix crash issue in presence of WEP AP
13. Fix the MIC comparison logic AES-128-CMAC decryption
14. Fix issue of setting incorrect log_length of NVS misc log
15. Fix SoftAP crash by handling public action frames
16. Fix a bug that Wi-Fi stack may crash when receive AMSDU length bigger then 3200
2021-12-07 14:22:24 +08:00
Rahul Tank
ecbf1e398a ESP32: Fix memory leak in controller deinit function
Added change to dealloc s_pm_lock in controller deinit as it gets allocated
during init procedure.
2021-12-07 11:34:37 +05:30
aditi_lonkar
388bf07ceb wpa_supplicant: Fix compilation when debug prints are enabled 2021-12-07 12:21:56 +08:00
xiongweichao
b01ea3e2c7 Missing break in switch 2021-12-07 12:11:33 +08:00
xiongweichao
b37e2553aa already defined in bt_target.h 2021-12-07 12:11:33 +08:00
xiongweichao
33fd228c9d Dereference after null check 2021-12-07 12:11:33 +08:00
xiongweichao
01a7b1de70 Dereference before null check 2021-12-07 12:11:33 +08:00
xiongweichao
92f258e927 Logically dead code 2021-12-07 12:11:33 +08:00
Jiang Jiang Jian
6ce71ecacf Merge branch 'bugfix/link_spi_flash_rom_func_in_bootloader_stage_v4.1' into 'release/v4.1'
esp_rom: link rom spi flash functions in bootloader stage (v4.1)

See merge request espressif/esp-idf!15259
2021-12-07 03:37:57 +00:00
Jiang Jiang Jian
cce06a33ed Merge branch 'bugfix/psram_fix_bootloader_v4.1' into 'release/v4.1'
bootloader: disable psram cache bug fix for bootloader (v4.1)

See merge request espressif/esp-idf!15807
2021-12-07 03:37:35 +00:00
Jiang Jiang Jian
c7af5d8ce9 Merge branch 'feature/adds_fault_injection_protection_for_check_anti_rollback_v4.1' into 'release/v4.1'
bootloader_support: Adds fault injection protection for check_anti_rollback (v4.1)

See merge request espressif/esp-idf!16182
2021-12-07 03:33:11 +00:00
Jiang Jiang Jian
9fe266f18e Merge branch 'bugfix/fix_modem_sleep_hw_error_mr_4.1' into 'release/v4.1'
fix modem sleep hw error

See merge request espressif/esp-idf!16020
2021-12-07 03:32:50 +00:00
Yang Zhao
22096945d8 1.fix the issue create Connection request is not properly terminated
which blocks BlueZ from reconnecting
2.fix the issue bt_spp_acceptor example fails when SPP is initiated
  on a windows machine using Realtek Bluetooth adapter
3.fix the issue HCI_Read_Clock failed read local Bluetooth Clock
4.It is abnormal when getting the deep sleep state bit. So we need to
  check the state again and run the "ble_master_soft_rst()" if neesed.
2021-12-06 17:37:49 +08:00
xiehang
d23be33b0d esp_wifi: Add beacon timeout event 2021-12-06 15:16:37 +08:00
“YangZhao”
dea009aa62 Fix the high-impact issues from the code analysis report from customer.
For the CID10564,10384,10280,10098,10038,The memory was released in other place.
For the CID10365,it release the memory in the function when sent successfully.
For the CID10268,10011, we need not change the code.
2021-12-06 14:04:05 +08:00
RichFalk
f698e9ad3c esp_ringbuf: Fix assertion xQueueGenericSend queue.c
The release of the semaphore indicating the item was successfully sent must be the last semaphore released.  The receiver may be in another task and may delete the Ringbuffer (such as with a return code across tasks design pattern) if they are through with the Ringbuffer.

The function xRingbufferSendAcquire followed by xRingbufferSendComplete had the semaphores released in the proper order and that same pattern should have been used in xRingbufferSend and xRingbufferSendFromISR.  This commit fixes this order.

Issue (IDFGH-6030) #7716 describes the problem in more detail.

Closes IDFGH-6030, https://github.com/espressif/esp-idf/issues/7716
Closes IDFGH-6036, https://github.com/espressif/esp-idf/pull/7721
2021-12-03 09:50:06 +05:30
Jiang Jiang Jian
488930b9f7 Merge branch 'bugfix/enable_gpio_20_v4.1' into 'release/v4.1'
gpio: Enable IO20 on ESP32 (backport v4.1)

See merge request espressif/esp-idf!15024
2021-12-03 03:37:33 +00:00
Jiang Jiang Jian
8c6853bbc1 Merge branch 'bugfix/lwip_config_dhcp_client_id_v4.1' into 'release/v4.1'
lw-ip: Add config for DHCP client id; Fix DNS server idx assert issue (v4.1)

See merge request espressif/esp-idf!16175
2021-12-03 03:33:51 +00:00
Jiang Jiang Jian
70fbcbddc8 Merge branch 'bugfix/eap_client_iot_issues_v4.1' into 'release/v4.1'
ESP_WiFi: Fix some wpa enterprise issue (backport V4.1)

See merge request espressif/esp-idf!15574
2021-12-03 03:30:59 +00:00
Jiang Jiang Jian
31203908a3 Merge branch 'bugfix/fix_adc-dma_reading_gap_for_esp32_backport_v4.1' into 'release/v4.1'
bugfix(adc): missing ranges of ADC codes in ESP32 (backport v4.1)

See merge request espressif/esp-idf!12878
2021-12-03 03:26:04 +00:00
Jiang Jiang Jian
2da581f82f Merge branch 'bugfix/pm_dump_format_v4.1' into 'release/v4.1'
esp_pm: fix formatting issues in esp_pm_dump_locks (backport v4.1)

See merge request espressif/esp-idf!12023
2021-12-03 03:23:54 +00:00
Omar Chebib
ddf693b662 VFS: select function's timeout is now POSIX compliant
`select` function will now round up the timeout passed as a parameter (if any).
It  makes it POSIX compliant.

* Closes https://github.com/espressif/esp-idf/issues/7514
2021-11-30 12:29:35 +08:00
Mahavir Jain
48cac250c7 bootloader: add anti-FI checks around secure version in anti-rollback scheme 2021-11-29 18:50:01 +05:30
David Cermak
8bf61c289a lwip: Add config for DHCP client id; Fix DNS server idx assert issue
This commit brings two esp-lwip fixes to IDF:

1) Add configuration to disable DHCP client identification
2195f7416f
This config could be used to disable option 61 in DHCP packets, so that
clients will be identified by their  chaddr only.
(This is the lwip upstream original behaviour)

2) Fix server_idx increasing to DNS_MAX_SERVERS and trigger the LWIP_ASSERT
5a567d52f7
When lwip doesn't have DNS server and resolve a domain address, the server_idx
will increase to DNS_MAX_SERVERS, which will trigger the LWIP_ASSERT and make device crash.

Closes https://github.com/espressif/esp-idf/issues/6878
2021-11-29 11:18:54 +01:00
Roland Dobai
f3b823381b Merge branch 'bugfix/coredump_esp_panic_reason_v4.1' into 'release/v4.1'
coredump: Fixes ESP-specific panic reasons handling (v4.1)

See merge request espressif/esp-idf!16068
2021-11-26 11:03:57 +00:00
Gustavo Henrique Nihei
7e17bd8eb3 bootloader_support: Fix and re-enable bootloader_debug_buffer function
The body of the bootloader_debug_buffer function was conditioned to
macros that were never defined, resulting in deactivated code.

Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-11-26 13:19:18 +08:00
Alexey Gerenkov
719974ac88 coredump: Fixes ESP-specific panic reasons handling 2021-11-25 09:43:32 +01:00
shenjun
56a1a74492 esp_wifi_mesh: add esp_mesh_send_block_time to set blocking time of esp_mesh_send
1. add esp_mesh_send_block_time to set blocking time of esp_mesh_send
2. fix the issue that layer2 node connect to lower-layer node when FIXED-ROOT root disappeared
2021-11-25 14:02:03 +08:00
Roland Dobai
81517ead9e Merge branch 'feature/gcov_dump_in_thread_v4.1' into 'release/v4.1'
Feature/gcov dump in thread v4.1

See merge request espressif/esp-idf!15918
2021-11-23 07:55:11 +00:00
Erhan Kurubas
08ef49e478 gcov: enable gcov in single core 2021-11-12 22:35:52 +03:00
Gustavo Henrique Nihei
8e03ec2253 efuse: Enable C++ linkage for the include headers on esp_efuse.h
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-11-12 13:30:37 -03:00
Gustavo Henrique Nihei
c72930f726 efuse: Add missing stdbool.h include file
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-11-12 13:30:36 -03:00
Erhan Kurubas
3277ff6856 gcov: ipc component name changei 2021-11-12 19:28:07 +03:00
Erhan Kurubas
3830ac21e2 esp_ipc: fix race condition in ipc task 2021-11-12 00:33:01 +03:00
Erhan Kurubas
9681fb3d71 ipc: enable ipc task at single core for gcov dump 2021-11-12 00:32:43 +03:00
Erhan Kurubas
1d987334d3 gcov: add stub table size entry 2021-11-12 00:32:43 +03:00
Erhan Kurubas
fd8b943619 gcov: add gcov callback into the ipc task 2021-11-12 00:32:39 +03:00
Erhan Kurubas
357e938298 gcov: dump in a special thread 2021-11-12 00:31:17 +03:00
Erhan Kurubas
1a40148be0 gcov: added dbg stub capabilites and magic number entry to keep backward compatible 2021-11-12 00:29:57 +03:00
boarchuz
59a37806e7 fix bootloader build with rom flash driver
Closes https://github.com/espressif/esp-idf/pull/7508
Closes https://github.com/espressif/esp-idf/issues/6849
2021-11-08 14:14:14 +08:00
xiewenxiang
7b18c32ad2 component/bt: fix crash when shutdown bt(backport v4.1) 2021-11-08 10:43:15 +08:00
Island
25ce06d32e Merge branch 'bugfix/ble_mesh_host_init_v4.1' into 'release/v4.1'
ble_mesh: nimble: return error if init host twice (v4.1)

See merge request espressif/esp-idf!15790
2021-11-05 03:12:34 +00:00
Island
30450b456f Merge branch 'bugfix/sig_ble_mesh_errata_e16350_v4.1' into 'release/v4.1'
ble_mesh: stack: Apply the errata E16350 from Bluetooth SIG (v4.1)

See merge request espressif/esp-idf!15786
2021-11-05 03:09:32 +00:00
Marius Vikhammer
0e3ebe868f bootloader: disable psram cache bug fix for bootloader
The psram cache bug fix was also being applied to the bootloader binary (for cmake),
which doesnt do any psram access.

Applying this fix would increase the binary size, as much as 300 bytes in worst case scenarios
2021-11-04 11:32:19 +08:00
lly
2f0fbfa3ef ble_mesh: nimble: return error if init host twice 2021-11-03 19:22:00 +08:00
lly
68d902e9c8 ble_mesh: stack: Apply the errata E16350 from Bluetooth SIG 2021-11-03 19:07:08 +08:00
Chinmay Chhajed
5bf675ea4f BLE: Set connection max latency value to 499. 2021-11-01 16:39:13 +05:30
KonstantinKondrashov
104dc63c85 efuse_table_gen: Fixes wrong joining fields with omitted names
The issue is related to the non-sequential way of description when
such fields going together sequential.

Related to esp32h2 chip for eFuses: MAC_FACTORY and MAC_EXT.
The issue is in wrong indexes of MAC_EXT.
MAC_EXT got indexes like it is joined to MAC_FACTORY.

const esp_efuse_desc_t* ESP_EFUSE_MAC_FACTORY[] = {
    &MAC_FACTORY[0],
    &MAC_FACTORY[1],
    &MAC_FACTORY[2],
    &MAC_FACTORY[3],
    &MAC_FACTORY[4],
    &MAC_FACTORY[5],
    NULL
};

const esp_efuse_desc_t* ESP_EFUSE_MAC_EXT[] = {
    &MAC_EXT[6],
    &MAC_EXT[7],
    NULL
};

This commit fixed it to:

const esp_efuse_desc_t* ESP_EFUSE_MAC_EXT[] = {
    &MAC_EXT[0],
    &MAC_EXT[1],
    NULL
};
2021-10-29 19:37:35 +08:00
yuanjm
4b8a5ff153 esp_http_client: Fix HEAD request will affect the all next HTTP requests unless we close the HTTP request
Closes https://github.com/espressif/esp-idf/issues/7777
2021-10-29 10:21:07 +08:00
Kapil Gupta
bd716b6fa1 wpa_supplicant: Add missing cflag for legacy makefile 2021-10-28 16:55:50 +05:30
Kapil Gupta
c4b411cbb2 wpa_supplicant: Update internal tls client with sha384/sha512 support 2021-10-28 16:55:14 +05:30
Kapil Gupta
04d02e5b52 esp_wifi: Fix interoperability issue with windows 2008 2021-10-28 16:07:01 +08:00
Mahavir Jain
f9327b9d82 Merge branch 'bugfix/select_boot_app_v4.1' into 'release/v4.1'
partition_table: Fix case when a few similar to otadata partitions in the table (v4.1)

See merge request espressif/esp-idf!15650
2021-10-28 05:38:23 +00:00
Island
2a455d7d5e Merge branch 'bugfix/heartbeat_filter_with_acceptlist_v4.1' into 'release/v4.1'
ble_mesh: stack: Fix heartbeat filter with accept list (v4.1)

See merge request espressif/esp-idf!15678
2021-10-28 02:58:47 +00:00
wangjialiang
661528d4f7 ble_mesh: stack: Fix heartbeat filter with accept list 2021-10-27 16:47:17 +08:00
xiongweichao
8656b9f088 Remove assert when inq done
Closes https://github.com/espressif/esp-idf/issues/6759
2021-10-27 14:36:37 +08:00
KonstantinKondrashov
a86117223b partition_table: Fix case when a few similar to otadata partitions in the table
It was when in the partition table there is a partition with type="data" and suptype=""(empty),
in this case type=1, suptype=0. It is similar to otadata partition.

This commit fixes it, now it will handle it as type=1, suptype=6 (ESP_PARTITION_SUBTYPE_DATA_UNDEFINED).
2021-10-26 16:49:26 +08:00
Yang Zhao
e14327fa02 1.Fix the ble scan failed issue, this may happen in coexit environment
2.Fix connection failed with LG 5.0 phone
3.Check only for same X component of public key in BR/EDR
2021-10-21 11:08:46 +08:00
Wang Meng Yang
bd28980da5 Merge branch 'bugfix/btdm_ble_data_length_update_fail_v4.1' into 'release/v4.1'
Fix data length update failed(release v4.1)

See merge request espressif/esp-idf!15504
2021-10-18 03:08:22 +00:00
Yuan Jian Min
0c46c56c01 Merge branch 'bugfix/fix_cplusplus_miss_in_dhcp_v4.1' into 'release/v4.1'
dhcpserver: support cplusplus (backport v4.1)

See merge request espressif/esp-idf!15361
2021-10-14 11:59:38 +00:00
xiewenxiang
85a6c2ea9b component/bt: fix data length update failed 2021-10-13 19:47:43 +08:00
yuanjm
f570b33b66 dhcpserver: support cplusplus
Closes https://github.com/espressif/esp-idf/issues/7494

Merges https://github.com/espressif/esp-idf/pull/7526
2021-10-08 16:45:39 +08:00
baohongde
e10416659c components/bt: Sync bt lib with the high level interrupt version 2021-10-08 14:20:36 +08:00
Mahavir Jain
bf80d8b5da nghttp2: upgrade to v1.41.0 release
Detailed changelog:
https://github.com/nghttp2/nghttp2/releases/tag/v1.41.0

Closes: https://github.com/espressif/esp-idf/issues/4883
Closes IDFGH-2821
2021-10-01 04:10:51 +08:00
Jiang Jiang Jian
05f5998b98 Merge branch 'cherry-pick-e8360fe0-2' into 'release/v4.1'
wpa_supplicant: clean tls client state machine (backport v4.1)

See merge request espressif/esp-idf!15038
2021-09-29 11:47:06 +00:00
Michael (XIAO Xufeng)
cf584f1542 Merge branch 'bugfix/uart_driver_obj_into_sram_v4.1' into 'release/v4.1'
uart: put driver object into sram(v4.1)

See merge request espressif/esp-idf!14754
2021-09-26 01:33:37 +00:00
David Čermák
e83df0aa20 Merge branch 'bugfix/config_data_interface_early_v4.1' into 'release/v4.1'
initialize data interface early (v4.1)

See merge request espressif/esp-idf!15091
2021-09-24 07:33:28 +00:00
Jiang Jiang Jian
d0525dcf03 Merge branch 'bugfix/stack_init_check_v4.1' into 'release/v4.1'
NimBLE: Check stack status before executing stack command

See merge request espressif/esp-idf!14985
2021-09-23 07:55:34 +00:00
zhiweijian
ffc6072f80 component/bt: add clear white list API 2021-09-22 16:01:51 +08:00
morris
1c75ad9416
uart: support alloc driver object in SRAM
If CONFIG_UART_ISR_IN_IRAM is on, which means user hope the uart
interrupt can still be serviced even when cache is diabled (e.g.
writing to flash). In that case, the driver should make sure to
put the all related objects into SRAM, avoid putting them in the PSRAM.

Closes https://github.com/espressif/esp-idf/issues/7044
Closes https://github.com/espressif/esp-idf/pull/7355
2021-09-22 11:57:28 +08:00
morris
89990bcbf5
uart: format driver code by astyle 2021-09-22 11:57:28 +08:00
Vikram Dattu
112cfe8f57 esp_http_client: Fixed handling of EAGAIN return
For https connection `ESP_TLS_ERR_SSL_WANT_READ` of esp_transport_read was getting treated as error.
Treated this as a timeout to fix connection abort issue!

Also handled http connection EAGAIN with `errno == EAGAIN` check.

Signed-off-by: Vikram Dattu <vikram.dattu@espressif.com>
2021-09-20 18:22:21 +05:30
Aditya Patwardhan
fc931ff193 Fix esp_mbedtls_write API
Fix esp_wolfssl_write API
Closes https://github.com/espressif/esp-idf/issues/7461
2021-09-16 09:07:48 +05:30
Alex Lisitsyn
05d647a04a Merge branch 'bugfix/modbus_fix_invalid_error_handling_for_duplicate_param_key_v41' into 'release/v4.1'
freemodbus: fix invalid error handling for duplicate param key (backport v4.1)

See merge request espressif/esp-idf!14786
2021-09-09 05:56:33 +00:00
Wang Meng Yang
01a11b2d0e Merge branch 'bugfix/hf_disc_acl_no_disc_v4.1' into 'release/v4.1'
bugfix/acl can't disconnect when hfp_client disconnect [release/v4.1]

See merge request espressif/esp-idf!15058
2021-09-07 23:30:20 +00:00
morris
530b2b0f81 eth: dont warn nego timeout if link is down 2021-09-06 19:10:46 +08:00
morris
a5057f7202 emac: configure data interface early 2021-09-06 19:10:46 +08:00
Wang Meng Yang
c358ca07d4 Merge branch 'bugfix/bt_spp_timer_collision_v4.1' into 'release/v4.1'
Fix timer collision in role switch(v4.1)

See merge request espressif/esp-idf!14820
2021-09-06 08:24:04 +00:00
Mahavir Jain
659de924da Merge branch 'feature/update_cjson_submodule_v4.1' into 'release/v4.1'
cJSON: Update submodule to v1.7.15 (v4.1)

See merge request espressif/esp-idf!15076
2021-09-06 06:39:01 +00:00
jincheng
f5e1d1c2bf fix timer collision in role switch
Closes https://github.com/espressif/esp-idf/issues/7203
2021-09-06 10:35:25 +08:00
Shubham Kulkarni
b9643ee59c cJSON: Update submodule to latest release.
This update fixes NULL pointer dereference issues in previous release

Closes https://github.com/espressif/esp-idf/issues/7317
2021-09-06 07:44:42 +05:30
Liu Han
895dbb90c2 expat: Update library from 2.2.9 to 2.4.1 2021-09-03 16:32:39 +08:00
jincheng
ba8f1e4b5c fix acl can not disconnect when hf_client disconnect 2021-09-03 11:29:14 +08:00
Wang Meng Yang
907205a13a Merge branch 'bugfix/btdm_fix_some_Document_Description_Error_v4.1' into 'release/v4.1'
component/bt: fix some ble document description error(backport v4.1)

See merge request espressif/esp-idf!14825
2021-09-03 01:40:26 +00:00
XieWenxiang
3ba43f4991 component/bt: fix some ble document description error 2021-09-01 20:46:14 +08:00
Kapil Gupta
789a7e5e5a Merge branch 'bugfix/eap_client_windows' into 'master'
wpa_supplicant: clean tls client state machine

Closes IDFGH-5702, IDFGH-5662, and IDFGH-119

Closes https://github.com/espressif/esp-idf/issues/7422
Closes https://github.com/espressif/esp-idf/issues/1297

See merge request espressif/esp-idf!14968

(cherry picked from commit e8360fe075)

d3a42d78 wpa_supplicant: clean tls client state machine
2021-09-01 19:15:02 +08:00
Alberto García Hierro
f1a024e374 Enable IO20 on ESP32
Some newer ESP32 variants (like ESP32-PICO-V3 and ESP32-PICO-MINI-02)
do implement this pin and it can be used as a normal GPIO.

Fixes #6016
Fixes #6837

Closes https://github.com/espressif/esp-idf/pull/6918

(cherry picked from commit 6deaefde69)
2021-08-31 20:45:17 +08:00
Rahul Tank
12b50729ed NimBLE: Check stack status before executing stack command 2021-08-27 20:53:19 +05:30
Alex Lisitsyn
1e309a3885 Merge branch 'bugfix/freemodbus_fix_mbm_event_processing_v41' into 'release/v4.1'
freemodbuss: fix event processing after merge (backport v4.1)

See merge request espressif/esp-idf!12824
2021-08-25 15:12:49 +00:00
Wang Meng Yang
47cc42f662 Merge branch 'component_bt/add_spp_faq_v4.1' into 'release/v4.1'
Component_bt/Add FAQ in SPP Demo README[backport v4.1]

See merge request espressif/esp-idf!14798
2021-08-23 05:15:26 +00:00
xiongweichao
367675be4e components/bt: fix spp memory leak
Closes https://github.com/espressif/esp-idf/issues/7238
2021-08-19 14:41:06 +08:00
Mahavir Jain
f7563fffbe Merge branch 'fix/warning_in_wifi_prov_mgr_v4.1' into 'release/v4.1'
provisioning: fix wifi warning in wifi_prov_mgr application (v4.1)

See merge request espressif/esp-idf!14765
2021-08-19 04:11:05 +00:00
Island
b7bc49e942 Merge branch 'bugfix/ble_mesh_cve_recommendation_v4.1' into 'release/v4.1'
ble_mesh: Update the SIG recommendations for CVE issues (v4.1)

See merge request espressif/esp-idf!14843
2021-08-18 12:41:33 +00:00
Harshit Malpani
1169a42e71 provisioning: fix wifi warning in wifi_prov_mgr application
Scan configuration parameters should not modify in co-existence mode.
2021-08-18 18:35:14 +08:00
lly
d272f830b2 ble_mesh: Update the SIG recommendations for CVE issues 2021-08-18 10:58:56 +08:00
Chinmay Chhajed
3675409ee8 bt: Remove unused function esp_bt_get_mac. 2021-08-17 18:55:21 +05:30
liqigan
69b2100a13 add FAQ in SPP demo README 2021-08-17 15:19:31 +08:00
Wang Meng Yang
e589fdd18c Merge branch 'bugfix/btdm_auto_update_PPCP_attribute_value_v4.1' into 'release/v4.1'
component/bt: fix bluedroid host auto update PPCP attribute value(backport  v4.1)

See merge request espressif/esp-idf!14750
2021-08-16 07:36:29 +00:00
Anton Maklakov
7c06467277 Merge branch 'ci/change_perf_key_v4.1' into 'release/v4.1'
ci: update performance test key to db compatible format (v4.1)

See merge request espressif/esp-idf!14656
2021-08-16 06:13:13 +00:00
Zim Kalinowski
e3081a08fa Merge branch 'bugfix/add_critical_section_in_uart_driver_v4.1' into 'release/v4.1'
UART: add missing critical section wrappers around rx_buffered_len (backport v4.1)

See merge request espressif/esp-idf!14777
2021-08-14 02:55:31 +00:00
Omar Chebib
c10c604af9 uart: Add missing critical section wrappers around rx_buffered_len
The missing barriers caused uart_get_buffered_data_len() to (very rarely)
return a garbage value. When used in MicroPython, though, this caused
select() to return and a subsequent read() to stall indefinitely until
a char was actually available.

Signed-off-by: Chen Yi Qun <chenyiqun@espressif.com>

Closes https://github.com/espressif/esp-idf/issues/6397
Merges https://github.com/espressif/esp-idf/pull/6396
2021-08-14 10:55:26 +08:00
Wang Meng Yang
52875ff2b2 Merge branch 'bugfix/fix_deep_sleep_miss_bug_mr_v4.1' into 'release/v4.1'
Fix controller may miss the sleep time

See merge request espressif/esp-idf!14739
2021-08-13 09:17:44 +00:00
aleks
dfc509d3e4 freemodbus: fix invalid error handling for duplicate param_key 2021-08-13 10:40:25 +02:00
Zim Kalinowski
88340e04cd Merge branch 'bugfix/freertos_ut_suspend_v4.1' into 'release/v4.1'
freertos: Increases delta for UT - Test suspend-resume CPU. The number of... (v4.1)

See merge request espressif/esp-idf!14632
2021-08-12 21:32:46 +00:00
Zim Kalinowski
2720bf0455 Merge branch 'bugfix/newlib_FD_ISSET_v4.1' into 'release/v4.1'
newlib: Fix a case in FD_ISSET macro when n==-1 (v4.1)

See merge request espressif/esp-idf!13692
2021-08-12 21:28:07 +00:00
Zim Kalinowski
b48b5e1829 Merge branch 'bugfix/otatool_imported_as_lib_v4.1' into 'release/v4.1'
otatool: Fix a crash when imported as external python lib (v4.1)

See merge request espressif/esp-idf!13668
2021-08-12 21:26:16 +00:00
XieWenxiang
cd671be627 component/bt: fix bluedroid host auto update PPCP attribute value 2021-08-11 18:06:44 +08:00
Yang Zhao
bca844c2f5 The controller may miss the sleep time caculated before. So it will stuck
in the loop to get the deep sleep HW flag. Then the watchdog issue happen.
2021-08-11 14:28:24 +08:00
Zim Kalinowski
52b36b0ef9 Merge branch 'bugfix/esp_event_any_id_unregister_4.1' into 'release/v4.1'
ESP Event: fix unregister documentation (backport 4.1)

See merge request espressif/esp-idf!14432
2021-08-10 03:37:19 +00:00
Zim Kalinowski
c809c33caa Merge branch 'bugfix/setjmp_longjmp_4.1' into 'release/v4.1'
[system]: Made longjmp save for context switch (backport v4.1)

See merge request espressif/esp-idf!13502
2021-08-10 03:35:12 +00:00
Wang Meng Yang
c4a519de29 Merge branch 'bugfix/spp_connect_20_fail_v4.1' into 'release/v4.1'
component_bt: fix spp acceptor deadlock

See merge request espressif/esp-idf!14107
2021-08-10 03:03:48 +00:00
Zim Kalinowski
05ed8331bc Merge branch 'feature/twdt_prints_backtrace_v4.1' into 'release/v4.1'
Add Task Watchdog backtrace printing (v4.1)

See merge request espressif/esp-idf!12617
2021-08-10 02:42:43 +00:00
Zim Kalinowski
79566e087b Merge branch 'feature/prevent_unwind_code_linking_4.1' into 'release/v4.1'
[C++]: wrapper functions around unwind code (backport 4.1)

See merge request espressif/esp-idf!13805
2021-08-09 21:39:47 +00:00
Zim Kalinowski
b5dc49fa3b Merge branch 'docs/spi_max_transfer_sz_limit_v4.1' into 'release/v4.1'
spi_docs: Fixed the default value of max_transfer_sz_limit (backport v4.1)

See merge request espressif/esp-idf!14254
2021-08-09 21:34:33 +00:00
Zim Kalinowski
80727f739a Merge branch 'bugfix/prefetch_invalid_v4.1' into 'release/v4.1'
soc: add dummy bytes to ensure instr prefetch always valid (v4.1)

See merge request espressif/esp-idf!12995
2021-08-09 21:18:21 +00:00
Zim Kalinowski
9a0ae975c6 Merge branch 'bugfix/uart_sw_sw_flow_error_typo_v4.1' into 'release/v4.1'
uart: fix typo in error message (v4.1)

See merge request espressif/esp-idf!14615
2021-08-09 21:16:27 +00:00
Zim Kalinowski
783851f350 Merge branch 'feature/regi2c_add_lock_v4.1' into 'release/v4.1'
regi2c: add a spinlock for accessing (reg)I2C devices (v4.1)

See merge request espressif/esp-idf!13715
2021-08-09 21:15:51 +00:00
Zim Kalinowski
6ba4f298e3 Merge branch 'update/version_4_1_2' into 'release/v4.1'
Update version to 4.1.2

See merge request espressif/esp-idf!14553
2021-08-09 21:12:27 +00:00
xiongweichao
aec82dca51 fix spp acceptor deadlock 2021-08-09 11:06:12 +08:00
Darian Leung
57d8934707 Add Task Watchdog backtrace printing
This commit makes the Task Watchdog print the backtrace of both
cores when it times out.
2021-08-06 13:37:53 +08:00
Mahavir Jain
99c1ef8a32 Merge branch 'bugfix/fix_truncated_headers_for_esp_http_client_v4.1' into 'release/v4.1'
esp_http_client: Fix header truncated when responded header length over buffer_size (backport v4.1)

See merge request espressif/esp-idf!14385
2021-08-06 05:22:12 +00:00
Mahavir Jain
2331c1d59e Merge branch 'feature/upgrade_mbedtls_to_v4.1' into 'release/v4.1'
mbedtls: upgrade to release v2.16.11 (v4.1)

See merge request espressif/esp-idf!14439
2021-08-06 05:18:12 +00:00
Mahavir Jain
5aa828a364 Merge branch 'fix/memory_leaks_identified_by_cppcheck_v4.1' into 'release/v4.1'
Fix/memory leaks identified by cppcheck (v4.1)

See merge request espressif/esp-idf!14503
2021-08-06 05:17:35 +00:00
Wang Meng Yang
f86a4c4cdb Merge branch 'bugfix/fix_a2dp_sink_blocked_v4.1' into 'release/v4.1'
Bugfix/Fix a2dp Sink Blocked Bugs[backport v4.1]

See merge request espressif/esp-idf!14013
2021-08-06 03:20:00 +00:00
KonstantinKondrashov
ad073b5a1d otatool: Fix a crash when imported as external python lib
Closes: https://github.com/espressif/esp-idf/issues/6733
2021-08-05 15:30:58 +08:00
Fu Hanxi
4357d05974 ci: update performance test key to db compatible format 2021-08-04 12:27:05 +08:00
KonstantinKondrashov
3b988e7f7d freertos: Increases delta for UT - Test suspend-resume CPU. The number of tick_hook should be the same for both CPUs 2021-08-03 16:01:29 +05:00
Marius Vikhammer
ac8c621d24 uart: fix typo in error message
Closes https://github.com/espressif/esp-idf/issues/7360
2021-08-03 09:28:53 +08:00
Omar Chebib
c27290f205 regi2c: add a spinlock for accessing (reg)I2C devices
When not compiling bootloader, a spinlock will be used for reading or writing
I2C internal devices/registers.
When compiling for bootloader, no need to use any lock.
2021-07-31 17:30:07 +08:00
Shubham Patil
fae314099d espcoredump.py: Parse EPS and EPC register values using register index 2021-07-30 16:34:15 +08:00
Wang Meng Yang
1b2ef2ea78 Merge branch 'bugfix/fix_scan_timeout_mr_4.1' into 'release/v4.1'
Fix the scan timeout report

See merge request espressif/esp-idf!14447
2021-07-29 07:59:27 +00:00
Michael (XIAO Xufeng)
4427586902 Merge branch 'test/flash_perf_thr_update_by_grafana_avg_v4.1' into 'release/v4.1'
ci: adjust spi_flash performance value according to more test data (v4.1)

See merge request espressif/esp-idf!14118
2021-07-29 06:44:31 +00:00
Michael (XIAO Xufeng)
8dcaedcf62 ci: adjust spi_flash performance value according to more test data
After we have the performance dashboard, we have more data and no longer depend on the threshold to ensure performance.
Set looser performance thresholds to avoid CI failure.
2021-07-29 14:44:26 +08:00
He Yin Ling
c198f34f48 versions: Update version to 4.1.2 2021-07-28 17:46:16 +08:00
aleks
2512f394ca freemodbus: add affinity option for modbus stack tasks 2021-07-28 08:37:20 +02:00
Alex Henrie
06ea5da2c8 Fix memory leak on error path in register_select
And remove dead error handling code from unregister_select.

Closes https://github.com/espressif/esp-idf/pull/7296
2021-07-25 07:44:43 +05:30
Alex Henrie
7e7d4e291d Fix memory leak on error path in http_header_set_format 2021-07-25 07:44:43 +05:30
Alex Henrie
88abe2a4cb Fix memory leak on error path in md5_printf 2021-07-25 07:44:42 +05:30
chenjianqiang
59a07d40ad psram: support for esp32-pico-v3-02
1. Support for 16Mbit PSRAM
2. Support for esp32-pico-v3-02
3. Use package identifier to look up SPI flash/PSRAM WP Pin, unless overridden
2021-07-22 18:19:23 +08:00
Roland Dobai
802eb855bc Merge branch 'bugfix/link_gcov_rtio_backport_v4.1' into 'release/v4.1'
Bugfix/link gcov rtio backport v4.1

See merge request espressif/esp-idf!13834
2021-07-21 06:57:41 +00:00
Yang Zhao
23fddb4b48 This is to fix the hardware bug. The device may report scan event
timeout when scaning.If check this error,then reset the rwble core.
2021-07-20 20:44:50 +08:00
Mahavir Jain
1c4114a758 mbedtls: upgrade to release v2.16.11
For detailed release notes please refer to:
https://github.com/ARMmbed/mbedtls/releases/tag/v2.16.11
2021-07-20 14:33:27 +05:30
Jakob Hasse
afa8599a91 [esp_event]: fixed and improved docs
* Description of unregistering was incorrect
* Made clear that event loop arg mustn't be NULL
* Added parameter check in create function

Closes https://github.com/espressif/esp-idf/issues/6761
Closes IDFGH-4969
2021-07-20 15:57:59 +08:00
Jiang Jiang Jian
c7b83717b0 Merge branch 'bugfix/concurrent_mode_sae_crash_fix_v4.1' into 'release/v4.1'
esp_wifi: Fix some wifi bugs(v4.1)

See merge request espressif/esp-idf!14239
2021-07-20 04:11:46 +00:00
Jiang Jiang Jian
31594a0ae5 Merge branch 'bugfix/a2dp_deint_crash_v4.1' into 'release/v4.1'
fix a2dp deinit crash

See merge request espressif/esp-idf!14362
2021-07-20 03:14:34 +00:00
aditi_lonkar
865453bbe5 esp_wifi: Fix some wifi bugs
Add station based check for auth frame formation.
    Remove dependency of SHA256 AKM on PMF.
    Fix Block Ack setup issue in PMF scenario(aggregation issue).
2021-07-19 12:38:54 +05:30
wangmengyang
b60af85f98 component/bt: Fix some bugs in bluetooth controller(2fcbe897)
1. Fixed BLE ACL tx flush issue during reset.
2. Added remove sniff when peer not accepted sniff mode
3. Fixed crash issue when using scan parameter(window=4 slot, interval=5 slot)
4. Removed duplicated events in lld_evt_end
2021-07-19 07:54:59 +08:00
Yang Zhao
d75cb43257 bugfix:Set address resolution enable. If not set enable and the filter
policy is 2 or 3, the controller will reply with invalid param error.
2021-07-19 07:54:59 +08:00
xiongweichao
2be0def9b5 Not initialized or in the process of de-initialization, calling API will return ERR 2021-07-16 16:49:17 +08:00
xiongweichao
b681d4e415 fix a2dp deinit crash 2021-07-16 11:58:40 +08:00
yuanjm
96a49aebb7 esp_http_client: Optimize code structure 2021-07-15 16:30:46 +08:00
Clickau
bb675184bf esp_http_client: fix truncated headers
Signed-off-by: yuanjm <yuanjianmin@espressif.com>

Merges https://github.com/espressif/esp-idf/pull/6370
2021-07-15 16:30:41 +08:00
ChenJianxing
9c897ef280 esp_wifi: rm esp32s2beta 2021-07-15 11:59:55 +08:00
KonstantinKondrashov
082c534ca3 newlib: Fix a case in FD_ISSET macro when n==-1 2021-07-15 11:18:31 +08:00
Marius Vikhammer
0dfe45249a soc: add dummy bytes to ensure instr prefetch always valid
The CPU might prefetch instructions, which means it in some cases
will try to fetch instruction located after the last instruction in
flash.text.

Add dummy bytes to ensure fetching these wont result in an error,
 e.g. MMU exceptions
2021-07-12 09:18:15 +08:00
morris
c69ceefb27 Merge branch 'bugfix/timer_example_crashed_not_calling_timer_group_set_alarm_value_in_isr_v4.1' into 'release/v4.1'
driver/timer: fixed auto reload problem in default isr callback (backport to 4.1)

See merge request espressif/esp-idf!13531
2021-07-06 12:48:31 +00:00
Michael (XIAO Xufeng)
0e36a7e3c0 spi_docs: Fixed the default value of max_transfer_sz.
(cherry picked from commit e89fabb963)
2021-07-05 14:15:39 +08:00
fuzhibo
21150d9286 bugfix(adc): missing ranges of ADC codes in ESP32 2021-07-04 22:22:40 +08:00
Ivan Grokhotkov
66e45d143b esp_ringbuf: don't test xRingbufferCreate with cache disabled
Creating a ringbuffer is not an operation that needs to be done when
the cache is disabled.
2021-06-30 12:01:19 +02:00
Wang Meng Yang
f8997beb0d Merge branch 'bugfix/fix_data_length_callback_param_err_v4.1' into 'release/v4.1'
Fixed data length update callback parameters error(back port v4.1)

See merge request espressif/esp-idf!14182
2021-06-30 05:57:58 +00:00
Anton Maklakov
1b792c4687 Merge branch 'bugfix/gdbstub_threads_and_tests_v4.1' into 'release/v4.1'
gdbstub: fix thread list generation, add tests (v4.1)

See merge request espressif/esp-idf!14054
2021-06-30 04:28:09 +00:00
zwj
c6897a43ce - fix data length update failed
- fix no callback when the value being used is the same as the value to be set
2021-06-29 14:13:56 +08:00
Angus Gratton
9d82fc4447 Merge branch 'bugfix/pthread_join_debug_log_v4.1' into 'release/v4.1'
pthread: Fix possible deadlock when using pthread_join() and Debug log level (v4.1)

See merge request espressif/esp-idf!13778
2021-06-28 04:37:34 +00:00
Michael (XIAO Xufeng)
62034d4432 Merge branch 'bugfix/i2s_apll_disable_issue_v4.1' into 'release/v4.1'
backport: Bugfix/i2s apll disable issue to release/v4.1

See merge request espressif/esp-idf!14008
2021-06-27 13:34:39 +00:00
David Čermák
9bd41e2431 Merge branch 'feature/mqtt_intro_new_modes_v4.1' into 'release/v4.1'
MQTT:  Update submodule reference to support new config modes (v4.1)

See merge request espressif/esp-idf!13709
2021-06-24 09:49:34 +00:00
Jiang Jiang Jian
97c8be7194 Merge branch 'bugfix/fix_amsdu_fragment_vulnerability_v4.1' into 'release/v4.1'
esp_wifi: fix amsdu & fragment vulnerabilities(v4.1)

See merge request espressif/esp-idf!14077
2021-06-24 05:21:59 +00:00
Angus Gratton
1e9367f48e Merge branch 'bugfix/elf_sha256_first_byte_skip_v4.1' into 'release/v4.1'
app_update: fix incorrect first byte from esp_ota_get_app_elf_sha256 (v4.1)

See merge request espressif/esp-idf!13664
2021-06-24 01:55:30 +00:00
Mahavir Jain
cd961e7fff Merge branch 'bugfix/http_client_test_memcorupt_v4.1' into 'release/v4.1'
ci/test: Fix esp_http_client test not to use pointer after free (v4.1)

See merge request espressif/esp-idf!13702
2021-06-23 03:29:46 +00:00
Angus Gratton
1ea2b57b41 Merge branch 'bugfix/ldgen_ignore_nonexistent_archives_and_obj_v4.1' into 'release/v4.1'
ldgen: check mappings (v4.1)

See merge request espressif/esp-idf!14058
2021-06-22 23:34:31 +00:00
David Cermak
6980b57a97 ci/test: Fix esp_http_client test not to use pointer after free 2021-06-21 21:47:39 +08:00
liqigan
72e5dfb4e3 fix a2dp sink RxSbcQ bugs
Closes https://github.com/espressif/esp-idf/issues/6712
Closes https://github.com/espressif/esp-idf/issues/7100
2021-06-21 20:16:42 +08:00
ChenJianxing
e2526915b7 esp_wifi: fix amsdu & fragment vulnerabilities 2021-06-21 19:26:43 +08:00
wangjialiang
16898897a9 ble_mesh: stack: Fix crash for net_key_del when subnet is NULL 2021-06-21 11:26:10 +08:00
wangjialiang
9aecaa6fd0 ble_mesh: stack: Make unprovisioned beacon interval configurable.
Closes https://github.com/espressif/esp-idf/issues/6722
2021-06-21 11:26:03 +08:00
Renz Bagaporo
bf341d966c components: fix ldgen check errors 2021-06-21 09:52:03 +10:00
Renz Bagaporo
b9d288879d ci: exempt upstream libmbedtls mapping for sha256 2021-06-21 09:45:23 +10:00
Ivan Grokhotkov
8ef0017662 gdbstub: fix thread list generation
This commit fixes an issue with gdbstub, where it would list threads
with TIDs 1 to N in qfThreadInfo/qsThreadInfo responses, and then
would tell GDB that the current TID is 0 in the qC response. This
caused an assertion failure in GDB, because it couldn't find the
thread structure corresponding to TID 0:

src/gdb/gdb/thread.c:93: internal-error: thread_info* inferior_thread(): Assertion `tp' failed.

The issue was caused by the logic of qfThreadInfo/qsThreadInfo.
If the "paniced" task index was 1, the code would report it in the
response to qfThreadInfo, and then mistakenly skip task with index 0
in qsThreadInfo, due to the use of pre-increment instead of a
post-increment.

With that issue fixed, GDB assertion doesn't happen anymore. However
the code contained a deeper problem, which manifested itself in the
fact that GDB would incorrectly show task index 0 as the current task,
after the above fix.

Previous version of the code assumed that when GDB requests the thread
list, it uses the first thread returned by the target as the "default"
thread, and subsequently shows the user that the program is stopped
in that thread. This assumption was incorrect. In fact, after
connecting to a remote target, GDB obtains information about the
"default" or "current" thread from two sources:
1. the 'thread' special register indicated in the status response
   ($T00thread;00000001#ee)
2. if the target has only sent the plain stop response ($T00#ee), GDB
   would ask for the current thread using a qC packet.
With that in mind, it is not necessary to report the paniced task as
the first task in qfThreadInfo response. We can simply returns the
tasks in their natural order, and then indicate the current task in
the qS packet response.

However even that change does not fully resolve the issues with task
list. The previous version of this code also incorrectly interpreted
the meaning of GDB TIDs -1 and 0. When GDB sends an "Hg0" command
early in the connection process, it doesn't expect the server to set
task 0 as the current task, as the code assumed. Rather, it tells the
server to "set any (arbitrary) task as the current one", and the most
logical thing to do for the server that is already in "stopped" state
is to keep the current task selection.

Since TID 0 has a special meaning in GDB remote protocol, gdbstub code
is now modified to map task indices (which start from 0) to GDB TIDs.
GDB TIDs are arbitrary, and for simplicity we keep the same order and
start counting them from 1.

The summary of all the above changes is:

1. Use "task index + 1" as the TID reported to GDB
2. Report the tasks in natural order; don't complicate the code to
   make the paniced task first in the list.
3. Centralize modification of 'current_task_index' and 'regfile'
   in the new 'set_active_task' function, to improve encapsulation.
2021-06-18 16:04:02 +02:00
Itay Perl
27fe437412 app_update: fix incorrect first byte from esp_ota_get_app_elf_sha256
At -O2 optimization level, GCC seems to optimize out the copying of the
first byte of the checksum, assuming it is zero. This "miscompilation"
happens because the esp_app_desc struct is declared const, but then modified
post-compilation. Casting to volatile disables the optimization.

Closes: https://github.com/espressif/esp-idf/pull/6389
2021-06-17 17:32:49 +08:00
wangjialiang
bfcaa64b49 ble_mesh: stack: Fix AuthValue Leak and Predictable AuthValue in Bluetooth Mesh Provisioning Leads to MITM 2021-06-17 17:23:49 +08:00
morris
41c82efcb9 i2s: fix driver uninstall issue 2021-06-17 16:37:11 +08:00
laokaiyao
45ee699eae driver/timer: only re-enable alarm in callback when auto reload is true
closes https://github.com/espressif/esp-idf/issues/7001
2021-06-17 10:37:32 +08:00
wangjialiang
4c453660ae ble_mesh: stack: Add check the value of Provisioning Random & Confirmation sent and received by provisioner 2021-06-16 17:03:38 +08:00
Michael (XIAO Xufeng)
fd1a67dd61 Merge branch 'bugfix/spi_flash_cs_setup_v4.1' into 'release/v4.1'
spi_flash: fix cs line setup to make the flash driver more stable(backport v4.1)

See merge request espressif/esp-idf!13964
2021-06-16 07:36:06 +00:00
David Čermák
1f76c9014b Merge branch 'bugfix/start_emac_after_phy_reset_v4.1' into 'release/v4.1'
esp_eth: restart negotiation in esp_eth_start (v4.1)

See merge request espressif/esp-idf!13700
2021-06-16 06:00:32 +00:00