]> granicus.if.org Git - esp-idf/log
esp-idf
6 years agoconfgen: base config creation on output type args
Renz Christian Bagaporo [Tue, 15 Jan 2019 15:06:50 +0000 (23:06 +0800)]
confgen: base config creation on output type args

6 years agoMerge branch 'bugfix/build_fails_when_editor_assoc_with_py_scripts_v3.1' into 'releas...
Angus Gratton [Tue, 2 Apr 2019 01:39:51 +0000 (09:39 +0800)]
Merge branch 'bugfix/build_fails_when_editor_assoc_with_py_scripts_v3.1' into 'release/v3.1'

Fix issues with CMake builds when python scripts are associated with an editor (backport v3.1)

See merge request idf/esp-idf!4638

6 years agoMerge branch 'bugfix/increase_block_scan_time_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Mon, 1 Apr 2019 09:24:14 +0000 (17:24 +0800)]
Merge branch 'bugfix/increase_block_scan_time_v3.1' into 'release/v3.1'

wifi: increase the block scan time (backport v3.1)

See merge request idf/esp-idf!4644

6 years agowifi: increase the block scan time because of changing channel will take at 30ms...
zhangyanjiao [Mon, 1 Apr 2019 02:53:12 +0000 (10:53 +0800)]
wifi: increase the block scan time because of changing channel will take at 30ms when BT/WiFi coexist

6 years agoci: test full build never runs '/usr/bin/env python' or similar
Renz Christian Bagaporo [Tue, 12 Mar 2019 05:28:06 +0000 (13:28 +0800)]
ci: test full build never runs '/usr/bin/env python' or similar

6 years agocmake: Fix for Python files executed directly, not via PYTHON variable
Renz Christian Bagaporo [Mon, 25 Mar 2019 02:41:28 +0000 (10:41 +0800)]
cmake: Fix for Python files executed directly, not via PYTHON variable

6 years agoMerge branch 'mesh/decouple_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Wed, 27 Mar 2019 11:38:21 +0000 (19:38 +0800)]
Merge branch 'mesh/decouple_v3.1' into 'release/v3.1'

mesh: decoupling (backport v3.1)

See merge request idf/esp-idf!4288

6 years agomesh: decoupling
chenyudong [Fri, 15 Mar 2019 13:38:45 +0000 (21:38 +0800)]
mesh: decoupling

Remove dependencies which cause mesh code to be linked even if mesh is not used.

6 years agoMerge branch 'bugfix/nvs_api_usage_in_simple_ota_example_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Thu, 21 Mar 2019 03:40:31 +0000 (11:40 +0800)]
Merge branch 'bugfix/nvs_api_usage_in_simple_ota_example_v3.1' into 'release/v3.1'

Minor bugfix in simple ota example (backport v3.1)

See merge request idf/esp-idf!4583

6 years agobugfix(simple_ota): Compatible with V3.1 and V3.2
InfiniteYuan1 [Tue, 18 Dec 2018 03:50:33 +0000 (11:50 +0800)]
bugfix(simple_ota): Compatible with V3.1 and V3.2

(cherry picked from commit 0fa31d3e311e2e49b4a37ebf7c32cae2ee3070d4)

6 years agoMerge branch 'bugfix/sphinx_build_failure_on_rtd_v3.1' into 'release/v3.1'
Angus Gratton [Wed, 20 Mar 2019 23:55:03 +0000 (07:55 +0800)]
Merge branch 'bugfix/sphinx_build_failure_on_rtd_v3.1' into 'release/v3.1'

docs: Upgraded sphinx package version to prevent build failures on readthedocs…

See merge request idf/esp-idf!4555

6 years agoMerge branch 'test/detect_exception_in_idf_dut_v3.1' into 'release/v3.1'
Angus Gratton [Wed, 20 Mar 2019 23:54:37 +0000 (07:54 +0800)]
Merge branch 'test/detect_exception_in_idf_dut_v3.1' into 'release/v3.1'

tiny-test-fw: support detect exception in IDFDUT (backport v3.1)

See merge request idf/esp-idf!4544

6 years agoMerge branch 'test/fix_unit_test_job_pass_even_no_test_executed_v3.1' into 'release...
Angus Gratton [Wed, 20 Mar 2019 23:53:53 +0000 (07:53 +0800)]
Merge branch 'test/fix_unit_test_job_pass_even_no_test_executed_v3.1' into 'release/v3.1'

test: fix CI UT job pass even ut app bootup fail (backport v3.1)

See merge request idf/esp-idf!4387

6 years agoMerge branch 'bugfix/btdm_fix_no_adv_report_when_scaning_with_sleep_enable_v3.1'...
Jiang Jiang Jian [Wed, 20 Mar 2019 13:37:08 +0000 (21:37 +0800)]
Merge branch 'bugfix/btdm_fix_no_adv_report_when_scaning_with_sleep_enable_v3.1' into 'release/v3.1'

