Sergei Silnov
ca79a5ecb3
idf.py: add python path to flash instructions
...
Closes https://github.com/espressif/esptool/issues/449
2019-11-05 11:07:03 +01:00
David Cermak
1d904fdd81
http_client: added comments to http header generation function
2019-11-05 09:53:29 +01:00
David Cermak
9c0844da3f
http_client: possible buffer overflow fixed when determining last header item to be written
...
closes IDF-694
2019-11-05 09:44:06 +01:00
KonstantinKondrashov
e8d3b80e4b
mbedtls: Add an UT for performance RSA key operations
...
(New) - Montgomery exponentiation: Z = X ^ Y mod M (HAC 14.94)
keysize = 2048 bits
RSA key operation (performance): public [21894 us], private [199119 us]
RSA key operation (performance): public [18768 us], private [189051 us]
RSA key operation (performance): public [16242 us], private [190821 us]
keysize = 3072 bits
RSA key operation (performance): public [39762 us], private [437480 us]
RSA key operation (performance): public [36550 us], private [449422 us]
RSA key operation (performance): public [40536 us], private [443451 us]
keysize = 4096 bits
RSA key operation (performance): public [65671 us], private [885215 us]
RSA key operation (performance): public [60770 us], private [880936 us]
RSA key operation (performance): public [68951 us], private [872027 us]
(Old) - Sliding-window exponentiation: Z = X ^ Y mod M (HAC 14.85)
keysize = 2048 bits
RSA key operation (performance): public [93206 us], private [280189 us]
RSA key operation (performance): public [93060 us], private [278893 us]
RSA key operation (performance): public [97520 us], private [283252 us]
keysize = 3072 bits
RSA key operation (performance): public [293614 us], private [858157 us]
RSA key operation (performance): public [289902 us], private [843701 us]
RSA key operation (performance): public [291495 us], private [845232 us]
keysize = 4096 bits
RSA key operation (performance): public [653192 us], private [1912126 us]
RSA key operation (performance): public [656661 us], private [1901792 us]
RSA key operation (performance): public [641390 us], private [1938911 us]
2019-11-05 16:33:11 +08:00
KonstantinKondrashov
5ed8388f6b
mbedtls: Add Montgomery exponentiation implementation (HAC 14.94)
...
It gave us a better performance of RSA operations. (2~11 times)
The old modexp implementation (Z = X ^ Y mod M) loaded all the data into
the hw registers and was waiting for completion, but due to
the hardware RSA implementation, the calculations always started with 4096 bit,
which took a lot of time.
Measurement results (measurements were made for keys: 2048, 3072 and 4096 bits)
(Old) - Sliding-window exponentiation (HAC 14.85):
keysize = 2048 bits
RSA key operation (performance): public [93206 us], private [280189 us]
keysize = 3072 bits
RSA key operation (performance): public [293614 us], private [858157 us]
keysize = 4096 bits
RSA key operation (performance): public [653192 us], private [1912126 us]
Instead (Old) - Sliding-window exponentiation (HAC 14.85) was implemented
(New) - Montgomery exponentiation (HAC 14.94) which showed
better performance on private and public keys.
keysize = 2048 bits
RSA key operation (performance): public [14504 us], private [149456 us]
keysize = 3072 bits
RSA key operation (performance): public [35073 us], private [392743 us]
keysize = 4096 bits
RSA key operation (performance): public [58650 us], private [787186 us]
For this reason, the old implementation was removed
and the MBEDTLS_HARDWARE_MPI option was turned on by default.
Why the MPI_INTERRUPT option is removed:
the old implementation used calculations on the hardware and
it took a lot of time (10ms - 500ms). And in order not to stand idle
while waiting for completion, an interrupt option was added.
This made it possible to carry out other tasks during the calculation,
and this one to block. The new method is free from such a drawback and
the maximum duration of one RSA HW operation does not exceed 70us (usually 2-70 μs).
This option is no longer needed.
Closes: IDF-965
2019-11-05 16:33:11 +08:00
Renz Christian Bagaporo
9d33ad5e25
cmake: support git worktree
...
Use rev-parse to get the HEAD directory instead of manually looking for
it. This method works in the main repository, worktrees and submodules.
Closes https://github.com/espressif/esp-idf/issues/4136
2019-11-05 15:32:35 +08:00
Angus Gratton
03d07741fd
Merge branch 'bugfix/esp32s2beta_vfs_performance' into 'master'
...
VFS: Fix performance test for esp32s2beta
Closes IDF-1024
See merge request espressif/esp-idf!6549
2019-11-05 12:42:52 +08:00
Angus Gratton
302510cd80
Merge branch 'feature/add_env_tag_for_32khz_xtal_uts' into 'master'
...
soc(esp32&esp32s2beta): Add test_env for 32kHz XTAL unit tests
See merge request espressif/esp-idf!6555
2019-11-05 12:05:24 +08:00
Angus Gratton
ffdb57e04d
Merge branch 'bugfix/http_client_message_complete_callback_invocation' into 'master'
...
Fix issue in http client regarding `message_complete` callback invocation
Closes IDFGH-2040
See merge request espressif/esp-idf!6413
2019-11-05 12:02:10 +08:00
Chen Zheng Wei
b4a02c57c2
bugfix(i2s_bootloader_random_disable): fix bug about i2s bootloader_random_disable
...
bootloader_random_disable disables the ADC incorrectly, causing the ADC to sometimes fail to work. Fix this bug
closes https://github.com/espressif/esp-idf/issues/3973
2019-11-05 10:36:53 +08:00
Angus Gratton
8b48a8e72e
Merge branch 'feature/efuse_example' into 'master'
...
examples: Add an example efuse API usage and the group writing mode
Closes IDF-773
See merge request espressif/esp-idf!5810
2019-11-05 10:13:21 +08:00
Roland Dobai
70b6f5397f
Fix Python requirement for setuptools
2019-11-04 16:18:37 +01:00
Angus Gratton
ad79772e7e
Merge branch 'bugfix/cmake_sdkconfig_issues' into 'master'
...
cmake: fix sdkconfig related issues
Closes IDF-1086
See merge request espressif/esp-idf!6436
2019-11-04 18:30:49 +08:00
Angus Gratton
13ff57f133
Merge branch 'feature/ipc_runs_with_caller_priority' into 'master'
...
esp_common: IPC works with the priority of the caller's task
Closes IDF-78
See merge request espressif/esp-idf!6191
2019-11-04 18:29:14 +08:00
Angus Gratton
f80004a74e
Merge branch 'feat/spi_flash_verify_encrypted_write' into 'master'
...
spi_flash: support to verify written encrypted data
Closes IDF-142
See merge request espressif/esp-idf!6467
2019-11-04 18:26:07 +08:00
Angus Gratton
c5ef1cae04
Merge branch 'feature/perfmon' into 'master'
...
Performance monitor component
See merge request espressif/esp-idf!4705
2019-11-04 18:25:14 +08:00
Angus Gratton
c6f1a32c5c
Merge branch 'bugfix/add_swp_to_gitignore' into 'master'
...
.gitignore: added *.swp in gitignore
See merge request espressif/esp-idf!6563
2019-11-04 18:15:57 +08:00
Hrudaynath Dhabe
87ab9df398
.gitignore: added *.swp in gitignore
2019-11-04 18:15:57 +08:00
Angus Gratton
9ac55b5e55
Merge branch 'fix/ci_ut_psram_wroverb' into 'master'
...
ci: fix one ut issue when using Wrover-B module with newer ver of PSRAM
See merge request espressif/esp-idf!6553
2019-11-04 18:12:44 +08:00
Ivan Grokhotkov
71b73e61e1
mbedtls: Enable SHA hardware acceleration by default
2019-11-04 10:48:08 +01:00
Ivan Grokhotkov
589a1f216f
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-11-04 10:48:08 +01:00
Anton Maklakov
c2db6a14c4
Introduce esp-2019r2 toolchain for both ESP32 and ESP32s2 targets
...
Adds support of POSIX libs like regex.h
closes https://github.com/espressif/esp-idf/issues/2407
closes https://github.com/espressif/esp-idf/issues/4257
ref https://github.com/espressif/esp-idf/issues/271
Also there are some changes in the toolchain's changelog
2019-11-04 16:14:57 +07:00
Angus Gratton
49193beb6d
Merge branch 'bugfix/reenable_esp_event_tests' into 'master'
...
esp_event: reenable esp_event tests
See merge request espressif/esp-idf!6371
2019-11-04 15:07:34 +08:00
Angus Gratton
0e9c2cdc93
Merge branch 'bugfix/esp32s2beta_enable_protocol_examples' into 'master'
...
Bugfix/esp32s2beta enable protocol examples
Closes IDF-1027
See merge request espressif/esp-idf!6566
2019-11-04 14:46:57 +08:00
Mahavir Jain
e1a6846ac3
examples/ota: disable WiFi power save mode for optimal performance
2019-11-04 12:15:19 +05:30
Matt Phillips
a51fe89778
Update OTA Documentation to clarify grammar.
...
The sentence about CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE was worded strangely.
I updated it to better explain the functionality.
Closes https://github.com/espressif/esp-idf/pull/4228
2019-11-04 12:15:19 +05:30
Mahavir Jain
4dcffdb0a9
esp_http_client: fix issue where http parser was not invoking message_complete
callback
...
https://github.com/espressif/esp-idf/issues/2625
https://github.com/espressif/esp-idf/issues/4209
2019-11-04 12:15:19 +05:30
Mahavir Jain
917a406c0a
Logging improvements in OTA example and component
2019-11-04 12:15:19 +05:30
Mahavir Jain
de9549936d
examples: fix handle passed to esp_https_ota_is_complete_data_received
2019-11-04 12:15:19 +05:30
Angus Gratton
b7c2c93ecc
Merge branch 'bugfix/wifi_internal_memory' into 'master'
...
wifi: Include DMA reserved pool when allocating internal-only memory
Closes WIFI-883
See merge request espressif/esp-idf!6545
2019-11-04 13:55:49 +08:00
Krzysztof Budzynski
efb51d1075
Merge branch 'feature/ethernet-kit-v1.1' into 'master'
...
Provide Ethernet-Kit V1.1 Getting Started Guide
See merge request espressif/esp-idf!6259
2019-11-04 10:44:00 +08:00
Krzysztof Budzynski
0abb3b99c1
Update missing description of board A and B connectors. Add a note about incorrect GPIO pin labels on the silkscreen besides the function switch.
2019-11-04 10:44:00 +08:00
Renz Christian Bagaporo
2dd74d4b7a
ci: remove semicolon for cmake build system test
2019-11-03 16:52:06 +08:00
Renz Christian Bagaporo
42d4f39a9a
cmake: consider sdkconfig defaults value from environment
2019-11-03 16:43:58 +08:00
Renz Christian Bagaporo
b0bb53de06
ci: test multiple sdkconfig defaults
2019-11-03 16:43:58 +08:00
Renz Christian Bagaporo
bf1df9b5b5
cmake: do not check if sdkconfig exists
2019-11-03 16:43:58 +08:00
Renz Christian Bagaporo
d43cc4fa4b
cmake: allow multiple sdkconfig defaults to be specified
2019-11-03 16:43:58 +08:00
Renz Christian Bagaporo
f356d54365
esp_event: revert changes in !5702
2019-11-03 16:19:30 +08:00
Michael (XIAO Xufeng)
748b79e94a
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-03 03:07:37 +00:00
Jiang Jiang Jian
363b573e60
Merge branch 'bugfix/fix_tkip_ccmp_replay_attack_detection_algorithm' into 'master'
...
esp_wifi: fix tkip/ccmp replay detection algorithm
Closes WIFI-1012
See merge request espressif/esp-idf!6388
2019-11-02 23:42:10 +08:00
liu zhifu
c9dfdc0566
esp_wifi: fix TKIP/CCMP replay attack detection algorithm
2019-11-02 14:49:21 +00:00
tatsutaigu
e6ad82a0b2
idf.py: Add --before flag to esptool.py call
...
Merges https://github.com/espressif/esp-idf/pull/4125
2019-11-01 20:00:56 +01:00
Ivan Grokhotkov
fc9eddad5c
Merge branch 'bugfix/test_build_system_rsync' into 'master'
...
ci: fix regression in build system tests
See merge request espressif/esp-idf!6576
2019-11-01 23:55:23 +08:00
Ivan Grokhotkov
88b5a9c4d6
ci: fix regression in build system tests
...
On macOS, rsync --exclude option accepts absolute paths as well as
relative ones. On Linux, it doesn't, which results in endless recursive
copying of test_build_system directory.
2019-11-01 15:43:21 +01:00
Ivan Grokhotkov
28b10e633d
Merge branch 'bugfix/esp32s2beta_uxTopUsedPriority' into 'master'
...
freertos: fix defining uxTopUsedPriority for esp32s2beta
See merge request espressif/esp-idf!6378
2019-11-01 18:51:00 +08:00
Jiang Jiang Jian
d7e9d87aef
Merge branch 'bugfix/bugs_in_a2dp_task' into 'master'
...
components/bt: Not post message to a2dp ctrl queue from btc queue, just call it.
Closes BT-436
See merge request espressif/esp-idf!6019
2019-11-01 18:46:21 +08:00
Ivan Grokhotkov
9ffd444e52
Merge branch 'feature/ci_macos_build_system_test' into 'master'
...
ci: add CMake build system test for macOS
See merge request espressif/esp-idf!6552
2019-11-01 18:41:30 +08:00
Roland Dobai
84bbafb6a4
VFS: Fix performance test for esp32s2beta
2019-11-01 09:40:16 +00:00
Shubham Kulkarni
0dafdd2984
Merge branch 'bugfix/CMake_esp_https_ota_dependencies' into master
...
components/esp_https_ota: Changes in public requirement list for CMake and esp_ota_ops.h is included in esp_https_ota.c
bootloader_support is added in public requirements of CMake
bootloader_common.h is included in esp_https_ota.h
Closes https://github.com/espressif/esp-idf/issues/4198
Closes IDFGH-2066
2019-11-01 12:50:17 +05:30
Jiang Jiang Jian
cb6e2fc858
Merge branch 'feature/wifi_pmk_caching' into 'master'
...
wifi: Add PMK caching feature for station WPA2-enterprise
Closes IDF-969
See merge request espressif/esp-idf!6156
2019-11-01 15:11:20 +08:00