]> granicus.if.org Git - esp-idf/log
esp-idf
6 years agoMerge branch 'bugfix/tw20575_fix_potential_phy_calibration_bug_v2.1' into 'release... release/v2.1
Jiang Jiang Jian [Wed, 9 May 2018 13:22:45 +0000 (21:22 +0800)]
Merge branch 'bugfix/tw20575_fix_potential_phy_calibration_bug_v2.1' into 'release/v2.1'

esp32: fix potential PHY calibration bug

See merge request idf/esp-idf!2357

6 years agoMerge branch 'bugfix/tw17012_wifi_interface_stop' into 'release/v2.1'
Jiang Jiang Jian [Wed, 9 May 2018 02:06:15 +0000 (10:06 +0800)]
Merge branch 'bugfix/tw17012_wifi_interface_stop' into 'release/v2.1'

Bugfix/tw17012 wifi interface stop

See merge request idf/esp-idf!2363

6 years agospi_flash: Expose an accessor the current SPI flash guard functions
Angus Gratton [Fri, 17 Nov 2017 04:00:51 +0000 (15:00 +1100)]
spi_flash: Expose an accessor the current SPI flash guard functions

Change places which uses g_flash_guard_default_ops to use this. Probably exact same data, but a bit
cleaner.

6 years agofreertos: Also test (& handle) the case where scheduler is disabled on other CPU...
Angus Gratton [Thu, 28 Sep 2017 02:08:34 +0000 (12:08 +1000)]
freertos: Also test (& handle) the case where scheduler is disabled on other CPU...

ie CPU A has scheduler disabled and task blocked on Q. CPU B sends to Q (or gives mutex, etc.) Task on CPU A should be woken on scheduler resume.

6 years agoMake sure cache is disabled/enabled when *both* CPUs are running inside the iram...
Jeroen Domburg [Mon, 4 Sep 2017 12:11:15 +0000 (20:11 +0800)]
Make sure cache is disabled/enabled when *both* CPUs are running inside the iram guard code

6 years agoesp32: fix potential PHY calibration bug
Liu Zhi Fu [Thu, 3 May 2018 07:48:14 +0000 (15:48 +0800)]
esp32: fix potential PHY calibration bug

1. Add error log if failed to store calibration version/mac/data
2. Change the NVS calibration version/mac/data store sequence
3. Pass the init_data instead of NULL to esp_phy_rf_init() in esp_phy_load_cal_and_init()

6 years agoMerge branch 'bugfix/btdm_lib_ld_pscan_235_for_v2.1' into 'release/v2.1'
Jiang Jiang Jian [Tue, 23 Jan 2018 03:58:49 +0000 (11:58 +0800)]
Merge branch 'bugfix/btdm_lib_ld_pscan_235_for_v2.1' into 'release/v2.1'

component/bt: fix the bug in controller(ld_pscan.c +235) caused by interrupt react slowly

See merge request !1821

6 years agocomponent/bt: fix the bug in controller(ld_pscan.c +235) caused by interrupt react...
wangmengyang [Wed, 17 Jan 2018 04:18:56 +0000 (12:18 +0800)]
component/bt: fix the bug in controller(ld_pscan.c +235) caused by interrupt react slowly

6 years agoMerge branch 'bugfix/btdm_send_data_len_req_after_read_feats' into 'release/v2.1'
Jiang Jiang Jian [Mon, 22 Jan 2018 11:43:40 +0000 (19:43 +0800)]
Merge branch 'bugfix/btdm_send_data_len_req_after_read_feats' into 'release/v2.1'

Component/bt: send data length request by host after read feature complete for v2.1

See merge request !1815

6 years agoComponent/bt: send data length request by host after read feature complete
zhiweijian [Tue, 16 Jan 2018 04:14:11 +0000 (12:14 +0800)]
Component/bt: send data length request by host after read feature complete

6 years agoMerge branch 'bugfix/fix_ble_rx_performance_for_2_1' into 'release/v2.1'
Jiang Jiang Jian [Wed, 17 Jan 2018 11:28:10 +0000 (19:28 +0800)]
Merge branch 'bugfix/fix_ble_rx_performance_for_2_1' into 'release/v2.1'

component/bt : optimze ble rx performance

See merge request !1668

6 years agocomponent/bt : optimze ble rx performance
Tian Hao [Wed, 13 Dec 2017 08:35:09 +0000 (16:35 +0800)]
component/bt : optimze ble rx performance

6 years agoMerge branch 'cherry-pick-1c718330' into 'release/v2.1'
Jiang Jiang Jian [Tue, 16 Jan 2018 08:45:27 +0000 (16:45 +0800)]
Merge branch 'cherry-pick-1c718330' into 'release/v2.1'

