]> granicus.if.org Git - esp-idf/log
esp-idf
5 years agoidf.py: Add check for new cmake cache values
Sergei Silnov [Mon, 3 Jun 2019 10:37:52 +0000 (12:37 +0200)]
idf.py: Add check for new cmake cache values

5 years agoMerge branch 'bugfix/reduce_ci_config_file_size_v3.3' into 'release/v3.3'
He Yin Ling [Tue, 27 Aug 2019 02:47:42 +0000 (10:47 +0800)]
Merge branch 'bugfix/reduce_ci_config_file_size_v3.3' into 'release/v3.3'

CI: use parallel attribute in CI config file

See merge request espressif/esp-idf!5895

5 years agoApply suggestion to tools/ci/build_examples_cmake.sh
He Yin Ling [Mon, 26 Aug 2019 03:00:46 +0000 (11:00 +0800)]
Apply suggestion to tools/ci/build_examples_cmake.sh

5 years agoApply suggestion to tools/ci/build_examples.sh
He Yin Ling [Mon, 26 Aug 2019 03:00:33 +0000 (11:00 +0800)]
Apply suggestion to tools/ci/build_examples.sh

5 years agoCI: use parallel attribute in CI config file
He Yin Ling [Sun, 28 Apr 2019 07:29:05 +0000 (15:29 +0800)]
CI: use parallel attribute in CI config file

5 years agoMerge branch 'bugfix/improve_spi_timing_for_flash_v3.3' into 'release/v3.3'
Jiang Jiang Jian [Tue, 20 Aug 2019 08:33:57 +0000 (16:33 +0800)]
Merge branch 'bugfix/improve_spi_timing_for_flash_v3.3' into 'release/v3.3'

bugfix(flash): improve spi cs timing settings for flash (backport v3.3)

See merge request espressif/esp-idf!5514

5 years agoMerge branch 'bugfix/fix_flash_read_error_in_dio_mode_v3.3' into 'release/v3.3'
Angus Gratton [Mon, 19 Aug 2019 05:03:54 +0000 (13:03 +0800)]
Merge branch 'bugfix/fix_flash_read_error_in_dio_mode_v3.3' into 'release/v3.3'

bugfix(flash): add spi dio address bitlen configure in psram init (backport v3.3)

See merge request espressif/esp-idf!5788

5 years agobugfix(flash): add spi dio address bitlen configure in psram init
chenjianqiang [Wed, 14 Aug 2019 12:57:30 +0000 (20:57 +0800)]
bugfix(flash): add spi dio address bitlen configure in psram init

5 years agoMerge branch 'feature/dport_eco_revision2_v3.3' into 'release/v3.3'
Angus Gratton [Fri, 16 Aug 2019 05:14:49 +0000 (13:14 +0800)]
Merge branch 'feature/dport_eco_revision2_v3.3' into 'release/v3.3'

make dport workaround depend on chip revision (v3.3)

See merge request espressif/esp-idf!5766

5 years agoMerge branch 'bugfix/link_test_components_to_executable_directly' into 'release/v3.3'
Angus Gratton [Thu, 15 Aug 2019 06:59:56 +0000 (14:59 +0800)]
Merge branch 'bugfix/link_test_components_to_executable_directly' into 'release/v3.3'

cmake: link test components to executable directly

See merge request espressif/esp-idf!5739

5 years agoefuse: update the scheme of getting chip revision
suda-morris [Mon, 29 Jul 2019 03:35:00 +0000 (11:35 +0800)]
efuse: update the scheme of getting chip revision

5 years agoMerge branch 'bugfix/xTaskIncrementTick_v3.3' into 'release/v3.3'
Angus Gratton [Tue, 13 Aug 2019 05:42:26 +0000 (13:42 +0800)]
Merge branch 'bugfix/xTaskIncrementTick_v3.3' into 'release/v3.3'

freertos: Fix xTaskIncrementTick for unwind the Tick for CPU1 (v3.3)

See merge request espressif/esp-idf!5034

5 years agoMerge branch 'bugfix/gpio_intr_enable_bug_v3.3' into 'release/v3.3'
Angus Gratton [Mon, 12 Aug 2019 05:00:15 +0000 (13:00 +0800)]
Merge branch 'bugfix/gpio_intr_enable_bug_v3.3' into 'release/v3.3'

bugfix(GPIO):  Fixed GPIO interrupt bug for v3.3

See merge request espressif/esp-idf!5650

5 years agoMerge branch 'bugfix/cmake_extra_component_dirs_v3.3' into 'release/v3.3'
Angus Gratton [Mon, 12 Aug 2019 04:44:19 +0000 (12:44 +0800)]
Merge branch 'bugfix/cmake_extra_component_dirs_v3.3' into 'release/v3.3'

