Commit graph

5133 commits

Author SHA1 Message Date
Konstantin Kondrashov aeda8e0c8f sdmmc_host/driver: Add module reset before enabling 2019-10-11 19:45:08 +08:00
Konstantin Kondrashov 89d549c8a4 i2s/driver: Add module reset before enabling 2019-10-11 19:45:08 +08:00
Konstantin Kondrashov 61be3bd1a5 uart/driver: Add module reset before enabling
This commit prevents infinite restarts caused due to an interrupt flag
was left uncleared.

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

Closes: IDF-188
2019-10-11 19:45:08 +08:00
suda-morris fd9f46a645 bootloader: shrink bin size
1. write a bootloader version of "getting chip revision" function.
2. reduce wordy log.
2019-10-10 12:28:39 +08:00
Angus Gratton f09dc866f8 Merge branch 'bugfix/freertos_xTaskNotifyGive_v3.1' into 'release/v3.1'
freertos: remove semicolon in xTaskNotifyGive (v3.1)

See merge request espressif/esp-idf!6272
2019-10-10 11:25:55 +08:00
Angus Gratton 42739580e4 Merge branch 'feature/add_psram_workaround_option_3.1' into 'release/v3.1'
make psram workaround depend on chip revison (v3.1)

See merge request espressif/esp-idf!6210
2019-10-10 11:00:56 +08:00
Prasad Alatkar 882dfb5f97 BT/Bluedroid : Add support to set min encryption key requirement (Backport v3.1)
- Backport(v3.1) of IDF MR!6122
- Modifies `smp_utils.c` to add check on encryption key size received from
  peer.
- Modifies `esp_ble_gap_set_security_param` API to add minimum encryption key
  size requirement.
2019-10-09 16:15:47 +08:00
suda-morris 54b813ad69 freertos: remove semicolon in xTaskNotifyGive 2019-10-08 18:58:40 +08:00
Jiang Jiang Jian f5b9366999 Merge branch 'bugfix/multi_heap_printf_backport_v3.1' into 'release/v3.1'
heap: Fix printf usage in heap poisoning (backport v3.1)

See merge request espressif/esp-idf!6089
2019-09-29 16:17:29 +08:00
Jiang Jiang Jian 704e2f4a8c Merge branch 'bugfix/btdm_a2dp_sink_media_suspend_cmd_unack_for_v3.1' into 'release/v3.1'
bugfix/btdm_a2dp_sink_media_suspend_cmd_unack_for_v3.1(backport v3.1)

See merge request espressif/esp-idf!5938
2019-09-29 16:17:05 +08:00
Jiang Jiang Jian 7a7f2c9110 Merge branch 'bugfix/btdm_backports_v3.1_0903' into 'release/v3.1'
components/bt: backports release/v3.1 0903

See merge request espressif/esp-idf!5989
2019-09-29 16:16:43 +08:00
Jiang Jiang Jian 1387ecef6c Merge branch 'bugfix/fix_cache_disable_access_psram_v3.1' into 'release/v3.1'
esp_wifi: Put g_promis_buf to IRAM (backport v3.1)

See merge request espressif/esp-idf!6164
2019-09-29 10:35:22 +08:00
suda-morris b64bda7e4e make psram workaround depend on chip revison
Since ESP32 revision 3, the PSRAM workaround is not needed.
2019-09-26 17:32:20 +08:00
Jiang Jiang Jian 83458426ac Merge branch 'bugfix/fix_the_for_smartconfig_send_broadcast_to_phone_v3.1' into 'release/v3.1'
fix the bugs in smartconfig_ack (backport v3.1)

See merge request espressif/esp-idf!6075
2019-09-25 12:00:41 +08:00
baohongde f48dbc09ae components/bt: backports release/v3.1 0903
Remove xtensa/xruntime.h
Fix sending Lmp_feature_req_ext in a loop
Fix 2 bugs in r_ld_fm_sket_isr
fix memory leak when set tx power
fix data loss and send same pkt twice sometimes
fix adv data error in air sometimes
fix adv start/stop crash sometimes
bugfix btdm sleep twice after wakeup request
Fix connect fail with some speakers
clear BT/BLE interruots after controller disable
2019-09-23 17:41:58 +08:00
xiehang e07f7c4456 esp_wifi: Put g_promis_buf to IRAM 2019-09-19 20:37:07 +08:00
suda-morris c0a5cb07cd support esp32 eco revision 2 and 3 2019-09-19 17:09:37 +08:00
Angus Gratton d6e333f014 Merge branch 'bugfix/bootloader_factory_reset_with_wake_up_from_deep_sleep_v3.1' into 'release/v3.1'
bootloader: Blocking the Factory reset during wake up from deep sleep (v3.1)

