]> granicus.if.org Git - esp-idf/log
esp-idf
5 years agoesp32: Replaces magic numbers with CRC for core dump in flash
Alexey Gerenkov [Wed, 13 Sep 2017 18:30:48 +0000 (21:30 +0300)]
esp32: Replaces magic numbers with CRC for core dump in flash

5 years agoMerge branch 'bugfix/ethernet_fail_twice_init' into 'master'
Ivan Grokhotkov [Thu, 15 Nov 2018 04:35:55 +0000 (12:35 +0800)]
Merge branch 'bugfix/ethernet_fail_twice_init' into 'master'

fix bug of multi-call failure in esp_eth_init

See merge request idf/esp-idf!3673

5 years agoMerge branch 'bugfix/tw27096_fix_lwip_mbox_free_crash' into 'master'
Jiang Jiang Jian [Thu, 15 Nov 2018 02:31:35 +0000 (10:31 +0800)]
Merge branch 'bugfix/tw27096_fix_lwip_mbox_free_crash' into 'master'

fix the crash bug caused by sys_mbox_free

See merge request idf/esp-idf!3654

5 years agoMerge branch 'bugfix/app_template_build' into 'master'
Anton Maklakov [Thu, 15 Nov 2018 01:51:00 +0000 (09:51 +0800)]
Merge branch 'bugfix/app_template_build' into 'master'

esp-idf-template app: some fixes for the updated template app

See merge request idf/esp-idf!3698

5 years agotools: fix cmake build script for sdkconfig test
Mahavir Jain [Wed, 14 Nov 2018 12:27:15 +0000 (17:57 +0530)]
tools: fix cmake build script for sdkconfig test

5 years agocmake: fix the creation dummy main to avoid rebuilding
Anton Maklakov [Wed, 14 Nov 2018 11:45:14 +0000 (19:45 +0800)]
cmake: fix the creation dummy main to avoid rebuilding

5 years agoci: If there is no sdkconfig, we have to generate one
Anton Maklakov [Wed, 14 Nov 2018 06:13:28 +0000 (14:13 +0800)]
ci: If there is no sdkconfig, we have to generate one

5 years agoMerge branch 'bugfix/readdir_ut_timeout' into 'master'
Ivan Grokhotkov [Tue, 13 Nov 2018 14:54:21 +0000 (22:54 +0800)]
Merge branch 'bugfix/readdir_ut_timeout' into 'master'

spiffs: increase timeout in readdir test

Closes #41

See merge request idf/esp-idf!3687

5 years agoethernet: multi-call failure in esp_eth_init
morris [Fri, 9 Nov 2018 09:33:44 +0000 (17:33 +0800)]
ethernet: multi-call failure in esp_eth_init

Because of incomplete state machine, ethernet driver will broken if esp_eth_init is called twice.
Detailed information here: https://ezredmine.espressif.cn:8765/issues/27332

5 years agoMerge branch 'bugfix/ethernet_memory_leak' into 'master'
Ivan Grokhotkov [Tue, 13 Nov 2018 07:53:47 +0000 (15:53 +0800)]
Merge branch 'bugfix/ethernet_memory_leak' into 'master'

fix potential memory leak in ethernet driver

See merge request idf/esp-idf!3646

5 years agospiffs: increase timeout in readdir test
Ivan Grokhotkov [Tue, 13 Nov 2018 03:41:19 +0000 (11:41 +0800)]
spiffs: increase timeout in readdir test

Timeout of 15 seconds is not sufficient if SPIFFS partition needs to
be formatted, on some of the boards.

5 years agoethernetif: fix potential memory leak
morris [Tue, 6 Nov 2018 11:10:01 +0000 (19:10 +0800)]
ethernetif: fix potential memory leak

1. If L2_TO_L3_RX_BUF_MODE is not selected, we must assign l2_owner explictly before we call pbuf_free.
2. free intr resource in esp_eth_deinit

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

5 years agoMerge branch 'bugfix/cmake_utf_decode' into 'master'
Angus Gratton [Tue, 13 Nov 2018 01:54:28 +0000 (09:54 +0800)]
Merge branch 'bugfix/cmake_utf_decode' into 'master'

tools: Fix Unicode decode error & indentation error

See merge request idf/esp-idf!3669

5 years agoMerge branch 'bugfix/http_literal_caseinsensitive' into 'master'
Jiang Jiang Jian [Mon, 12 Nov 2018 09:03:06 +0000 (17:03 +0800)]
Merge branch 'bugfix/http_literal_caseinsensitive' into 'master'