CI: additional CMake build system tests wrt EXTRA_COMPONENT_DIRS (v3.3)

See merge request espressif/esp-idf!5109

5 years agoMerge branch 'bugfix/hwcrypt_fault_inj_v3.3' into 'release/v3.3'
Angus Gratton [Sun, 11 Aug 2019 06:04:36 +0000 (14:04 +0800)]
Merge branch 'bugfix/hwcrypt_fault_inj_v3.3' into 'release/v3.3'

AES & SHA fault injection checks (backport v3.3)

See merge request espressif/esp-idf!5710

5 years agosha: Add fault injection checks reading hash digest state
Angus Gratton [Wed, 22 May 2019 00:18:55 +0000 (10:18 +1000)]
sha: Add fault injection checks reading hash digest state

Vulnerability reported by LimitedResults under Espressif Bug Bounty Program.

5 years agoaes: Add fault injection checks when writing key to hardware
Angus Gratton [Tue, 21 May 2019 08:12:42 +0000 (18:12 +1000)]
aes: Add fault injection checks when writing key to hardware

Vulnerability reported by LimitedResults under Espressif Bug Bounty Program.

5 years agocmake: link test components to executable directly
Renz Christian Bagaporo [Fri, 9 Aug 2019 07:18:06 +0000 (15:18 +0800)]
cmake: link test components to executable directly

5 years agohwcrypto: Add AES fault injection check
Angus Gratton [Fri, 17 May 2019 19:54:40 +0000 (03:54 +0800)]
hwcrypto: Add AES fault injection check

Hardware AES-CBC performance changes:

Release config 11.0MB/sec -> 10.8MB/sec
Debug config 9.4MB/sec -> 9.8MB/sec

(Unrolling the loop to optimize the check improves
performance at -Og, even with the fault check.)

5 years agoMerge branch 'bugfix/sec_boot_ota_fail_v33' into 'release/v3.3'
Angus Gratton [Tue, 6 Aug 2019 06:51:06 +0000 (14:51 +0800)]
Merge branch 'bugfix/sec_boot_ota_fail_v33' into 'release/v3.3'

Bugfix: ota fails with secure boot on for image size greater than 3.2MB (backport v3.3)

See merge request espressif/esp-idf!5581

5 years agobugfix(GPIO): Fixed the bug that GPIO enables interrupts on one core,
kooho [Thu, 18 Jul 2019 03:34:49 +0000 (11:34 +0800)]
bugfix(GPIO): Fixed the bug that GPIO enables interrupts on one core,
              but registers interrupt service routines on another core for release/v3.3

5 years agoAdd mmu pages available check in non-secure image hash check path.
Vikram Dattu [Wed, 19 Jun 2019 11:53:44 +0000 (17:23 +0530)]
Add mmu pages available check in non-secure image hash check path.

Made MMU pages available check in `esp_image_format.c`
This now makes it possible to map and process bootoader image as well in chunks when image doesn't fit completely into available free pages.

Signed-off-by: Vikram Dattu <vikram.dattu@espressif.com>
5 years agoChanged log level for spi_master
Vikram Dattu [Tue, 18 Jun 2019 08:34:32 +0000 (14:04 +0530)]
Changed log level for spi_master

There are lot of prints of `Allocate TX buffer for DMA`
Changed these from `ESP_LOGI` to `ESP_LOGD`

Signed-off-by: Vikram Dattu <vikram.dattu@espressif.com>
5 years agoBugfix: ota fails with secure boot on for image size greater than 3.2MB
Vikram Dattu [Sat, 15 Jun 2019 09:43:51 +0000 (15:13 +0530)]
Bugfix: ota fails with secure boot on for image size greater than 3.2MB

When an OTA image size is larger than 50 MMU pages (approx. 3.2 MB), secure_boot_generate fails while trying to map it into memory:

https://github.com/espressif/esp-idf/blob/master/components/bootloader_support/src/esp32/secure_boot.c#L72

Instead of trying to map the whole image, secure boot code should split the image into chunks and map them one by one, like it is done in esp_image_format.c:
https://github.com/espressif/esp-idf/blob/master/components/bootloader_support/src/esp_image_format.c#L371

Signed-off-by: Vikram Dattu <vikram.dattu@espressif.com>
5 years agoMerge branch 'bugfix/btdm_sleep_twice_v3.3' into 'release/v3.3' v3.3-rc
Jiang Jiang Jian [Sun, 4 Aug 2019 07:51:36 +0000 (15:51 +0800)]
Merge branch 'bugfix/btdm_sleep_twice_v3.3' into 'release/v3.3'

bugfix btdm sleep twice after wakeup request

See merge request espressif/esp-idf!5638

