esp-idf
6 years agoMerge branch 'bugfix/btdm_fix_get_error_adv_sometimes_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Wed, 29 Aug 2018 15:54:36 +0000 (23:54 +0800)]
Merge branch 'bugfix/btdm_fix_get_error_adv_sometimes_v3.1' into 'release/v3.1'

Component/bt: fix get error adv packet sometimes(backport v3.1)

See merge request idf/esp-idf!3082

6 years agoMerge branch 'bugfix/btdm_a2dp_sink_pcm_buf_size_for_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Wed, 29 Aug 2018 14:54:58 +0000 (22:54 +0800)]
Merge branch 'bugfix/btdm_a2dp_sink_pcm_buf_size_for_v3.1' into 'release/v3.1'

bugfix/btdm_a2dp_sink_pcm_buffer_size_for_v3.1(backport v3.1)

See merge request idf/esp-idf!3116

6 years agoMerge branch 'feature/cmake_v3.1' into release/v3.1
Angus Gratton [Wed, 29 Aug 2018 11:30:06 +0000 (19:30 +0800)]
Merge branch 'feature/cmake_v3.1' into release/v3.1

6 years agoComponent/bt: fix get error adv packet sometimes
zhiweijian [Fri, 17 Aug 2018 03:54:45 +0000 (11:54 +0800)]
Component/bt: fix get error adv packet sometimes

6 years agoMerge branch 'bugfix/btdm_check_slave_feature_before_set_afh_for_v3.1' into 'release...
Jiang Jiang Jian [Tue, 28 Aug 2018 05:40:56 +0000 (13:40 +0800)]
Merge branch 'bugfix/btdm_check_slave_feature_before_set_afh_for_v3.1' into 'release/v3.1'

bugfix/btdm_check_slave_feature_before_set_afh(backport v3.1)

See merge request idf/esp-idf!3103

6 years agoMerge branch 'bugfix/tw23404_dhcp_NAK_issue_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Tue, 28 Aug 2018 05:39:46 +0000 (13:39 +0800)]
Merge branch 'bugfix/tw23404_dhcp_NAK_issue_v3.1' into 'release/v3.1'

lwip: optimize LWIP timer (backport v3.1)

See merge request idf/esp-idf!3060

6 years agocmake: Add missing example CMakeLists.txt files, CI check all examples have both
Angus Gratton [Tue, 28 Aug 2018 03:10:48 +0000 (11:10 +0800)]
cmake: Add missing example CMakeLists.txt files, CI check all examples have both

6 years agocomponent/bt: bugfix for incorrect computation of PCM data buffer size in A2DP sink
wangmengyang [Tue, 21 Aug 2018 11:27:04 +0000 (19:27 +0800)]
component/bt: bugfix for incorrect computation of PCM data buffer size in A2DP sink

6 years agoMerge branch 'bugfix/fix_probable_mem_leak_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Tue, 28 Aug 2018 02:41:42 +0000 (10:41 +0800)]
Merge branch 'bugfix/fix_probable_mem_leak_v3.1' into 'release/v3.1'

components/bt: Fix a probable memory leak for BTA_GATTS_CONF_EVT event (backport v3.1)

See merge request idf/esp-idf!3106

6 years agolwip: optimize LWIP timer
Jiang Jiang Jian [Thu, 26 Jul 2018 06:06:12 +0000 (14:06 +0800)]
lwip: optimize LWIP timer

Port LWIP timer implementation in LWIP v2.0.3 to IDF v3.0

6 years agoMerge branch 'bugfix/timer_oneshot_timeout_twice_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Mon, 27 Aug 2018 12:42:44 +0000 (20:42 +0800)]
Merge branch 'bugfix/timer_oneshot_timeout_twice_v3.1' into 'release/v3.1'

component/bt: Some timer oneshot will timeout twice (backport v3.1)

See merge request idf/esp-idf!3063

6 years agoMerge branch 'bugfix/fix_several_wifi_bugs_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Mon, 27 Aug 2018 12:38:35 +0000 (20:38 +0800)]
Merge branch 'bugfix/fix_several_wifi_bugs_v3.1' into 'release/v3.1'

esp32: update wifi lib to fix several WiFi bugs (backport v3.1)

See merge request idf/esp-idf!3098