Component/bt: fix no adv report when scanning with sleep enable (backport v3.1)

See merge request idf/esp-idf!4558

6 years agoMerge branch 'bugfix/btdm_fix_blufi_prepare_write_crash_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Wed, 20 Mar 2019 13:03:14 +0000 (21:03 +0800)]
Merge branch 'bugfix/btdm_fix_blufi_prepare_write_crash_v3.1' into 'release/v3.1'

Component/bt: fix blufi prepare write crash (backport v3.1)

See merge request idf/esp-idf!4564

6 years agoMerge branch 'bugfix/btdm_fix_build_warning_when_bluedroid_disable_log_v3.1' into...
Jiang Jiang Jian [Wed, 20 Mar 2019 13:02:59 +0000 (21:02 +0800)]
Merge branch 'bugfix/btdm_fix_build_warning_when_bluedroid_disable_log_v3.1' into 'release/v3.1'

Component/bt: fix build warning when bluedroid disable log (backport v3.1)

See merge request idf/esp-idf!4567

6 years agoMerge branch 'bugfix/esp_tls_const_bytes_field_v3.1' into 'release/v3.1'
Ivan Grokhotkov [Wed, 20 Mar 2019 08:09:32 +0000 (16:09 +0800)]
Merge branch 'bugfix/esp_tls_const_bytes_field_v3.1' into 'release/v3.1'

esp_tls: Make cacert_pem_bytes field a mutable integer

See merge request idf/esp-idf!4529

6 years agoComponent/bt: fix build warning when bluedroid disable log
zhiweijian [Fri, 15 Mar 2019 12:59:55 +0000 (20:59 +0800)]
Component/bt: fix build warning when bluedroid disable log

6 years agoComponent/bt: fix blufi prepare write crash
zhiweijian [Mon, 25 Feb 2019 06:48:46 +0000 (14:48 +0800)]
Component/bt: fix blufi prepare write crash

6 years agoComponent/bt: fix no adv report when scanning with sleep enable
zhiweijian [Wed, 20 Mar 2019 03:59:48 +0000 (11:59 +0800)]
Component/bt: fix no adv report when scanning with sleep enable

6 years agoMerge branch 'bugfix/spiram_linker_wildcards_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Wed, 20 Mar 2019 03:27:37 +0000 (11:27 +0800)]
Merge branch 'bugfix/spiram_linker_wildcards_v3.1' into 'release/v3.1'

esp32 psram: Provide library name for ROM libc objects linked as PSRAM workarounds (backport v3.1)

See merge request idf/esp-idf!4305

6 years agoMerge branch 'bugfix/mdns_incorrect_semaphore_use_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Wed, 20 Mar 2019 03:25:44 +0000 (11:25 +0800)]
Merge branch 'bugfix/mdns_incorrect_semaphore_use_v3.1' into 'release/v3.1'

mdns: use binary semaphore instead of mutex when searching (Backport 3.1)

See merge request idf/esp-idf!4479

6 years agoMerge branch 'bugfix/ble_assert_8192_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Wed, 20 Mar 2019 03:24:47 +0000 (11:24 +0800)]
Merge branch 'bugfix/ble_assert_8192_v3.1' into 'release/v3.1'

fix the bug assert(8192 0) in rwble.c 234

See merge request idf/esp-idf!4506

6 years agodocs: Upgraded sphinx package version to prevent build failures on readthedocs site...
krzychb [Tue, 19 Mar 2019 19:09:30 +0000 (20:09 +0100)]
docs: Upgraded sphinx package version to prevent build failures on readthedocs site. Upgraded versions of other packages that are used during documentation build. (backport v3.1)

6 years agotest: handle exception by unit test script:
He Yin Ling [Mon, 18 Mar 2019 14:19:30 +0000 (22:19 +0800)]
test: handle exception by unit test script:

unit test script will detect exception, we don't need to let test fail
when exception happened.

6 years agotiny-test-fw: support translate backtrace in IDFDUT
He Yin Ling [Mon, 18 Mar 2019 04:16:24 +0000 (12:16 +0800)]
tiny-test-fw: support translate backtrace in IDFDUT

6 years agomdns: use binary semaphore instead of mutex when searching
Ivan Grokhotkov [Mon, 4 Mar 2019 08:59:09 +0000 (16:59 +0800)]
mdns: use binary semaphore instead of mutex when searching

mdns_search_once_t::lock is used to synchronize tasks (taken by one
task and given by the other) so it should not be a mutex.
Convert to semaphore, and rename to indicate its purpose.