cherry-pick 'bugfix/remove_at_build_from_ci' into 'release/v2.1'

See merge request !1817

6 years agoMerge branch 'bugfix/remove_at_build_from_ci' into 'master'
Ivan Grokhotkov [Thu, 31 Aug 2017 02:45:40 +0000 (10:45 +0800)]
Merge branch 'bugfix/remove_at_build_from_ci' into 'master'

CI: remove build at

See merge request !1171

6 years agoMerge branch 'bugfix/lwip_send_timeout_v2.1' into 'release/v2.1' v2.1.1
Jiang Jiang Jian [Thu, 16 Nov 2017 09:40:48 +0000 (17:40 +0800)]
Merge branch 'bugfix/lwip_send_timeout_v2.1' into 'release/v2.1'

match sys tick with lwip_send_timeout

See merge request !1546

6 years agomatch sys tick with lwip_send_timeout
zhangyanjiao [Thu, 16 Nov 2017 03:58:16 +0000 (11:58 +0800)]
match sys tick with lwip_send_timeout

6 years agoMerge branch 'bugfix/btdm_smp_compile_err' into 'release/v2.1'
Jiang Jiang Jian [Thu, 16 Nov 2017 03:31:07 +0000 (11:31 +0800)]
Merge branch 'bugfix/btdm_smp_compile_err' into 'release/v2.1'

component/bt: Fix ble compile error when close the SMP module.

See merge request !1541

6 years agoMerge branch 'bugfix/fix_airkiss_macro_error_v2.1' into 'release/v2.1'
Jiang Jiang Jian [Wed, 15 Nov 2017 13:31:25 +0000 (21:31 +0800)]
Merge branch 'bugfix/fix_airkiss_macro_error_v2.1' into 'release/v2.1'

fix an airkiss typo error

See merge request !1533

6 years agocomponent/bt: Fix ble compile error when close the SMP module.
yulong [Wed, 15 Nov 2017 13:13:12 +0000 (21:13 +0800)]
component/bt: Fix ble compile error when close the SMP module.

6 years agofix an airkiss typo error
XiaXiaotian [Wed, 15 Nov 2017 06:10:04 +0000 (14:10 +0800)]
fix an airkiss typo error

6 years agoMerge branch 'bugfix/v2.1_rtc_bias_and_restart' into 'release/v2.1'
Ivan Grokhotkov [Thu, 9 Nov 2017 13:09:40 +0000 (21:09 +0800)]
Merge branch 'bugfix/v2.1_rtc_bias_and_restart' into 'release/v2.1'

Cherry-pick: increase core voltage for 80M flash, esp_restart fix

See merge request !1512

6 years agoMerge branch 'feature/tw16227_add_fix_rate_api_2.1' into 'release/v2.1'
Jiang Jiang Jian [Thu, 9 Nov 2017 10:47:09 +0000 (18:47 +0800)]
Merge branch 'feature/tw16227_add_fix_rate_api_2.1' into 'release/v2.1'

esp32: add fix rate api

See merge request !1509

6 years agosoc/rtc: raise core voltage when 80MHz flash frequency is used
Ivan Grokhotkov [Wed, 8 Nov 2017 13:13:02 +0000 (21:13 +0800)]
soc/rtc: raise core voltage when 80MHz flash frequency is used

To achieve reliable operation with GD flash at 80MHz, need to raise
core voltage.
This causes the following current consumption increase:

At 80MHz: from 29mA to 33mA
At 160MHz: from 41mA to 47mA

Test conditions: 2 cores running code from IRAM, remaining peripherals
clock gated.

6 years agoesp_restart: fix possible race while stalling other CPU, enable WDT early
Ivan Grokhotkov [Thu, 26 Oct 2017 11:11:47 +0000 (19:11 +0800)]
esp_restart: fix possible race while stalling other CPU, enable WDT early

Previously esp_restart would stall the other CPU before enabling RTC_WDT.
If the other CPU was executing an s32c1i instruction, the lock signal
from CPU to the arbiter would still be held after CPU was stalled. If
the CPU running esp_restart would then try to access the same locked
memory pool, it would be stuck, because lock signal would never be
released.

With this change, esp_restart resets the other CPU before stalling it.
Ideally, we would want to reset the CPU and keep it in reset, but the
hardware doesn't have such feature for PRO_CPU (it is possible to hold
APP_CPU in reset using DPORT register). Given that ROM code will not use
s32c1i in the first few hundred cycles, doing reset and then stall seems
to be safe.

In addition to than, RTC_WDT initialization is moved to the beginning of
the function, to prevent possible lock-up if CPU stalling still has any
issue.