See merge request espressif/esp-idf!6025
2019-09-16 15:10:50 +08:00
Angus Gratton f8798d686d Merge branch 'bugfix/add_flash_config_in_app_startup_v3.1' into 'release/v3.1'
bugfix(flash): add flash config in app startup (backport v3.1)

See merge request espressif/esp-idf!5925
2019-09-13 14:32:02 +08:00
KonstantinKondrashov 01d17d8694 bootloader: Factory reset not for deep sleep
Closes: https://github.com/espressif/esp-idf/issues/3800

Closes: IDFGH-1536
2019-09-12 22:12:25 +08:00
Darian Leung 4b05708daf heap: Fix printf usage in heap poisoning
This commit fixes the bug where printf() is used in
verify_allocated_region() when ets_printf() should be used.
2019-09-12 19:27:19 +08:00
Tian Hao a815e3ede2 fix bug that wifi start/stop may cause crash
1. fix bug bb reset lock flag to avoid bb reset lock unhandle,
   may cause assert in vPortCPUReleaseMutexIntsDisabledInternal.
2. fix bug wifi reset mac cause task watch dog timeout
3. fix bug wifi reset mac position
2019-09-11 20:34:02 +08:00
chenjianqiang 9eb8a740a3 esp32: cpu_start: read binary image header via cache
When flash encryption is enabled, reading via cache also decrypts the
data, whereas spi_flash_read does not.
2019-09-11 15:53:46 +08:00
chenjianqiang 7904cae9c1 bugfix(flash): add flash config in app startup
We fixed some flash bugs in bootloader, but for the users used the old
vrsion bootloader, they can not fix these bugs via OTA, the solution is
add these updates in app startup.

These updates include:
1. SPI flash gpio matrix and drive strength configuration
2. SPI flash clock configuration
3. SPI flash read dummy configuration
4. SPI flash cs timing configuration
5. Update flash id of g_rom_flashchip
2019-09-11 15:37:18 +08:00
zhangyanjiao 8af11f1f89 smartconfig_ack.c:
1. fix the bug that ESP32 sends broadcast to phone after smartconfig is done
2. fix the declaration of remote_ip in sc_ack_send_task()
2019-09-11 14:20:26 +08:00
Angus Gratton 7648859a27 Merge branch 'bugfix/flash_encryption_disable_plaintext_v3.1' into 'release/v3.1'
flash encryption: Add config option to disable any plaintext reflashes (3.1)

See merge request espressif/esp-idf!6049
2019-09-11 12:10:18 +08:00
Angus Gratton a4ce828d40 flash encryption: Add config option to disable any plaintext reflashes
Enabled by default when Secure Boot is on, so Flash Encryption protection
is always available in case of a Secure Boot bypass.
2019-09-10 14:29:20 +10:00
Sagar Bijwe 0449ba7f91 docs: Added more wordings to capture secure boot and flash encryption dependency. 2019-09-10 10:11:44 +10:00
zhangyanjiao 7840d64d2e fix the bug that STA fails to connect WPA_WPA2_PSK Apple AP 2019-09-06 14:24:32 +08:00
liu zhifu 87304cbcf4 esp32: revert WiFi RX optimization
Revert following commit since it has compatibility issue:
commit 71f1b7f424
esp32: optimize wifi rx
2019-08-29 11:06:33 +08:00
wangmengyang 7942604c22 bugfix that call of esp_a2d_media_ctrl(ESP_A2D_MEDIA_CTRL_SUSPEND) will not get an ACK from callback on A2DP sink 2019-08-28 15:52:09 +08:00
Angus Gratton a3d232f053 Merge branch 'test/use_correct_config_for_nvs_compatible_case_v3.1' into 'release/v3.1'
test: fix nvs compatible case error (backport v3.1)

See merge request espressif/esp-idf!5892
2019-08-27 13:30:35 +08:00
Jiang Jiang Jian 7e538b88fb Merge branch 'update/cjson_v1_7_12_v3.1' into 'release/v3.1'
Update cJSON to v1.7.12 (v3.1)

See merge request espressif/esp-idf!5853
2019-08-26 18:29:52 +08:00
Jiang Jiang Jian e8f65b958d Merge branch 'bugfix/fix_i2s_channels_swapped_issue_v3.1' into 'release/v3.1'
Bugfix(i2s): fixed i2s left/right channels swapped issue for v3.1.

See merge request espressif/esp-idf!5897
2019-08-26 18:29:37 +08:00
Jiang Jiang Jian 87b9f2f660 Merge branch 'bugfix/fix_the_bug_for_softap_set_authmode_v3.1' into 'release/v3.1'
wifi: fix the bug for softAP set authmode (backport v3.1)