5 years agoMerge branch 'doc/resolve-pdf-building-issues_v3.3' into 'release/v3.3'
Angus Gratton [Thu, 1 Aug 2019 06:09:57 +0000 (14:09 +0800)]
Merge branch 'doc/resolve-pdf-building-issues_v3.3' into 'release/v3.3'

(backport v3.3) Replace gif images on EN and zh_CN index pages with identical png images for...

See merge request espressif/esp-idf!5655

5 years agoMerge branch 'bugfix/libsodium_test_timeouts_v3.3' into 'release/v3.3'
Angus Gratton [Tue, 30 Jul 2019 18:18:50 +0000 (02:18 +0800)]
Merge branch 'bugfix/libsodium_test_timeouts_v3.3' into 'release/v3.3'

test: Set timeout of libsodium ed25519_convert test to 60s (v3.3)

See merge request espressif/esp-idf!5554

5 years agoReplace gif images on EN and zh_CN index pages with identical png images for successf...
Kirill Chalov [Tue, 30 Jul 2019 07:36:58 +0000 (15:36 +0800)]
Replace gif images on EN and zh_CN index pages with identical png images for successful building of PDFs on ReadTheDocs.

5 years agotest: Set timeout of libsodium ed25519_convert test to 60s
Angus Gratton [Wed, 17 Jul 2019 02:24:29 +0000 (12:24 +1000)]
test: Set timeout of libsodium ed25519_convert test to 60s

Test takes 28s-29s to run in some configs, can fail in CI.

5 years agoMerge branch 'bugfix/docs_recover_some_build_time_v3.3' into 'release/v3.3'
Angus Gratton [Mon, 29 Jul 2019 11:16:46 +0000 (19:16 +0800)]
Merge branch 'bugfix/docs_recover_some_build_time_v3.3' into 'release/v3.3'

docs: Remove building of zipped HTML docs from build process and consequently...

See merge request espressif/esp-idf!5639

5 years agodocs: Remove building of zipped HTML docs from build process and consequently from...
krzychb [Sat, 27 Jul 2019 23:16:47 +0000 (01:16 +0200)]
docs: Remove building of zipped HTML docs from build process and consequently from Downloads as many users don't use that. We are still providing PDF documentation for people who prefer viewing docs off-line. Removal of this build step is expected to save almost 10 minutes of build time and resolve issue of build failures because of hitting 40 min build time limit on Read The Docs.

5 years agobugfix btdm sleep twice after wakeup request
Tian Hao [Sat, 27 Jul 2019 09:03:55 +0000 (17:03 +0800)]
bugfix btdm sleep twice after wakeup request

This problem may cause HCI send command timeout.

When host call VHCI api to do btdm_wakeup_request, then controller
wakeup process will be handled in ISR and controller task context.
As host task priority is lower than controller task and ISR,
it will cause an incorrect behavior that before VHCI take the
rx_flow_on_semaphore, controller sleep again, then VHCI cannot take
the semaphore and has to wait the automatic wakeup.

5 years agoMerge branch 'bugfix/fix_mcpwm_example_memory_bug_v3.3' into 'release/v3.3'
Angus Gratton [Sat, 27 Jul 2019 09:27:41 +0000 (17:27 +0800)]
Merge branch 'bugfix/fix_mcpwm_example_memory_bug_v3.3' into 'release/v3.3'

Bugfix(example):  Fixed MCPWM example bug for release/v3.3

See merge request espressif/esp-idf!5544

5 years agoMerge branch 'bugfix/esp_event_add_missing_include_v3.3' into 'release/v3.3'
Mahavir Jain [Fri, 26 Jul 2019 11:44:32 +0000 (19:44 +0800)]
Merge branch 'bugfix/esp_event_add_missing_include_v3.3' into 'release/v3.3'

esp_event: add missing header include (v3.3)

See merge request espressif/esp-idf!5632

5 years agoesp_event: add missing header include
Mahavir Jain [Tue, 9 Jul 2019 06:38:31 +0000 (12:08 +0530)]
esp_event: add missing header include

Required header was indirectly getting resolved through lwip includes,
apparently does not work if application is not using lwip networking stack.

5 years agoMerge branch 'bugfix/tcp_transport_http_client' into 'release/v3.3'
Mahavir Jain [Thu, 25 Jul 2019 11:43:27 +0000 (19:43 +0800)]
Merge branch 'bugfix/tcp_transport_http_client' into 'release/v3.3'

Minor bugfixes in esp_http_client and tcp_transport (backport v3.3)

See merge request espressif/esp-idf!5218

5 years agotcp_transport: Fix case sensitive header comparison
Jitin George [Tue, 12 Mar 2019 13:16:04 +0000 (18:46 +0530)]
tcp_transport: Fix case sensitive header comparison

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

