]>
granicus.if.org Git - esp-idf/log
Ivan Grokhotkov [Thu, 15 Nov 2018 12:03:13 +0000 (20:03 +0800)]
esp_timer: improve unit test robustness
1. call esp_timer_get_time and ref_clock_get in the same order on
start and in the loop
2. disable interrupts when calculating delta between ref_clock
and esp_timer
3. ensure both functions are in cache before calculating the delta
Ivan Grokhotkov [Fri, 16 Nov 2018 11:31:47 +0000 (19:31 +0800)]
Merge branch 'feature/ut_filter_test_groups' into 'master'
unit test: allow filtering tests using TEST_GROUPS
See merge request idf/esp-idf!3695
Ivan Grokhotkov [Fri, 16 Nov 2018 11:21:45 +0000 (19:21 +0800)]
Merge branch 'bugfix/adjtime_test2' into 'master'
Resolve ""test for thread safety adjtime and gettimeofday functions" fails randomly"
Closes #37
See merge request idf/esp-idf!3657
Jiang Jiang Jian [Fri, 16 Nov 2018 09:10:37 +0000 (17:10 +0800)]
Merge branch 'bugfix/btdm_controller_disable' into 'master'
Fix two bugs when disable bluetooth controller
See merge request idf/esp-idf!3692
Ivan Grokhotkov [Fri, 16 Nov 2018 08:37:11 +0000 (16:37 +0800)]
Merge branch 'bugfix/mdns_query_failed_after_init' into 'master'
Fixed: mdns query failed after init
See merge request idf/esp-idf!3480
David Cermak [Fri, 12 Oct 2018 14:45:52 +0000 (16:45 +0200)]
mdns: added example test for ci runners
David Cermak [Fri, 12 Oct 2018 06:13:55 +0000 (08:13 +0200)]
mdns: sending search packets also in probing and announcing state
mdns queries did not work properly when send imeadiately after set_hostname, which cuased reinit of pcb and therefore restarted probing, so search packets were blocked until probing finished
closes #2507, closes #2593
Angus Gratton [Fri, 16 Nov 2018 06:44:58 +0000 (14:44 +0800)]
Merge branch 'feature/docs_wireshark_trubleshooting_guide' into 'master'
Added wireshark instruction to provide a common workflow for users submitting diagnostic data for Wi-Fi troubleshooting
See merge request idf/esp-idf!3497
Krzysztof Budzynski [Fri, 16 Nov 2018 06:44:58 +0000 (14:44 +0800)]
Added wireshark instruction to provide a common workflow for users submitting diagnostic data for Wi-Fi troubleshooting
Konstantin Kondrashov [Wed, 7 Nov 2018 11:47:51 +0000 (19:47 +0800)]
newlib: Fix UT adjtime
Angus Gratton [Fri, 16 Nov 2018 03:21:16 +0000 (11:21 +0800)]
Merge branch 'doc/console_zh_CN' into 'master'
doc/console: translate console.rst into zh_CN
See merge request idf/esp-idf!3320
Tian Hao [Tue, 13 Nov 2018 09:29:44 +0000 (17:29 +0800)]
Fix two bugs when disable bluetooth controller
1. Fix the bug that disable controller suddenly cause crash when ble is working. (
585cfba1 )
2. Fix the bug that when disable controller, it will cause wifi cannot RX, TX timeout, buffer lack and etc. (
f8546145 )
Ivan Grokhotkov [Tue, 13 Nov 2018 12:14:17 +0000 (20:14 +0800)]
unit-test: use TEST_GROUPS to filter tests for psram_vspi and psram_hspi
Ivan Grokhotkov [Tue, 13 Nov 2018 11:48:31 +0000 (19:48 +0800)]
unit test: allow filtering tests for configs using TEST_GROUPS
Ivan Grokhotkov [Thu, 15 Nov 2018 07:05:43 +0000 (15:05 +0800)]
Merge branch 'feature/core_dump_crc' into 'master'
Core Dump CRC
See merge request idf/esp-idf!1290
Alexey Gerenkov [Mon, 12 Nov 2018 21:26:07 +0000 (00:26 +0300)]
esp32: Fixes freezing core dump process when flash write address checks are enabled
Alexey Gerenkov [Mon, 12 Nov 2018 21:18:17 +0000 (00:18 +0300)]
esp32: Adds logging level to core dump script
Alexey Gerenkov [Mon, 12 Nov 2018 21:04:23 +0000 (00:04 +0300)]
esp32: Adds support for core dump format version
Alexey Gerenkov [Mon, 12 Nov 2018 21:01:24 +0000 (00:01 +0300)]
esp32: Adds menuconfig option for max tasks number in core dump
Alexey Gerenkov [Tue, 13 Mar 2018 14:07:42 +0000 (17:07 +0300)]
esp32: Core dump API to retrieve current core data layout 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
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
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
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
Mahavir Jain [Wed, 14 Nov 2018 12:27:15 +0000 (17:57 +0530)]
tools: fix cmake build script for sdkconfig test
Anton Maklakov [Wed, 14 Nov 2018 11:45:14 +0000 (19:45 +0800)]
cmake: fix the creation dummy main to avoid rebuilding
Anton Maklakov [Wed, 14 Nov 2018 06:13:28 +0000 (14:13 +0800)]
ci: If there is no sdkconfig, we have to generate one
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
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
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
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.
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
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
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
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
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
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
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
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
Natasha [Mon, 12 Nov 2018 01:15:29 +0000 (09:15 +0800)]
Feature/update board guides for headers
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
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
Ivan Grokhotkov [Fri, 19 Oct 2018 03:51:51 +0000 (11:51 +0800)]
build system: support for multiple targets
Ivan Grokhotkov [Fri, 19 Oct 2018 03:53:57 +0000 (11:53 +0800)]
confgen.py: allow multiple defaults files
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()
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
zwj [Mon, 29 Oct 2018 13:27:39 +0000 (21:27 +0800)]
component/bt: add vendor hci cmd
Roland Dobai [Thu, 1 Nov 2018 10:57:24 +0000 (11:57 +0100)]
examples: Fix UART examples to match the template
Roland Dobai [Thu, 8 Nov 2018 12:02:03 +0000 (13:02 +0100)]
tools: Fix UTF decode error
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
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
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
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
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
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
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
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
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
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
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
morris [Thu, 6 Sep 2018 02:10:47 +0000 (10:10 +0800)]
doc/console: translate console.rst into zh_CN
liying [Tue, 6 Nov 2018 10:40:17 +0000 (18:40 +0800)]
doc:update_creating_example_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
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
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.
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
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()
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
Anurag Kar [Fri, 19 Oct 2018 19:02:55 +0000 (00:32 +0530)]
CMake : Secure Boot support added
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
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
zhiweijian [Tue, 30 Oct 2018 03:08:49 +0000 (11:08 +0800)]
Component/bt: add scan window and interval check when set scan params
zhiweijian [Mon, 5 Nov 2018 03:21:03 +0000 (11:21 +0800)]
Component/bt: fix memory leak in service change char
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
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
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
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
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
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
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
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
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
Ivan Grokhotkov [Mon, 5 Nov 2018 15:19:30 +0000 (23:19 +0800)]
ci: add unit test job
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
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
liying [Fri, 2 Nov 2018 10:51:20 +0000 (18:51 +0800)]
(doc)update_CN/EN_partition_tables
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.
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
Roland Dobai [Thu, 25 Oct 2018 09:53:52 +0000 (11:53 +0200)]
VFS: Implement utime()
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
Roland Dobai [Thu, 25 Oct 2018 09:58:49 +0000 (11:58 +0200)]
CI: Update Python 3 ignore list
Roland Dobai [Thu, 25 Oct 2018 09:02:58 +0000 (11:02 +0200)]
idf_ext.py: Fix Python 3 compatibility issue
Ivan Grokhotkov [Wed, 31 Oct 2018 07:57:48 +0000 (15:57 +0800)]
examples/storage: adjust readme files according to standard
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
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
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
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
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.
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.
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