Ivan Grokhotkov
bf0863a50a
mbedtls: Enable SHA hardware acceleration by default
2019-12-15 20:46:20 +00:00
Ivan Grokhotkov
20d435c561
mbedtls: add SHA performance test
...
Results with this revision:
SHA256 rate 2.599MB/sec Debug 240MHz SW
SHA256 rate 1.147MB/sec Release 80MHz SW
SHA256 rate 3.469MB/sec Release 240MHz SW
SHA256 rate 2.687MB/sec Release 240MHz SW + PSRAM workaround
SHA256 rate 9.433MB/sec Debug 240MHz HW rev1
SHA256 rate 3.727MB/sec Release 80MHz HW rev1
SHA256 rate 10.961MB/sec Release 240MHz HW rev1
SHA256 rate 9.966MB/sec Release 240MHz HW rev1 + PRAM workaround
SHA256 rate 10.974MB/sec Debug 240MHz HW rev3
SHA256 rate 4.362MB/sec Release 80MHz HW rev3
SHA256 rate 13.207MB/sec Release 240MHz HW rev3
Debug = Og, assertions enabled
Release = O2, assertions disabled
2019-12-15 20:46:20 +00:00
baohongde
a82215d161
components/bt: Fix AVRC metadata length error
2019-12-14 05:48:26 +00:00
KonstantinKondrashov
dcbcb5fe58
esp_timer: Add Test case when set_alarm needs set timer < now_time
2019-12-14 04:46:27 +08:00
Ivan Grokhotkov
23e6b47a28
esp-tls: check return value of fcntl
2019-12-13 14:12:36 +00:00
Ivan Grokhotkov
85656ca77d
newlib: define fcntl as strong symbol
...
Closes https://github.com/espressif/esp-idf/issues/3694
Closes https://github.com/espressif/esp-idf/issues/4407
2019-12-13 14:12:36 +00:00
Ivan Grokhotkov
6f0f5d79f9
newlib: add definitions of system, raise
...
Closes IDF-1220
Closes IDFGH-1811
Closes https://github.com/espressif/esp-idf/pull/4020
2019-12-13 14:12:36 +00:00
Jakob Hasse
314a0443ad
nvs: Added nvs tests, minor corrections
...
* closes IDF-1135:
same namespace was used in different tests which
could lead to conflicts when re-running tests
* removes duplicated functions declarations
* correct argument order for test case macros
2019-12-13 17:06:27 +08:00
Angus Gratton
3ba9eae86c
Merge branch 'feature/ci_optimize_artifact_download_v4.0' into 'release/v4.0'
...
CI: optimize example build and artifact download (backport v4.0)
See merge request espressif/esp-idf!6940
2019-12-13 11:36:04 +08:00
Angus Gratton
30ac846112
Merge branch 'bugfix/cmake_secure_boot_v4.0' into 'release/v4.0'
...
secure boot: CMake bug fixes (v4.0)
See merge request espressif/esp-idf!6630
2019-12-12 06:30:37 +08:00
KonstantinKondrashov
8e54ee3f16
esp_timer: Fix set_alarm. Case when timestamp < now_time
...
arg1 = MAX(int64_t arg1, uint64_t arg2) gave the wrong result, if arg1 < 0, it was presented as a larger value.
And ALARM_REG = (uin32_t)arg1. This leads to an infinite loop.
Fixed: both args are int64_t.
Closes: WIFI-1511
2019-12-11 19:28:20 +08:00
chenyudong
ee6ba0eb47
mesh: fix mesh stop recv crash
2019-12-11 05:54:39 +00:00
Angus Gratton
510ec904c9
spi_flash tests: Fix exclusion of new API tests in legacy mode
2019-12-11 15:57:49 +11:00
Anton Maklakov
f8e1ee35e2
soc: fix unit tests not included in the build
...
Regression from 9eccd7c082
2019-12-11 15:57:49 +11:00
Ivan Grokhotkov
bfbc10e2d8
lw-ip: silence a warning related to CONFIG_LWIP_TCP_WND_DEFAULT value
2019-12-11 15:57:49 +11:00
xueyunfei
2b5a8fe5ea
optimize tcp random close for v4.0
2019-12-10 11:53:22 +08:00
Jiang Jiang Jian
c0597aaf69
Merge branch 'bugfix/phy_critical_v4.0' into 'release/v4.0'
...
fix bug that phy_enter_critical cannot effect on dual-core
See merge request espressif/esp-idf!6941
2019-12-09 14:17:54 +08:00
Jiang Jiang Jian
87c30adfed
Merge branch 'bugfix/coex_fix_wifi_scan_and_connect_bugs_v4.0' into 'release/v4.0'
...
esp_wifi: fix WiFi scan and connect bugs when coexist with Bluetooth
See merge request espressif/esp-idf!6939
2019-12-09 13:43:46 +08:00
Angus Gratton
3636bf5813
Merge branch 'bugfix/update_libexpat_v4.0' into 'release/v4.0'
...
expat: Update library from 2.2.5 to 2.2.9 (v4.0)
See merge request espressif/esp-idf!6921
2019-12-09 13:21:28 +08:00
Tian Hao
ea2959af36
fix bug that phy_enter_critical cannot effect on dual-core
...
Sometimes, libphy.a call phy_enter_critical() to protect accessing
critical sections, such like operating on I2C, but it may not effect
when both the CPU core call it. It may cause accessing I2C blocking
and cannot recover by esp_restart(), until do HW reboot.
2019-12-09 12:45:52 +08:00
Jiang Jiang Jian
585654388f
Merge branch 'bugfix/improve_lwip_performance_v4.0' into 'release/v4.0'
...
LW-IP: fix bug for performance lose when update lw-ip to 2.1.2
See merge request espressif/esp-idf!6938
2019-12-09 12:42:04 +08:00
Jack
939d5a0f6a
esp_wifi: fix WiFi scan and connect bugs when coexist with Bluetooth
...
1. Fix WiFi scan leads to poor performance of Bluetooth.
2. Improve WiFi connect success ratio when coexist with Bluetooth.
3. Check if WiFi is still connected when CSA or beacon timeout happen.
4. add coex pre init
2019-12-09 12:17:16 +08:00
Angus Gratton
4d3c650b49
Merge branch 'bugfix/macos_link_toomany_open_files_v4.0' into 'release/v4.0'
...
build system: explicitly disable LTO plugin to reduce the number of simultaneously open files (backport v4.0)
See merge request espressif/esp-idf!6867
2019-12-09 06:19:30 +08:00
Jiang Jiang Jian
2318e6828d
Merge branch 'Bugfix/add_netif_assert' into 'release/v4.0'
...
fix bug for netif add crash
See merge request espressif/esp-idf!6895
2019-12-07 17:33:39 +08:00
xueyunfei
262acbc0a8
fix bug for improve performance
2019-12-07 16:16:57 +08:00
Chinmay Chhajed
2887131b39
Changes in menuconfig
options to not compile any host when using hci
...
examples as no host is required there.
2019-12-06 12:09:16 +08:00
xueyunfei
104299353d
fix bug for netif add crash
2019-12-06 10:54:12 +08:00
xueyunfei
e4312f8ab5
fix bug for random tcp close for 4.0
2019-12-05 18:41:42 +08:00
David Cermak
5e67f9578d
lwip: Adapted lwip port layer to use 2.1.2-esp in 4.0
2019-12-05 16:24:04 +08:00
Roland Dobai
46a172178a
expat: Update library from 2.2.5 to 2.2.9
2019-12-05 09:17:39 +01:00
Angus Gratton
e6006a6bdf
Merge branch 'bugfix/remove_mbedtls_would_block_v40' into 'release/v4.0'
...
Remove check for would_block in mbedtls (Backport v4.0)
See merge request espressif/esp-idf!6913
2019-12-05 07:37:15 +08:00
Jiang Jiang Jian
a5b803540a
Merge branch 'bugfix/btdm_allow_start_adv_again_v4.0' into 'release/v4.0'
...
component/bt: allow to send stop adv again and fix tx prog crash(backport v4.0)
See merge request espressif/esp-idf!6653
2019-12-04 20:24:07 +08:00
Kedar Sovani
673ccaa1e5
Remove check for would_block in mbedtls
...
Basically, in the portability layer, it is checked if the socket is
NON-block, and if not, then even the EAGAIN and EWOULDBLOCK errors are
diverted to a RECV error. This causes a problem for sockets with
receive timeouts set. When such a timeout is set, the condition for
NON_BLOCK isn't met and hence a hard error is returned.
Searching for EAGAIN and EWOULDBLOCK in lwip returns only 3 results
(accept, recvfrom, close) and all of them look to be genuine cases for
EWOULDBLOCK. So removing this check to make receive timeout with TLS
work.
2019-12-04 17:28:15 +05:30
morris
0508ad525a
ethernet: add pm lock
2019-12-03 17:37:45 +08:00
morris
97defec6cd
ethernet:a bunch of bugfix from master
2019-12-03 17:37:35 +08:00
morris
96e6049dab
ethernet:add start stop control
2019-12-03 17:36:48 +08:00
morris
37154d4c08
ethernet:add reference counter
2019-12-03 15:53:39 +08:00
suda-morris
42a462d584
ethernet: add gpio number into config structure
2019-12-03 15:53:39 +08:00
Prasad Alatkar
69c86bc37e
NimBLE: Fix erroneous behaviour of NPL when controller not ready to receive (Backport v4.0)
2019-12-01 17:53:49 +08:00
Ivan Grokhotkov
14f1a30e38
build system: move -fno-rtti link option next to the compile option
...
Previous commit has added `link_options` to the root CMakeLists.txt,
can use it to collect such global link options now.
2019-11-28 11:02:30 +01:00
Jiang Jiang Jian
139913baa2
Merge branch 'bugfix/config_assert_thread_safety_backport_v4.0' into 'release/v4.0'
...
freertos: Fix configASSERT thread safety (backport v4.0)
See merge request espressif/esp-idf!6662
2019-11-28 11:51:13 +08:00
zhiweijian
8d189d9fb4
component/bt: allow adv stop again when adv is already stoped and fix crash when tx prog sometimes
2019-11-27 20:15:08 +08:00
weitianhua
e7a6fdca54
component/bt: Fix bugs in HFP feature
2019-11-27 16:48:26 +08:00
Jiang Jiang Jian
48dfbe05a4
Merge branch 'fixed_queue_v4.0' into 'release/v4.0'
...
component_bt/: Fix_pointer_type_fixed_queue v4.0
See merge request espressif/esp-idf!6846
2019-11-27 16:39:51 +08:00
weitianhua
5d00321d07
fix_pointer_type_fixed_queue
2019-11-27 15:06:15 +08:00
Jiang Jiang Jian
2e8ad19e35
Merge branch 'bugfix/ble_mesh_device_with_wrong_name_on_ios_v4.0' into 'release/v4.0'
...
ble_mesh: fix ble mesh device with wrong name on iOS (v4.0)
See merge request espressif/esp-idf!6521
2019-11-27 10:31:01 +08:00
Angus Gratton
7725ce4999
Merge branch 'fix/esp_flash_no_qe_4.0' into 'release/v4.0'
...
esp_flash: fix the QE write issue in high freq, and support UT for external chips (backport v4.0)
See merge request espressif/esp-idf!6423
2019-11-26 11:34:14 +08:00
Jiang Jiang Jian
e3f0854771
Merge branch 'bugfix/fix_timer_deleted_and_run_broken_callback_v4.0' into 'release/v4.0'
...
esp_timer: fix the bug that when timeout of timer happens try to run callback(v4.0)
See merge request espressif/esp-idf!6769
2019-11-22 17:38:06 +08:00
Michael (XIAO Xufeng)
b5d04a21fb
esp_flash: fix the quad issue for some GD flash chips
...
The GD flash with product ID 40H, is already used in Wrover-nosufix modules.
2019-11-21 12:26:15 +08:00
Michael (XIAO Xufeng)
337b1df430
esp_flash: add unit test for external flash and QE toggling
...
Tests for external flash chips used to controlled by macros, one bin for
one chip. And tests are done manually. This commit refactored the test
so that all 3 chips can all run in single test.
2019-11-21 12:26:15 +08:00
Michael (XIAO Xufeng)
41e64bd79c
esp_flash: rename internal variables for better readability
...
chip_drv in HAL are renamed as host
2019-11-21 12:26:14 +08:00
Michael (XIAO Xufeng)
2b7681ec4f
esp_flash: fix set qe bit and write command issues
...
There used to be dummy phase before out phase in common command
transactions. This corrupts the data.
The code before never actually operate (clear) the QE bit, once it finds
the QE bit is set. It's hard to check whether the QE set/disable
functions work well.
This commit:
1. Cancel the dummy phase
2. Set and clear the QE bit according to chip settings, allowing tests
for QE bits. However for some chips (Winbond for example), it's not
forced to clear the QE bit if not able to.
3. Also refactor to allow chip_generic and other chips to share the same
code to read and write qe bit; let common command and read command share
configure_host_io_mode.
4. Rename read mode to io mode since maybe we will write data with quad
mode one day.
2019-11-21 12:26:14 +08:00
Jiang Jiang Jian
a8f956e590
Merge branch 'bugfix/warning_fix_latest_freertos_v4.0' into 'release/v4.0'
...
Fixed warnings for components driver, esp32 and mbedtls (v4.0)
See merge request espressif/esp-idf!6759
2019-11-20 12:20:02 +08:00
Jiang Jiang Jian
3b879ce8c3
Merge branch 'bugfix/put_more_rx_code_to_iram_v4.0' into 'release/v4.0'
...
Put some rx code to iram (backport v4.0)
See merge request espressif/esp-idf!6492
2019-11-20 11:19:20 +08:00
Jack
5102308b2b
esp_timer: fix the bug that when timeout of timer happens try to run callback, and high priority task delete the timer and break the callback
2019-11-19 22:51:28 +08:00
Shubham Kulkarni
f95a723412
Fixed warnings for components driver, esp32 and mbedtls
2019-11-19 15:02:02 +05:30
Jiang Jiang Jian
88cbc26f4d
Merge branch 'bugfix/btdm_run_out_of_frame_element_v4.0' into 'release/v4.0'
...
components/bt: Fix assert due to no free element form
See merge request espressif/esp-idf!6700
2019-11-19 17:01:32 +08:00
Mahavir Jain
1b53af2e88
freertos: modify configASSERTs around scheduler state check
...
Regression introduced in commit 79e74e5d5f
It is possible that some FreeRTOS APIs are invoked prior to
scheduler start condition (e.g. flash initialization in unicore mode).
In that condition these asserts should not trigger (scheduler state being yet to be started),
hence changes per this fix.
2019-11-19 04:42:27 +00:00
Darian Leung
376107b2ae
freertos: Fix configASSERT thread safety
...
This commit fixes thread safety issues with configASSERT() calls
regarding the value of uxSchedulerSuspended. A false negative
occurs if a context switch to the opposite core occurs in between
the getting the core ID and the assesment.
Closes https://github.com/espressif/esp-idf/issues/4230
2019-11-19 04:42:27 +00:00
Jiang Jiang Jian
c9294aff6f
Merge branch 'bugfix/btdm_disable_some_secrity_mask_v4.0' into 'release/v4.0'
...
components/bt: Disable some unsupported security mask
See merge request espressif/esp-idf!6725
2019-11-19 12:15:36 +08:00
Angus Gratton
99fb9a3f7c
Merge branch 'bugfix/miscellaneous_cmake_fixes' into 'release/v4.0'
...
CMake bugfixes
See merge request espressif/esp-idf!6654
2019-11-19 06:52:07 +08:00
xiehang
e5773cc2fe
esp_wifi: Put some rx code to iram and update phy4180
2019-11-18 02:54:46 +00:00
He Yin Ling
4e6c575fed
Merge branch 'feature/add_env_tag_for_32khz_xtal_uts_v4.0' into 'release/v4.0'
...
soc(esp32&esp32s2beta): Add test_env for 32kHz XTAL unit tests (v4.0)
See merge request espressif/esp-idf!6603
2019-11-18 10:44:20 +08:00
baohongde
8353ecdf36
components/bt: Disable some unsupported security mask
2019-11-17 13:45:32 +08:00
Mahavir Jain
ebc2e7bce0
Merge branch 'fix/NimBLE_protocomm_mngr' into 'release/v4.0'
...
NimBLE: Fix bug in `protocomm_nimble` chararcteristic access callback (release/v4.0)
See merge request espressif/esp-idf!6703
2019-11-15 19:11:19 +08:00
Prasad Alatkar
c595b2fa8c
NimBLE: Fix bug in protocomm_nimble
chararcteristic access callback (release/v4.0)
...
Fixes bug in `protocomm_nimble` while writing to characteristic with length greater than MTU value.
2019-11-14 15:24:47 +05:30
lly
eb95bc68c4
ble_mesh: fix ble mesh device with wrong name on iOS
2019-11-14 16:56:34 +08:00
baohongde
f9f49107ca
components/bt: Fix assert due to no free element form
2019-11-14 15:20:54 +08:00
KonstantinKondrashov
fae116bb2e
soc/esp32: Add test_env for 32kHz XTAL unit tests
2019-11-14 12:26:43 +08:00
lly
f22d46515b
ble_mesh: miscellaneous modifications
...
1. Clean up client_common.c
2. Clean up esp_ble_mesh directory
3. Update Kconfig.in
4. Format esp_ble_mesh files
2019-11-14 11:59:21 +08:00
lly
27cb3d7f72
ble_mesh: adapt ble mesh with nimble host
2019-11-14 10:42:30 +08:00
lly
a302d210b9
ble_mesh: add events for configuration server model
2019-11-14 10:39:55 +08:00
lly
a32c72a1b2
ble_mesh: add Generic/Sensor/Time and Scenes/Lighting Server models
2019-11-14 10:39:49 +08:00
lly
f1850b54f3
ble_mesh: add proxy client functionality
2019-11-14 10:39:40 +08:00
lly
c85abf87b5
ble_mesh: add ble mesh friend node event
2019-11-14 10:39:17 +08:00
lly
9029ccd21b
ble_mesh: add low power node api and event
2019-11-14 10:39:13 +08:00
lly
eaeb36375a
ble_mesh: add heartbeat message recv callback
2019-11-14 10:39:08 +08:00
lly
805bc06127
ble_mesh: modify health server model callbacks
2019-11-14 10:39:04 +08:00
lly
4702cd1b51
ble_mesh: add separate advertising buffers for relay packets
2019-11-14 10:38:59 +08:00
Jiang Jiang Jian
720528ef11
Merge branch 'feature/nimble_host_esp_ble_mesh_v4.0' into 'release/v4.0'
...
components/bt: Add support of NimBLE host in ESP BLE Mesh (backport v4.0)
See merge request espressif/esp-idf!6619
2019-11-13 21:32:23 +08:00
Jiang Jiang Jian
6c7f72cc1b
Merge branch 'bugfix/http_client_buffer_overflow_v4.0' into 'release/v4.0'
...
Fix HTTP client buffer overflow (v4.0)
See merge request espressif/esp-idf!6666
2019-11-13 16:24:51 +08:00
Jiang Jiang Jian
7061c8aec2
Merge branch 'bugfix/mdns_invalid_hostname_queries_v4.0' into 'release/v4.0'
...
mdns: fix crash for hostname queries (backport v4.0)
See merge request espressif/esp-idf!6504
2019-11-13 16:19:19 +08:00
David Cermak
3ba8ae7a62
http_client: added comments to http header generation function
2019-11-12 09:59:50 +01:00
David Cermak
2c27c55679
http_client: possible buffer overflow fixed when determining last header item to be written
...
closes IDF-694
2019-11-12 09:59:50 +01:00
Jiang Jiang Jian
077b727608
Merge branch 'bugfix/backport_some_wifi_fixes_1009_v4.0' into 'release/v4.0'
...
esp_wifi: fix some WiFi bugs 1009 (backport v4.0)
See merge request espressif/esp-idf!6299
2019-11-12 11:27:40 +08:00
Angus Gratton
79f36e85d5
Merge branch 'fix/ci_ut_psram_wroverb_v4.0' into 'release/v4.0'
...
ci: fix one ut issue when using Wrover-B module with newer ver of PSRAM (backport v4.0)
See merge request espressif/esp-idf!6592
2019-11-11 18:38:53 +08:00
Renz Christian Bagaporo
d49077c13b
spiffs: fix build issue on clean project
...
From issue:
I did some poking around in components/spiffs/project_include.cmake and
it looks like what is failing is it isn't getting an offset from
parttool.py. I think what the problem is that the parttool.py cannot
determine the offset of the storage partition as I can't run menuconfig
to set the custom partitions.
I have tested that this problem is solvable by manually setting the
custom partitions in sdkconfig and that is a workaround but there should
be at least a better error message in the configuration when it cannot
find the partition as this would also happen if the partition name was
misspelled.
Closes https://github.com/espressif/esp-idf/issues/4236
2019-11-11 18:11:12 +08:00
Renz Christian Bagaporo
bc3134594d
esptool_py: add missing phony build targets for CMake
...
Adds targets erase_flash and monitor for users not using idf.py.
Closes https://github.com/espressif/esp-idf/issues/2420 .
2019-11-11 18:02:32 +08:00
Renz Christian Bagaporo
8300945189
cxx: force pthread to appear later in link line
2019-11-11 18:01:45 +08:00
Ivan Grokhotkov
088ac409d7
Merge branch 'bugfix/partition_cmake_md5_v4.0' into 'release/v4.0'
...
cmake: fix partition_table cmake when using md5 checksum (v4.0)
See merge request espressif/esp-idf!6640
2019-11-09 21:17:08 +08:00
Jiang Jiang Jian
14ce4cde2e
Merge branch 'bugfix/wifi_internal_memory_v4.0' into 'release/v4.0'
...
wifi: Include DMA reserved pool when allocating internal-only memory (v4.0)
See merge request espressif/esp-idf!6627
2019-11-09 13:47:33 +08:00
Wu Jian Gang
83cd515817
cmake: fix partition_table cmake when using md5 checksum
2019-11-08 18:52:18 +08:00
Angus Gratton
d48d9a1c88
Merge branch 'bugfix/i2s-bootloader-random-disable_v4.0' into 'release/v4.0'
...
bugfix(i2s_bootloader_random_disable): fix bug about i2s bootloader_random_disable for release/v4.0
See merge request espressif/esp-idf!6602
2019-11-08 17:12:02 +08:00
Michael (XIAO Xufeng)
f54cab62a2
ci: fix one ut issue when using Wrover-B module with newer ver of PSRAM
...
The workaround for PSRAM that will occupy an SPI bus is enabled only when:
1. used on 32MBit ver 0 PSRAM.
2. work at 80MHz.
The test used to only check 32MBit by the config option, but for PSRAM
on Wrover-B module seems to use a newer version of 32MBit PSRAM. So it
expects the workaround to be enabled, but actually not.
This commit split the unit test into two parts:
1. check all SPI buses are available, for all configs except psram_hspi
and psram_vspi, run on regular runners (including Wrover and Wrover-B).
a hidden option is enabled so that the compiler knows it's not building
psram_hspi or psram_vspi.
2. check the specified bus are acquired, for config psram_hspi and
psram_vspi. This only run on special runner (legacy Wrover module).
2019-11-08 08:25:35 +00:00
Angus Gratton
c64d4236fb
secure boot: In Reflashable mode, make sure the bootloader digest updates
...
... whenever the bootloader.bin is updated
2019-11-08 11:39:01 +08:00
Angus Gratton
90568fbf00
secure boot: Fix bug where verification key was not embedded in app
2019-11-08 11:39:01 +08:00
Angus Gratton
475a746e46
bt: Include DMA reserved pool when allocating internal-only memory
...
Fix for root cause of https://github.com/espressif/esp-idf/issues/3592
2019-11-08 11:37:46 +08:00
Angus Gratton
947fc14a3f
wifi: Include DMA reserved pool when allocating internal-only memory
...
Fix for root cause of https://github.com/espressif/esp-idf/issues/3592
2019-11-08 11:37:46 +08:00
Hrishikesh Dhayagude
9cc272978c
nimble: Miscellaneous changes
...
1. Update NimBLE submodule as per changes in adv interval and stop port
2. Make changes in ESP BLE Mesh NimBLE host code for the same
2019-11-06 18:27:14 +05:30
Hrishikesh Dhayagude
5cb6a49c1e
components/bt: Add support of NimBLE host in ESP BLE Mesh
2019-11-06 18:26:30 +05:30