6 years agofix the bug assert(8192 0) in rwble.c 234
Tian Hao [Tue, 12 Mar 2019 03:21:47 +0000 (11:21 +0800)]
fix the bug assert(8192 0) in rwble.c 234

6 years agotiny-test-fw: support detect exception in IDFDUT
He Yin Ling [Sat, 16 Mar 2019 12:07:52 +0000 (20:07 +0800)]
tiny-test-fw: support detect exception in IDFDUT

6 years agoesp32 psram: Provide library name for ROM libc objects linked as PSRAM workarounds
Angus Gratton [Tue, 22 Jan 2019 03:49:17 +0000 (11:49 +0800)]
esp32 psram: Provide library name for ROM libc objects linked as PSRAM workarounds

Fixes bug reported on forums where any source file ending in *lock.c or *creat.c
was being linked to IRAM.

https://esp32.com/viewtopic.php?f=13&t=8909&p=37362#p37362

6 years agoesp_tls: Make cacert_pem_bytes field a mutable integer
Angus Gratton [Mon, 18 Mar 2019 05:35:00 +0000 (16:35 +1100)]
esp_tls: Make cacert_pem_bytes field a mutable integer

Ref https://esp32.com/viewtopic.php?f=2&t=9737&p=40278#p40277

6 years agoMerge branch 'bugfix/build_system_tests_cmake_v3.1' into 'release/v3.1'
Angus Gratton [Mon, 18 Mar 2019 23:16:26 +0000 (07:16 +0800)]
Merge branch 'bugfix/build_system_tests_cmake_v3.1' into 'release/v3.1'

ci: Fix build system CMake test for v3.1

See merge request idf/esp-idf!4531

6 years agoci: Fix build system CMake test for v3.1
Angus Gratton [Mon, 18 Mar 2019 06:53:17 +0000 (17:53 +1100)]
ci: Fix build system CMake test for v3.1

Fix regression in !4365

6 years agoMerge branch 'bugfix/doc_ubuntu_packages_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Sun, 17 Mar 2019 06:41:44 +0000 (14:41 +0800)]
Merge branch 'bugfix/doc_ubuntu_packages_v3.1' into 'release/v3.1'

docs: Update package dependencies (backport v3.1)

See merge request idf/esp-idf!4457

6 years agoMerge branch 'bugfix/mdns_add_remove_multiple_srv_3.1' into 'release/v3.1'
Jiang Jiang Jian [Sun, 17 Mar 2019 06:34:49 +0000 (14:34 +0800)]
Merge branch 'bugfix/mdns_add_remove_multiple_srv_3.1' into 'release/v3.1'

mdns: fix possible crash if tx packet contained answer to removed service (backport 3.1)

See merge request idf/esp-idf!4482

6 years agoMerge branch 'bugfix/mdns_service_memory_leak_3.1' into 'release/v3.1'
Jiang Jiang Jian [Sun, 17 Mar 2019 06:28:35 +0000 (14:28 +0800)]
Merge branch 'bugfix/mdns_service_memory_leak_3.1' into 'release/v3.1'

mdns: fix memory leak when query for service plus various other fixes (Backport v3.1)

See merge request idf/esp-idf!4313

6 years agoMerge branch 'bugfix/cmake_psram_fix_flag_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Fri, 15 Mar 2019 02:57:49 +0000 (10:57 +0800)]
Merge branch 'bugfix/cmake_psram_fix_flag_v3.1' into 'release/v3.1'

cmake: Fix psram workaround compiler flag application (backport v3.1)

See merge request idf/esp-idf!4365

6 years agoMerge branch 'bugfix/msys_cancel_idfpy_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Fri, 15 Mar 2019 02:57:35 +0000 (10:57 +0800)]
Merge branch 'bugfix/msys_cancel_idfpy_v3.1' into 'release/v3.1'

tools: re-run idf.py in MSYS with winpty (backport v3.1)

See merge request idf/esp-idf!4455

6 years agoMerge branch 'feature/btdm_add_adv_report_flow_control_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Thu, 14 Mar 2019 09:42:06 +0000 (17:42 +0800)]
Merge branch 'feature/btdm_add_adv_report_flow_control_v3.1' into 'release/v3.1'

component/bt: add vendor hci and adv report flow control (backport v3.1)

See merge request idf/esp-idf!4463

6 years agomdns: fix possible crash when probing on particular interface with duplicated service...
David Cermak [Mon, 11 Mar 2019 10:49:29 +0000 (11:49 +0100)]
mdns: fix possible crash when probing on particular interface with duplicated service instances due to naming conflicts on network

Issue: MDNS server initially sends probing packets to resolve naming confilicts with already registered service instances. In case of a conflict, instance name is altered and probing restarts. Original instance however wasnnot removed from the structure and upon service removal only one entry was removed and a dangling service might have been kept in the structure to bring about a crash.
Resolution: Keep only one instance of a service in the probing structure.