See merge request espressif/esp-idf!5827
2019-08-26 18:29:18 +08:00
He Yin Ling 2edb9c4761 test: fix integration test jobs not executed:
naming rule for parallel test job config file is different.
rename test job config file to make it unified.
2019-08-26 15:15:25 +08:00
redchenjs 61b585ab41 Bugfix(i2s): fixed i2s left/right channels swapped issue for v3.1.
The right channel data is in the high position, so the I2S_TX_MSB_RIGHT & I2S_RX_MSB_RIGHT bits should be set.
2019-08-26 13:55:05 +08:00
He Yin Ling 725eba3378 test: fix nvs compatible case error:
use new env tag for nvs compatible test case and update test config
file.
2019-08-26 09:33:19 +08:00
zhangyanjiao 4bf4384846 wifi: fix the bug for softAP set authmode 2019-08-23 16:40:40 +08:00
wangmengyang 4db0d07177 components/bt: set the minimum encryption key size to be 7 octects for BR/EDR link for preventing KNOB attack.
This patch is to address the CVE-2019-9506 vulnerability.
2019-08-23 08:31:23 +08:00
Angus Gratton 58dc5049a5 Update cJSON to v1.7.12
Fixes potential DoS in cJSON_Minify, see https://github.com/DaveGamble/cJSON/issues/354
2019-08-21 18:59:06 +10:00
chenjianqiang f21f5fd45b bugfix(flash): add spi dio address bitlen configure in psram init 2019-08-14 21:30:58 +08:00
Sagar Bijwe da3239c336 wpa_supplicant: Fix sprintf security bugs.
Revert back to using os_snprintf instead of sprintf.

Closes WIFI-624
2019-08-12 06:30:02 +00:00
Jiang Jiang Jian b94341c4e0 Merge branch 'bugfix/fix_wifi_bugs_for_authmode_and_multi_ssid_v3.1' into 'release/v3.1'
fix wifi bugs for authmode and multi ssid (backport v3.1)

See merge request espressif/esp-idf!5730
2019-08-11 17:07:48 +08:00
Jiang Jiang Jian 30547ae02c Merge branch 'bugfix/dis_interrupts_up_to_6_level_for_dport_wa_v3.1' into 'release/v3.1'
esp32: Dis interrupts up to 5 lvl for DPORT (v3.1)

See merge request espressif/esp-idf!5715
2019-08-11 16:55:39 +08:00
Jiang Jiang Jian a5db2f0f2d Merge branch 'bugfix/fix_the_watchdog_during_WiFi_scan_BLE_scan_v3.1' into 'release/v3.1'
fix the watchdog bug during WiFi scan and BLE scan(v3.1)

See merge request espressif/esp-idf!5542
2019-08-09 14:06:03 +08:00
zhangyanjiao adf6ed9c8c modify WIFI_CONN_0101 case for wrong authmode of AP 2019-08-08 17:45:28 +08:00
zhangyanjiao 6020bd5261 wifi: fix wifi bugs for authmode and multi ssid 2019-08-08 17:44:14 +08:00
Konstantin Kondrashov c69a410012 esp32: Add UTs for DPORT and Hi-interrupt 2019-08-08 15:10:23 +08:00
Konstantin Kondrashov 687a62fb1e esp32: Dis interrupts up to 5 lvl for DPORT
Disable interrupts for both DPORT workarounds up to 5 lvl.

Closes: https://esp32.com/viewtopic.php?f=2&t=10981&sid=d125cec233070ed4d2c5410bf5d3d74a
Closes: IDF-728
2019-08-07 20:10:06 +08:00
xiehang 86300427dc esp_wifi: add esp_wifi_internal_ioctl declared 2019-08-07 11:14:18 +08:00
Jiang Jiang Jian cbf12758c2 Merge branch 'bugfix/fix_wifi_stack_can_freeze_v3.1' into 'release/v3.1'
esp_wifi: ESP32_WIFI_RX_BA_WIN should be less than ESP32_WIFI_DYNAMIC_RX_BUFFER_NUM (v3.1)

See merge request espressif/esp-idf!5619
2019-08-04 15:58:46 +08:00
chenjianqiang 963fe19abf bugfix(flash): improve spi cs timing settings for flash
cs setup time is recomemded to be 1.5T, and cs hold time is recommended to be 2.5T.
(cs_setup = 1, cs_setup_time = 0; cs_hold = 1, cs_hold_time = 1)
2019-07-31 18:15:44 +08:00
baohongde ba7a0fa4ec components/bt: Fix memory leak about rfcomm 2019-07-25 17:13:31 +08:00
xiehang 6af07b800a esp_wifi: ESP32_WIFI_RX_BA_WIN should be less than ESP32_WIFI_DYNAMIC_RX_BUFFER_NUM 2019-07-25 14:43:01 +08:00
zhangyanjiao 16a96dccf0 fix the watchdog bug during WiFi scan and BLE scan 2019-07-19 15:04:26 +08:00
Jiang Jiang Jian a33c5f1713 Merge branch 'bugfix/btdm_fix_rxwinsz_assert_in_wifi_ble_coex_v3.1' into 'release/v3.1'
component/bt: fix rxwinsz assert in ble and wifi coex(backport v3.1)

