]> granicus.if.org Git - esp-idf/log
esp-idf
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 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
6 years agoComponent/bt: fix get attr value API error
zhiweijian [Tue, 30 Oct 2018 07:00:23 +0000 (15:00 +0800)]
Component/bt: fix get attr value API error

6 years agoComponent/bt: fix ble cannot send or receive packet sometimes
zhiweijian [Tue, 30 Oct 2018 12:01:13 +0000 (20:01 +0800)]
Component/bt: fix ble cannot send or receive packet sometimes

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 agoMerge branch 'bugfix/mdns_crash_free_strdup_3.1' into 'release/v3.1'
Jiang Jiang Jian [Tue, 19 Feb 2019 18:15:51 +0000 (02:15 +0800)]
Merge branch 'bugfix/mdns_crash_free_strdup_3.1' into 'release/v3.1'

mdns: fixed crash on free undefined ptr if strdup is skipped (Backport 3.1)

See merge request idf/esp-idf!4189

6 years agoMerge branch 'bugfix/coex_lc_protect_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Tue, 19 Feb 2019 18:11:29 +0000 (02:11 +0800)]
Merge branch 'bugfix/coex_lc_protect_v3.1' into 'release/v3.1'

component/esp32 : fix coexist lc protect cause memory corrupted

See merge request idf/esp-idf!4266

6 years agocomponent/bt:fix connection params update issues
zwj [Tue, 19 Feb 2019 12:43:28 +0000 (20:43 +0800)]
component/bt:fix connection params update issues

6 years agoMerge branch 'bugfix/btdm_crash_when_inquiry_cancel_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Mon, 18 Feb 2019 12:01:34 +0000 (20:01 +0800)]
Merge branch 'bugfix/btdm_crash_when_inquiry_cancel_v3.1' into 'release/v3.1'

Bugfix/btdm crash when inquiry cancel v3.1

See merge request idf/esp-idf!4278

6 years agocomponents/bt: Add precautions for esp_vhci_host_send_packet (backport 3.1)
baohongde [Wed, 23 Jan 2019 10:04:01 +0000 (18:04 +0800)]
components/bt: Add precautions for esp_vhci_host_send_packet (backport 3.1)

6 years agocomponents/bt: Fix crash when inquiry stop (backport 3.1)
baohongde [Thu, 31 Jan 2019 03:47:41 +0000 (11:47 +0800)]
components/bt: Fix crash when inquiry stop (backport 3.1)

6 years agocomponent/esp32 : fix coexist lc protect cause memory corrupted
Tian Hao [Thu, 14 Feb 2019 08:37:56 +0000 (16:37 +0800)]
component/esp32 : fix coexist lc protect cause memory corrupted

The bug will cause memory corrupted (the largest range is from 0x3ffc0000 ~ 0x3ffc8000),
some strange error will happen, like IllegalInstruction, LoadProhibited and .etc.

6 years agoMerge branch 'bugfix/fix_some_wifi_bugs_0131_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Fri, 15 Feb 2019 04:15:04 +0000 (12:15 +0800)]
Merge branch 'bugfix/fix_some_wifi_bugs_0131_v3.1' into 'release/v3.1'

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

See merge request idf/esp-idf!4219

6 years agoMerge branch 'bugfix/backtrace_from_interrupts_backport_v3.1' into 'release/v3.1' v3.1.3
Angus Gratton [Wed, 13 Feb 2019 08:53:39 +0000 (16:53 +0800)]
Merge branch 'bugfix/backtrace_from_interrupts_backport_v3.1' into 'release/v3.1'

Make backtrace work across interrupts (backport v3.1)

See merge request idf/esp-idf!4182

6 years agoMerge branch 'fix/nvs_host_test' into 'release/v3.1'
Angus Gratton [Mon, 4 Feb 2019 06:28:26 +0000 (14:28 +0800)]
Merge branch 'fix/nvs_host_test' into 'release/v3.1'

Fix/nvs host test

See merge request idf/esp-idf!4223

6 years agoMerge branch 'bugfix/btdm_fix_write_char_crash_after_disconnection_v3.1' into 'releas...
Jiang Jiang Jian [Fri, 1 Feb 2019 13:29:15 +0000 (21:29 +0800)]
Merge branch 'bugfix/btdm_fix_write_char_crash_after_disconnection_v3.1' into 'release/v3.1'

Component/bt: fix write char crash after disconnection (backport v3.1)

See merge request idf/esp-idf!4211

6 years agoesp32: fix some WiFi bugs
Liu Zhi Fu [Thu, 31 Jan 2019 10:07:44 +0000 (18:07 +0800)]
esp32: fix some WiFi bugs

Fix following WiFi bugs:
1. Fix a crash bug which is caused by WiFi static TX buffer alloc/free.
2. Fix the bug that iphone fails to connect to ESP32 AP by enabling AP BAR receiving.
3. Fix the bug that ESP32 station fails to connect some APs, such as Xiaomi hotspot etc,
   after reset.

6 years agoFix/Nvs host test extra argument passed
Shivani Tipnis [Thu, 31 Jan 2019 13:11:27 +0000 (18:41 +0530)]
Fix/Nvs host test extra argument passed

(cherry picked from commit 7b2cae15ba37420700d19fad55062dadc32241e5)

6 years agoComponent/bt: fix write char crash after disconnection
zhiweijian [Thu, 31 Jan 2019 03:28:55 +0000 (11:28 +0800)]
Component/bt: fix write char crash after disconnection

6 years agoMerge branch 'feature/add_ipv6_related_change_v3.1' into 'release/v3.1'
He Yin Ling [Thu, 31 Jan 2019 06:31:26 +0000 (14:31 +0800)]
Merge branch 'feature/add_ipv6_related_change_v3.1' into 'release/v3.1'