6 years agomdns: enable pcbs before starting service thread to avoid updating pcb's internal...
David Cermak [Mon, 4 Mar 2019 11:32:10 +0000 (12:32 +0100)]
mdns: enable pcbs before starting service thread to avoid updating pcb's internal variables from concurent tasks

possible race condition: user task runs mdns_init, which enables pcbs while mdns-task already created could execute enable/disable of the same pcbs if an appropriate system event received

6 years agomdns: fix possible deadlock on mdns deinit calling mdns_free()
David Cermak [Mon, 4 Mar 2019 10:13:52 +0000 (11:13 +0100)]
mdns: fix possible deadlock on mdns deinit calling mdns_free()

mnds_free() initiates stop and delete timer tasks, which after locking the mutex could lead to a dead lock in case timer task executed before deleting the task, as it would wait indefinitelly for unlocking the mutex. This condition is fixed by calling _mdns_stop_timer without locking the mutex, because there's no need to protect any data when stopping and deleting the timer task

6 years agomdsn: fix race condition in updating packet data from user task when failed to alloca...
David Cermak [Fri, 1 Mar 2019 15:59:38 +0000 (16:59 +0100)]
mdsn: fix race condition in updating packet data from user task when failed to allocate or queue a new service

Issue: mdns_service_add API allocates and queues an action to be processed in mdns task context; when allocation or queueing fails, allocated structure needs to be freed. Function _mdns_free_service did not only fee all the structures, but also updates packet data.
Resolution: Moved removal of packet data outside of _mdns_free_service function.

6 years agomdns: fix possible crash when packet scheduled to transmit contained service which...
David Cermak [Mon, 25 Feb 2019 13:29:39 +0000 (14:29 +0100)]
mdns: fix possible crash when packet scheduled to transmit contained service which might have been already removed

packets scheduled to transmit are pushed to action queue and removed from tx_queue_head structure, which is searched for all remaining services and while service is removed, then service questions/asnwers are also removed from this structure. This update fixes possible crash when packet is pushed to action queue, and when service is removed, its answers are removed from tx_queue_head, but not from action queue. this could lead to a crash when the packet is poped from action queue containing questions/answers to already removed (freed) service

6 years agoComponent/bt: add BLE adv report flow control
zhiweijian [Fri, 1 Mar 2019 13:59:55 +0000 (21:59 +0800)]
Component/bt: add BLE adv report flow control

6 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

6 years agodocs: Update package dependencies
Roland Dobai [Fri, 1 Mar 2019 09:50:16 +0000 (10:50 +0100)]
docs: Update package dependencies

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

6 years agotools: re-run idf.py in MSYS with winpty
Roland Dobai [Fri, 22 Feb 2019 15:07:26 +0000 (16:07 +0100)]
tools: re-run idf.py in MSYS with winpty

This is done in order to cancel subprocesses on keyboard interrupt
(CTRL+C).

6 years agocmake: Fix psram workaround compiler flag application
Angus Gratton [Fri, 22 Feb 2019 01:20:11 +0000 (12:20 +1100)]
cmake: Fix psram workaround compiler flag application

Previously, this compiler flag was not being applied
regardless of CONFIG_SPIRAM_CACHE_WORKAROUND setting.

Explanation: add_compile_options() only applies to
source files added after the function is run, or in
subdirectories added after the function is run. In
this case, no new source files were being added after
this function was run.

6 years agoMerge branch 'bugfix/autoip_memoey_leak_debug_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Fri, 8 Mar 2019 11:54:53 +0000 (19:54 +0800)]
Merge branch 'bugfix/autoip_memoey_leak_debug_v3.1' into 'release/v3.1'

fix the bug in auto Ip memory leak(backport v3.1)

See merge request idf/esp-idf!4430

6 years agofix the bug in auto Ip memory leak
xiehang [Wed, 6 Mar 2019 13:07:22 +0000 (21:07 +0800)]
fix the bug in auto Ip memory leak

6 years agofix the bug in auto Ip memory leak
xiehang [Wed, 6 Mar 2019 11:51:01 +0000 (19:51 +0800)]
fix the bug in auto Ip memory leak

6 years agomdns: fix memory leak in pbuf if tcpipadapter failed to get netif
David Cermak [Fri, 15 Feb 2019 14:59:11 +0000 (15:59 +0100)]
mdns: fix memory leak in pbuf if tcpipadapter failed to get netif

6 years agomdns example: fix print result for IPv6 addresses
David Cermak [Fri, 15 Feb 2019 14:54:18 +0000 (15:54 +0100)]
mdns example: fix print result for IPv6 addresses