See merge request espressif/esp-idf!5451
2019-07-18 18:37:12 +08:00
Jiang Jiang Jian da23381ff6 Merge branch 'bugfix/backport_some_wifi_bugs_201907_v3.1' into 'release/v3.1'
Backport some wifi bugs 201907 v3.1 (backport v3.1)

See merge request espressif/esp-idf!5524
2019-07-18 18:37:09 +08:00
Angus Gratton 931b3c07af test: Set timeout of libsodium ed25519_convert test to 60s
Test takes 28s-29s to run in some configs, can fail in CI.
2019-07-17 13:52:01 +10:00
xiehang b994682736 WiFi: Modify the wifi_country struct in VNC to keep it consistent with IDF
1. Modfy wifi_country struct
2. Add md5 check esp_wifi_types.h
3. Add md5 check esp_wifi.h
2019-07-17 10:01:36 +08:00
liu zhifu 896d597adf esp32: fix wifi stop bug
Fix the bug that WiFi stop causes esp_wifi_internal_reg_rxcb() fails.
2019-07-17 09:55:01 +08:00
liu zhifu e0dee8cfae esp32: fix WPS/WPA2-Enterprise memory leak
Fix WPS and WPA2-Enterprise memory leak bug.
2019-07-17 09:53:06 +08:00
liu zhifu 71f1b7f424 esp32: optimize wifi rx
Optimize WiFi receiving performance.
2019-07-17 09:53:06 +08:00
liu zhifu 8a1a8309e3 esp32: fix smartconfig crash when no AP is found
Fix the bug that smartconfig crashes when no AP is found during smartconfig scan.
2019-07-17 09:53:06 +08:00
chenjianqiang 4bce69b69a bugfix(flash): fix flash read error in DIO/26MHz mode 2019-07-11 15:26:58 +08:00
kooho e03df25be9 bugfix(UART): fixed two UART issues:
1. uart_wait_tx_done works incorrect when sending a byte of data.
2. uart_set_rx_timeout sets an incorrect rx timeout value when ref_tick is enabled.
2019-07-09 14:06:59 +08:00
Angus Gratton c7dc2570b4 Merge branch 'fix/nvs_util_keylen_3.1' into 'release/v3.1'
nvs_util: Add check for keylen in input csv (v3.1)

See merge request espressif/esp-idf!5397
2019-07-08 15:19:43 +08:00
zhiweijian ae4e0330cc component/bt: fix rxwinsz assert in ble and wifi coex 2019-07-04 21:33:30 +08:00
Jiang Jiang Jian ed211b44d7 Merge branch 'bugfix/mbedtls_mpi_exp_mod_v3.1' into 'release/v3.1'
mbedtls: Fix mbedtls_mpi_exp_mod() set n and s values (v3.1)

See merge request idf/esp-idf!5357
2019-07-02 11:59:25 +08:00
Jiang Jiang Jian 5175d55adc Merge branch 'bugfix/softap_send_deauth_to_STA_when_handshake_fails_v3.1' into 'release/v3.1'
wifi: softAP send deauth to the STA when 4-way handshake fails v3.1

See merge request idf/esp-idf!5364
2019-07-02 11:23:34 +08:00
Angus Gratton 559a9def5b Merge branch 'fix/update_curr_page_state_3.1' into 'release/v3.1'
nvs_util: Set previous page state to FULL before creating new page (v3.1)

See merge request idf/esp-idf!5329
2019-07-01 14:20:46 +08:00
Angus Gratton d9b5d7744c Merge branch 'bugfix/select_init_sem_v3.1' into 'release/v3.1'
VFS: Allocate socket select semaphore outside ISR (backport v3.1)

See merge request idf/esp-idf!4988
2019-07-01 14:20:01 +08:00
huchaoru 79a0fc780e modify WIFI_CONN_0904 case about disconnect event 2019-07-01 11:52:52 +08:00
zhangyanjiao e8980a7bda wifi: softAP sends deauth to the STA when 4-way handshake fails 2019-07-01 11:52:27 +08:00
liu zhifu 1d04e5f7f8 esp32/lwip: fix wpa2-enterprise vulnerability and support lwip window scale
1. Fix WiFi wpa2-enterprise vulnerability bug
2. Support LWIP window scale
2019-06-30 18:13:55 +08:00
Jiang Jiang Jian 9adf8a7aa9 Merge branch 'bugfix/xTaskIncrementTick_v3.1' into 'release/v3.1'
freertos: Fix xTaskIncrementTick for unwind the Tick for CPU1 (v3.1)