6 years agosoc/rtc: wait for SLOW_CLK cycle when switching CPU clock
Ivan Grokhotkov [Thu, 26 Oct 2017 10:46:27 +0000 (18:46 +0800)]
soc/rtc: wait for SLOW_CLK cycle when switching CPU clock

Previous implementation waited for 20us after setting
RTC_CNTL_SOC_CLK_SEL_XTL register, using ets_delay_us, assuming that
the CPU was running at XTAL frequency. In reality, clock switch happened
on the next RTC_SLOW_CLK cycle, and CPU could be running at the previous
frequency (for example, 240 MHz) until then.
ets_delay_us would wait for 20 us * 40 cycles per us = 800 CPU cycles
(assuming 40 MHz XTAL; even less with a 26 MHz XTAL).
But if CPU was running at 240 MHz, 800 cycles would pass in just 3.3us,
while SLOW_CLK cycle could happen as much as 1/150kHz = 6.7us after
RTC_CNTL_SOC_CLK_SEL_XTL was set. So the software would not actually wait
long enough for the clock switch to happen, and would disable the PLL
while CPU was still clocked from PLL, leading to a halt.

This implementation uses rtc_clk_wait_for_slow_cycle() function to wait
until the clock switch, removing the need to wait for a fixed number of
CPU cycles.

6 years agosoc/rtc: add a function to wait for slow clock cycle
Ivan Grokhotkov [Thu, 26 Oct 2017 10:33:13 +0000 (18:33 +0800)]
soc/rtc: add a function to wait for slow clock cycle

Some RTC features are synchronized to RTC_SLOW_CLK, so sometimes
software needs to wait for the next slow clock cycle.
This function implements waiting using Timer Group clock calibration
feature.

6 years agoMerge branch 'bugfix/v2.1_bootloader' into 'release/v2.1'
Ivan Grokhotkov [Thu, 9 Nov 2017 06:59:09 +0000 (14:59 +0800)]
Merge branch 'bugfix/v2.1_bootloader' into 'release/v2.1'

bugfix(80m flash): cherry pick from idf3.0, add gpio config and vddsdio config

See merge request !1503

6 years agoMerge branch 'bugfix/btdm_fix_merge_missing' into 'release/v2.1'
Jiang Jiang Jian [Thu, 9 Nov 2017 06:17:41 +0000 (14:17 +0800)]
Merge branch 'bugfix/btdm_fix_merge_missing' into 'release/v2.1'

component/bt : fix merge missing of scan fail bugfix

See merge request !1507

6 years agoesp32: add fix rate api
Liu Zhi Fu [Wed, 8 Nov 2017 14:31:31 +0000 (22:31 +0800)]
esp32: add fix rate api

Add hidden fix rate api

6 years agosoc/rtc: power down VDDSDIO in deep sleep
Ivan Grokhotkov [Wed, 8 Nov 2017 13:45:10 +0000 (21:45 +0800)]
soc/rtc: power down VDDSDIO in deep sleep

If VDDSDIO is controlled by RTC (which is the case when using 1.8V flash
and CONFIG_BOOTLOADER_VDDSDIO_BOOST is enabled), need to allow VDDSDIO
to be controlled by the state machine before going into deep sleep.

6 years agocomponent/bt : fix merge missing of scan fail bugfix
Tian Hao [Wed, 8 Nov 2017 10:22:05 +0000 (18:22 +0800)]
component/bt : fix merge missing of scan fail bugfix

6 years agobugfix(80m flash): cherry pick from idf3.0, add gpio config and vddsdio config
Wangjialin [Wed, 8 Nov 2017 03:09:39 +0000 (11:09 +0800)]
bugfix(80m flash): cherry pick from idf3.0, add gpio config and vddsdio config

1. raise vddsdio for 1.8v flash
2. gpio matrix config for flash
3. fix esp_restart function

todo:
to decide whether to raise core voltage
to test deep-sleep current

6 years agoMerge branch 'cherry-pick-97dffbfc' into 'release/v2.1'
Jiang Jiang Jian [Tue, 7 Nov 2017 12:02:05 +0000 (20:02 +0800)]
Merge branch 'cherry-pick-97dffbfc' into 'release/v2.1'

component/bt: disable the use of ROLE_SWITCH feature for classic BT as workaround

See merge request !1498

6 years agoMerge branch 'bugfix/btdm_disable_role_switch' into 'master'
Jiang Jiang Jian [Tue, 31 Oct 2017 03:31:15 +0000 (11:31 +0800)]
Merge branch 'bugfix/btdm_disable_role_switch' into 'master'

component/bt: disable the use of ROLE_SWITCH feature for classic BT as workaround

See merge request !1446