5 years agoesp_http_client: Fix header sent event bug
Jitin George [Thu, 14 Mar 2019 05:50:02 +0000 (11:20 +0530)]
esp_http_client: Fix header sent event bug

5 years agoMerge branch 'bugfix/app_update_tests_v3.3' into 'release/v3.3'
Angus Gratton [Thu, 18 Jul 2019 10:25:01 +0000 (18:25 +0800)]
Merge branch 'bugfix/app_update_tests_v3.3' into 'release/v3.3'

app_update: Add [timeout=90] for UTs (v3.3)

See merge request espressif/esp-idf!5564

5 years agoMerge branch 'bugfix/fix_the_watchdog_during_WiFi_scan_BLE_scan_v3.3' into 'release...
Jiang Jiang Jian [Thu, 18 Jul 2019 02:44:31 +0000 (10:44 +0800)]
Merge branch 'bugfix/fix_the_watchdog_during_WiFi_scan_BLE_scan_v3.3' into 'release/v3.3'

fix the watchdog bug during WiFi scan and BLE scan(v3.3)

See merge request espressif/esp-idf!5506

5 years agoapp_update: Add [timeout=90]
KonstantinKondrashov [Wed, 17 Jul 2019 02:28:50 +0000 (10:28 +0800)]
app_update: Add [timeout=90]

5 years agoMerge branch 'bugfix/i2s_apll_clock_fix_v3.3' into 'release/v3.3'
Ivan Grokhotkov [Wed, 17 Jul 2019 06:33:59 +0000 (14:33 +0800)]
Merge branch 'bugfix/i2s_apll_clock_fix_v3.3' into 'release/v3.3'

driver/i2s: fix apll_clock_rate for different sample rates (v3.3)

See merge request espressif/esp-idf!5448

5 years agoMerge branch 'bugfix/spi_flash_mmap_stale_data_issue_v3.3' into 'release/v3.3'
Angus Gratton [Wed, 17 Jul 2019 06:26:33 +0000 (14:26 +0800)]
Merge branch 'bugfix/spi_flash_mmap_stale_data_issue_v3.3' into 'release/v3.3'

spi_flash: fix stale read issue for memory mapped partition (v3.3)

See merge request espressif/esp-idf!5435

5 years agoMerge branch 'bugfix/fix_flash_read_error_in_dio_26MHz_mode_v3.3' into 'release/v3.3'
Jiang Jiang Jian [Tue, 16 Jul 2019 10:41:57 +0000 (18:41 +0800)]
Merge branch 'bugfix/fix_flash_read_error_in_dio_26MHz_mode_v3.3' into 'release/v3.3'

bugfix(flash): fix flash read error in DIO/26MHz mode (backport v3.3)

See merge request espressif/esp-idf!5532

5 years agoFixed the bug that the malloc memory size is smaller than the actual required.
Ramesh [Wed, 10 Jul 2019 03:25:36 +0000 (08:55 +0530)]
Fixed the bug that the malloc memory size is smaller than the actual required.

5 years agofix the watchdog bug during WiFi scan and BLE scan
zhangyanjiao [Tue, 16 Jul 2019 02:31:19 +0000 (10:31 +0800)]
fix the watchdog bug during WiFi scan and BLE scan

5 years agobugfix(flash): improve spi cs timing settings for flash
chenjianqiang [Thu, 9 May 2019 07:26:24 +0000 (15:26 +0800)]
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)

5 years agobugfix(flash): fix flash read error in DIO/26MHz mode
chenjianqiang [Thu, 27 Jun 2019 12:19:26 +0000 (20:19 +0800)]
bugfix(flash): fix flash read error in DIO/26MHz mode

5 years agoMerge branch 'bugfix/cmake_project_vars_not_set_by_redefinition_v3.3' into 'release...
Angus Gratton [Fri, 12 Jul 2019 07:01:32 +0000 (15:01 +0800)]
Merge branch 'bugfix/cmake_project_vars_not_set_by_redefinition_v3.3' into 'release/v3.3'

cmake: set variables set by project call (backport v3.3)

See merge request espressif/esp-idf!5487

5 years agoMerge branch 'bugfix/windows_detection_on_make_v3.3' into 'release/v3.3'
Angus Gratton [Fri, 12 Jul 2019 07:00:30 +0000 (15:00 +0800)]
Merge branch 'bugfix/windows_detection_on_make_v3.3' into 'release/v3.3'

Windows detection on Makefiles cleanup (backport v3.3)

See merge request espressif/esp-idf!5490

5 years agoMerge branch 'bugfix/fix_uart_wait_done_bug_v3.3' into 'release/v3.3'
Angus Gratton [Thu, 11 Jul 2019 06:56:14 +0000 (14:56 +0800)]
Merge branch 'bugfix/fix_uart_wait_done_bug_v3.3' into 'release/v3.3'