Compare case-insensitive URI schemes

See merge request idf/esp-idf!3558

5 years agoMerge branch 'feature/build_system_multi_target' into 'master'
Ivan Grokhotkov [Mon, 12 Nov 2018 07:30:36 +0000 (15:30 +0800)]
Merge branch 'feature/build_system_multi_target' into 'master'

build system: support for multiple targets (CMake only)

See merge request idf/esp-idf!3499

5 years agoMerge branch 'bugfix/btdm_fix_memory_leak_in_v3.2' into 'master'
Jiang Jiang Jian [Mon, 12 Nov 2018 03:27:00 +0000 (11:27 +0800)]
Merge branch 'bugfix/btdm_fix_memory_leak_in_v3.2' into 'master'

Component/bt: fix memory leak in service change char

See merge request idf/esp-idf!3631

5 years agoMerge branch 'feature/btdm_add_vendor_hci_cmd' into 'master'
Jiang Jiang Jian [Mon, 12 Nov 2018 03:26:35 +0000 (11:26 +0800)]
Merge branch 'feature/btdm_add_vendor_hci_cmd' into 'master'

component/bt: add vendor hci cmd

See merge request idf/esp-idf!3577

5 years agoMerge branch 'bugfix/uart_examples_match_template' into 'master'
Angus Gratton [Mon, 12 Nov 2018 01:19:14 +0000 (09:19 +0800)]
Merge branch 'bugfix/uart_examples_match_template' into 'master'

examples: Fix UART examples to match the template

See merge request idf/esp-idf!3642

5 years agoMerge branch 'feature/update_board_guides_for_headers' into 'master'
Angus Gratton [Mon, 12 Nov 2018 01:15:29 +0000 (09:15 +0800)]
Merge branch 'feature/update_board_guides_for_headers' into 'master'

Feature/update board guides for headers

See merge request idf/esp-idf!3590

5 years agoFeature/update board guides for headers
Natasha [Mon, 12 Nov 2018 01:15:29 +0000 (09:15 +0800)]
Feature/update board guides for headers

5 years agoMerge branch 'bugfix/multiple_github_pr' into 'master'
Angus Gratton [Mon, 12 Nov 2018 01:14:35 +0000 (09:14 +0800)]
Merge branch 'bugfix/multiple_github_pr' into 'master'

Multiple github PR's

See merge request idf/esp-idf!3665

5 years agoMerge branch 'feature/cmake_secure_boot_support' into 'master'
Angus Gratton [Mon, 12 Nov 2018 01:09:30 +0000 (09:09 +0800)]
Merge branch 'feature/cmake_secure_boot_support' into 'master'

CMake : Secure Boot support added

See merge request idf/esp-idf!3522

5 years agobuild system: support for multiple targets
Ivan Grokhotkov [Fri, 19 Oct 2018 03:51:51 +0000 (11:51 +0800)]
build system: support for multiple targets

5 years agoconfgen.py: allow multiple defaults files
Ivan Grokhotkov [Fri, 19 Oct 2018 03:53:57 +0000 (11:53 +0800)]
confgen.py: allow multiple defaults files

5 years agolwip: fix crash caused by sys_mbox_free
Liu Zhi Fu [Wed, 7 Nov 2018 02:52:33 +0000 (10:52 +0800)]
lwip: fix crash caused by sys_mbox_free

Fix lwip crashed bug caused by sys_mbox_free()

5 years agoMerge branch 'bugfix/btdm_add_scan_window_interval_check' into 'master'
Jiang Jiang Jian [Fri, 9 Nov 2018 11:32:11 +0000 (19:32 +0800)]
Merge branch 'bugfix/btdm_add_scan_window_interval_check' into 'master'

Component/bt: add scan window and interval check when set scan params

See merge request idf/esp-idf!3581

5 years agocomponent/bt: add vendor hci cmd
zwj [Mon, 29 Oct 2018 13:27:39 +0000 (21:27 +0800)]
component/bt: add vendor hci cmd

5 years agoexamples: Fix UART examples to match the template
Roland Dobai [Thu, 1 Nov 2018 10:57:24 +0000 (11:57 +0100)]
examples: Fix UART examples to match the template

5 years agotools: Fix UTF decode error
Roland Dobai [Thu, 8 Nov 2018 12:02:03 +0000 (13:02 +0100)]
tools: Fix UTF decode error