6 years agomdns: fix malfuctional query_txt
David Cermak [Fri, 15 Feb 2019 12:46:51 +0000 (13:46 +0100)]
mdns: fix malfuctional query_txt

when running a query for a single txt, result entries were not created and attached to result structure. this issue was introduced when fixing memory leak in txt structure, which worked correctly for PTR queries, but caused trouble for TXT query.

6 years agomdns: fix possible crash when mdns_free called while action queue not empty
David Cermak [Fri, 15 Feb 2019 12:23:21 +0000 (13:23 +0100)]
mdns: fix possible crash when mdns_free called while action queue not empty

6 years agomdns: fix memory leak when query for service receives multiple ptr entries for one...
David Cermak [Thu, 14 Feb 2019 15:39:11 +0000 (16:39 +0100)]
mdns: fix memory leak when query for service receives multiple ptr entries for one instance

fixes redmine issue 27300

6 years agoMerge branch 'bugfix/cmake_stack_protector_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Wed, 6 Mar 2019 06:19:52 +0000 (14:19 +0800)]
Merge branch 'bugfix/cmake_stack_protector_v3.1' into 'release/v3.1'

esp32: disable stack protector for startup code (CMake) (backport v3.1)

See merge request idf/esp-idf!4251

6 years agoMerge branch 'bugfix/fix_dig_gpio_unable_hold_bug_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Wed, 6 Mar 2019 06:19:16 +0000 (14:19 +0800)]
Merge branch 'bugfix/fix_dig_gpio_unable_hold_bug_v3.1' into 'release/v3.1'

Bugfix/fix digital gpio unable hold bug  (backport v3.1)

See merge request idf/esp-idf!4354

6 years agoMerge branch 'bugfix/btdm_fix_iOS_and_win10_compatibility_error_for_HID_v3.1' into...
Jiang Jiang Jian [Wed, 6 Mar 2019 06:12:31 +0000 (14:12 +0800)]
Merge branch 'bugfix/btdm_fix_iOS_and_win10_compatibility_error_for_HID_v3.1' into 'release/v3.1'

Component/bt: fix iOS and win10 compatibility error  for HID (backport v3.1)

See merge request idf/esp-idf!4425

6 years agoMerge branch 'bugfix/make_get_coreid_volatile_backport_v3.1' into 'release/v3.1'
Ivan Grokhotkov [Wed, 6 Mar 2019 03:26:06 +0000 (11:26 +0800)]
Merge branch 'bugfix/make_get_coreid_volatile_backport_v3.1' into 'release/v3.1'

freertos: Make xPortGetCoreID() volatile (backport v3.1)

See merge request idf/esp-idf!4378

6 years agodriver(gpio): fixed digital gpio unable hold bug during deep-sleep for release/v3.1 .
kooho [Fri, 7 Dec 2018 13:44:43 +0000 (21:44 +0800)]
driver(gpio): fixed digital gpio unable hold bug during deep-sleep for release/v3.1 .

6 years agoMerge branch 'feature/add_api_get_rmt_idle_level_v3.1' into 'release/v3.1'
Angus Gratton [Wed, 6 Mar 2019 02:39:42 +0000 (10:39 +0800)]
Merge branch 'feature/add_api_get_rmt_idle_level_v3.1' into 'release/v3.1'

Bugfix:  Fixed some RMT related issues (backport v3.1)

See merge request idf/esp-idf!4356

6 years agoComponent/bt: fix iOS and win10 compatibility error for HID
zhiweijian [Thu, 28 Feb 2019 12:39:12 +0000 (20:39 +0800)]
Component/bt: fix iOS and win10 compatibility error  for HID

6 years agotest: fix CI UT job pass even ut app bootup fail
He Yin Ling [Thu, 31 Jan 2019 02:12:17 +0000 (10:12 +0800)]
test: fix CI UT job pass even ut app bootup fail

6 years agoesp32: disable stack protector for startup code (CMake)
Ivan Grokhotkov [Tue, 29 Jan 2019 09:41:00 +0000 (17:41 +0800)]
esp32: disable stack protector for startup code (CMake)

Files where stack protector is initialized should not be compiled with
stack protector enabled. This was done for Make but missing for CMake.

Fixes https://github.com/espressif/esp-idf/issues/2990.

6 years agoMerge branch 'feature/upgrade_sphinx_and_breathe_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Tue, 5 Mar 2019 06:34:59 +0000 (14:34 +0800)]
Merge branch 'feature/upgrade_sphinx_and_breathe_v3.1' into 'release/v3.1'

docs: Preparation for upgrade of Sphinx and Breathe packages to versions 1.8.4…

See merge request idf/esp-idf!4381