6 years agoMerge branch 'bugfix/fix_800mA_bug_v2.1' into 'release/v2.1'
Jiang Jiang Jian [Fri, 3 Nov 2017 09:34:02 +0000 (17:34 +0800)]
Merge branch 'bugfix/fix_800mA_bug_v2.1' into 'release/v2.1'

Fix a problem which initialize current can reach 800mA.

See merge request !1482

6 years agoFix a problem which initialize current can reach 800mA.
XiaXiaotian [Thu, 2 Nov 2017 03:02:38 +0000 (11:02 +0800)]
Fix a problem which initialize current can reach 800mA.

6 years agoMerge branch 'bugfix/scan_problem_of_bonded_device_v2.1' into 'release/v2.1'
Jiang Jiang Jian [Wed, 25 Oct 2017 10:12:40 +0000 (18:12 +0800)]
Merge branch 'bugfix/scan_problem_of_bonded_device_v2.1' into 'release/v2.1'

component/bt: Fix scan problem of bonded device using public address

See merge request !1450

6 years agocomponent/bt: Fix scan problem of bonded device using public address
island [Wed, 25 Oct 2017 03:52:03 +0000 (11:52 +0800)]
component/bt: Fix scan problem of bonded device using public address

6 years agoMerge branch 'bugfix/fail_to_reconnect_to_some_aps_v2.1' into 'release/v2.1'
Jiang Jiang Jian [Tue, 24 Oct 2017 02:39:30 +0000 (10:39 +0800)]
Merge branch 'bugfix/fail_to_reconnect_to_some_aps_v2.1' into 'release/v2.1'

Bugfix/fail to reconnect to some aps v2.1

See merge request !1430

6 years agofix the bug that fail to reconnect to some APs
XiaXiaotian [Fri, 20 Oct 2017 02:44:51 +0000 (10:44 +0800)]
fix the bug that fail to reconnect to some APs

6 years agoMerge branch 'feature/update_phy362_rtc230_for_2_1' into 'release/v2.1'
Ivan Grokhotkov [Tue, 17 Oct 2017 06:14:46 +0000 (14:14 +0800)]
Merge branch 'feature/update_phy362_rtc230_for_2_1' into 'release/v2.1'

component/esp32 : update rtc phy lib

See merge request !1400

6 years agoMerge branch 'bugfix/sdmmc_tests_v2.1' into 'release/v2.1'
Ivan Grokhotkov [Tue, 17 Oct 2017 06:13:03 +0000 (14:13 +0800)]
Merge branch 'bugfix/sdmmc_tests_v2.1' into 'release/v2.1'

sdmmc tests: Don't run under CI in v2.1

See merge request !1408

6 years agocomponent/esp32 : remove phy init data description
Tian Hao [Mon, 16 Oct 2017 10:10:39 +0000 (18:10 +0800)]
component/esp32 : remove phy init data description

6 years agocomponent/esp32 : update rtc phy lib
Tian Hao [Fri, 13 Oct 2017 11:25:37 +0000 (19:25 +0800)]
component/esp32 : update rtc phy lib

RTC V230
add BT AGC saturation protection, replace RTC V229.

PHY V362
Power up print: "phy_version: 362.0, 61e8d92, Sep 8 2017, 18:48:13"
1. esp_init_data_v3.bin
modify TX target power
modify WIFI & BT RX gain table
2. modify phy_close_rf()
3. add phy_set_most_tpw()
4. 26M crystal work OK
5. noise_check_loop ok

6 years agosdmmc tests: Don't run under CI in v2.1
Angus Gratton [Mon, 16 Oct 2017 09:19:00 +0000 (17:19 +0800)]
sdmmc tests: Don't run under CI in v2.1

6 years agoMerge branch 'bugfix/backport_to_2.1' into 'release/v2.1'
Jiang Jiang Jian [Wed, 11 Oct 2017 08:56:22 +0000 (16:56 +0800)]
Merge branch 'bugfix/backport_to_2.1' into 'release/v2.1'

Backport several bug fixes to 2.1 branch

See merge request !1318

6 years agoMerge branch 'bugfix/btdm_ea_overload_for_rel_v2.1' into 'release/v2.1'
Jiang Jiang Jian [Wed, 11 Oct 2017 08:52:18 +0000 (16:52 +0800)]
Merge branch 'bugfix/btdm_ea_overload_for_rel_v2.1' into 'release/v2.1'

component/bt: update bluetooth library to increase programming delay in EA

See merge request !1344

6 years agoMerge branch 'bugfix/fix_a_wpa_wpa2_bug_v2.1' into 'release/v2.1'
Jiang Jiang Jian [Wed, 11 Oct 2017 08:50:53 +0000 (16:50 +0800)]
Merge branch 'bugfix/fix_a_wpa_wpa2_bug_v2.1' into 'release/v2.1'