bugfix(UART): fixed two UART issues for release/v3.3

See merge request espressif/esp-idf!5481

5 years agospi_flash: add test case for stale read issue on memory mapped partition
Mahavir Jain [Fri, 8 Mar 2019 05:37:10 +0000 (11:07 +0530)]
spi_flash: add test case for stale read issue on memory mapped partition

5 years agospi_flash: fix stale read issue for memory mapped partition
Mahavir Jain [Fri, 8 Mar 2019 05:30:49 +0000 (11:00 +0530)]
spi_flash: fix stale read issue for memory mapped partition

On flash program operation (either erase or write), if corresponding address has
cache mapping present then cache is explicitly flushed (for both pro and app cpu)

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

5 years agocmake: refactor finding components
Renz Christian Bagaporo [Wed, 10 Jul 2019 08:28:44 +0000 (16:28 +0800)]
cmake: refactor finding components

5 years agoci: additional Cmake tests for EXTRA_COMPONENT_DIRS
Renz Christian Bagaporo [Thu, 30 May 2019 10:23:00 +0000 (18:23 +0800)]
ci: additional Cmake tests for EXTRA_COMPONENT_DIRS

Tests from
https://gitlab.espressif.cn:6688/idf/esp-idf/merge_requests/4253

5 years agoMerge branch 'bugfix/supplicant_security_fixes_v3.3' into 'release/v3.3'
Angus Gratton [Wed, 10 Jul 2019 04:31:37 +0000 (12:31 +0800)]
Merge branch 'bugfix/supplicant_security_fixes_v3.3' into 'release/v3.3'

wpa_supplicant: Fix sprintf security bugs. (v3.3)

See merge request espressif/esp-idf!5464

5 years agoldgen,make: simplify os check
Renz Christian Bagaporo [Mon, 6 May 2019 12:28:32 +0000 (20:28 +0800)]
ldgen,make: simplify os check

5 years agoproject_config_mk: fix if condition
V.Dudnik [Sun, 5 May 2019 16:12:33 +0000 (19:12 +0300)]
project_config_mk: fix if condition

5 years agocmake: set variables set by project call
Renz Christian Bagaporo [Wed, 10 Jul 2019 03:51:17 +0000 (11:51 +0800)]
cmake: set variables set by project call

ESP-IDF overrides project() definition for user convenience. This
redefinition lacks setting the variables documented at
the project command documentation
https://cmake.org/cmake/help/v3.5/command/project.html in the parent
scope.

This commit sets those variables.

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

5 years agoMerge branch 'bugfix/btdm_can_not_get_informations_of_song_v3.3' into 'release/v3.3'
Jiang Jiang Jian [Tue, 9 Jul 2019 07:13:24 +0000 (15:13 +0800)]
Merge branch 'bugfix/btdm_can_not_get_informations_of_song_v3.3' into 'release/v3.3'

components/bt: Fix iphone can't get song's informations

See merge request espressif/esp-idf!5472

5 years agobugfix(UART): fixed two UART issues:
kooho [Wed, 12 Jun 2019 08:20:19 +0000 (16:20 +0800)]
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

5 years agocomponents/bt: Fix iphone can't get song's informations
baohongde [Mon, 8 Jul 2019 11:40:22 +0000 (19:40 +0800)]
components/bt: Fix iphone can't get song's informations

5 years agoMerge branch 'fix/update_curr_page_state_3.3' into 'release/v3.3'
Angus Gratton [Mon, 8 Jul 2019 07:19:56 +0000 (15:19 +0800)]
Merge branch 'fix/update_curr_page_state_3.3' into 'release/v3.3'

nvs_util: Set previous page state to FULL before creating new page (v3.3)

See merge request espressif/esp-idf!5327

5 years agoMerge branch 'bugfix/prov_examples_strlcpy_backport_v3.3' into 'release/v3.3'
Angus Gratton [Mon, 8 Jul 2019 06:04:49 +0000 (14:04 +0800)]
Merge branch 'bugfix/prov_examples_strlcpy_backport_v3.3' into 'release/v3.3'

Various bugfixes in Protocomm / Unified Provisioning (backport v3.3)

See merge request espressif/esp-idf!5369

5 years agowpa_supplicant: Fix sprintf security bugs.
Sagar Bijwe [Wed, 19 Jun 2019 14:03:34 +0000 (19:33 +0530)]
wpa_supplicant: Fix sprintf security bugs.

Revert back to using os_snprintf instead of sprintf.

Closes WIFI-624