5 years agodocs: corrected typo event_handler
Cheppali Umasankar Reddy [Sun, 4 Nov 2018 08:27:17 +0000 (13:57 +0530)]
docs: corrected typo event_handler

esp_http_client_config_t has member event_handler not event_handle

Merges https://github.com/espressif/esp-idf/pull/2662

5 years agoAdd checks to for CONFIG_MBEDTLS_SSL_ALPN
Stephen Bird [Mon, 15 Oct 2018 21:46:52 +0000 (14:46 -0700)]
Add checks to for CONFIG_MBEDTLS_SSL_ALPN

Merges https://github.com/espressif/esp-idf/pull/2569

5 years agobt: Fix bracket warning
Stephen Bird [Fri, 12 Oct 2018 18:15:40 +0000 (11:15 -0700)]
bt: Fix bracket warning

Merges https://github.com/espressif/esp-idf/pull/2568

5 years agoexamples: Correct Content-Length in openssl_server example
Ondřej Hruška [Tue, 9 Oct 2018 13:01:35 +0000 (15:01 +0200)]
examples: Correct Content-Length in openssl_server example

Before this fix it didn't send all of the response, ending with `</h`

Merges https://github.com/espressif/esp-idf/pull/2535

5 years agoesp_http_client: Fix infinite loop on esp_http_client_fetch_headers
Damian Reboredo [Tue, 9 Oct 2018 11:55:19 +0000 (08:55 -0300)]
esp_http_client: Fix infinite loop on esp_http_client_fetch_headers

error must also be returned if esp_tls_conn_read return 0 because socket  was closed

Merges https://github.com/espressif/esp-idf/pull/2534

5 years agoheap: Compile heap_task_info.c conditionally on CONFIG_HEAP_TASK_TRACKING in heap...
Paul Reimer [Sun, 30 Sep 2018 23:45:51 +0000 (16:45 -0700)]
heap: Compile heap_task_info.c conditionally on CONFIG_HEAP_TASK_TRACKING in heap CMakeLists.txt

Merges https://github.com/espressif/esp-idf/pull/2498

5 years agortc_clk: bugfix: incorrect divider setting in rtc_clk_cpu_freq_to_config()
shawwwn [Wed, 12 Sep 2018 23:20:58 +0000 (16:20 -0700)]
rtc_clk: bugfix: incorrect divider setting in rtc_clk_cpu_freq_to_config()

Merges https://github.com/espressif/esp-idf/pull/2404

5 years agoexamples: Fixing possible memory leak, not freeing "run_time" prior to returning
mharizanov [Tue, 4 Sep 2018 12:52:11 +0000 (15:52 +0300)]
examples: Fixing possible memory leak, not freeing "run_time" prior to returning

Merges https://github.com/espressif/esp-idf/pull/2367

5 years agoMerge branch 'bugfix/fix_ble_examples' into 'master'
Jiang Jiang Jian [Thu, 8 Nov 2018 10:09:29 +0000 (18:09 +0800)]
Merge branch 'bugfix/fix_ble_examples' into 'master'

examples/bluetooth: Miscellaneous fixes in some of the examples

See merge request idf/esp-idf!3549

5 years agoMerge branch 'feature/btdm_support_oob_in_SMP' into 'master'
Jiang Jiang Jian [Thu, 8 Nov 2018 08:44:15 +0000 (16:44 +0800)]
Merge branch 'feature/btdm_support_oob_in_SMP' into 'master'

Component/bt: support OOB in SMP

See merge request idf/esp-idf!3496

5 years agoMerge branch 'doc/create_example_zh_CN' into 'master'
Angus Gratton [Thu, 8 Nov 2018 02:23:14 +0000 (10:23 +0800)]
Merge branch 'doc/create_example_zh_CN' into 'master'

translation of creating-examples.rst

See merge request idf/esp-idf!3391

5 years agodoc:update_creating_example_cn
liying [Tue, 6 Nov 2018 10:40:17 +0000 (18:40 +0800)]
doc:update_creating_example_cn

5 years agodoc: document of creating-examples_zh_CN
morris [Thu, 27 Sep 2018 12:37:03 +0000 (20:37 +0800)]
doc: document of creating-examples_zh_CN

Translated the document of creating-examples into Chinese

5 years agoMerge branch 'bugfix/mesh_start_stop' into 'master'
Jiang Jiang Jian [Wed, 7 Nov 2018 06:29:27 +0000 (14:29 +0800)]
Merge branch 'bugfix/mesh_start_stop' into 'master'