See merge request idf/esp-idf!5036
2019-06-30 18:01:14 +08:00
liu zhifu c4e72db390 esp32: fix some WiFi bugs
Fix following WiFi bugs:
1. Make smartconfig thread-safe
2. Fix WiFi stop/deinit memory leak
3. Refactor for WiFi init/deinit/ioctl etc
4. Fix the bug that WiFi stop leads to task watchdog
2019-06-30 16:14:07 +08:00
Shivani Tipnis 8a2ff86c87 nvs_util: Add check for keylen in input csv 2019-06-28 12:10:27 +05:30
Jiang Jiang Jian df4df2f493 Merge branch 'bugfix/spi_flash_deadlock_v3.1' into 'release/v3.1'
spi_flash: raise priority of the task performing spi_flash operation

See merge request idf/esp-idf!5360
2019-06-28 11:11:43 +08:00
Konstantin Kondrashov 4764977c3c freertos/test: Add unit tests for xTaskIncrementTick 2019-06-28 02:19:19 +00:00
Konstantin Kondrashov 7f081efbc6 freertos: Fix xTaskIncrementTick for unwind the Tick for CPU1
xTaskIncrementTick have to unwind uxPendedTicks on CPU1 and CPU0.

Use case: If an erase operation was run on the CPU1 then it leads
to starving other tasks which waiting time. Waited tasks just skipped.

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

Closes: IDF-183
2019-06-28 02:19:19 +00:00
Jiang Jiang Jian 3b2d5e5a4f Merge branch 'bugfix/fix_some_wps_bugs_v3.1' into 'release/v3.1'
wps: add overlap event (backport v3.1)

See merge request idf/esp-idf!5205
2019-06-27 19:18:58 +08:00
Jiang Jiang Jian df12d488fb Merge branch 'bugfix/btdm_backport_3_bugs_v3.1' into 'release/v3.1'
Bugfix/btdm backport 3 bugs v3.1

See merge request idf/esp-idf!5177
2019-06-27 14:30:55 +08:00
xiehang 63013e1060 wps: add overlap event (backport v3.1) 2019-06-27 11:44:31 +08:00
Angus Gratton 42426a986c Merge branch 'bugfix/console_allow_buffered_v3.1' into 'release/v3.1'
console example: use buffered stdout by default (backport v3.1)

See merge request idf/esp-idf!5300
2019-06-27 08:33:26 +08:00
Shivani Tipnis 6a29794a65 nvs_util: Set previous page state to FULL before creating new page 2019-06-26 11:41:04 +00:00
Konstantin Kondrashov b6c07f0fe9 mbedtls: Add UTs for modexp 2019-06-26 19:33:47 +08:00
Konstantin Kondrashov 5421f5e9ae mbedtls: Fix Z->s in mbedtls_mpi_exp_mod()
Z->s should never be zero, only 1 or -1.
Added additional checks for X, Y and M args to correctly set Z->s.

Closes: https://github.com/espressif/esp-idf/issues/1681
Closes: https://github.com/espressif/esp-idf/issues/3603
Closes: IDFGH-1313
2019-06-26 19:33:47 +08:00
Jiang Jiang Jian 85d00d8daa Merge branch 'bugfix/improve_flash_dio_read_timing_v3.1' into 'release/v3.1'
bugfix(flash): fix flash dio read mode configuration error on SPI0 (backport v3.1)

See merge request idf/esp-idf!5290
2019-06-26 16:59:26 +08:00
Jiang Jiang Jian 8dd3bb07f8 Merge branch 'bugfix/btdm_fix_hci_enhance_conn_complete_evt_unpack_error_v3.1' into 'release/v3.1'
component/bt: fix unpack hci enhance connection complete event error(backport v3.1)

See merge request idf/esp-idf!5283
2019-06-26 16:47:03 +08:00
Ivan Grokhotkov ceafbca0a2 spi_flash: raise priority of the task performing spi_flash operation
Fixes https://github.com/espressif/arduino-esp32/issues/740
2019-06-26 16:43:51 +08:00
Jiang Jiang Jian f53f40396b Merge branch 'bugfix/fix_no_disconnect_event_when_rx_disassoc_after_send_auth_v3.1' into 'release/v3.1'
wifi: fix the bug no disconnect event when STA recv disassoc after sending auth (backport v3.1)

See merge request idf/esp-idf!5073
2019-06-26 14:05:29 +08:00
Chen Sheng 4ec321d1b9 test: modify test cases for bluedroid (backport v3.1) 2019-06-25 23:19:08 +08:00
He Yin Ling c5dcb7e662 Merge branch 'test/fix_some_error_wifi_cases_v3.1' into 'release/v3.1'
test: fix some wifi case issues (backport v3.1)