Fix a wpa and wpa2 bug

See merge request !1343

6 years agocomponent/bt: update bluetooth library to increase programming delay in EA
wangmengyang [Sat, 30 Sep 2017 10:40:49 +0000 (18:40 +0800)]
component/bt: update bluetooth library to increase programming delay in EA

6 years agoMerge branch 'feature/ip_route_base_on_source_ip_v2.1' into 'release/v2.1'
Jiang Jiang Jian [Sat, 30 Sep 2017 08:04:03 +0000 (16:04 +0800)]
Merge branch 'feature/ip_route_base_on_source_ip_v2.1' into 'release/v2.1'

Broadcast IP route based on source IP address.

See merge request !1218

6 years agoMerge branch 'bugfix/btdm_update_lib_for_2_1_1' into 'release/v2.1'
Jiang Jiang Jian [Sat, 30 Sep 2017 07:53:34 +0000 (15:53 +0800)]
Merge branch 'bugfix/btdm_update_lib_for_2_1_1' into 'release/v2.1'

component/bt : update libbtdm_app.a

See merge request !1283

6 years agoMerge branch 'bugfix/btdm_fixbugs_for_ble_v2.1' into 'release/v2.1'
Jiang Jiang Jian [Sat, 30 Sep 2017 07:53:00 +0000 (15:53 +0800)]
Merge branch 'bugfix/btdm_fixbugs_for_ble_v2.1' into 'release/v2.1'

component/bt: fix ble bugs for v2.1

See merge request !1261

6 years agoFix a wpa and wpa2 bug
XiaXiaotian [Sat, 30 Sep 2017 07:51:33 +0000 (15:51 +0800)]
Fix a wpa and wpa2 bug

6 years agoMerge branch 'bugfix/bt_sdp_server_continuation_2.1' into 'release/v2.1'
Angus Gratton [Wed, 27 Sep 2017 03:14:26 +0000 (11:14 +0800)]
Merge branch 'bugfix/bt_sdp_server_continuation_2.1' into 'release/v2.1'

bluedroid: Add continuation offset check to SDP server (backport to v2.1)

See merge request !1324

6 years agobluedroid: Add continuation offset check to SDP server
Angus Gratton [Tue, 26 Sep 2017 23:49:04 +0000 (09:49 +1000)]
bluedroid: Add continuation offset check to SDP server

Fix for CVE-2017-0785
https://android.googlesource.com/platform/system/bt/+/818cf6f%5E%21/#F0

6 years agodocs/wifi: remove note about the latest version
Ivan Grokhotkov [Mon, 25 Sep 2017 16:11:15 +0000 (00:11 +0800)]
docs/wifi: remove note about the latest version

6 years agofix(spi_master): fix the bug that VSPI no respond when host changed
michael [Thu, 13 Jul 2017 09:40:57 +0000 (17:40 +0800)]
fix(spi_master): fix the bug that VSPI no respond when host changed
 from HSPI to VSPI, and vice versa.

fix the SPI control bits written wrong in the headers.

TW#12123, Github#477

6 years agoFix an assert that erroneously triggered when popping a zero-byte payload from the...
Jeroen Domburg [Mon, 28 Aug 2017 11:31:26 +0000 (19:31 +0800)]
Fix an assert that erroneously triggered when popping a zero-byte payload from the end of the ringbuffer

6 years agoPlace uart_tx_wait_idle in IRAM
Jeroen Domburg [Fri, 25 Aug 2017 09:46:28 +0000 (17:46 +0800)]
Place uart_tx_wait_idle in IRAM

6 years agowindows: Add workaround for "git submodule" stray output bug
Angus Gratton [Tue, 12 Sep 2017 03:08:00 +0000 (13:08 +1000)]
windows: Add workaround for "git submodule" stray output bug

TW10271

6 years agonghttp2: Add submodule to COMPONENT_SUBMODULES, update to release v1.24
Angus Gratton [Tue, 11 Jul 2017 03:49:55 +0000 (11:49 +0800)]
nghttp2: Add submodule to COMPONENT_SUBMODULES, update to release v1.24

Removes need for -DNDEBUG hack in component.mk (fixed upstream).

6 years agofreertos: make sure xPortGetCoreID is placed into IRAM
Ivan Grokhotkov [Tue, 29 Aug 2017 00:25:41 +0000 (08:25 +0800)]
freertos: make sure xPortGetCoreID is placed into IRAM

In some cases, xPortGetCoreID was not inlined, and ended up in flash.
Since this function is used in many situations when cache is disabled,
that caused exceptions. Adding IRAM attribute to fix that.