mesh: update libs

See merge request idf/esp-idf!3569

6 years agomesh: update libs
qiyuexia [Wed, 31 Oct 2018 13:11:57 +0000 (21:11 +0800)]
mesh: update libs

1. fix ap_loss that occurs when the parent turns off the mesh function and becomes a normal WiFi with a different SSID.
2. add an event MESH_EVENT_NETWORK_STATE that contains information about whether there is a root in the current network.
3. modify the mechanism of mesh IE update.
4. fix a problem in the process of re-voting to select the root, the device that does not meet the conditions of being a root votes for itself.
5. fix an issue that occurs in esp_mesh_recv_toDS() when stopping the mesh.
6. when the user specifies a parent for the device, the device will set the authmode and password of its AP mode to the same value as the specified parent.
7. add two disconnected reason codes MESH_REASON_EMPTY_PASSWORD and MESH_REASON_PARENT_UNENCRYPTED.

6 years agoMerge branch 'bugfix/fix_bt_btc_gatts_arg_deep_copy' into 'master'
Jiang Jiang Jian [Tue, 6 Nov 2018 13:01:54 +0000 (21:01 +0800)]
Merge branch 'bugfix/fix_bt_btc_gatts_arg_deep_copy' into 'master'

components/bt: Fix btc_gatts_arg_deep_copy() and bta_gatts_indicate_handle()

See merge request idf/esp-idf!3058

6 years agocomponents/bt: Fix btc_gatts_arg_deep_copy() and bta_gatts_indicate_handle()
Hrishikesh Dhayagude [Tue, 6 Nov 2018 13:01:54 +0000 (21:01 +0800)]
components/bt: Fix btc_gatts_arg_deep_copy() and bta_gatts_indicate_handle()

6 years agoMerge branch 'feat/psram_support_hspi' into 'master'
Ivan Grokhotkov [Tue, 6 Nov 2018 12:34:41 +0000 (20:34 +0800)]
Merge branch 'feat/psram_support_hspi' into 'master'

esp32: support to use hspi to output clock for 4M psram

See merge request idf/esp-idf!3377

6 years agoCMake : Secure Boot support added
Anurag Kar [Fri, 19 Oct 2018 19:02:55 +0000 (00:32 +0530)]
CMake : Secure Boot support added

6 years agoMerge branch 'bugfix/wifi_do_not_load_phy_data_if_fail_to_open_nvs' into 'master'
Jiang Jiang Jian [Tue, 6 Nov 2018 10:01:58 +0000 (18:01 +0800)]
Merge branch 'bugfix/wifi_do_not_load_phy_data_if_fail_to_open_nvs' into 'master'

esp32: do not try to load PHY data if fail to open NVS

See merge request idf/esp-idf!3538

6 years agoMerge branch 'bugfix/btdm_fuction_in_isr_is_not_in_iram' into 'master'
Jiang Jiang Jian [Tue, 6 Nov 2018 09:13:34 +0000 (17:13 +0800)]
Merge branch 'bugfix/btdm_fuction_in_isr_is_not_in_iram' into 'master'

components/bt: Put function in isr into iram

See merge request idf/esp-idf!3619

6 years agoComponent/bt: add scan window and interval check when set scan params
zhiweijian [Tue, 30 Oct 2018 03:08:49 +0000 (11:08 +0800)]
Component/bt: add scan window and interval check when set scan params

6 years agoComponent/bt: fix memory leak in service change char
zhiweijian [Mon, 5 Nov 2018 03:21:03 +0000 (11:21 +0800)]
Component/bt: fix memory leak in service change char

6 years agoMerge branch 'feature/partition_api_example' into 'master'
Ivan Grokhotkov [Tue, 6 Nov 2018 04:24:27 +0000 (12:24 +0800)]
Merge branch 'feature/partition_api_example' into 'master'

Add partition API examples

See merge request idf/esp-idf!3427

6 years agoMerge branch 'bugfix/tickless_idle_single_core' into 'master'
Ivan Grokhotkov [Tue, 6 Nov 2018 04:15:03 +0000 (12:15 +0800)]
Merge branch 'bugfix/tickless_idle_single_core' into 'master'

freertos, pm: fix tickless idle not entered in single core mode

See merge request idf/esp-idf!3584