See merge request idf/esp-idf!5253
2019-06-20 22:10:56 +08:00
Ivan Grokhotkov cb5c0d3a12 console/linenoise: support buffered stdout 2019-06-20 16:27:06 +08:00
Angus Gratton 14abc49237 Merge branch 'bugfix/ticks_to_wait_for_uart_and_i2c_v3.1' into 'release/v3.1'
driver: Fix ticks_to_wait for uart and i2c (v3.1)

See merge request idf/esp-idf!5249
2019-06-20 14:24:53 +08:00
chenjianqiang dfe06c6dfb bugfix(flash): improve flash dio read timing
When flash work in DIO Mode, in order to ensure the fast read mode of flash
is a fixed value, we merged the mode bits into address part, and the fast
read mode value is 0 (the default value).
2019-06-19 17:30:21 +08:00
zhiweijian a74775d5f0 component/bt: fix unpack hci enhance connection complete event error 2019-06-19 14:41:52 +08:00
Jeroen Domburg 378a13ba18 Merge branch 'bugfix/spi_concurrency_3.1' into 'release/v3.1'
spi_master: fix a possible concurrency issue

See merge request idf/esp-idf!5188
2019-06-19 10:48:44 +08:00
He Yin Ling f30c415cdd test: fix some wifi case issues:
* remove heap size check cases as we have bg tasks allocate memory
* fix wifi connect to open ap issue
2019-06-14 14:51:52 +08:00
Konstantin Kondrashov 95c0b90cc1 driver: Add uart and i2c UTs to check ticks_to_wait in some functions 2019-06-14 12:31:43 +08:00
Konstantin Kondrashov e7322c8472 uart: Fix ticks_to_wait when 0 or expired
Closes: https://github.com/espressif/esp-idf/issues/3301

Closes: IDFGH-964
2019-06-14 12:31:43 +08:00
Konstantin Kondrashov 357364ab25 i2c: Fix ticks_to_wait when 0 or time expired
Closes: https://github.com/espressif/esp-idf/issues/3301

Closes: IDFGH-964
2019-06-14 12:31:43 +08:00
Jiang Jiang Jian d09ccd4b31 Merge branch 'bugfix/improve_spi_timing_for_psram_and_flash_v3.1' into 'release/v3.1'
bugfix(psram): improve spi cs timing settings for psram (backport v3.1)

See merge request idf/esp-idf!4908
2019-06-14 11:59:45 +08:00
Michael (XIAO Xufeng) 1d58ccdf42 spi: fix a possible concurrency issue 2019-06-11 13:02:21 +08:00
baohongde 3a8fbb7be4 components/bt: Fix assert due to alloc LMP TX buffer failed 2019-06-10 19:17:48 +08:00
baohongde c9694d4004 component/bt: Allow configuration of default SCO_DATA_PATH in bluetooth controller 2019-06-10 19:17:48 +08:00
baohongde a19c901e99 add missing source files to CMakeLists for HFP 2019-06-10 19:17:34 +08:00
wangmengyang 4a6d2da209 component/bt: fix some performance issues in A2DP source data flow control
1. modify the limit of frames to send to avoid dropping packet on A2DP source due to TX data queue overflow
2. reduce the A2DP source data queue size in order to achieve faster control respnonse
2019-06-10 16:38:52 +08:00
Jiang Jiang Jian 613558774b Merge branch 'feature/add_ping_packet_len_and_QoS_v3.1' into 'release/v3.1'
add ping length and QoS (backport v3.1)

See merge request idf/esp-idf!5148
2019-06-10 15:48:20 +08:00
zhangyanjiao d95911ec38 add ping length and QoS 2019-06-06 14:29:42 +08:00
Konstantin Kondrashov ea48d2802c esp32: Add reset uart
Fixed the case when the first part of log was missed
this was happened when:
 * CONFIG_CONSOLE_UART_CUSTOM option is selected (UART1)
 * The selected CONSOLE_UART port is used also for the console component
 * in code esp_restart() or abort() functions were called.
2019-06-04 20:17:21 +08:00
Angus Gratton 3e666077f0 Merge branch 'bugfix/custom_log_uart_rx_pin_v3.1' into 'release/v3.1'
bootloader_support: Fix UART RXD pin for console output (CUSTOM option) (v3.1)

See merge request idf/esp-idf!5033
2019-06-03 14:18:26 +08:00
Konstantin Kondrashov 5e0d95c4ec soc: Add some headers into gpio_periph.h 2019-05-29 13:53:41 +08:00
Renz Christian Bagaporo 5760e37dcc cmake: fix custom bootloader issue
Issue is that when users creates a custom bootloader from
$IDF_PATH/components/bootloader. Parent project build uses the copy but
bootloader subproject build uses the original still. The issue is solved
by passing the custom bootloader as extra component directory so
bootloader build knows to use the new copy (itself) in the build.
2019-05-27 18:45:28 +08:00
zhangyanjiao 3706b3863a wifi bugfix:
1. fix the bug no disconnect event when STA recv disassoc after sending auth
2. fix the bug full scan send multi events when recv deauth/disassoc
2019-05-24 18:06:24 +08:00
xiehang 86c913dbe9 wifi: fix softap crash when sta reset (backport v3.1) 2019-05-20 20:38:43 +08:00
Konstantin Kondrashov 4a82ad3937 bootloader_support: Fix UART RXD pin for console output (CUSTOM option)
The RXD pin is assigned as input (fix for custom uart option).

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