6 years agoMerge branch 'bugfix/sorting_and_list_of_lib_in_idf_size_v3.1' into 'release/v3.1'
Angus Gratton [Tue, 5 Mar 2019 03:03:51 +0000 (11:03 +0800)]
Merge branch 'bugfix/sorting_and_list_of_lib_in_idf_size_v3.1' into 'release/v3.1'

tools: Fix sorting and list of libs in idf_size.py

See merge request idf/esp-idf!4285

6 years agoMerge branch 'bugfix/fix_some_wifi_bugs_0301_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Tue, 5 Mar 2019 02:33:24 +0000 (10:33 +0800)]
Merge branch 'bugfix/fix_some_wifi_bugs_0301_v3.1' into 'release/v3.1'

esp32: fix some WiFi bugs (backport v3.1)

See merge request idf/esp-idf!4401

6 years agofreertos: Make xPortGetCoreID() volatile
Darian Leung [Tue, 26 Feb 2019 12:58:02 +0000 (20:58 +0800)]
freertos: Make xPortGetCoreID() volatile

When xPortGetCoreID() is called twice within a function,
it might only be called once after compilation. This
commit makes the inline assembly of the function volatile.

Closes #3093

6 years agoMerge branch 'bugfix/wifi_modify_wifi_kconfig_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Fri, 1 Mar 2019 10:46:36 +0000 (18:46 +0800)]
Merge branch 'bugfix/wifi_modify_wifi_kconfig_v3.1' into 'release/v3.1'

esp32: modify WiFi Kconfig in order to achieve better compatility and performance (bakcport v3.1)

See merge request idf/esp-idf!4385

6 years agoMerge branch 'bugfix/multiple_backports_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Fri, 1 Mar 2019 10:46:10 +0000 (18:46 +0800)]
Merge branch 'bugfix/multiple_backports_v3.1' into 'release/v3.1'

multiple backports (v3.1)

See merge request idf/esp-idf!4376

6 years agoMerge branch 'bugfix/ble_reconn_rescan_readv_crash_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Fri, 1 Mar 2019 10:05:54 +0000 (18:05 +0800)]
Merge branch 'bugfix/ble_reconn_rescan_readv_crash_v3.1' into 'release/v3.1'

component/bt : fix bug that there's low ratio crash when BLE do re-connect/re-scan/re-adv

See merge request idf/esp-idf!4327

6 years agoesp32: fix some WiFi bugs
Liu Zhi Fu [Fri, 1 Mar 2019 03:57:16 +0000 (11:57 +0800)]
esp32: fix some WiFi bugs

Fix following WiFi bugs:
1. Fix the bug that STA incorrectly deletes BA when receiving DelBA request
2. Add out of memory check
3. Fix the bug that STA incorrectly receives packets when scanning in connected status

6 years agoci: Only use "github_sync" tagged runners to talk to GitHub
Angus Gratton [Sun, 24 Feb 2019 23:41:39 +0000 (10:41 +1100)]
ci: Only use "github_sync" tagged runners to talk to GitHub

6 years agoci: Retry submodule sync 2 more times before failing
Angus Gratton [Wed, 20 Feb 2019 23:48:55 +0000 (10:48 +1100)]
ci: Retry submodule sync 2 more times before failing

6 years agonvs: add a blob fragmentation test case
Ivan Grokhotkov [Fri, 22 Feb 2019 10:14:48 +0000 (18:14 +0800)]
nvs: add a blob fragmentation test case

Ref. TW12937

6 years agonvs: do eager cleanup of HashListBlocks
Ivan Grokhotkov [Fri, 22 Feb 2019 09:28:43 +0000 (17:28 +0800)]
nvs: do eager cleanup of HashListBlocks

Previously when HashList was removing items, HashListBlocks were
removed lazily. This resulted in empty HashListBlocks dangling around
in full pages, even when all items have been erased. These blocks
would only be deleted when NVS was re-initialized
(nvs_flash_deinit/nvs_flash_init).

This change does eager cleanup instead, based on the code from
@negativekelvin offered in
https://github.com/espressif/esp-idf/issues/1642#issuecomment-367227994.

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

6 years agoesp_timer: fix occasional failures in "monotonic values" test
Ivan Grokhotkov [Fri, 22 Feb 2019 13:27:43 +0000 (21:27 +0800)]
esp_timer: fix occasional failures in "monotonic values" test

1. ref_clock used in unit tests occasionally produces time off by ~100
microseconds shortly after being started. Add a delay to let
ref_clock stabilise, until the cause is found.

2. Reduce roundoff error accumulation which would occasionally cause
the test to fail, by choosing an overflow value which can be divided
by APB frequency.

3. Move time sampling part of the test into an IRAM function to
reduce variations due to cache behavior.