6 years agofreertos: place uxTopUsedPriority into DRAM
Ivan Grokhotkov [Mon, 11 Sep 2017 12:15:27 +0000 (20:15 +0800)]
freertos: place uxTopUsedPriority into DRAM

When debugging crashes caused by flash cache access errors, OpenOCD may
request the value of uxTopUsedPriority when cache is disabled. Placing
it into IRAM to avoid an error in such case.

6 years agodocs: wifi: use list instead of nested table
Ivan Grokhotkov [Tue, 22 Aug 2017 06:20:19 +0000 (14:20 +0800)]
docs: wifi: use list instead of nested table

Latex backend does not support nested tables, which caused documentation
build to fail on readthedocs.

6 years agonghttp: build port directory
Ivan Grokhotkov [Wed, 26 Jul 2017 06:21:07 +0000 (14:21 +0800)]
nghttp: build port directory

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

6 years agonvs: check CRC of items on full pages
Ivan Grokhotkov [Mon, 4 Sep 2017 03:54:18 +0000 (11:54 +0800)]
nvs: check CRC of items on full pages

Previously NVS did check CRC values of key-value pairs on the active
page, but the check for full pages was missing. This adds the necessary
check and a test for it.

6 years agosdmmc: fix reads/writes to/from unaligned buffers
Ivan Grokhotkov [Mon, 31 Jul 2017 18:24:25 +0000 (02:24 +0800)]
sdmmc: fix reads/writes to/from unaligned buffers

SDMMC hardware treats all buffers as aligned, and ignores 2 LSBs of
addresses written into DMA descriptors. Previously SDMMC host driver
assumed that data buffers passed from SDDMC command layer would be
aligned. However alignment checks were never implemented in the command
layer, as were the checks that the buffer coming from the application
would be in DMA capable memory. Most of the time this was indeed true.
However in some cases FATFS library can pass buffers offset by 2 bytes
from word boundary. “DMA capable” restriction may be broken if pSRAM
support is used.

This change adds buffer checks to the SDMMC host driver (alignment and
DMA capability), so that the host layer will error out for incompatible
buffers. In SDMMC command layer, a check is added to read and write
functions. If an incompatible buffer is passed from the application, new
buffer (512 bytes size) is allocated, and the transfer is performed
using {READ,WRITE}_SINGLE_BLOCK commands.

6 years agodriver/rtc: fix copy-paste error in HOLD_FORCE field name for GPIO26
Ivan Grokhotkov [Thu, 21 Sep 2017 04:26:03 +0000 (12:26 +0800)]
driver/rtc: fix copy-paste error in HOLD_FORCE field name for GPIO26

This error prevented EXT1 wakeup using GPIO26 from working.

6 years agocomponent/bt : update libbtdm_app.a
Tian Hao [Mon, 18 Sep 2017 13:18:47 +0000 (21:18 +0800)]
component/bt : update libbtdm_app.a

1. fix 0x3ffc0000 overwite bug
2. no cswitch jump table
3. fix hci controller to host flow control bug
4. fix SMP negtive LTK replay bug
5. btdm .data init bug
6. fix scan fail after long time bug
7. change pll track interrupt bits

6 years agoComponent/bt: add random address check for set_rand_addr()
zhiweijian [Thu, 14 Sep 2017 07:45:24 +0000 (15:45 +0800)]
Component/bt: add random address check for set_rand_addr()

6 years agoComponent/bt: abnormal behavior for update conn param command
zhiweijian [Tue, 12 Sep 2017 08:39:51 +0000 (16:39 +0800)]
Component/bt: abnormal behavior for update conn param command

6 years agocomponent/bt : fix btc security storage bug
Tian Hao [Mon, 28 Aug 2017 09:14:49 +0000 (17:14 +0800)]
component/bt : fix btc security storage bug

1. Remove the bond_device global variable.
2. Fix bond_device add cause memory exception
3. Modify the code location.
4. modify thread security
5. remove esp_ble_clear_bond_device_list() API
6. modify esp_ble_get_gond_device_list() to return list immediately, rather than wait event.
7. modify the gatt_security_server demo to show how to remove all the bonded devices.
8. fix some code bugs may cause something error.
9. modify gatt_security_server demo

6 years agocomponent/bt : support remove bonded device
Tian Hao [Fri, 8 Sep 2017 10:42:19 +0000 (18:42 +0800)]
component/bt : support remove bonded device

1. add feature of remove bonded devices.
2. fix SMP key size bug
3. fix privacy bug
4. fix gatt set value bug
5. add gatt security client demo
6. change gatt server/gatt client demo