5 years agoMerge branch 'fix/nvs_util_keylen_3.3' into 'release/v3.3'
Angus Gratton [Mon, 8 Jul 2019 04:59:05 +0000 (12:59 +0800)]
Merge branch 'fix/nvs_util_keylen_3.3' into 'release/v3.3'

nvs_util: Add check for keylen in input csv (v3.3)

See merge request espressif/esp-idf!5395

5 years agoMerge branch 'feature/config_spi_pins_based_on_efuse_value_v3.3' into 'release/v3.3'
Jiang Jiang Jian [Mon, 8 Jul 2019 03:52:24 +0000 (11:52 +0800)]
Merge branch 'feature/config_spi_pins_based_on_efuse_value_v3.3' into 'release/v3.3'

feat(psram): config SPI psram pins based on efuse value (backport v3.3)

See merge request espressif/esp-idf!5240

5 years agoesp_prov : Minor refactoring in argument dependent logic
Anurag Kar [Tue, 2 Jul 2019 14:42:47 +0000 (20:12 +0530)]
esp_prov : Minor refactoring in argument dependent logic

Other changes:
* Command line argument name and descriptions updated and formatted
* Some exception messages updated for clarity
* READMEs updated for tool and all provisioning examples
* Minor update in example test scripts due to change in esp_prov.get_transport() API
* Transport_Softap renamed to Transport_HTTP
* Transport_HTTP now forces connect on initialization

5 years agoMerge branch 'mesh/bugfix_0628_v3.3' into 'release/v3.3'
Jiang Jiang Jian [Fri, 5 Jul 2019 14:33:24 +0000 (22:33 +0800)]
Merge branch 'mesh/bugfix_0628_v3.3' into 'release/v3.3'

mesh: bugfix (backport 3.3)

See merge request espressif/esp-idf!5438

5 years agoprotocomm_ble : Bugfix for unbound memcpy on prepare write buffer
Anurag Kar [Wed, 19 Jun 2019 08:09:55 +0000 (13:39 +0530)]
protocomm_ble : Bugfix for unbound memcpy on prepare write buffer

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

5 years agoProtocomm : Minor fixes
Anurag Kar [Tue, 28 May 2019 09:11:49 +0000 (14:41 +0530)]
Protocomm : Minor fixes

List of changes:
* protocomm_httpd : Reset session_id static variable on start and stop
* security1 : Typo in checking failed dynamic allocation

5 years agoProvisioning Examples : Bugfix in copying Wi-Fi SSID and Passphrase
Anurag Kar [Mon, 10 Jun 2019 11:53:53 +0000 (17:23 +0530)]
Provisioning Examples : Bugfix in copying Wi-Fi SSID and Passphrase

5 years agoWi-Fi Provisioning : Bugfix in copying SSID and Passphrase
Anurag Kar [Mon, 10 Jun 2019 12:19:30 +0000 (17:49 +0530)]
Wi-Fi Provisioning : Bugfix in copying SSID and Passphrase

These changes guarantee that the SSID and Passphrase received via protocomm are NULL terminated and size limited to their standard lengths.

List of changes:
* Corrected length of passphrase field in wifi_prov_config_set_data_t structure
* Performing length checks on SSID, passphrase and bssid, when populating wifi_prov_config_set_data_t structure with received credentials

5 years agoMerge branch 'bugfix/btdm_fix_rxwinsz_assert_in_wifi_ble_coex_v3.3' into 'release...
Jiang Jiang Jian [Fri, 5 Jul 2019 12:28:17 +0000 (20:28 +0800)]
Merge branch 'bugfix/btdm_fix_rxwinsz_assert_in_wifi_ble_coex_v3.3' into 'release/v3.3'

component/bt: fix rxwinsz assert in ble and wifi coex(backport v3.3)

See merge request espressif/esp-idf!5447

5 years agonvs_util: Add check for keylen in input csv
Shivani Tipnis [Fri, 28 Jun 2019 06:29:18 +0000 (11:59 +0530)]
nvs_util: Add check for keylen in input csv

5 years agoi2s: test case for variation in apll clock rate
Ajita Chavan [Wed, 19 Jun 2019 10:36:20 +0000 (16:06 +0530)]
i2s: test case for variation in apll clock rate

5 years agoi2s: fix a bug when calculating i2s apll parameters
redchenjs [Tue, 18 Jun 2019 05:52:36 +0000 (13:52 +0800)]
i2s: fix a bug when calculating i2s apll parameters

Closes https://github.com/espressif/esp-idf/issues/2634
Closes https://github.com/espressif/esp-idf/issues/3380
Fixes https://github.com/espressif/esp-idf/issues/3407

5 years agocomponent/bt: fix rxwinsz assert in ble and wifi coex
zhiweijian [Thu, 4 Jul 2019 12:12:04 +0000 (20:12 +0800)]
component/bt: fix rxwinsz assert in ble and wifi coex