4. Remove calculation of "standard deviation" in the test, as what was
calculated was not actually standard deviation, and it did not add any
useful information.

6 years agoesp_timer: improve unit test robustness
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

6 years agosoc: define named constants for DPORT_CPUPERIOD_SEL values
Ivan Grokhotkov [Tue, 26 Feb 2019 09:07:59 +0000 (17:07 +0800)]
soc: define named constants for DPORT_CPUPERIOD_SEL values

6 years agobootloader: check previously used clock frequency at run time
Ivan Grokhotkov [Thu, 29 Nov 2018 07:18:11 +0000 (15:18 +0800)]
bootloader: check previously used clock frequency at run time

In the situation when bootloader was compiled for 240MHz, and app was
compiled for 160MHz, and the chip is a revision 0 chip, the
bootloader will assume that the application has also been running at
240MHz. This will cause the chip to lock up later. Modify this to use
a run time check of DPORT_CPUPERIOD_SEL, which indicates which of the
PLL frequencies was used.

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

6 years agosoc/rtc_clk: don’t clear DPORT_CPUPERIOD_SEL when switching to XTAL
Ivan Grokhotkov [Wed, 27 Feb 2019 12:29:25 +0000 (20:29 +0800)]
soc/rtc_clk: don’t clear DPORT_CPUPERIOD_SEL when switching to XTAL

This is not necessary since RTC_CNTL_SOC_CLK_SEL is set before this.

6 years agomake: fix issues related to EXTRA_COMPONENT_DIRS
Ivan Grokhotkov [Wed, 13 Feb 2019 03:40:48 +0000 (11:40 +0800)]
make: fix issues related to EXTRA_COMPONENT_DIRS

1. When one of the COMPONENT_DIRS points to a component directory
(i.e. a directory containing component.mk, not a directory of multiple
components), and there is a subdirectory in it which also contains
a component, the subdirectory was mistakenly added to the list of
components and compiled.

For example:

    main/
        component.mk
        main.c
        test/
            component.mk
            test_main.c

Would compile test_main.c and link libtest.a.

2. When one of the COMPONENT_DIRS points to a component directory, and
the parent directory contained a directory with the same name as
another component, that directory would be mistakenly added to the
COMPONENT_PATHS.

For example:

    esp/
        esp-idf/
        esp32/
            (random stuff)
        mycomponent/
            component.mk
            mycomponent.c
        myproject/
            main/
            Makefile

and Makefile sets EXTRA_COMPONENT_DIRS=$(realpath ../mycomponent),
then "esp32" directory which is at the same level as mycomponent
was added to COMPONENT_PATHS.

3. If EXTRA_COMPONENT_DIRS pointed to a directory with a list of
components, and one of the subdirectories was not a component, but
had the same name as another component, than that directory would be
mistakenly added to COMPONENT_PATHS instead of the real esp32
component directory.

For example:

    my_components/
        my_component/
            component.mk
            my_component.c
        esp32/
            (some random stuff)

and EXTRA_COMPONENT_DIRS would point to my_components/, then "esp32"
directory would be added to COMPONENT_PATHS instead of the real esp32
component directory.

6 years agokconfig: fix compatibility with very old versions of flex
Ivan Grokhotkov [Thu, 14 Feb 2019 03:17:48 +0000 (11:17 +0800)]
kconfig: fix compatibility with very old versions of flex

See https://github.com/crosstool-ng/crosstool-ng/commit/4e762e4918d8755e762db1db328760dfa5fc7a14

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

6 years agoMerge branch 'bugfix/fix_scan_bugs_and_alloc_eb_fail_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Thu, 28 Feb 2019 13:31:49 +0000 (21:31 +0800)]
Merge branch 'bugfix/fix_scan_bugs_and_alloc_eb_fail_v3.1' into 'release/v3.1'

wifi: fix scan bugs and alloc eb fail (backport v3.1)

See merge request idf/esp-idf!4389

6 years agoMerge branch 'bugfix/enlarge_ethernet_stack_size_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Thu, 28 Feb 2019 10:23:28 +0000 (18:23 +0800)]
Merge branch 'bugfix/enlarge_ethernet_stack_size_v3.1' into 'release/v3.1'

enlarge ethernet task stack size (backport v3.1)

See merge request idf/esp-idf!4369

6 years agowifi changes:
zhangyanjiao [Wed, 13 Feb 2019 09:37:53 +0000 (17:37 +0800)]
wifi changes:
1. make menuconfig can set the WiFi mgmt short buffer num
2. fix several scan bugs

6 years agoesp32: modify WiFi Kconfig in order to achieve better compatility
XiaXiaotian [Fri, 25 Jan 2019 09:26:49 +0000 (17:26 +0800)]
esp32: modify WiFi Kconfig in order to achieve better compatility
and performance

