]> granicus.if.org Git - esp-idf/log
esp-idf
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 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 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 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 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

6 years agoMerge branch 'bugfix/rom_export_functions_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Wed, 23 Jan 2019 13:58:58 +0000 (21:58 +0800)]
Merge branch 'bugfix/rom_export_functions_v3.1' into 'release/v3.1'

esp32, bootloader: fix issues related to linking order (backport v3.1)

See merge request idf/esp-idf!4135

6 years agoMerge branch 'bugfix/vfs_unregister_nested_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Wed, 23 Jan 2019 13:54:04 +0000 (21:54 +0800)]
Merge branch 'bugfix/vfs_unregister_nested_v3.1' into 'release/v3.1'

vfs: fix unregister removing top level VFS instead of nested (backport v3.1)

See merge request idf/esp-idf!4136

6 years agoMerge branch 'bugfix/init_memctl_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Wed, 23 Jan 2019 13:44:11 +0000 (21:44 +0800)]
Merge branch 'bugfix/init_memctl_v3.1' into 'release/v3.1'

bootloader, esp32: add workaround for Tensilica erratum 572 (backport v3.1)

See merge request idf/esp-idf!4133

6 years agohwcrypto sha: Use spinlocks instead of semaphores for small state changes
Angus Gratton [Fri, 21 Dec 2018 05:16:16 +0000 (16:16 +1100)]
hwcrypto sha: Use spinlocks instead of semaphores for small state changes

Significant performance improvement and smaller RAM footprint.

6 years agohwcrypto sha: Allow SHA contexts to be shared between tasks
Angus Gratton [Fri, 21 Dec 2018 04:37:57 +0000 (15:37 +1100)]
hwcrypto sha: Allow SHA contexts to be shared between tasks

Previously, hardware SHA engine "locks" were mutex semaphores. This meant that the task which
started a particular SHA session (in hardware) needed to finalise that session, or an invalid
FreeRTOS state was created.

Replace with binary semaphore which can be shared between tasks.

Includes a unit test, but unit test doesn't crash even without this fix
(some other unknown condition is required).

6 years agoUpdate esptool.py to v2.6
Angus Gratton [Wed, 9 Jan 2019 07:11:41 +0000 (23:11 -0800)]
Update esptool.py to v2.6

6 years agobootloader: account for load address when mapping cache pages
Ivan Grokhotkov [Mon, 3 Sep 2018 10:15:20 +0000 (18:15 +0800)]
bootloader: account for load address when mapping cache pages

Bootloader used to calculate the number of cache pages assuming that
load address was aligned, while in reality load address for DROM and
IROM was offset by 0x20 bytes from the start of 64kB page. This
caused the bootloader to map one less page if the size of the image
was 0x4..0x1c less than a multiple of 64kB.

Reported in https://esp32.com/viewtopic.php?f=13&t=6952.

6 years agobootloader: fix IROM and DROM swapped in log messages
Ivan Grokhotkov [Mon, 3 Sep 2018 10:10:46 +0000 (18:10 +0800)]
bootloader: fix IROM and DROM swapped in log messages

6 years agovfs: fix unregister removing top level VFS instead of nested
Ivan Grokhotkov [Thu, 6 Dec 2018 11:30:05 +0000 (19:30 +0800)]
vfs: fix unregister removing top level VFS instead of nested

Credits @neoniousTR.

Fixes https://github.com/espressif/esp-idf/pull/2770

6 years agoesp32: remove ROM functions redefined in IDF from LD script
Ivan Grokhotkov [Wed, 26 Sep 2018 12:46:15 +0000 (20:46 +0800)]
esp32: remove ROM functions redefined in IDF from LD script

In some cases, linker could choose to use ROM functions instead of the
ones defined in IDF.
For functions used in ROM stub table, this would lead to infinite
recursion when the corresponding function was called from ROM.
For crypto functions, some of these were modified in IDF, and
incompatible with ROM counterparts.