5 years agoMerge branch 'bugfix/improve_flash_dio_read_timing_v3.3' into 'release/v3.3'
Angus Gratton [Thu, 4 Jul 2019 05:07:07 +0000 (13:07 +0800)]
Merge branch 'bugfix/improve_flash_dio_read_timing_v3.3' into 'release/v3.3'

bugfix(flash): fix flash dio read mode configuration error on SPI0 (backport v3.3)

See merge request espressif/esp-idf!5289

5 years agomesh: bugfix
qiyuexia [Mon, 1 Jul 2019 11:38:06 +0000 (19:38 +0800)]
mesh: bugfix

1. resend eb which are pending in g_ic.tx_buf due to channel switch.
2. add lock for mgmg/xon/bcast to protect send from user flush.
3. softap: add check if secondary offset is correct when start softap.
4. softap: in inactive timer handler, add check if child bss is removed to avoid removing it again.
5. disable A-MPDU for non-root.
6. fix reusing a freed eb.
7. fix when node becomes root, it does not record assoc value to nvs.
8. discard unnecessary forwarded group packets.
9. fix toDS state is not updated in time.
10. fix s_sta_cnx_times is not cleared when deinit causes root sends ADD annoucement.
11. root: increase beacon timeout time from 6 seconds to 15 seconds to delay initiation of reconnection.
12. add esp_mesh_get_tsf_time to return TSF time.
13. send the whole routing table multi-times.
14. clear candidate settings if not receive candidate beacon within 8 seconds.

5 years agoMerge branch 'feature/prov_mgr_backport_v3.3' into 'release/v3.3'
Mahavir Jain [Tue, 2 Jul 2019 08:17:23 +0000 (16:17 +0800)]
Merge branch 'feature/prov_mgr_backport_v3.3' into 'release/v3.3'

Wi-Fi Provisioning Manager (backport v3.3)

See merge request idf/esp-idf!5371

5 years agobugfix(flash): improve flash dio read timing
chenjianqiang [Mon, 20 May 2019 07:26:52 +0000 (15:26 +0800)]
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).

5 years agobugfix(psram): make sure the psram_io struct is initialized and make unknown psram...
chenjianqiang [Thu, 13 Jun 2019 09:16:22 +0000 (17:16 +0800)]
bugfix(psram): make sure the psram_io struct is initialized and make unknown psram package version more obvious

5 years agofeat(psram): config SPI psram pins based on efuse value
chenjianqiang [Tue, 7 May 2019 08:36:37 +0000 (16:36 +0800)]
feat(psram): config SPI psram pins based on efuse value

5 years agoMerge branch 'feature/upgrade_mbedtls_to_v2.16.1_v3.3' into 'release/v3.3'
Angus Gratton [Tue, 2 Jul 2019 00:42:50 +0000 (08:42 +0800)]
Merge branch 'feature/upgrade_mbedtls_to_v2.16.1_v3.3' into 'release/v3.3'

mbedtls: upgrade to v2.16.2 release (v3.3)

See merge request idf/esp-idf!5377

5 years agoMerge branch 'bugfix/httpd_open_fn_backport_v3.3' into 'release/v3.3'
Mahavir Jain [Mon, 1 Jul 2019 07:11:50 +0000 (15:11 +0800)]
Merge branch 'bugfix/httpd_open_fn_backport_v3.3' into 'release/v3.3'

HTTP Server : Close new session immediately if open_fn fails (Backport v3.3)

See merge request idf/esp-idf!5370

5 years agonvs_util: Set previous page state to FULL before creating new page
Shivani Tipnis [Sun, 23 Jun 2019 20:23:52 +0000 (01:53 +0530)]
nvs_util: Set previous page state to FULL before creating new page

6 years agoHTTP Server : Close new session immediately if open_fn fails
Anurag Kar [Fri, 17 May 2019 11:31:29 +0000 (17:01 +0530)]
HTTP Server : Close new session immediately if open_fn fails

open_fn() was introduced in the context of HTTPS server, as a configurable callback function that is called by the HTTP server, on every newly created socket. It is responsible of allocating resources for per session transport security.

Earlier, if open_fn were to fail, the newly created socket would be closed by the server but the corresponding entry, for the now invalid socket, will remain in the internal socket database until that invalid socket is detected due to error when calling select(). Because of this delayed closing of sockets, the HTTPS server would quickly face shortage of available sessions when a lot of SSL handshake errors are happening (this typically occurs when a browser finds that the server certificate is self signed). This changes in this MR fix this issue by clearing up the socket from internal database, right after open_fn fails.

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