6 years agoMerge branch 'bugfix/freertos_idle_tick_count' into 'master'
Ivan Grokhotkov [Tue, 6 Nov 2018 04:14:51 +0000 (12:14 +0800)]
Merge branch 'bugfix/freertos_idle_tick_count' into 'master'

freertos: use xTaskQueueMutex to protect tick count

See merge request idf/esp-idf!3478

6 years agoMerge branch 'bugfix/register_map_LAN8720' into 'master'
Ivan Grokhotkov [Tue, 6 Nov 2018 04:13:47 +0000 (12:13 +0800)]
Merge branch 'bugfix/register_map_LAN8720' into 'master'

ethernet: fix some bugs in Ethernet driver

See merge request idf/esp-idf!3490

6 years agoMerge branch 'bugfix/btdm_allow_a2dp_codec_dynamic_alloc' into 'master'
Jiang Jiang Jian [Tue, 6 Nov 2018 03:56:30 +0000 (11:56 +0800)]
Merge branch 'bugfix/btdm_allow_a2dp_codec_dynamic_alloc' into 'master'

bugfix/btdm_allow_a2dp_codec_dynamic_allocated

See merge request idf/esp-idf!3598

6 years agoethernet: fix some bugs in phy&mac driver
morris [Mon, 15 Oct 2018 12:35:05 +0000 (20:35 +0800)]
ethernet: fix some bugs in phy&mac driver

1. Original register mapping for LAN8720 has some registers that doesn't exist/support.
So just remove them, and fix the power and init function for LAN8720.
2. GPIO16 and GPIO17 is occupied by PSRAM, so only ETH_CLOCK_GPIO_IN mode is supported in that case if using PSRAM.
3. Fix bug of OTA failing with Ethernet
4. Fix bug of multicast with Ethernet

Closes https://github.com/espressif/esp-idf/issues/2564
Closes https://github.com/espressif/esp-idf/issues/2620
Closes https://github.com/espressif/esp-idf/issues/2657

6 years agoMerge branch 'feature/vfs_utime' into 'master'
Ivan Grokhotkov [Tue, 6 Nov 2018 02:47:02 +0000 (10:47 +0800)]
Merge branch 'feature/vfs_utime' into 'master'

VFS: Implement utime() for FATFS and SPIFFS

See merge request idf/esp-idf!3610

6 years agoMerge branch 'bugfix/ut_add_job' into 'master'
Ivan Grokhotkov [Tue, 6 Nov 2018 02:45:24 +0000 (10:45 +0800)]
Merge branch 'bugfix/ut_add_job' into 'master'

ci: add unit test job

See merge request idf/esp-idf!3634

6 years agoMerge branch 'doc/partition_tables_zh_CN' into 'master'
Ivan Grokhotkov [Tue, 6 Nov 2018 02:45:11 +0000 (10:45 +0800)]
Merge branch 'doc/partition_tables_zh_CN' into 'master'

translation of partition-tables.rst

See merge request idf/esp-idf!3457

6 years agoci: add unit test job
Ivan Grokhotkov [Mon, 5 Nov 2018 15:19:30 +0000 (23:19 +0800)]
ci: add unit test job

6 years agoMerge branch 'bugfix/py3_ci_enable' into 'master'
Ivan Grokhotkov [Mon, 5 Nov 2018 11:49:32 +0000 (19:49 +0800)]
Merge branch 'bugfix/py3_ci_enable' into 'master'

Enable Python 3 bot tests in master

See merge request idf/esp-idf!3615

6 years agoMerge branch 'doc/storage_example_readme' into 'master'
Ivan Grokhotkov [Mon, 5 Nov 2018 11:33:16 +0000 (19:33 +0800)]
Merge branch 'doc/storage_example_readme' into 'master'

examples/storage: adjust readme files according to standard

See merge request idf/esp-idf!3594

6 years ago(doc)update_CN/EN_partition_tables
liying [Fri, 2 Nov 2018 10:51:20 +0000 (18:51 +0800)]
(doc)update_CN/EN_partition_tables

6 years agodoc/partition-tables: translation of zh_CN
morris [Wed, 10 Oct 2018 01:43:31 +0000 (09:43 +0800)]
doc/partition-tables: translation of zh_CN

1. Translated partition-tables.rst into Chinese.
2. Fixed some error in the English version.

6 years agoMerge branch 'bugfix/xts_compile_err' into 'master'
Ivan Grokhotkov [Mon, 5 Nov 2018 08:58:38 +0000 (16:58 +0800)]
Merge branch 'bugfix/xts_compile_err' into 'master'