6 years agobootloader_support: exclude bootloader_init.c when building app
Ivan Grokhotkov [Sun, 30 Sep 2018 04:27:06 +0000 (12:27 +0800)]
bootloader_support: exclude bootloader_init.c when building app

Depending on link order of libraries, bootloader implementation of
__assert_func could be linked instead of the one provided by newlib.

6 years agobootloader, esp32: add workaround for Tensilica erratum 572
Ivan Grokhotkov [Thu, 1 Nov 2018 03:30:48 +0000 (11:30 +0800)]
bootloader, esp32: add workaround for Tensilica erratum 572

If zero-overhead loop buffer is enabled, under certain rare conditions
when executing a zero-overhead loop, the CPU may attempt to execute an invalid instruction. Work around by disabling the buffer.

6 years agoMerge branch 'bugfix/wifi_fix_invalid_csi_data_index_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Wed, 23 Jan 2019 08:08:02 +0000 (16:08 +0800)]
Merge branch 'bugfix/wifi_fix_invalid_csi_data_index_v3.1' into 'release/v3.1'

esp32: fix invalid channel state information(CSI) data index (backport v3.1)

See merge request idf/esp-idf!4130

6 years agoesp32: fix invalid channel state information(CSI) data index
XiaXiaotian [Thu, 27 Dec 2018 13:06:58 +0000 (21:06 +0800)]
esp32: fix invalid channel state information(CSI) data index

    Due to a hardware limitation in ESP32, the first four bytes of some
    CSI data is invalid, not the last four bytes.

    Correct a mistake of CSI sub-carrier index in documentation.

6 years agobugfix(i2c): reduce speed of I2C master bus reset routine and release SDA
Wangjialin [Wed, 28 Nov 2018 07:41:46 +0000 (15:41 +0800)]
bugfix(i2c): reduce speed of I2C master bus reset routine and release SDA

closes https://github.com/espressif/esp-idf/issues/2494
closes https://github.com/espressif/esp-idf/pull/2493
closes https://github.com/espressif/esp-idf/pull/2496

1. Change bus reset to handle interrupted READ sequences.
2. Slow down I2C to 100khz during reset
3. If a SLAVE device was in a read operation when the bus was interrupted, the SLAVE device is controlling SDA.The only bit during the 9 clock cycles of a byte READ the MASTER(ESP32) is guaranteed control over, is during the ACK bit period.
If the SLAVE is sending a stream of ZERO bytes, it will only release SDA during the ACK bit period. The master(ESP32) cannot generate a STOP unless SDA is HIGH. So, this reset code synchronizes the bit stream with, Either, the ACK bit, Or a 1 bit.

6 years ago1. Slow down I2C to 100khz During Reset
chuck todd [Sun, 30 Sep 2018 20:47:05 +0000 (14:47 -0600)]
1. Slow down I2C to 100khz During Reset

I am stealing this delay coding from @jeremyherbert #2493 pr.

2. Change Bus Reset to handle interrupted READ sequences.

The current code does not handle interrupted READ cycles.

 If a SLAVE device was in a read operation when the bus was interrupted, the SLAVE device is controlling SDA.

The only bit during the 9 clock cycles of a byte READ the MASTER(ESP32) is guaranteed control over, is during the ACK bit period.

If the SLAVE is sending a stream of ZERO bytes, it will only release SDA during the ACK bit period. The master(ESP32) cannot generate a STOP unless SDA is HIGH.

So, this reset code synchronizes the bit stream with, Either, the ACK bit, Or a 1 bit.

3. fix typo

correct `sda_id` to `sda_io` in `i2c_master_clear_bus()` @ryan-ma found it.  This typo was generated when I manually edited this patch on GitHub, I should have done a Copy/Paste operation!

6 years agoreduce speed of i2c master bus reset routine and release sda
jeremy [Sun, 30 Sep 2018 09:26:09 +0000 (19:26 +1000)]
reduce speed of i2c master bus reset routine and release sda