6 years agoMerge branch 'bugfix/fix_set_locked_channel_typo_of_smartconfig' into 'release/v2.1'
Ivan Grokhotkov [Tue, 19 Sep 2017 06:06:33 +0000 (14:06 +0800)]
Merge branch 'bugfix/fix_set_locked_channel_typo_of_smartconfig' into 'release/v2.1'

fix set locked channel typo of smartconfig

See merge request !1156

6 years agogitlab-ci: use specific version of build container
Ivan Grokhotkov [Mon, 18 Sep 2017 10:26:27 +0000 (18:26 +0800)]
gitlab-ci: use specific version of build container

6 years agoBroadcast IP route based on source IP address.
XiaXiaotian [Fri, 30 Jun 2017 08:18:29 +0000 (16:18 +0800)]
Broadcast IP route based on source IP address.

    If destination IP address of the packet is broadcast address, firstly compare
    source IP address with the that of each network interface. If it matches,
    packet is forwarded from the interface.

6 years agofix set locked channel typo of smartconfig
XiaXiaotian [Fri, 25 Aug 2017 08:25:03 +0000 (16:25 +0800)]
fix set locked channel typo of smartconfig

6 years agoMerge branch 'bugfix/xtal_freq_40_2.1' into 'release/v2.1'
Wu Jian Gang [Thu, 24 Aug 2017 12:40:11 +0000 (20:40 +0800)]
Merge branch 'bugfix/xtal_freq_40_2.1' into 'release/v2.1'

esp32: by default, set 40MHz crystal frequency

See merge request !1143

6 years agoesp32: by default, set 40MHz crystal frequency
Ivan Grokhotkov [Wed, 23 Aug 2017 08:33:26 +0000 (16:33 +0800)]
esp32: by default, set 40MHz crystal frequency

6 years agoMerge branch 'feature/tw12244_add_more_comments_for_wifi_api_v2.1' into 'release... v2.1
Ivan Grokhotkov [Mon, 24 Jul 2017 11:42:36 +0000 (19:42 +0800)]
Merge branch 'feature/tw12244_add_more_comments_for_wifi_api_v2.1' into 'release/v2.1'

docs: add wifi doc

See merge request !1046

6 years agodocs: add wifi doc
Liu Zhi Fu [Mon, 24 Jul 2017 06:52:00 +0000 (14:52 +0800)]
docs: add wifi doc

Add more comments about WiFi API usage

6 years agoMerge branch 'cherry-pick-292c2abd' into 'release/v2.1'
Ivan Grokhotkov [Sun, 23 Jul 2017 06:35:33 +0000 (14:35 +0800)]
Merge branch 'cherry-pick-292c2abd' into 'release/v2.1'

Merge branch 'bugfix/init_nvs_in_bluetooth' into 'master'

See merge request !1031

6 years agoexamples: add missing nvs_flash.h include
Ivan Grokhotkov [Thu, 20 Jul 2017 08:40:03 +0000 (16:40 +0800)]
examples: add missing nvs_flash.h include

6 years agoMerge branch 'bugfix/tw14046_scan_assert_in_non_sleep_mode' into 'release/v2.1'
Ivan Grokhotkov [Thu, 20 Jul 2017 06:57:04 +0000 (14:57 +0800)]
Merge branch 'bugfix/tw14046_scan_assert_in_non_sleep_mode' into 'release/v2.1'

Fix the bug that scan assert in non sleep mode.

See merge request !1023

6 years agoMerge branch 'bugfix/init_nvs_in_bluetooth' into 'master'
Ivan Grokhotkov [Thu, 20 Jul 2017 06:25:49 +0000 (14:25 +0800)]
Merge branch 'bugfix/init_nvs_in_bluetooth' into 'master'

bt: call nvs_flash_init in examples, show error if NVS is not initialized

See merge request !1003

6 years agoMerge branch 'bugfix/btdm_rx_losing' into 'release/v2.1'
Ivan Grokhotkov [Thu, 20 Jul 2017 06:19:49 +0000 (14:19 +0800)]
Merge branch 'bugfix/btdm_rx_losing' into 'release/v2.1'

component/bt : update libbtadm_app.a (easing syncerr to fix RX packet losing bug)

See merge request !1029

6 years agocomponent/bt : update libbtadm_app.a (easing syncerr to fix RX packet losing bug)
Tian Hao [Thu, 20 Jul 2017 03:51:28 +0000 (11:51 +0800)]
component/bt : update libbtadm_app.a (easing syncerr to fix RX packet losing bug)

6 years agoFix the bug that scan assert in non sleep mode.
XiaXiaotian [Wed, 19 Jul 2017 06:12:14 +0000 (14:12 +0800)]
Fix the bug that scan assert in non sleep mode.