6 years agocmake: partition_table: Use PYTHON interpreter when running parttool.py (fixes flashe...
Angus Gratton [Mon, 27 Aug 2018 10:02:30 +0000 (18:02 +0800)]
cmake: partition_table: Use PYTHON interpreter when running parttool.py (fixes flasher args on Windows)

6 years agokconfig: Merge Kconfig.compiler back into Kconfig
Angus Gratton [Mon, 27 Aug 2018 09:24:31 +0000 (17:24 +0800)]
kconfig: Merge Kconfig.compiler back into Kconfig

Reverts 5e0a3d99e8f748dab2b313339ba9b3ab6abd1640 (no longer needed but also not supported by
mconf-idf built from kconfig-frontends repo.)

6 years agocomponents/bt: Fix a probable memory leak for BTA_GATTS_CONF_EVT event (backport...
Hrishikesh Dhayagude [Wed, 8 Aug 2018 08:46:03 +0000 (14:16 +0530)]
components/bt: Fix a probable memory leak for BTA_GATTS_CONF_EVT event (backport v3.1)

Multiple modules register their callback BTA_GATTS_AppRegister().

If any of the callbacks do not free the allocated pointer in
BTA_GATTS_CONF_EVT event, then this can result in memory leak.

So, free the pointer after the callback function is called and remove
the calls to free in the callback functions as it is now not required

Signed-off-by: Hrishikesh Dhayagude <hrishi@espressif.com>
6 years agocmake: Account for missing partition CSV file at cmake runtime
Angus Gratton [Mon, 27 Aug 2018 03:55:04 +0000 (11:55 +0800)]
cmake: Account for missing partition CSV file at cmake runtime

Avoid either breaking menuconfig (if cmake fails), or producing bad build output (if cmake succeeds
but no flashing offsets, etc. were generated.)

6 years agocomponent/bt: check support of AFH in remote slave device's LM feature then determine...
wangmengyang [Mon, 27 Aug 2018 03:20:34 +0000 (11:20 +0800)]
component/bt: check support of AFH in remote slave device's LM feature then determine whether to send LMP_set_AFH

6 years agoMerge branch 'fix/spi_dma_config_in_iram_v3.1' into 'release/v3.1'
Angus Gratton [Mon, 27 Aug 2018 00:14:31 +0000 (08:14 +0800)]
Merge branch 'fix/spi_dma_config_in_iram_v3.1' into 'release/v3.1'

spi: fix the issue that spi cannot be used when flash is disabled (backport v3.1)

See merge request idf/esp-idf!3075

6 years agoesp32: update wifi lib to fix several WiFi bugs
Liu Zhi Fu [Sun, 26 Aug 2018 04:38:06 +0000 (12:38 +0800)]
esp32: update wifi lib to fix several WiFi bugs

Fix following WiFi bugs:
1. Shouldn't scan when connect
2. Check beacon length in modem sleep
3. Fix the bug that AP may deauth wrong station when inactivity timer expires
4. Fix the bug that WiFi assert the system when receiving empty MCS in association response frame

6 years agocomponent/bt: Some timer oneshot will timeout twice (backport v3.1)
baohongde [Thu, 23 Aug 2018 02:54:57 +0000 (10:54 +0800)]
component/bt: Some timer oneshot will timeout twice (backport v3.1)

A cherry-pick of MR !2979

6 years agoMerge branch 'test/disable_mesh_re_establish_network_case_v3.1' into 'release/v3.1'
He Yin Ling [Sat, 25 Aug 2018 02:38:02 +0000 (10:38 +0800)]
Merge branch 'test/disable_mesh_re_establish_network_case_v3.1' into 'release/v3.1'

test: disable mesh recreate network test (backport v3.1)

See merge request idf/esp-idf!3068

6 years agospi: fix the issue that spi cannot be used when flash is disabled
Michael (XIAO Xufeng) [Mon, 20 Aug 2018 10:27:38 +0000 (18:27 +0800)]
spi: fix the issue that spi cannot be used when flash is disabled

The dma configuration function called in the ISR should be put into the IRAM.

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

6 years agotest: disable mesh recreate network test:
He Yin Ling [Thu, 23 Aug 2018 09:49:59 +0000 (17:49 +0800)]
test: disable mesh recreate network test:

We have fixed a bug in test script. Before that, we didn't do strict check when generate the mesh tree, which makes the test pass.

Temp disable these cases, to let CI pass before bug fixed.

6 years agoPlace embedded data on flash
Renz Bagaporo [Tue, 21 Aug 2018 05:08:26 +0000 (13:08 +0800)]
Place embedded data on flash

6 years agocmake idf.py: Fix bug in JSON parsing when printing flash commands
Angus Gratton [Tue, 21 Aug 2018 00:13:02 +0000 (10:13 +1000)]
cmake idf.py: Fix bug in JSON parsing when printing flash commands

6 years agocmake/partitions: Apply offset to partition table metadata correctly
Angus Gratton [Mon, 20 Aug 2018 08:24:18 +0000 (18:24 +1000)]
cmake/partitions: Apply offset to partition table metadata correctly

Also warn if the parttool.py has an error

6 years agokconfiglib: Allow CONFIG_xxx= to disable booleans
Angus Gratton [Mon, 20 Aug 2018 07:15:36 +0000 (17:15 +1000)]
kconfiglib: Allow CONFIG_xxx= to disable booleans

But replace all sdkconfig.defaults to use the explicit =n (more correct)

6 years agopartition table: Remove hard-coded offsets from default partition tables
Angus Gratton [Wed, 1 Aug 2018 07:53:19 +0000 (17:53 +1000)]
partition table: Remove hard-coded offsets from default partition tables

Makes them compatible with moving the partition table offset

6 years agocmake: Fix bt component dependencies
Angus Gratton [Mon, 20 Aug 2018 00:47:55 +0000 (10:47 +1000)]
cmake: Fix bt component dependencies

6 years agocmake: Fix flasher argument generation
Angus Gratton [Mon, 20 Aug 2018 00:47:42 +0000 (10:47 +1000)]
cmake: Fix flasher argument generation

6 years agodoc: Update new documentation config output
Angus Gratton [Fri, 17 Aug 2018 06:12:28 +0000 (16:12 +1000)]
doc: Update new documentation config output

Make output similar to previous implementation.

6 years agoMerge branch 'release/v3.1' into feature/cmake_v3.1
Angus Gratton [Thu, 16 Aug 2018 02:58:31 +0000 (12:58 +1000)]
Merge branch 'release/v3.1' into feature/cmake_v3.1

6 years agoMerge branch 'bugfix/mdns_any_type_share_v3.1' into 'release/v3.1' v3.1-rc1
Ivan Grokhotkov [Tue, 14 Aug 2018 22:40:24 +0000 (06:40 +0800)]
Merge branch 'bugfix/mdns_any_type_share_v3.1' into 'release/v3.1'

mdns: Fix a portion of the queries are issued with the wildcard query type (backport v3.1)

See merge request idf/esp-idf!3008

6 years agomdns: Fix a portion of the queries are issued with the wildcard query type
Liu Han [Tue, 31 Jul 2018 02:00:02 +0000 (10:00 +0800)]
mdns: Fix a portion of the queries are issued with the wildcard query type

6 years agoMerge branch 'bugfix/btdm_ecdh_public_key_not_check_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Tue, 14 Aug 2018 05:20:22 +0000 (13:20 +0800)]
Merge branch 'bugfix/btdm_ecdh_public_key_not_check_v3.1' into 'release/v3.1'

Bugfix/btdm ecdh public key not check v3.1 (backport v3.1)

See merge request idf/esp-idf!2991

6 years agoMerge branch 'bugfix/tw24252_fix_nonblocking_tcp_close_issue_v3.1' into 'release...
Jiang Jiang Jian [Tue, 14 Aug 2018 05:20:08 +0000 (13:20 +0800)]
Merge branch 'bugfix/tw24252_fix_nonblocking_tcp_close_issue_v3.1' into 'release/v3.1'

lwip: fix nonblocking tcp close issue (backport v3.1)

See merge request idf/esp-idf!2938

6 years agoMerge branch 'bugfix/gpio_reset_bitmask_v3.1' into 'release/v3.1'
Angus Gratton [Tue, 14 Aug 2018 03:29:15 +0000 (11:29 +0800)]
Merge branch 'bugfix/gpio_reset_bitmask_v3.1' into 'release/v3.1'

gpio: Bitmask overflow fix in gpio_reset_pin (backport v3.1)

See merge request idf/esp-idf!3005

6 years agoMerge branch 'bugfix/ulp_fixes_v3.1' into 'release/v3.1'
Angus Gratton [Tue, 14 Aug 2018 03:25:14 +0000 (11:25 +0800)]
Merge branch 'bugfix/ulp_fixes_v3.1' into 'release/v3.1'

ULP fixes (backport v3.1)

See merge request idf/esp-idf!3001

6 years agogpio: Bitmask overflow fix in gpio_reset_pin
Taavi Hein [Wed, 8 Aug 2018 12:31:17 +0000 (15:31 +0300)]
gpio: Bitmask overflow fix in gpio_reset_pin

For pins 32 and up the BIT(nr) macro used here overflowed,
causing undetermined GPIO pins to be reset.
Example: freeing SPI device/bus where CS is on pin 33
caused debug UART to cease communication, TXD0 was
disabled.

Fixed as BIT64(nr) macro, to be used elsewhere as needed.
For example in definitions like GPIO_SEL_32..GPIO_SEL_39.

6 years agodocs: update esp32ulp-binutils download link
Ivan Grokhotkov [Sun, 12 Aug 2018 20:36:19 +0000 (23:36 +0300)]
docs: update esp32ulp-binutils download link

6 years agoulp: add documentation for JUMPS instruction conditions
Ivan Grokhotkov [Tue, 7 Aug 2018 13:57:19 +0000 (16:57 +0300)]
ulp: add documentation for JUMPS instruction conditions

Hardware implements conditions LE, LT, GE, and conditions EQ and GT
are implemented in the assembler by emitting two JUMPS instructions
with other conditions.

6 years agoulp: add tests for jumps instruction
Ivan Grokhotkov [Tue, 7 Aug 2018 13:13:26 +0000 (16:13 +0300)]
ulp: add tests for jumps instruction

6 years agoulp: fix ULP binary format documentation
Ivan Grokhotkov [Tue, 7 Aug 2018 13:09:54 +0000 (16:09 +0300)]
ulp: fix ULP binary format documentation

Fix incorrect offset value (4+2+2+2+2=12) of arbitrary data in ULP
binary format.

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

6 years agoulp: use += instead of := when setting component vars
Ivan Grokhotkov [Tue, 7 Aug 2018 13:08:13 +0000 (16:08 +0300)]
ulp: use += instead of := when setting component vars

Component which includes component_ulp_common.mk may also need to set
some of the same COMPONENT_XXX variables. Logically, we should combine
the lists of files to embed, ldflags, extra include dirs, etc.

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

6 years agoulp: fix missing include in esp32/ulp.h header
Ivan Grokhotkov [Tue, 7 Aug 2018 13:04:00 +0000 (16:04 +0300)]
ulp: fix missing include in esp32/ulp.h header

ulp.h uses some register base addresses, so needs to include soc.h

6 years agoulp: fix calculation or ulp_run argument
Ivan Grokhotkov [Tue, 7 Aug 2018 13:03:23 +0000 (16:03 +0300)]
ulp: fix calculation or ulp_run argument

The argument to ulp_run should be expressed in 32-bit words. Both the
address of ulp_entry and RTC_SLOW_MEM already are uint32_t*, so their
difference is the difference in addresses divided by sizeof(uint32_t).
Therefore the extra division by sizeof(uint32_t) is not needed.

6 years agodocs: fix line endings of ULP docs
Ivan Grokhotkov [Mon, 13 Aug 2018 20:23:29 +0000 (23:23 +0300)]
docs: fix line endings of ULP docs

6 years agocomponent/bt: Fixed the vulnerability released by Bluetooth org when using public...
yulong [Sun, 5 Aug 2018 13:18:31 +0000 (21:18 +0800)]
component/bt: Fixed the vulnerability released by Bluetooth org when using public key not check in the process of ECDH encryption.

1. Add the 100 times test when the private key is generated by the random number;
2. Add the bt components to the unit-test-app/config directory.
3. Added the bt unit test case to CI.

6 years agoMerge branch 'bugfix/doc_generated_sections_v3.1' into 'release/v3.1'
Angus Gratton [Mon, 13 Aug 2018 07:48:59 +0000 (15:48 +0800)]
Merge branch 'bugfix/doc_generated_sections_v3.1' into 'release/v3.1'

docs: Move version-related includes to run in sphinx-build not make (backport v3.1)

See merge request idf/esp-idf!2989

6 years agoMerge branch 'feature/cmake_separate_docs' into 'feature/cmake'
Angus Gratton [Mon, 13 Aug 2018 07:47:07 +0000 (15:47 +0800)]
Merge branch 'feature/cmake_separate_docs' into 'feature/cmake'

docs: Copy CMake docs to a separate set of directories

See merge request idf/esp-idf!2959

6 years agodocs: Add gen-version-specific-includes.py to executables list
Angus Gratton [Mon, 13 Aug 2018 02:28:54 +0000 (12:28 +1000)]
docs: Add gen-version-specific-includes.py to executables list

6 years agodocs: Move version-related includes to run in sphinx-build not make
Angus Gratton [Mon, 13 Aug 2018 02:24:55 +0000 (12:24 +1000)]
docs: Move version-related includes to run in sphinx-build not make

Means they show up on ReadTheDocs(!)

6 years agocmake: Only rewrite componend_depends.cmake if it changes
Angus Gratton [Fri, 10 Aug 2018 02:30:32 +0000 (12:30 +1000)]
cmake: Only rewrite componend_depends.cmake if it changes

6 years agocmake: Expand components relative to PROJECT_PATH correctly
Angus Gratton [Fri, 10 Aug 2018 02:18:25 +0000 (12:18 +1000)]
cmake: Expand components relative to PROJECT_PATH correctly

6 years agodocs: Python 3 Sphinx compatibility
Angus Gratton [Wed, 8 Aug 2018 23:48:17 +0000 (09:48 +1000)]
docs: Python 3 Sphinx compatibility

6 years agodocs: Copy CMake docs to a separate set of directories
Angus Gratton [Wed, 8 Aug 2018 07:58:00 +0000 (17:58 +1000)]
docs: Copy CMake docs to a separate set of directories

Required first step before merging back to mainline.

6 years agoMerge branch 'bugfix/http_client_null_auth_header_v3.1' into 'release/v3.1'
Angus Gratton [Mon, 13 Aug 2018 03:48:26 +0000 (11:48 +0800)]
Merge branch 'bugfix/http_client_null_auth_header_v3.1' into 'release/v3.1'

esp_http_client: Fixed exception on 401 without Www-Authenticate header (backport v3.1)

See merge request idf/esp-idf!2978

6 years agoMerge branch 'bugfix/unit-test-build-fix_v3.1' into 'release/v3.1'
Angus Gratton [Mon, 13 Aug 2018 03:42:43 +0000 (11:42 +0800)]
Merge branch 'bugfix/unit-test-build-fix_v3.1' into 'release/v3.1'

unit-test-app: don’t include project.mk for ut- targets (backport v3.1)

See merge request idf/esp-idf!2850

6 years agoMerge branch 'bugfix/btdm_fix_get_bond_list_error_when_connection_with_no_bond_v3...
Jiang Jiang Jian [Mon, 13 Aug 2018 02:20:12 +0000 (10:20 +0800)]
Merge branch 'bugfix/btdm_fix_get_bond_list_error_when_connection_with_no_bond_v3.1' into 'release/v3.1'

Component/bt: fix get bond list error when connection with no bond (backport v3.1)

See merge request idf/esp-idf!2981

6 years agoMerge branch 'doc/versions_v3.1' into 'release/v3.1'
Angus Gratton [Mon, 13 Aug 2018 01:54:13 +0000 (09:54 +0800)]
Merge branch 'doc/versions_v3.1' into 'release/v3.1'

docs: Add version-specific include files, version documentation (backport v3.1)

See merge request idf/esp-idf!2974

6 years agoComponent/bt: fix get bond list error when connection with no bond
zhiweijian [Wed, 8 Aug 2018 06:44:22 +0000 (14:44 +0800)]
Component/bt: fix get bond list error when connection with no bond

6 years agoesp_http_client: Fixed exception on 401 without Www-Authenticate header
Tuan PM [Tue, 31 Jul 2018 16:25:11 +0000 (23:25 +0700)]
esp_http_client: Fixed exception on 401 without Www-Authenticate header
Closes https://github.com/espressif/esp-idf/issues/2246

6 years agofreertos: Remove either one or two assertions from "fast path" of vPortCPUReleaseMutex()
Angus Gratton [Mon, 30 Jul 2018 04:24:03 +0000 (14:24 +1000)]
freertos: Remove either one or two assertions from "fast path" of vPortCPUReleaseMutex()

Saves a few cycles by only testing the count validity once, and never for the common case where the
mutex was not recursively locked.

6 years agolwip: fix nonblocking tcp close issue
Liu Zhi Fu [Sat, 14 Jul 2018 06:58:00 +0000 (14:58 +0800)]
lwip: fix nonblocking tcp close issue

Fix assert issue causes by closing nonblocking tcp socket.

6 years agoMerge branch 'bugfix/spi_flash_mmap_malloc_internal_v3.1' into 'release/v3.1'
Angus Gratton [Fri, 10 Aug 2018 05:43:55 +0000 (13:43 +0800)]
Merge branch 'bugfix/spi_flash_mmap_malloc_internal_v3.1' into 'release/v3.1'

spi_flash: allocate mmap pages array in internal memory (backport v3.1)

See merge request idf/esp-idf!2961

6 years agoMerge branch 'mesh/bugfix_parent_switch_backport_v3.1' into 'release/v3.1'
Angus Gratton [Fri, 10 Aug 2018 05:42:32 +0000 (13:42 +0800)]
Merge branch 'mesh/bugfix_parent_switch_backport_v3.1' into 'release/v3.1'

mesh: modify parent switch mechanism (backport3.1)

See merge request idf/esp-idf!2977

6 years agoMerge branch 'bugfix/add_mutex_for_some_touchpad_apis_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Fri, 10 Aug 2018 04:18:33 +0000 (12:18 +0800)]
Merge branch 'bugfix/add_mutex_for_some_touchpad_apis_v3.1' into 'release/v3.1'

fix(touch): add_mutex_for_some_touchpad_apis (backport v3.1)

See merge request idf/esp-idf!2963

6 years agomesh: modify parent switch mechanism
qiyuexia [Wed, 8 Aug 2018 05:08:41 +0000 (13:08 +0800)]
mesh: modify parent switch mechanism

1. modify parent switch mechanism.
2. fix non-root doesn't clear the layer value in nvs.
3. fix retransmit the remove announcement packets.
4. add API esp_mesh_flush_upstream_packets().
5. automatically adjust passsive scan time based on the change of beacon interval.

6 years agoMerge branch 'feature/nvs_version_check_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Fri, 10 Aug 2018 03:36:39 +0000 (11:36 +0800)]
Merge branch 'feature/nvs_version_check_v3.1' into 'release/v3.1'

nvs_flash: Version compatibility check for nvs storage (backport 3.1)

See merge request idf/esp-idf!2958

6 years agoMerge branch 'bugfix/btdm_hfp_invalid_sco_param_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Fri, 10 Aug 2018 03:10:55 +0000 (11:10 +0800)]
Merge branch 'bugfix/btdm_hfp_invalid_sco_param_v3.1' into 'release/v3.1'

component/bt: modify the invalid retransmission setting for SCO link in HFP(backport v3.1)

See merge request idf/esp-idf!2956

6 years agoMerge branch 'bugfix/backport_several_bugfix_to_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Fri, 10 Aug 2018 03:09:35 +0000 (11:09 +0800)]
Merge branch 'bugfix/backport_several_bugfix_to_v3.1' into 'release/v3.1'

esp32: backport several WiFi bug fixes to v3.1

See merge request idf/esp-idf!2955

6 years agodocs: Combine the common en/zh_CN Makefiles to one common file
Angus Gratton [Mon, 6 Aug 2018 05:18:59 +0000 (15:18 +1000)]
docs: Combine the common en/zh_CN Makefiles to one common file

6 years agodocs: translate the version include script to Chinese
Michael (XIAO Xufeng) [Tue, 31 Jul 2018 04:34:10 +0000 (12:34 +0800)]
docs: translate the version include script to Chinese

6 years agoREADME: Add version-specific links
Angus Gratton [Fri, 27 Jul 2018 07:21:38 +0000 (17:21 +1000)]
README: Add version-specific links

Make it clearer how the README fits in with the docs.

6 years agodocs: Add version-specific include files, version documentation
Angus Gratton [Wed, 25 Jul 2018 04:30:15 +0000 (14:30 +1000)]
docs: Add version-specific include files, version documentation

* "git clone" command and a small version header are generated
  depending on git properties.
* Add Versions page with details about each version
* Make it clear using master branch is living on the "bleeding
  edge"

6 years agoesp32: backport several WiFi bug fixes to v3.1
Jiang Jiang Jian [Tue, 7 Aug 2018 10:31:31 +0000 (18:31 +0800)]
esp32: backport several WiFi bug fixes to v3.1

Backport following bug fixes to v3.1:

1. Bug fix of may connect to wrong AP in all channel scan

2. Station state machine change and fix ap loss

3. Add compatible to ccmp encryption

4. Update libphy.a to v3960:
   4.1 Decrease  phy_init time from 900us to 347us in sleep wakeup
   4.2 Fix RX STBC initialization
   4.3 Modify set_chan function to fix interrupt watchdog issue

5. Fix several wpa2 enterprise issues
   5.1 Fix heap corrupted bug
   5.2 Fix memory leak bug
   5.3 Make wpa2 enterprise thread-safe
   Closes https://github.com/espressif/esp-idf/issues/1569

6. Bugfix of coex wifi pm

6 years agoMerge branch 'bugfix/remove_check_for_reason_assoc_expire_backport_v3.1' into 'releas...
He Yin Ling [Thu, 9 Aug 2018 13:23:21 +0000 (21:23 +0800)]
Merge branch 'bugfix/remove_check_for_reason_assoc_expire_backport_v3.1' into 'release/v3.1'

test: remove check for REASON_ASSOC_EXPIRE (backport v3.1)

See merge request idf/esp-idf!2953

6 years agoMerge branch 'feature/http_firmware_upgrade_v3.1' into 'release/v3.1'
Angus Gratton [Thu, 9 Aug 2018 00:20:33 +0000 (08:20 +0800)]
Merge branch 'feature/http_firmware_upgrade_v3.1' into 'release/v3.1'

esp_https_ota: Add esp_https_ota component (Backport v3.1)

See merge request idf/esp-idf!2954

6 years agofix(touch): add_mutex_for_some_touchpad_apis
fuzhibo [Thu, 5 Jul 2018 09:29:48 +0000 (17:29 +0800)]
fix(touch): add_mutex_for_some_touchpad_apis

6 years agoesp_http_client: Add support for getting transport type
Jitin George [Wed, 25 Jul 2018 05:58:17 +0000 (11:28 +0530)]
esp_http_client: Add support for getting transport type

6 years agoesp_https_ota: Add support for HTTPS based ota feature
Jitin George [Thu, 12 Jul 2018 12:15:44 +0000 (17:45 +0530)]
esp_https_ota: Add support for HTTPS based ota feature

6 years agospi_flash: allocate mmap pages array in internal memory
Ivan Grokhotkov [Mon, 30 Jul 2018 19:49:09 +0000 (22:49 +0300)]
spi_flash: allocate mmap pages array in internal memory

* spi_flash_mmap_pages needs pages array to be in internal memory.
  Document and check this.

* Fix a bug that spi_flash_mmap did not allocate pages array in
  internal memory.

* Minor style fixes: const-ify pages argument of spi_flash_mmap, add
  spaces around operators, mark output arguments with [out].

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

6 years agoMerge branch 'feature/support_for_XM25QU64A_v3.1' into 'release/v3.1'
Angus Gratton [Wed, 8 Aug 2018 08:30:09 +0000 (16:30 +0800)]
Merge branch 'feature/support_for_XM25QU64A_v3.1' into 'release/v3.1'

feature(flash): set QIO mode for XM25QU64A(1V8_8MB_flash) (backport v3.1)

See merge request idf/esp-idf!2950

6 years agoMerge branch 'bugfix/http_chunked_read_v3.1' into 'release/v3.1'
Angus Gratton [Wed, 8 Aug 2018 08:24:04 +0000 (16:24 +0800)]
Merge branch 'bugfix/http_chunked_read_v3.1' into 'release/v3.1'

esp_http_client: fixed http chunked encoding packet loss & add check data before read for ssl transport (backport v3.1)

See merge request idf/esp-idf!2952

6 years agoesp_http_client: fixed http chunked encoding packet loss & add check data before...
Tuan [Wed, 8 Aug 2018 08:24:04 +0000 (16:24 +0800)]
esp_http_client: fixed http chunked encoding packet loss & add check data before read for ssl transport (backport v3.1)

6 years agonvs_flash: Version compatibility check for nvs storage
Sagar Bijwe [Wed, 25 Jul 2018 13:25:05 +0000 (18:55 +0530)]
nvs_flash: Version compatibility check for nvs storage

This change adds a check for compatibility between the nvs version
found on nvs flash and the one assumed by running code during nvs
initialization. Any mismatch is reported to the user using new error
code ESP_ERR_NVS_NEW_VERSION_FOUND.

6 years agoMerge branch 'bugfix/add_queueset_critical_sections_v3.1' into 'release/v3.1'
Ivan Grokhotkov [Wed, 8 Aug 2018 06:46:25 +0000 (14:46 +0800)]
Merge branch 'bugfix/add_queueset_critical_sections_v3.1' into 'release/v3.1'

freertos: Add critical sections to queue sets (backport v3.1)

See merge request idf/esp-idf!2789

6 years agocomponent/bt: modify the invalid retransmission setting for SCO link in HFP
wangmengyang [Wed, 1 Aug 2018 11:39:18 +0000 (19:39 +0800)]
component/bt: modify the invalid retransmission setting for SCO link in HFP

6 years agoMerge branch 'bugfix/btdm_spp_crash_on_reset_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Wed, 8 Aug 2018 06:36:21 +0000 (14:36 +0800)]
Merge branch 'bugfix/btdm_spp_crash_on_reset_v3.1' into 'release/v3.1'

component/bt: Fix bug of SPP crash on reset (backport v3.1)

See merge request idf/esp-idf!2951

6 years agotest: update Wi-Fi test cases:
He Yin Ling [Mon, 30 Jul 2018 07:35:53 +0000 (15:35 +0800)]
test: update Wi-Fi test cases:

1. The test step for error code REASON_ASSOC_EXPIRE is not reliable. SoftAP
could also send error code WIFI_REASON_NOT_AUTHED
2. STA will be disconnected now if softAP restart DHCP server

6 years agocomponent/bt: Fix bug of SPP crash on reset
baohongde [Wed, 1 Aug 2018 07:41:50 +0000 (15:41 +0800)]
component/bt: Fix bug of SPP crash on reset

In response to: https://github.com/espressif/esp-idf/issues/1998

6 years agofeature(flash): support for QIO mode of XM25QU64A
chenjianqiang [Wed, 11 Jul 2018 13:36:35 +0000 (21:36 +0800)]
feature(flash): support for QIO mode of XM25QU64A

6 years agoMerge branch 'bugfix/ci_github_deploy_v31' into 'release/v3.1'
Angus Gratton [Tue, 7 Aug 2018 23:26:01 +0000 (07:26 +0800)]
Merge branch 'bugfix/ci_github_deploy_v31' into 'release/v3.1'

ci: Simplify github deployment (backport v3.1)

See merge request idf/esp-idf!2874

6 years agoMerge branch 'bugfix/fix_crash_for_http2_request_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Tue, 7 Aug 2018 10:36:41 +0000 (18:36 +0800)]
Merge branch 'bugfix/fix_crash_for_http2_request_v3.1' into 'release/v3.1'

fix the crash when http2_request example send/recv fail

See merge request idf/esp-idf!2941

6 years agofix the crash when http2_request example send/recv fail
zhangyanjiao [Mon, 6 Aug 2018 12:49:40 +0000 (20:49 +0800)]
fix the crash when http2_request example send/recv fail

6 years agoMerge branch 'fix/sdio_speed_4bit_v3.1' into 'release/v3.1'
Ivan Grokhotkov [Mon, 6 Aug 2018 07:17:26 +0000 (15:17 +0800)]
Merge branch 'fix/sdio_speed_4bit_v3.1' into 'release/v3.1'

backport v3.1: fix(sdio): update sdio to better run in 4bit HS mode

See merge request idf/esp-idf!2759

6 years agoMerge branch 'bugfix/coex_pause_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Mon, 6 Aug 2018 07:05:19 +0000 (15:05 +0800)]
Merge branch 'bugfix/coex_pause_v3.1' into 'release/v3.1'

fix coex pause cause bluetooth performance decrease (backport v3.1)

See merge request idf/esp-idf!2864

6 years agoci: Simplify github deployment
Angus Gratton [Fri, 27 Jul 2018 02:01:58 +0000 (12:01 +1000)]
ci: Simplify github deployment

CI_COMMIT_REF_NAME lets us use a single line to git push

6 years agoMerge branch 'feature/mbedtls_2_12_0_v3.1' into 'release/v3.1'
Angus Gratton [Mon, 6 Aug 2018 06:23:10 +0000 (14:23 +0800)]
Merge branch 'feature/mbedtls_2_12_0_v3.1' into 'release/v3.1'

mbedtls: update to 2.12.0 (backport v3.1)

See merge request idf/esp-idf!2932

6 years agoMerge branch 'bugfix/fix_uart_tx_bug_when_using_ringbuffer_for_v3.1' into 'release...
Angus Gratton [Mon, 6 Aug 2018 06:22:29 +0000 (14:22 +0800)]
Merge branch 'bugfix/fix_uart_tx_bug_when_using_ringbuffer_for_v3.1' into 'release/v3.1'

driver(uart): Fixed uart tx_empty interrupt wdt timeout bug for release/v3.1

See merge request idf/esp-idf!2934