Closes: IDFGH-505
2019-05-20 18:37:26 +08:00
Roland Dobai 7307bf1b87 VFS: Allocate socket select semaphore outside ISR 2019-05-13 11:20:15 +02:00
Alexey Gerenkov 36620e1c5b esp32: Fixes freezing core dump process when flash write address checks are enabled 2019-05-08 13:30:57 +03:00
zhangyanjiao 4c3bd860f4 fix the bug when scan fail after STA failed to connect to a nonexistent AP 2019-04-30 16:50:29 +08:00
chenjianqiang ce52121050 bugfix(psram): improve spi cs timing settings for psram
1. remove redundant SPI clock settings, use rom functions to set clock.
2. remove redundant SPI cs setup and hold settings.
3. for old 32Mbit psram, cs hold time must only be 0.5T due to the special driving mode.(cs_setup = 0; cs_hold = 0)
4. for new 64Mbit psram, cs hold time is recommended to be 2.5T. (cs_setup = 1, cs_setup_time = 0;cs_hold = 1, cs_hold_time = 1)
2019-04-30 10:50:50 +08:00
liu zhifu 4f17f383ec esp32: fix some STA certification issues
Fix following WiFi STA certification issues:
1. Add support for STA HT2040 coexist management
2. Add support for WPA2 improvements
3. Disallow HT rate when unicast/mcast cipher is TKIP/WEP
2019-04-29 20:16:44 +08:00
Jiang Jiang Jian 84c96bf5bf Merge branch 'bugfix/fix_the_PMK_bug_and_wifi_reason_code_v3.1' into 'release/v3.1'
fix the PMK bug and wifi reason code (backport v3.1)

See merge request idf/esp-idf!4895
2019-04-29 10:52:18 +08:00
negativekelvin 37b47b8e47 nvs_flash: Multi-page blob erased using nvs_erase_key should be cleaned properly
Earlier eraseItem function in Storage class would do lazy cleanup of
multi-page blobs if called using type "ANY" instead of "BLOB". It used to
just delete BLOB data and index would remain as is. Any subsequent read
would delete index entry as well. This however would return a valid
length without error if nvs_get_blob API was just used for finding
length and not reading the complete blob. This change fixes this issue.

Closes https://github.com/espressif/esp-idf/issues/3255
2019-04-28 03:49:30 +00:00
zhangyanjiao 10a7eacc98 wifi bugfixs:
1. modify wifi reason code
2. fix the bug PMK recal too long
2019-04-28 11:27:43 +08:00
Jiang Jiang Jian 3f7cc13ed7 Merge branch 'bugfix/adjtime_ut_v3.1' into 'release/v3.1'
newlib: Fix adjtime (v3.1)

See merge request idf/esp-idf!4873
2019-04-28 10:40:27 +08:00
Jiang Jiang Jian 6aacb06c73 Merge branch 'bugfix/erase_with_vtaskdelay_v3.1' into 'release/v3.1'
spi_flash: Add vTaskDelay while a long erasing (v3.1)

See merge request idf/esp-idf!4874
2019-04-28 10:40:13 +08:00
Jiang Jiang Jian 692f86bbd0 Merge branch 'bugfix/mdns_notask_timer_crash_3.1' into 'release/v3.1'
mdns: fix crash after init if no memory for task (Backport 3.1)

See merge request idf/esp-idf!4238
2019-04-28 10:39:04 +08:00
Jiang Jiang Jian 02138399ce Merge branch 'bugfix/btdm_modify_HCI_GET_CMD_BUF_v3.1' into 'release/v3.1'
Component/bt: modify HCI_GET_CMD_BUF (backport v3.1)

See merge request idf/esp-idf!4600
2019-04-28 10:20:11 +08:00
Jiang Jiang Jian 42986bf1e5 Merge branch 'bugfix/btdm_fix_warning_when_disable_logs_v3.1' into 'release/v3.1'
components/bt: Fix warning when disable debug logs or in release mode and…

See merge request idf/esp-idf!4622
2019-04-28 10:18:47 +08:00
Jiang Jiang Jian 9d80953a63 Merge branch 'bugfix/btdm_abort_if_deinit_spp_without_init_v3.1' into 'release/v3.1'
components/bt: Fix abort if call esp_spp_deinit without calling esp_spp_init