modify test case to support ipv6 (backport v3.1)

See merge request idf/esp-idf!4073

6 years agoMerge branch 'bugfix/tw28445_wps_thread_safe_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Thu, 31 Jan 2019 02:44:07 +0000 (10:44 +0800)]
Merge branch 'bugfix/tw28445_wps_thread_safe_v3.1' into 'release/v3.1'

esp32: fix WPS thread-safe (backport v3.1)

See merge request idf/esp-idf!4196

6 years agofreertos: Make backtrace work across interrupts (backport v3.1)
Darian Leung [Fri, 4 Jan 2019 12:38:33 +0000 (20:38 +0800)]
freertos: Make backtrace work across interrupts (backport v3.1)

This commit adds the ability for backtracing to trace from the itnerrupt to the
task stack, and across nested interrupts. Test cases have also been added.

See merge request !4084
Note: "Test backtrace from abort" reset reason modified by removing abort as a reason.

6 years agoesp32: fix WPS thread-safe
Liu Zhi Fu [Wed, 30 Jan 2019 05:48:15 +0000 (13:48 +0800)]
esp32: fix WPS thread-safe

Fix WPS thread-safe bug

6 years agoMerge branch 'bugfix/coex_update_phy_to_fix_interrupt_wdt_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Wed, 30 Jan 2019 04:02:12 +0000 (12:02 +0800)]
Merge branch 'bugfix/coex_update_phy_to_fix_interrupt_wdt_v3.1' into 'release/v3.1'

esp32: update libphy.a to fix interrupt watchdog when WiFi and BT run at the same time and both enable modem sleep (backport v3.1)

See merge request idf/esp-idf!4193

6 years agomdns: fixed crash on free undefined ptr after skipped strdup
David Cermak [Fri, 25 Jan 2019 16:19:13 +0000 (17:19 +0100)]
mdns: fixed crash on free undefined ptr after skipped strdup

Shortcircuit evaluation may cause skip of _mdns_strdup_check of any further question field, which after clear_rx_packet freed undefined memory.
Fixes https://ezredmine.espressif.cn:8765/issues/28465

6 years agoesp32: update libphy.a to fix interrupt watchdog when WiFi and BT run at
XiaXiaotian [Tue, 29 Jan 2019 03:10:05 +0000 (11:10 +0800)]
esp32: update libphy.a to fix interrupt watchdog when WiFi and BT run at
the same time and both enable modem sleep

6 years agomodify test case to support ipv6
huchaoru [Tue, 17 Apr 2018 08:28:00 +0000 (16:28 +0800)]
modify test case to support ipv6

6 years agoMerge branch 'bugfix/btdm_fix_crash_adv_scan_coex_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Fri, 25 Jan 2019 04:04:55 +0000 (12:04 +0800)]
Merge branch 'bugfix/btdm_fix_crash_adv_scan_coex_v3.1' into 'release/v3.1'

fix crash when adv and scan coex and optimize duplicate scan

See merge request idf/esp-idf!4147

6 years agoMerge branch 'bugfix/ble_active_scan_not_wait_scan_rsp_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Fri, 25 Jan 2019 03:53:27 +0000 (11:53 +0800)]
Merge branch 'bugfix/ble_active_scan_not_wait_scan_rsp_v3.1' into 'release/v3.1'

component/bt: add a option to make report adv data and scan response individually (backport v3.1)

See merge request idf/esp-idf!4132

6 years agocomponent/bt: add a option to make report adv data and scan response individually
Tian Hao [Wed, 23 Jan 2019 06:11:56 +0000 (14:11 +0800)]
component/bt: add a option to make report adv data and scan response individually

Originally, when doing BLE active scan, Bluedroid will not report adv to
application layer until receive scan response. This option is used to
disable the behavior. When enable this option, Bluedroid will report
adv data or scan response to application layer immediately.

6 years agofix crash when adv and scan coex and optimize duplicate scan
zhiweijian [Wed, 23 Jan 2019 12:00:25 +0000 (20:00 +0800)]
fix crash when adv and scan coex and optimize duplicate scan

6 years agoMerge branch 'bugfix/i2c_master_clear_bus_v3.1' into 'release/v3.1'
Angus Gratton [Thu, 24 Jan 2019 06:53:00 +0000 (14:53 +0800)]
Merge branch 'bugfix/i2c_master_clear_bus_v3.1' into 'release/v3.1'

i2c/fix i2c_master_clear_bus (backport v3.1)

See merge request idf/esp-idf!4128

6 years agoMerge branch 'bugfix/idfpy_monitor_msys_v3.1' into 'release/v3.1'
Angus Gratton [Thu, 24 Jan 2019 06:50:47 +0000 (14:50 +0800)]
Merge branch 'bugfix/idfpy_monitor_msys_v3.1' into 'release/v3.1'

tools: fix idf.py monitor for MSYS (backport v3.1)

See merge request idf/esp-idf!3897

6 years agoMerge branch 'bugfix/bootloader_map_size_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Thu, 24 Jan 2019 06:09:58 +0000 (14:09 +0800)]
Merge branch 'bugfix/bootloader_map_size_v3.1' into 'release/v3.1'

bootloader: fix incorrect mapping size (backport v3.1)

See merge request idf/esp-idf!4139

6 years agoMerge branch 'bugfix/sha_ownership_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Thu, 24 Jan 2019 06:08:35 +0000 (14:08 +0800)]
Merge branch 'bugfix/sha_ownership_v3.1' into 'release/v3.1'

hwcrypto sha: Allow SHA contexts to be shared between tasks (backport v3.1)

See merge request idf/esp-idf!4144