mbedtls: Fix compilation errors when CONFIG_MBEDTLS_HARDWARE_AES is disabled

See merge request idf/esp-idf!3506

6 years agoVFS: Implement utime()
Roland Dobai [Thu, 25 Oct 2018 09:53:52 +0000 (11:53 +0200)]
VFS: Implement utime()

6 years agoMerge branch 'bugfix/aes_sha_mpi_shared_regs' into 'master'
Ivan Grokhotkov [Mon, 5 Nov 2018 08:31:03 +0000 (16:31 +0800)]
Merge branch 'bugfix/aes_sha_mpi_shared_regs' into 'master'

aes/sha/mpi: Bugfix a use of shared registers.

See merge request idf/esp-idf!3580

6 years agoCI: Update Python 3 ignore list
Roland Dobai [Thu, 25 Oct 2018 09:58:49 +0000 (11:58 +0200)]
CI: Update Python 3 ignore list

6 years agoidf_ext.py: Fix Python 3 compatibility issue
Roland Dobai [Thu, 25 Oct 2018 09:02:58 +0000 (11:02 +0200)]
idf_ext.py: Fix Python 3 compatibility issue

6 years agoexamples/storage: adjust readme files according to standard
Ivan Grokhotkov [Wed, 31 Oct 2018 07:57:48 +0000 (15:57 +0800)]
examples/storage: adjust readme files according to standard

6 years agoMerge branch 'bugfix/esp-tls-doc' into 'master'
Ivan Grokhotkov [Mon, 5 Nov 2018 04:30:22 +0000 (12:30 +0800)]
Merge branch 'bugfix/esp-tls-doc' into 'master'

esp-tls: Fix documentaion issue in esp_tls_conn_new_async API

See merge request idf/esp-idf!3545

6 years agoMerge branch 'bugfix/esp_http_client_async_crash' into 'master'
Ivan Grokhotkov [Mon, 5 Nov 2018 04:30:04 +0000 (12:30 +0800)]
Merge branch 'bugfix/esp_http_client_async_crash' into 'master'

esp_http_client: Fix crash in async mode

See merge request idf/esp-idf!3551

6 years agoaes/sha/mpi: Bugfix a use of shared registers.
Konstantin Kondrashov [Mon, 29 Oct 2018 15:55:02 +0000 (23:55 +0800)]
aes/sha/mpi: Bugfix a use of shared registers.

This commit resolves a blocking in esp_aes_block function.

Introduce:
The problem was in the fact that AES is switched off at the moment when he should give out the processed data. But because of the disabled, the operation can not be completed successfully, there is an infinite hang. The reason for this behavior is that the registers for controlling the inclusion of AES, SHA, MPI have shared registers and they were not protected from sharing.

Fix some related issue with shared using of AES SHA RSA accelerators.

Closes: https://github.com/espressif/esp-idf/issues/2295#issuecomment-432898137
6 years agoMerge branch 'bugfix/unit_test_adjtime' into 'master'
Ivan Grokhotkov [Mon, 5 Nov 2018 04:20:07 +0000 (12:20 +0800)]
Merge branch 'bugfix/unit_test_adjtime' into 'master'

Resolve ""test for thread safety adjtime and gettimeofday functions" fails randomly"

Closes #37

See merge request idf/esp-idf!3613

6 years agopm: prevent entering light sleep again immediately after wakeup
Ivan Grokhotkov [Thu, 1 Nov 2018 11:38:48 +0000 (19:38 +0800)]
pm: prevent entering light sleep again immediately after wakeup

When light sleep is finished on one CPU, it is possible that the other
CPU will enter light sleep again very soon, before interrupts on the
first CPU get a chance to run. To avoid such situation, set a flag
for the other CPU to skip light sleep attempt.

6 years agopm: fix entering light sleep in single core mode
Ivan Grokhotkov [Tue, 30 Oct 2018 08:05:06 +0000 (16:05 +0800)]
pm: fix entering light sleep in single core mode