See merge request idf/esp-idf!4863
2019-04-28 10:18:15 +08:00
maojianxin 857bdf65e5 Fix external start fail 2019-04-26 07:07:53 +00:00
Zhang Jun Yi 8ca1efd91a soc/rtc: Bypass touchpad current to external 32k crystal oscillator 2019-04-26 07:07:53 +00:00
Angus Gratton b8d1ff5e95 Merge branch 'bugfix/add_bootloader_flash_erase_range' into 'release/v3.1'
bootloader: add API for erasing flash region (backport v3.1)

See merge request idf/esp-idf!4858
2019-04-26 09:53:12 +08:00
Jiang Jiang Jian db3dcc9a79 Merge branch 'feature/btdm_add_ble_link_timeout_config_v3.1' into 'release/v3.1'
Component/bt: add ble link timeout config in menuconfig(backport v3.1)

See merge request idf/esp-idf!4828
2019-04-25 20:05:10 +08:00
Jiang Jiang Jian 774a3c1446 Merge branch 'bugfix/wifi_spike_power_v3.1' into 'release/v3.1'
esp32: fix the issue that the spike transmit power of WiFi is higher than configured when WiFi and Bluetooth coexist (backport v3.1)

See merge request idf/esp-idf!4614
2019-04-25 16:24:07 +08:00
Konstantin Kondrashov 1bca6d0ffe spi_flash: Add vTaskDelay while a long erasing
Added Kconfig options to enable yield operation during flash erase.
By default disable.

Closes: https://github.com/espressif/esp-idf/issues/2083
Closes: IDFGH-261
2019-04-24 19:22:21 +08:00
Konstantin Kondrashov 9c60abcaca newlib: Fix adjtime
Fixed adjtime function: While using the adjtime() function,
the time correction accumulated an error
when reading the time frequently (using gettimeofday).
2019-04-24 18:42:26 +08:00
baohongde 4b11e8cb54 components/bt: Fix abort if call esp_spp_deinit without calling esp_spp_init 2019-04-24 11:37:14 +08:00
Mahavir Jain 401c940434 spi_flash: fix erase_range for block erase check
Erase in block (64k) as much as possible, before falling back
to sector (4k) erase.

Signed-off-by: Mahavir Jain <mahavir@espressif.com>
2019-04-23 21:14:33 +08:00
Mahavir Jain 1cbdfcc493 bootloader: add API for erasing flash region
Signed-off-by: Mahavir Jain <mahavir@espressif.com>

Closes: https://github.com/espressif/esp-idf/issues/2166
2019-04-23 21:14:35 +08:00
Angus Gratton 6250918dfa Merge branch 'bugfix/mdns_networking_refactoring_3.1_mdns_patch' into 'release/v3.1'
mdns: workarround in 3.1 to fix missing netif re-probing when ip changed in link-local addressing

See merge request idf/esp-idf!4715
2019-04-23 10:34:40 +08:00
Angus Gratton 072d5233ca Merge branch 'bugfix/remove_second_sha_enable_v3.1' into 'release/v3.1'
esp32/sha: Remove second enabling in esp_sha_lock_engine_common (backport v3.1)

See merge request idf/esp-idf!4781
2019-04-23 07:37:39 +08:00
zhiweijian 29f5ad6638 Component/bt: add ble link timeout config in menuconfig
- add ble link timeout config in menuconfig
- disable background connection when call gatts_open
2019-04-22 21:57:09 +08:00
XiaXiaotian 5abf384c96 esp32: fix the issue that the spike transmit power of WiFi is higher
than configured when WiFi and Bluetooth coexist
2019-04-19 14:32:50 +08:00
He Yin Ling d39c0cc281 Merge branch 'test/modify_mesh_ci_v3.1' into 'release/v3.1'
test: updat  mesh test cases for ci (backport v3.1)

See merge request idf/esp-idf!4649
2019-04-18 11:29:26 +08:00
liu zhifu c2986c0a1f esp32: fix a bug caused by signal test code
Fix a WiFi bug caused by signal test code.
2019-04-17 17:58:27 +08:00
luchangjie e8fc27da7d test:update mesh test cases for ci(v3.1)
update TC_IT_MESH_EST.yml and TC_IT_MESH_COMM.yml

change mesh ci case form T50 to T12 in gitlab-ci.yml

add some test ENV in components/idf_test/integration_test/TEST_ENV_SSC.yml
2019-04-17 17:31:15 +08:00
Angus Gratton 361d28e19e Merge branch 'bugfix/bootloader_flash_crypt_cnt_ff_v3.1' into 'release/v3.1'
flash encryption: reduce FLASH_CRYPT_CNT bit width to 7 bits (v3.1)

See merge request idf/esp-idf!4729
2019-04-16 08:07:42 +08:00