6 years agoMerge branch 'bugfix/l2cap_disc_tmo' into 'release/v2.1'
Jiang Jiang Jian [Tue, 18 Jul 2017 11:49:05 +0000 (19:49 +0800)]
Merge branch 'bugfix/l2cap_disc_tmo' into 'release/v2.1'

component/bt: fix a bug for L2CAP state machine to access lcb after it is released

See merge request !1015

6 years agocomponent/bt: fix a bug for L2CAP state machine to access lcb after it is released
wangmengyang [Mon, 17 Jul 2017 13:30:40 +0000 (21:30 +0800)]
component/bt: fix a bug for L2CAP state machine to access lcb after it is released

cherry-pick commit 6da84eff

6 years agoMerge branch 'cherry-pick-5d736f7eca' into 'release/v2.1'
Ivan Grokhotkov [Mon, 17 Jul 2017 13:18:32 +0000 (21:18 +0800)]
Merge branch 'cherry-pick-5d736f7eca' into 'release/v2.1'

mbedtls: Fix memory leak in initial ECDH exchange if OOM/failure occurs

See merge request !995

6 years agoMerge branch 'cherry-pick-0c28b3bc' into 'release/v2.1'
Jiang Jiang Jian [Mon, 17 Jul 2017 13:10:54 +0000 (21:10 +0800)]
Merge branch 'cherry-pick-0c28b3bc' into 'release/v2.1'

Merge branch 'bugfix/btdm_update_connect_params_for_gattc' into 'master'

See merge request !996

6 years agoMerge branch 'cherry-pick-5ac0503c' into 'release/v2.1'
Jiang Jiang Jian [Mon, 17 Jul 2017 13:10:30 +0000 (21:10 +0800)]
Merge branch 'cherry-pick-5ac0503c' into 'release/v2.1'

Merge branch 'bugfix/btdm_modify_BTA_GATTC_KNOWN_SR_MAX_for_Multi-connection' into 'master'

See merge request !999

6 years agoMerge branch 'cherry-pick-4ec2abbf' into 'release/v2.1'
Jiang Jiang Jian [Mon, 17 Jul 2017 13:10:04 +0000 (21:10 +0800)]
Merge branch 'cherry-pick-4ec2abbf' into 'release/v2.1'

Merge branch 'feature/some_refactor_for_tcpip_adapter' into 'master'

See merge request !1000

6 years agoMerge branch 'feature/some_refactor_for_tcpip_adapter' into 'master'
Jiang Jiang Jian [Thu, 13 Jul 2017 14:16:00 +0000 (22:16 +0800)]
Merge branch 'feature/some_refactor_for_tcpip_adapter' into 'master'

tcpip_adapter: not remove netif when tcpip adapter is stopped

See merge request !943

6 years agoMerge branch 'bugfix/btdm_modify_BTA_GATTC_KNOWN_SR_MAX_for_Multi-connection' into...
Jiang Jiang Jian [Thu, 13 Jul 2017 13:55:24 +0000 (21:55 +0800)]
Merge branch 'bugfix/btdm_modify_BTA_GATTC_KNOWN_SR_MAX_for_Multi-connection' into 'master'

component/bt: modify BTA_GATTC_KNOWN_SR_MAX for Multi-connection bug

See merge request !992

6 years agoMerge branch 'bugfix/btdm_update_connect_params_for_gattc' into 'master'
Ivan Grokhotkov [Thu, 13 Jul 2017 06:32:20 +0000 (14:32 +0800)]
Merge branch 'bugfix/btdm_update_connect_params_for_gattc' into 'master'

component/bt: bugfix update connect params for gattc

See merge request !991

6 years agombedtls: Fix memory leak in initial ECDH exchange if OOM/failure occurs
Angus Gratton [Wed, 12 Jul 2017 08:34:26 +0000 (16:34 +0800)]
mbedtls: Fix memory leak in initial ECDH exchange if OOM/failure occurs

In ecp_mul_comb(), if (!p_eq_g && grp->T == NULL) and ecp_precompute_comb() fails (which can happen due to OOM), then the new array of points T was leaked.

6 years agoMerge branch 'cherry-pick-94877972' into 'release/v2.1'
Ivan Grokhotkov [Wed, 12 Jul 2017 14:39:12 +0000 (22:39 +0800)]
Merge branch 'cherry-pick-94877972' into 'release/v2.1'

freertos: Bump idle stack size to 1KB, min stack to 768 bytes, make configurable

See merge request !981

6 years agoMerge branch 'bugfix/minimal_stack_size' into 'master'
Angus Gratton [Tue, 11 Jul 2017 13:08:52 +0000 (21:08 +0800)]
Merge branch 'bugfix/minimal_stack_size' into 'master'

freertos: Bump idle stack size to 1KB, min stack to 768 bytes, make configurable

See merge request !979