Tickless idle/light sleep procedure had a bug in single core mode.
Consider the flow of events:
1. Idle task runs and calls vApplicationIdleHook
2. This calls esp_vApplicationIdleHook, which calls esp_pm_impl_idle_hook, and pm lock for RTOS on the current core is released.
3. Then esp_vApplicationIdleHook calls esp_pm_impl_waiti, which checks that s_entered_light_sleep[core_id]==false and goes into waiti state.
4. Some interrupt happens, calls esp_pm_impl_isr_hook, which takes pm lock for RTOS. PM state goes back to CPU_FREQ_MAX.
5. Once the interrupt is over, vApplicationIdleHook returns, and Idle task continues to run, finally reaching the call to vApplicationSleep.
6. vApplicationSleep does not enter light sleep, because esp_pm_impl_isr_hook has already changed PM state from IDLE to CPU_FREQ_MAX.

This didn’t happen in dual core mode, because waiti state of one CPU was interrupted by CCOMPARE update interrupt from the other CPU, in which case PM lock for FreeRTOS was not taken.

Fix by inverting the meaning of the flag (for convenience) and only setting it to true when vApplicationSleep actually fails to enter light sleep.

6 years agofreertos: fix compilation warning in single core mode
Ivan Grokhotkov [Tue, 30 Oct 2018 08:05:45 +0000 (16:05 +0800)]
freertos: fix compilation warning in single core mode

When tickless idle is enabled

6 years agofreertos: use xTaskQueueMutex to protect tick count
Ivan Grokhotkov [Fri, 12 Oct 2018 06:18:49 +0000 (14:18 +0800)]
freertos: use xTaskQueueMutex to protect tick count

Having two different spinlocks is problematic due to possibly
different order in which the locks will be taken. Changing the order
would require significant restructuring of kernel code which is
undesirable.

An additional place where taking xTickCountMutex was needed was in
vApplicationSleep function. Not taking xTickCountMutex resulted in
other CPU sometimes possibly advancing tick count while light sleep
entry/exit was happening. Taking xTickCountMutex in addition to
xTaskQueueMutex has shown a problem that in different code paths,
these two spinlocks could be taken in different order, leading to
(unlikely, but possible) deadlocks.

6 years agoMerge branch 'test/change_iperf_test_env' into 'master'
Jiang Jiang Jian [Mon, 5 Nov 2018 03:05:45 +0000 (11:05 +0800)]
Merge branch 'test/change_iperf_test_env' into 'master'

test: use simplified env to test iperf cases

See merge request idf/esp-idf!3554

6 years agoMerge branch 'test/fix_bug_of_scan_interval_and_windows' into 'master'
He Yin Ling [Mon, 5 Nov 2018 03:00:58 +0000 (11:00 +0800)]
Merge branch 'test/fix_bug_of_scan_interval_and_windows' into 'master'

test: fix bug of scan interval and window

See merge request idf/esp-idf!3606

6 years agoMerge branch 'bugfix/ci_make_html' into 'master'
Ivan Grokhotkov [Fri, 2 Nov 2018 12:38:16 +0000 (20:38 +0800)]
Merge branch 'bugfix/ci_make_html' into 'master'

ci: revert accidental change from f0eb9985b9

See merge request idf/esp-idf!3607

6 years agocomponents/bt: Put function in isr into iram
baohongde [Fri, 2 Nov 2018 08:37:52 +0000 (16:37 +0800)]
components/bt: Put function in isr into iram

6 years agoMerge branch 'bugfix/iperf_bt_error_when_wifi_connect' into 'master'
Jiang Jiang Jian [Fri, 2 Nov 2018 08:12:31 +0000 (16:12 +0800)]
Merge branch 'bugfix/iperf_bt_error_when_wifi_connect' into 'master'

components/bt: Point ACL RX buffer ptr to ACL RX buffer if ACL RX buffer ptr is null

See merge request idf/esp-idf!3536

6 years agoMerge branch 'bugfix/event_perf_test_psram' into 'master'
Ivan Grokhotkov [Fri, 2 Nov 2018 06:12:17 +0000 (14:12 +0800)]
Merge branch 'bugfix/event_perf_test_psram' into 'master'

esp_event: lower test performance threshold for PSRAM config

Closes #34

See merge request idf/esp-idf!3603

6 years agoMerge branch 'bugfix/build_example_make' into 'master'
Angus Gratton [Fri, 2 Nov 2018 05:04:40 +0000 (13:04 +0800)]
Merge branch 'bugfix/build_example_make' into 'master'

Better detection failures in built_examples

See merge request idf/esp-idf!3604

6 years agoMerge branch 'test/fix_unit_test_script_cant_process_test_command' into 'master'
Angus Gratton [Fri, 2 Nov 2018 05:02:42 +0000 (13:02 +0800)]
Merge branch 'test/fix_unit_test_script_cant_process_test_command' into 'master'