6 years agowifi_prov_mgr : Free memory allocated by cJSON_Print
Anurag Kar [Fri, 28 Jun 2019 06:42:42 +0000 (12:12 +0530)]
wifi_prov_mgr : Free memory allocated by cJSON_Print

6 years agowifi_provisioning : Added Wi-Fi Scan list feature to Provisioning Manager
Anurag Kar [Tue, 23 Apr 2019 06:48:28 +0000 (12:18 +0530)]
wifi_provisioning : Added Wi-Fi Scan list feature to Provisioning Manager

List of changes in components/wifi_provisioning:
* Manager version is now v1.1
* .proto files and protocomm handler added for sending Wi-Fi scan command and receiving scan results
* Implemented handlers for wifi_scan protocomm endpoint
* Update manager context data structure to hold scan state and results
* scheme_softap now runs Wi-Fi in APSTA mode
* Wi-Fi is started in AP mode when provisioning is started. This is necessary for scan list to work
* Docs updates with information about new wifi_scan endpoint

List of changes in tools/esp_prov:
* Added functions for sending and receiving protobuf messages compatible with wifi_scan protocomm endpoint
* Added feature to display/refresh scan results and accept user selection at runtime
* New functions:
  * get_version() : only returns the protocol version string
  * has_capability() : check is a capability is present according to proto-ver response
* wifi_scan feature is provided only if the `wifi_scan` capability is present

Other changes:
* Replace recursive mutex with plain mutex
* assert on return value of mutex give / take calls
* replace all calls with macros ACQUIRE_LOCK and RELEASE_LOCK
* some checks added in scanning related private APIs
* free and nullify scanning context and state if service is stopped while ongoing scan

6 years agoesp_prov : Support new JSON format of version string while maintaining backward compa...
Anurag Kar [Tue, 23 Apr 2019 17:47:28 +0000 (23:17 +0530)]
esp_prov : Support new JSON format of version string while maintaining backward compatibility

Other changes:
* Version check only happens if command line argument is specified
* Minor bugfix in processing apply_config response

6 years agoProvisioning : Added Wi-Fi Provisioning Manager example and test script
Anurag Kar [Tue, 23 Apr 2019 17:45:51 +0000 (23:15 +0530)]
Provisioning : Added Wi-Fi Provisioning Manager example and test script

6 years agowifi_provisioning : Docs updated with information about new provisioning manager
Anurag Kar [Sun, 21 Apr 2019 14:53:31 +0000 (20:23 +0530)]
wifi_provisioning : Docs updated with information about new provisioning manager

6 years agowifi_provisioning : Wi-Fi Provisioning Manager added
Anurag Kar [Tue, 16 Apr 2019 11:44:10 +0000 (17:14 +0530)]
wifi_provisioning : Wi-Fi Provisioning Manager added

6 years agoMerge branch 'bugfix/error_on_unknown_component' into 'release/v3.3'
Angus Gratton [Fri, 28 Jun 2019 07:39:21 +0000 (15:39 +0800)]
Merge branch 'bugfix/error_on_unknown_component' into 'release/v3.3'

cmake: error out when component is not found (v3.3)

See merge request idf/esp-idf!5299

6 years agoMerge branch 'bugfix/mbedtls_mpi_exp_mod_v3.3' into 'release/v3.3'
Angus Gratton [Fri, 28 Jun 2019 00:31:53 +0000 (08:31 +0800)]
Merge branch 'bugfix/mbedtls_mpi_exp_mod_v3.3' into 'release/v3.3'

mbedtls: Fix mbedtls_mpi_exp_mod() set n and s values (v3.3)

See merge request idf/esp-idf!5354

6 years agombedtls: upgrade to v2.16.2 release
Mahavir Jain [Tue, 4 Jun 2019 13:00:35 +0000 (18:30 +0530)]
mbedtls: upgrade to v2.16.2 release

For detailed release notes please refer to:
https://github.com/ARMmbed/mbedtls/releases/tag/mbedtls-2.16.2

6 years agoMerge branch 'refactor/power_management_v3.3' into 'release/v3.3'
Angus Gratton [Wed, 26 Jun 2019 06:33:19 +0000 (14:33 +0800)]
Merge branch 'refactor/power_management_v3.3' into 'release/v3.3'

power_management: Using port*_CRITICAL_ISR to be consistent with FreeRTOS (backport v3.3)

See merge request idf/esp-idf!5079

6 years agombedtls: Add UTs for modexp
Konstantin Kondrashov [Thu, 13 Jun 2019 14:09:50 +0000 (22:09 +0800)]
mbedtls: Add UTs for modexp

6 years agombedtls: Fix Z->s in mbedtls_mpi_exp_mod()
Konstantin Kondrashov [Wed, 12 Jun 2019 11:00:44 +0000 (19:00 +0800)]
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