Michael (XIAO Xufeng)
19ae66dfa2
sdmmc: fix the probe issue that forbid sdspi working in highspeed mode
...
SD cards don't support CMD7 (select_card) in SPI mode. Highspeed probe
of sdspi will fail in this step and stop working in highspeed mode.
Remove the CMD7 in enable_hs_mode_and_check to fix this issue.
Please note that, on ESP32, you have to use the IOMUX pins to use sdspi
in 40MHz, otherwise the initialization process will report reading issue
and fail.
2020-07-28 12:36:03 +08:00
ChenJianxing
02e7e9c417
esp_wifi: update phy lib
...
1. esp32 phy lib v4350
2. esp32s2 phy lib v603
2020-07-27 21:42:44 +08:00
Hrudaynath Dhabe
8bb287bae8
esp_wifi: Add esp_wifi_get_tsf_time() API to get the tsf time of
...
specified interface.
Closes https://github.com/espressif/esp-idf/issues/5533
2020-07-27 21:41:36 +08:00
Nachiket Kukade
3af4b51a5c
Fix handling of multiple AP credentials in WPS
...
WPS can send multiple AP credentials, while existing implementation
will only use the first credentials which could be for the 5G band.
Fix this by passing these credentials to the App and attempting
to connect using each of those. Older Apps will remain compatible
without breaking WPS, but the issue will remain.
2020-07-27 21:41:20 +08:00
kapil.gupta
ebd1bb9a12
wpa_supplicant: Fix IOT issue with latest freeradius
...
Fix inter operability issue with freeradius version 3.0.21
and openssl 1.1.1f when internal tls client is used which
requires extension elements in client hello.
closes https://github.com/espressif/esp-idf/issues/5273
closes https://github.com/espressif/esp-idf/issues/5627
2020-07-27 18:49:47 +05:30
kapil.gupta
89ef69cbd0
wpa_supplicant: Fix invalid pointer deference and memleak
...
Add following changes as part of this:
1. EAP client will crash during validation of key size when CA
certs and keys not present. Add changes to validate it first.
2. Free memory allocated in TLS context
2020-07-27 18:49:07 +05:30
kapil.gupta
4b7c8d4a2d
wpa_supplicant: Support for mbedtls tls handshake
...
Add support for mbedtls based tls handshake, this removes
dependency from internal implementation of EAP client.
2020-07-27 18:47:27 +05:30
Chinmay Chhajed
9cf4dd20e0
Bluedroid: Fixes cases having fallback to link up event.
...
Signed-off-by: Chinmay Chhajed <chinmay.chhajed@espressif.com>
2020-07-27 13:52:58 +05:30
Michael (XIAO Xufeng)
b284c48854
Merge branch 'bugfix/esp32s2_lightsleep_uart_suspend_v4.2' into 'release/v4.2'
...
esp32s2: suspend UART output using XOFF before entering light sleep (backport v4.2)
See merge request espressif/esp-idf!9293
2020-07-27 15:55:33 +08:00
Prasad Alatkar
851b4e9576
BLE provisioning: Add check for valid ble read offset
2020-07-27 07:21:07 +00:00
David Čermák
636b964c8c
Merge branch 'bugfix/ws_send_abort_v4.2' into 'release/v4.2'
...
websocket client: the client now aborts the connection if send fails. (backport v4.2)
See merge request espressif/esp-idf!9169
2020-07-24 23:15:08 +08:00
Angus Gratton
3191a8cbc7
esp32s2: Always use eFuse config for WP pin
...
No reason to override just this pin in software.
2020-07-24 21:45:59 +08:00
Angus Gratton
a94685a222
esp32: Use package identifier to look up SPI flash/PSRAM WP Pin, unless overridden
...
Allows booting in QIO/QOUT mode or with PSRAM on ESP32-PICO-V3 and
ESP32-PICO-V3-O2 without any config changes.
Custom WP pins (needed for fully custom circuit boards) should still be compatible.
2020-07-24 21:45:31 +08:00
chenjianqiang
55a1bd0fb6
feat(esp32): support for esp32-pico-v3-02
2020-07-24 21:20:27 +08:00
chenjianqiang
c945cb59d8
feat(psram): support 16Mbit PSRAM for esp32
2020-07-24 21:19:45 +08:00
chenjianqiang
6a253e8809
bugfix(psram): configure MMU after PSRAM initialization
2020-07-24 21:10:37 +08:00
Prasad Alatkar
a4e8e56288
NimBLE: Add Non-Resolvable private address support and misc bug fixes (Backport v4.2)
...
- Merges https://github.com/espressif/esp-nimble/pull/12
- Fixes repeated pairing failure in RPA feature
Closes https://github.com/espressif/esp-idf/issues/5530
2020-07-24 06:55:22 +00:00
Mahavir Jain
6b80aebc87
Merge branch 'bugfix/convert-string-to-bytes_v4.2' into 'release/v4.2'
...
components: convert string to bytes to fix TypeError (backport v4.2)
See merge request espressif/esp-idf!9734
2020-07-23 16:36:57 +08:00
Angus Gratton
e6e4fe45c6
Merge branch 'ci/fix_uart_read_write_priorities_v4.2' into 'release/v4.2'
...
driver test: Ensure uart write task can't overflow buffer of read task (v4.2)
See merge request espressif/esp-idf!9569
2020-07-23 13:15:45 +08:00
Michael (XIAO Xufeng)
51b5c7a079
Merge branch 'bugfix/mcpwm_fault_init_copypaste_typo_bp4.2' into 'release/v4.2'
...
MCPWM: Fix PWM-fault init function that read config incorrectly (backport v4.2)
See merge request espressif/esp-idf!9554
2020-07-22 21:12:16 +08:00
martin.gano
5feeb744e1
components: convert string to bytes to fix TypeError There is a string passed as an argument for function, but a format of a string seemingly refers to bytes therefore it needs to be converted to bytes Solves https://esp32.com/viewtopic.php?f=13&t=16529
...
(cherry picked from commit cb0bdb8bba774c0d5a670f73a23ca882dfddd2b6)
2020-07-22 11:23:12 +02:00
Michael (XIAO Xufeng)
ccdfbb865e
Merge branch 'bugfix/add_return_task_awoken_for_timer_callback_v4.2' into 'release/v4.2'
...
timer: add return task awoken for timer callback (backport v4.2)
See merge request espressif/esp-idf!9149
2020-07-22 16:19:37 +08:00
Angus Gratton
b356707948
Merge branch 'ci/workaround_multiple_ci_failures_v4.2' into 'release/v4.2'
...
CI: workaround multiple ci failures (v4.2)
See merge request espressif/esp-idf!9684
2020-07-22 11:52:43 +08:00
Marius Vikhammer
441308fc16
websocket client: the client now aborts the connection if send fails.
...
Closes IDF-1744
2020-07-21 07:51:01 +00:00
Jiang Jiang Jian
53e8857849
Merge branch 'bugfix/ipv6_fragment_for_4.2' into 'release/v4.2'
...
lw-ip:fix bug for ipv6 fragment(backport 4.2)
See merge request espressif/esp-idf!9583
2020-07-21 12:11:34 +08:00
Jiang Jiang Jian
0bcd26a610
Merge branch 'bugfix/fix_hci_max_page_num_v4.2' into 'release/v4.2'
...
bugfix/Support for more Bluetooth HID devices [backport v4.2]
See merge request espressif/esp-idf!9660
2020-07-21 12:10:59 +08:00
Jiang Jiang Jian
15e40f909f
Merge branch 'bugfix/fix_get_bond_device_list_v4.2' into 'release/v4.2'
...
bugfix/fix esp_bt_gap_get_bond_device_list bug [backport v4.2]
See merge request espressif/esp-idf!9666
2020-07-21 12:10:24 +08:00
Alex Lisitsyn
5f1e61498e
Bugfix/espcoredump fix error reported for blank partition (Backport v4.2)
2020-07-21 01:05:54 +08:00
Angus Gratton
e1b03f08af
Merge branch 'bugfix/doc_macro_definitions_v4.2' into 'release/v4.2'
...
doc: Fix macro definitions for different targets (v4.2)
See merge request espressif/esp-idf!9566
2020-07-20 08:25:33 +08:00
He Yin Ling
b3692aba5e
CI: do not run cases likely to fail
2020-07-19 14:52:57 +08:00
He Yin Ling
468bd6f854
CI: disable cases with test env SSC_T5_1
2020-07-19 14:52:57 +08:00
He Yin Ling
fb7e3c508b
CI: remove incorrect MTU related cases
2020-07-19 14:52:56 +08:00
boblane
e14906f073
fix esp_bt_gap_get_bond_device_list bug
...
Closes https://github.com/espressif/esp-idf/issues/5395
2020-07-17 15:06:39 +08:00
lly
b39eaf61b5
ble_mesh: stack: Fix recv health current status incorrectly
2020-07-17 14:05:18 +08:00
DerfJagged
d1506fdae0
Support for more Bluetooth HID devices
...
Some Bluetooth devices - such as an Xbox One S controller (model 1708) - report more than two external features pages and are rejected immediately. Pages 1 and 2 are marked as unhandled in btm_devctl.c anyway, so there is no reason to block devices with more pages.
(IDFGH-3515)
Signed-off-by: liqigan <liqigan@espressif.com>
Merges https://github.com/espressif/esp-idf/pull/5481
Closes https://github.com/espressif/esp-idf/issues/5470
2020-07-17 10:07:41 +08:00
lly
2e01297603
ble_mesh: stack: Only keep func pointer for very common log
...
Currently only keep func pointer for the followings:
- Invalid parameter (mesh btc & mesh stack)
- Out of memory (mesh btc & mesh stack)
- Unknown act (mesh btc)
- Invalid model user data (mesh stack)
- BT_DBG("%s", __func__) (mesh btc & mesh stack)
- A few other specific situations (buf ref debug, send status check)
2020-07-16 11:02:24 +08:00
lly
5fceac92ee
ble_mesh: stack: Make proxy server & client functions clear
2020-07-16 11:02:24 +08:00
Island
d8c657c6f0
Merge branch 'bugfix/ble_mesh_add_misc_check_v4.2' into 'release/v4.2'
...
Bugfix/ble mesh add misc check (v4.2)
See merge request espressif/esp-idf!9630
2020-07-16 10:52:26 +08:00
David Čermák
001c673f4e
Merge branch 'bugfix/eth_insert_min_hw_reset_time_v4.2' into 'release/v4.2'
...
ethernet: insert min assert time for PHY HW reset (v4.2)
See merge request espressif/esp-idf!9579
2020-07-15 16:35:46 +08:00
lly
fc99963376
ble_mesh: stack: Add proxy cfg pdu length check
2020-07-15 16:10:48 +08:00
lly
1846def7ac
ble_mesh: stack: Rework using dev flag to check scan status
...
Different bluetooth host has different behaviors, so it's better
to maintain a scan check mechanism of BLE Mesh itself.
Fixes an issue when only PB-GATT is enabled for node, which will
output a scan error log when the device is provisioned.
2020-07-15 16:10:48 +08:00
lly
37322ce93f
ble_mesh: stack: Add more checks about input prov bearers
2020-07-15 16:10:48 +08:00
Island
daf8098a00
Merge branch 'feat/ble_mesh_use_iram_for_mem_alloc_v4.2' into 'release/v4.2'
...
Feat/ble mesh use iram for mem alloc (v4.2)
See merge request espressif/esp-idf!9614
2020-07-15 16:06:47 +08:00
lly
a6dcfb4a5a
ble_mesh: stack: Rename mesh adv queue and relay queue
2020-07-14 21:19:32 +08:00
lly
efcd9ee4a8
ble_mesh: stack: Use macros for adv task name & prio
2020-07-14 21:19:32 +08:00
lly
6abfc2a8f7
ble_mesh: stack: Make freertos static allocation visible
2020-07-14 21:19:32 +08:00
lly
c0db196464
ble_mesh: stack: Add a option of using IRAM for memory allocation
2020-07-14 21:19:32 +08:00
Mahavir Jain
a9d8d8ea99
esp32s2: remove bt references from esp32s2 ld script
2020-07-14 18:04:28 +05:30
weitianhua
b716800000
Fix error of AG API return line
...
Closes https://github.com/espressif/esp-idf/issues/5554
2020-07-14 14:43:15 +08:00
Mahavir Jain
38e75dca1d
Merge branch 'bugfix/enable_mbedtls_renegotiation_v4.2' into 'release/v4.2'
...
esp-tls: enable TLS renegotiation using explicit API call (v4.2)
See merge request espressif/esp-idf!9590
2020-07-14 12:05:02 +08:00
Ivan Grokhotkov
31121e5af1
Merge branch 'bugfix/rs485_test_temp_disable_v42' into 'release/v4.2'
...
Bugfix/rs485 test temp disable (backport v4.2)
See merge request espressif/esp-idf!9525
2020-07-13 20:41:42 +08:00
Mahavir Jain
40a29866f6
esp-tls: enable TLS renegotiation using explicit API call
...
mbedTLS stack does not keep TLS renegotiation enabled even if
relevant config option is turned on, it needs explicit API call
`mbedtls_ssl_conf_renegotiation` to do so.
This issue was observed in case of Azure IoT, where keys needs to
be refreshed periodically to keep TLS connection intact.
2020-07-13 15:32:41 +05:30
Ivan Grokhotkov
4ed889dfa2
esp32s2: sleep_modes: remove dependency on driver/uart.h
2020-07-13 09:52:29 +02:00
Ivan Grokhotkov
3a88ac7900
soc: add periph_ll_periph_enabled to clk_gate_ll.h
2020-07-13 09:52:29 +02:00
Ivan Grokhotkov
31cd3f1294
esp32s2: suspend UART output using XOFF before entering light sleep
...
Same logic as for the ESP32, except two changes:
* need to set UART_SW_FLOW_CON_EN bit for UART_FORCE_XOFF to take
effect
* need to check if the peripheral is not clockgated and out of reset
2020-07-13 09:52:29 +02:00
xueyunfei
74396ae2cc
fix bug for ipv6 fragment
2020-07-13 11:49:52 +08:00
morris
49c1d40b2d
ethernet: insert min assert time for PHY HW reset
...
Closes https://github.com/espressif/esp-idf/issues/5528
2020-07-13 11:05:38 +08:00
Jiang Jiang Jian
1f8c5b2b64
Merge branch 'docs/fix_event_typo_backport_v4.2' into 'release/v4.2'
...
docs/fix event typo backport v4.2
See merge request espressif/esp-idf!9382
2020-07-12 21:24:03 +08:00
chenjianqiang
9274339fb5
timer: add return task awoken for timer callback
2020-07-12 11:01:47 +00:00
Shubham Kulkarni
07abd9092a
Include header file soc/cpu.h in memprot.c and system_api.c
...
This fixes build issues with Vanilla FreeRTOS
2020-07-10 18:21:20 +05:30
Jiang Jiang Jian
897e950e21
Merge branch 'bugfix/add_api_to_get_internal_heap_v4.2' into 'release/v4.2'
...
esp_wifi: Add API to get available internal heap size (backport v4.2)
See merge request espressif/esp-idf!9516
2020-07-10 16:54:38 +08:00
Island
86c197a8db
Merge branch 'bugfix/ble_mesh_update_send_ttl_v4.2' into 'release/v4.2'
...
Bugfix/ble mesh update send ttl v4.2
See merge request espressif/esp-idf!9562
2020-07-10 14:06:12 +08:00
Angus Gratton
870fa2237e
driver test: Ensure uart write task can't overflow buffer of read task
...
Previously both tasks had equal priority, possible for write task and another
internal task to be scheduled at the same time - starving read task and
causing data loss.
Related to IDFCI-59
2020-07-10 15:59:48 +10:00
Angus Gratton
c44a433b8b
driver: Fix some doxygen warnings
2020-07-10 14:53:16 +10:00
Michael (XIAO Xufeng)
b39a0be9d2
Merge branch 'bugfix/fix_adc_dac_conflict_backportv4.2' into 'release/v4.2'
...
Driver(adc): Disable the synchronization operation function of ADC1 and DAC (backport v4.2)
See merge request espressif/esp-idf!9360
2020-07-10 11:05:00 +08:00
lly
615d64b6f9
ble_mesh: stack: Add two application macros for TTL
2020-07-10 09:13:53 +08:00
lly
1ec2f98691
ble_mesh: stack: Update send_ttl in btc when recv a msg
...
Update send_ttl mainly for server models. When a server model
receives a message, and the status is required to be replied
by the application, we need to set send_ttl to the msg context.
If send_ttl is not updated in btc, and the applcation does not
set the TTL either, then the status will be replied with TTL=0,
which may cause the client side (e.g. the phone App) failed to
receive the status.
Closes https://github.com/espressif/esp-idf/issues/5300
2020-07-10 09:13:53 +08:00
Wielebny666
e64d1378b4
Fix init MCPWM Fault line via config struct
...
Signed-off-by: wubowen <wubowen@espressif.com>
Merges https://github.com/espressif/esp-idf/pull/5491
Closes https://github.com/espressif/esp-idf/issues/5433
2020-07-09 19:19:23 +08:00
Jiang Jiang Jian
f52c35258c
Merge branch 'bugfix/fix_16mbit_psram_id_read_error_v4.2' into 'release/v4.2'
...
psram: fix 16mbit psram id read error (backport v4.2)
See merge request espressif/esp-idf!9424
2020-07-09 15:27:23 +08:00
Angus Gratton
0cb87f67da
Merge branch 'feature/console_repl_over_uart_v4.2' into 'release/v4.2'
...
console_repl over UART (v4.2)
See merge request espressif/esp-idf!9422
2020-07-08 16:10:37 +08:00
Ivan Grokhotkov
aec1353ffe
ci: temporarily disable RS485 related tests
2020-07-08 06:54:24 +02:00
xiehang
8efabd1307
esp_wifi: Add API to get available internal heap size.
2020-07-08 10:46:34 +08:00
Jiang Jiang Jian
ad5c4eb3f5
Merge branch 'mesh/bugfix_for_tbtt_update_v4.2' into 'release/v4.2'
...
fix the bug for tsf check (backport v4.2)
See merge request espressif/esp-idf!9279
2020-07-07 14:40:35 +08:00
Anton Maklakov
59541071fb
Merge branch 'bugfix/gen_crt_py3_utf_v4.2' into 'release/v4.2'
...
Fixes issues encoding issues python3 scripts for unicode chars (v4.2)
See merge request espressif/esp-idf!9174
2020-07-07 11:04:59 +08:00
Michael (XIAO Xufeng)
a3a22d4af5
Merge branch 'bugfix/fix_ci_about_touch_sensor_denoise_ut_backport_v4.2' into 'release/v4.2'
...
driver(touch): fix touch sensor denoise unit test case (backport v4.2)
See merge request espressif/esp-idf!9451
2020-07-06 10:21:32 +08:00
Angus Gratton
0e8f630711
Merge branch 'bugfix/esp32_encrypted_flash_write_v4.2' into 'release/v4.2'
...
spi_flash: esp32: fix regression in encrypted flash write (v4.2)
See merge request espressif/esp-idf!9349
2020-07-06 08:18:56 +08:00
zhangyanjiao
4761c4059a
esp_wifi:
...
1. Avoid parsing RSN/WPA IE's after connection
2. Remove AUTH_CHANGED reason code logic
3. fix the bug when calculating the PMK, the local rx beacon time increment is 0
4. mesh: don't disconnect when tbtt update
2020-07-03 14:18:39 +08:00
lly
dd6de08bea
ble_mesh: stack: Update some fast prov functions
2020-07-03 08:53:16 +08:00
lly
661e1f2500
ble_mesh: stack: Move fast prov functions to a single file
2020-07-03 08:53:16 +08:00
fuzhibo
34fc02f5db
driver(touch): fix touch sensor denoise unit test case
2020-07-02 13:04:46 +08:00
lly
76baeba6b7
ble_mesh: ci: Fix failing to compile when using make
2020-07-02 03:53:50 +00:00
lly
7e7d2ae401
ble_mesh: Mark platform related default RNG as 0
2020-07-02 03:53:50 +00:00
lly
d9e8508981
ble_mesh: Remove the previously added redundant aes files
2020-07-02 03:53:50 +00:00
lly
11406d7ee8
ble_mesh: Update CMake and make files for tinycrypt
2020-07-02 03:53:50 +00:00
lly
80837bd936
ble_mesh: Update tinycrypt header file include guards
...
Add BLE_MESH in the macro to make it specific for BLE Mesh.
2020-07-02 03:53:50 +00:00
lly
3c0584f013
ble_mesh: Format source and header files of tinycrypt
2020-07-02 03:53:50 +00:00
lly
f1f3c7afd6
ble_mesh: Port full implementation of tinycrypt [Zephyr]
...
- Original code is here: https://github.com/zephyrproject-rtos/tinycrypt
- Also this fixes the compile error when NimBLE and ESP BLE Mesh
both uses the tinycrypt.
2020-07-02 03:53:50 +00:00
Island
fcef568c70
Merge branch 'bugfix/ble_mesh_compile_error_v4.2' into 'release/v4.2'
...
Bugfix/ble mesh compile error (v4.2)
See merge request espressif/esp-idf!9430
2020-07-02 11:28:55 +08:00
fuzhibo
68ed940668
Driver(adc): Disable the synchronization operation function of ADC1 and DAC
...
Closes IDF-1585
2020-07-01 09:29:34 +00:00
Jiang Jiang Jian
ce60660c7c
Merge branch 'bugfix/fix_ping_specify_length_issue_v4.2' into 'release/v4.2'
...
bugfix: fix ICMP specify length issue (backport v4.2)
See merge request espressif/esp-idf!9401
2020-07-01 17:25:26 +08:00
Jiang Jiang Jian
e5fed6d67d
Merge branch 'mesh/bugfix_coexist_warning_4.2' into 'release/v4.2'
...
mesh: remove coexist warnings in ESP_WIFI_MESH (backport 4.2)
See merge request espressif/esp-idf!9412
2020-07-01 13:51:30 +08:00
Jiang Jiang Jian
655772ec23
Merge branch 'feature/bt_secure_conn_downgrade_check_v4.2' into 'release/v4.2'
...
Bluedroid: Authentication fixes in Legacy and Secure Connection.
See merge request espressif/esp-idf!9336
2020-07-01 13:48:46 +08:00
lly
b239677c97
ble_mesh: stack: Fix compile error when only proxy enabled
...
Also remove some redundant CONFIG_BLE_MESH_PROXY checks, because
when the following options are satisfied, the CONFIG_BLE_MESH_PROXY
option will be selected mandatorily.
2020-07-01 11:54:32 +08:00
Island
f1642bfaaf
Merge branch 'bugfix/ble_mesh_set_recv_rssi_v4.2' into 'release/v4.2'
...
Bugfix/ble mesh set recv rssi (v4.2)
See merge request espressif/esp-idf!9390
2020-07-01 11:31:47 +08:00
Island
e9f21b096f
Merge branch 'bugfix/ble_mesh_check_subnet_before_update_beacon_sent_v4.2' into 'release/v4.2'
...
ble_mesh: Check if subnet exists before updating beacon_sent (v4.2)
See merge request espressif/esp-idf!9395
2020-07-01 11:16:16 +08:00
Michael (XIAO Xufeng)
76c1be0d94
spiram: fix the read id failure
...
The issue is caused by:
1. The disable_qio_mode inside read_id may have side effects.
2. read_id twice may have side effects.
Fix this issue by moving disable_qio_mode out of read_id and only do it
once before read_id. And retry read_id only when the first one is
failed.
Issue introduced in 3ecbb59c15
.
2020-06-30 21:45:31 +08:00
chenjianqiang
a3a4c828e9
psram: fix 16mbit psram id read error
2020-06-30 21:44:39 +08:00
ronghulin
404a5994e6
bugfix: fix ICMP specify length issue
2020-06-30 13:42:19 +00:00
morris
98d7f13c24
console_repl: change config structure to support different devices
2020-06-30 20:18:27 +08:00
Chinmay Chhajed
ec043aac06
Bluedroid: Authentication fixes in Legacy and Secure Connection.
...
Prevent a remote device from doing a Bluetooth Impersonation Attack
(BIAS) by:
- Preventing remote device to downgrade secure connection
feature mask. Secure connection feature mask should remain same or
increase to enabled in link key generation and authentication.
- Doing a mutual authentication during Legacy Authentication.
Signed-off-by: Chinmay Chhajed <chinmay.chhajed@espressif.com>
2020-06-30 14:41:46 +05:30