test: fix UT script can't process cmd after reset

See merge request idf/esp-idf!3372

6 years agoMerge branch 'bugfix/example_tests_trow_readable_errors' into 'master'
Ivan Grokhotkov [Thu, 1 Nov 2018 14:28:31 +0000 (22:28 +0800)]
Merge branch 'bugfix/example_tests_trow_readable_errors' into 'master'

MQTT Example tests cleanup, python 2 and 3 support

See merge request idf/esp-idf!3387

6 years agonewlib: Fix UT adjtime
Konstantin Kondrashov [Thu, 1 Nov 2018 12:34:39 +0000 (20:34 +0800)]
newlib: Fix UT adjtime

6 years agocomponents/bt: Point ACL RX buffer ptr to ACL RX buffer if ACL RX buffer ptr is null
baohongde [Thu, 1 Nov 2018 09:33:44 +0000 (17:33 +0800)]
components/bt: Point ACL RX buffer ptr to ACL RX buffer if ACL RX buffer ptr is null

1. When WIFI task or other high priority task blocks the Bluetooth task, ACL RX buffer will use up, ACL RX buffer ptr will point to null and will never point to a valid adress. Causing errors in Bluetooth.
2. hcimsgs.h used whether flow control is on or off

6 years agomqtt: example tests refactored to provide descriptive failures, addapted to python23...
David Cermak [Thu, 27 Sep 2018 09:46:13 +0000 (11:46 +0200)]
mqtt: example tests refactored to provide descriptive failures, addapted to python23, removed workarround for launching without mqtt-paho package

6 years agoMerge branch 'bugfix/btdm_sniff_anchor_point_calculation_error' into 'master'
Jiang Jiang Jian [Thu, 1 Nov 2018 07:58:00 +0000 (15:58 +0800)]
Merge branch 'bugfix/btdm_sniff_anchor_point_calculation_error' into 'master'

bugfix/btdm_sniff_anchor_point_calculation_error

See merge request idf/esp-idf!3582

6 years agoMerge branch 'bugfix/btdm_name_buffer_allocation_size_differs' into 'master'
Jiang Jiang Jian [Thu, 1 Nov 2018 07:56:45 +0000 (15:56 +0800)]
Merge branch 'bugfix/btdm_name_buffer_allocation_size_differs' into 'master'

components/bt: Fix the different size of name buffer allocation size

See merge request idf/esp-idf!3587

6 years agoMerge branch 'bugfix/btdm_fix_get_attr_value_error' into 'master'
Jiang Jiang Jian [Thu, 1 Nov 2018 07:55:22 +0000 (15:55 +0800)]
Merge branch 'bugfix/btdm_fix_get_attr_value_error' into 'master'

Component/bt: fix get attr value API error

See merge request idf/esp-idf!3583

6 years agoMerge branch 'bugfix/btdm_fix_ble_cannt_send_or_receive_packet_sometimes' into 'master'
Jiang Jiang Jian [Thu, 1 Nov 2018 07:55:05 +0000 (15:55 +0800)]
Merge branch 'bugfix/btdm_fix_ble_cannt_send_or_receive_packet_sometimes' into 'master'

Component/bt: fix ble cannot send or receive packet sometimes

See merge request idf/esp-idf!3585

6 years agombedtls: Fix compilation errors when CONFIG_MBEDTLS_HARDWARE_AES is disabled
Sagar Bijwe [Wed, 17 Oct 2018 13:53:46 +0000 (19:23 +0530)]
mbedtls: Fix compilation errors when CONFIG_MBEDTLS_HARDWARE_AES is disabled

6 years agoMerge branch 'bugfix/bootloader_iram_overlap_check' into 'master'
Ivan Grokhotkov [Thu, 1 Nov 2018 05:56:43 +0000 (13:56 +0800)]
Merge branch 'bugfix/bootloader_iram_overlap_check' into 'master'

bootloader: verify that loaded image does not overlap bootloader code

See merge request idf/esp-idf!3409

6 years agoesp_event: lower test performance threshold for PSRAM config
Ivan Grokhotkov [Thu, 1 Nov 2018 03:01:35 +0000 (11:01 +0800)]
esp_event: lower test performance threshold for PSRAM config

6 years agoci: revert accidental change from f0eb9985b9
Ivan Grokhotkov [Thu, 1 Nov 2018 04:56:07 +0000 (12:56 +0800)]
ci: revert accidental change from f0eb9985b9