6 years agodocs: Preparation for upgrade of Sphinx and Breathe packages to versions 1.8.4 and...
krzychb [Wed, 27 Feb 2019 22:36:34 +0000 (23:36 +0100)]
docs: Preparation for upgrade of Sphinx and Breathe packages to versions 1.8.4 and 4.11.1. Updated check of Sphinx warnings to account for the filename instead of the whole path, that for the same errors may be different between English and Chinese docs. (backport v3.1)

6 years agoMerge branch 'doc/btdm_modem_sleep_EVED_mode_for_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Wed, 27 Feb 2019 10:36:04 +0000 (18:36 +0800)]
Merge branch 'doc/btdm_modem_sleep_EVED_mode_for_v3.1' into 'release/v3.1'

doc/btdm_modem_sleep_EVED_mode_for_v3.1(backport v3.1)

See merge request idf/esp-idf!4361

6 years agoMerge branch 'bugfix/tw28146_make_wifi_iram_optimization_configurable_v3.1' into...
Jiang Jiang Jian [Wed, 27 Feb 2019 09:36:55 +0000 (17:36 +0800)]
Merge branch 'bugfix/tw28146_make_wifi_iram_optimization_configurable_v3.1' into 'release/v3.1'

esp32: make WiFi IRAM optimization configurable (backport v3.1)

See merge request idf/esp-idf!4041

6 years agoethernet: enlarge ethernet task stack size
morris [Wed, 5 Sep 2018 13:43:03 +0000 (21:43 +0800)]
ethernet: enlarge ethernet task stack size

1. In original driver, the stack size for emac driver task "emacT" is only 2048 Bytes, which also can not be changed by user.
2. Each time when invoking "emac_start" function, it will reset emac registers, the driver should reconfig some important registers again.

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

6 years agocomponent/bt: add more information and description for bluetooth modem sleep
wangmengyang [Wed, 27 Feb 2019 02:51:15 +0000 (10:51 +0800)]
component/bt: add more information and description for bluetooth modem sleep

Add remark that "EVED" mode for bluetooth modem sleep is only used for internal test

6 years agodriver(rmt): Fixed some RMT related issues for release/v3.1.
Paul Abbott [Mon, 24 Sep 2018 19:23:26 +0000 (15:23 -0400)]
driver(rmt): Fixed some RMT related issues for release/v3.1.

1. Add missing get function to RMT API: rmt_get_idle_level().
2. Suppress error message from rmt_wait_tx_done() if wait_time==0 (allows for polling).
3. Remove the blank lines between parameter lists.

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

6 years agoesp32: make WiFi IRAM optimization configurable
Liu Zhi Fu [Tue, 18 Dec 2018 01:36:50 +0000 (09:36 +0800)]
esp32: make WiFi IRAM optimization configurable

With this feature, the WiFi IRAM optimization can be disabled/enabled via menuconfig.

6 years agocomponent/bt : fix bug that there's low ratio crash when BLE do re-connect/re-scan...
Tian Hao [Thu, 21 Feb 2019 04:18:30 +0000 (12:18 +0800)]
component/bt : fix bug that there's low ratio crash when BLE do re-connect/re-scan/re-adv

fix 3 bugs:
1. do BLE connect (both of slave and master), it mgiht cause crash due to there's much interrupts happens effect ble code running, for example, wifi run on the same core as bluetooth controller and wifi run throughtput test.
2. do BLE scan stop or adv stop or connection stop, it might cause ASSERT or crash due to memory corrupted in controller memory poll.
3. minor bug fix, not really effect bluetooth.

6 years agoMerge branch 'bugfix/btdm_backport_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Thu, 21 Feb 2019 10:24:45 +0000 (18:24 +0800)]
Merge branch 'bugfix/btdm_backport_v3.1' into 'release/v3.1'

component/bt: backport some MRs to v3.1

See merge request idf/esp-idf!4312

6 years agoMerge branch 'bugfix/btdm_fix_connection_params_update_issues_v3.1' into 'release...
Jiang Jiang Jian [Thu, 21 Feb 2019 03:47:58 +0000 (11:47 +0800)]
Merge branch 'bugfix/btdm_fix_connection_params_update_issues_v3.1' into 'release/v3.1'

component/bt:fix connection params update issues (backport v3.1)

See merge request idf/esp-idf!4298

6 years agotools: Fix sorting and list of libs in idf_size.py
Konstantin Kondrashov [Mon, 18 Feb 2019 06:56:35 +0000 (14:56 +0800)]
tools: Fix sorting and list of libs in idf_size.py

Make the same output as for v3.2 and 3.3 for idf_size.py --archives /path/to/file.map
and also for idf_size.py --archive_details libhap_min.a
/path/to/file.map

Closes: TW28774