]> granicus.if.org Git - esp-idf/log
esp-idf
7 years agoMerge branch 'master' of ssh://gitlab.espressif.cn:27227/idf/esp-idf
Liu Zhi Fu [Wed, 1 Mar 2017 05:32:04 +0000 (13:32 +0800)]
Merge branch 'master' of ssh://gitlab.espressif.cn:27227/idf/esp-idf

7 years agoMerge branch 'bugfix/mmap_instr' into 'master'
Ivan Grokhotkov [Tue, 28 Feb 2017 09:14:38 +0000 (17:14 +0800)]
Merge branch 'bugfix/mmap_instr' into 'master'

spi_flash: fix mmap not working for SPI_FLASH_MMAP_INST

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

See merge request !528

7 years agospi_flash: fix memory leak when spi_flash_mmap arguments are invalid
Ivan Grokhotkov [Tue, 28 Feb 2017 07:11:54 +0000 (15:11 +0800)]
spi_flash: fix memory leak when spi_flash_mmap arguments are invalid

Check src_addr and size first, then allocate new_entry.

7 years agoMerge branch 'bugfix/esp_get_random_return_zero' into 'master'
Wu Jian Gang [Tue, 28 Feb 2017 06:35:22 +0000 (14:35 +0800)]
Merge branch 'bugfix/esp_get_random_return_zero' into 'master'

Do not disable clock for generating random number.

1. Do not disable clock for generating random number.
2. And fix the bug that system crashes if call esp_wifi_stop() twice.

See merge request !534

7 years agoupdate phy and rtc lib
XiaXiaotian [Mon, 27 Feb 2017 11:54:22 +0000 (19:54 +0800)]
update phy and rtc lib

1. RTC V214: modify APLL function for the chip of ECO version.

2. Add API phy_close_rf() and use it in esp_phy_deinit() instead of pm_close_rf().

3. RTC V213: fix BT will not work when BT-init is called more than once.

7 years agoMerge branch 'master' of ssh://gitlab.espressif.cn:27227/idf/esp-idf
Liu Zhi Fu [Mon, 27 Feb 2017 09:22:47 +0000 (17:22 +0800)]
Merge branch 'master' of ssh://gitlab.espressif.cn:27227/idf/esp-idf

7 years ago1. Do not disable clock for generating random number.
XiaXiaotian [Mon, 27 Feb 2017 08:48:04 +0000 (16:48 +0800)]
1. Do not disable clock for generating random number.

2. And fix the bug that system crashes if call esp_wifi_stop() twice.

7 years agoMerge branch 'bugfix/sdmmc_fail_no_card' into 'master'
Ivan Grokhotkov [Mon, 27 Feb 2017 02:00:55 +0000 (10:00 +0800)]
Merge branch 'bugfix/sdmmc_fail_no_card' into 'master'

vfs_fat_sdmmc: if card init fails, fail cleanly

This fixes the issue with sdmmc_host not returned to clean state after a failed attempt to mount the card, with no SD card in the slot.

See merge request !527

7 years agoMerge branch 'bugfix/set_channel_fail_before_enable_sniffer' into 'master'
Jiang Jiang Jian [Fri, 24 Feb 2017 14:23:06 +0000 (22:23 +0800)]
Merge branch 'bugfix/set_channel_fail_before_enable_sniffer' into 'master'

wifi: fix issue in setting channel API

Update wifi libs to fix issue in setting channel API.

See merge request !529

7 years agowifi: fix issue in setting channel API
qiyueixa [Fri, 24 Feb 2017 14:08:54 +0000 (22:08 +0800)]
wifi: fix issue in setting channel API

7 years agospi_flash: fix mmap not working for SPI_FLASH_MMAP_INST
Ivan Grokhotkov [Fri, 24 Feb 2017 13:50:05 +0000 (21:50 +0800)]
spi_flash: fix mmap not working for SPI_FLASH_MMAP_INST

7 years agovfs_fat_sdmmc: if card init fails, fail cleanly
Ivan Grokhotkov [Fri, 24 Feb 2017 13:04:22 +0000 (21:04 +0800)]
vfs_fat_sdmmc: if card init fails, fail cleanly

This fixes the issue with sdmmc_host not returned to clean state after
a failed attempt to mount the card, with no SD card in the slot.

7 years agoMerge branch 'bugfix/btdm_adv_scan_enable_report' into 'master'
Jiang Jiang Jian [Fri, 24 Feb 2017 08:24:22 +0000 (16:24 +0800)]
Merge branch 'bugfix/btdm_adv_scan_enable_report' into 'master'

component/bt : add adv/scan start complete event

1. indicate adv/scan start complete success or failed
2. controller do limit of adv/scan concurrence, so add some codes to report adv/scan start failed or not.

See merge request !524

7 years agoMerge branch 'bugfix/set_channel_fail_before_enable_sniffer' into 'master'
Ivan Grokhotkov [Fri, 24 Feb 2017 08:15:39 +0000 (16:15 +0800)]
Merge branch 'bugfix/set_channel_fail_before_enable_sniffer' into 'master'

wifi: fix issue in setting channel before sniffer is enabled

See merge request !526

7 years agowifi: fix issue in setting channel before sniffer is enabled
qiyueixa [Fri, 24 Feb 2017 07:19:31 +0000 (15:19 +0800)]
wifi: fix issue in setting channel before sniffer is enabled

7 years agoMerge branch 'bugfix/btdm_gatts_write_desc_error' into 'master'
Ivan Grokhotkov [Fri, 24 Feb 2017 07:11:18 +0000 (15:11 +0800)]
Merge branch 'bugfix/btdm_gatts_write_desc_error' into 'master'

component/bt:fixed the write ccc crash bug error

fix the gatt server write ccc lead to the system crash if not initialize the ccc value.

See merge request !515

7 years agoMerge branch 'feature/btdm_ram_config' into 'master'
Ivan Grokhotkov [Thu, 23 Feb 2017 10:21:16 +0000 (18:21 +0800)]
Merge branch 'feature/btdm_ram_config' into 'master'

Optimize or release memory in bluetooth

1. add option to release about 30K from BT if BLE only
2. later BT/BLE will be separated by BT/BLE macro, but this option should use when user make sure that in BLE only mode.

See merge request !520

7 years agocomponent/bt : add adv/scan start complete event
Tian Hao [Thu, 23 Feb 2017 09:32:46 +0000 (17:32 +0800)]
component/bt : add adv/scan start complete event

1. indicate adv/scan start complete success or failed
2. controller do limit of adv/scan concurrence, so add some codes to report adv/scan start failed or not.

7 years agoMerge branch 'bugfix/app_tasks_start_on_wrong_cpu' into 'master'
Jeroen Domburg [Thu, 23 Feb 2017 03:19:37 +0000 (11:19 +0800)]
Merge branch 'bugfix/app_tasks_start_on_wrong_cpu' into 'master'

Fix a scheduling bug

Fixes:
- Trivial bug where in some special cases a task could be started on the wrong core (and would run there for max 1 tick)
- More major bug causing a yield to be done with a mux held.

See merge request !523

7 years agoMerge branch 'bugfix/spi_master_length' into 'master'
Jeroen Domburg [Wed, 22 Feb 2017 09:11:00 +0000 (17:11 +0800)]
Merge branch 'bugfix/spi_master_length' into 'master'

Fix SPI master transmit length

Tx/Rx length fix from https://github.com/espressif/esp-idf/pull/336

I also added an extra commit in to make use of a define instead of a literal, plus fix a (harmless) off-by-one condition.

See merge request !521

7 years agoFixed a small bug where a task could initially be scheduled on a wrong CPU, and a...
Jeroen Domburg [Wed, 22 Feb 2017 09:04:51 +0000 (17:04 +0800)]
Fixed a small bug where a task could initially be scheduled on a wrong CPU, and a much bigger bug where a yield was performed with a held mux.

7 years agoMerge branch 'bugfix/bootloader_disable_sar_test_mux' into 'master'
Ivan Grokhotkov [Wed, 22 Feb 2017 06:32:32 +0000 (14:32 +0800)]
Merge branch 'bugfix/bootloader_disable_sar_test_mux' into 'master'

Deep sleep fixes

This change fixes extra 24 uA current consumption in deep sleep mode (https://esp32.com/viewtopic.php?f=2&t=1133).

Recent update to libphy/librtc caused another problem that WiFi related parts of RTC are no longer disabled by RTC sleep functions. This means that if WiFi is not disabled by the application before entering deep sleep, extra ~200uA of current would be consumed. This is fixed, and documentation for esp_deep_sleep and SNTP example are updated to mention that applications should take care of disabling WiFi and BT before going into the deep sleep mode.

See merge request !516

7 years agoMerge branch 'bugfix/flash_write_single_core' into 'master'
Ivan Grokhotkov [Wed, 22 Feb 2017 06:17:40 +0000 (14:17 +0800)]
Merge branch 'bugfix/flash_write_single_core' into 'master'

spi_flash: fix protection issues

This MR fixes the two spi_flash related issues:

- esp_intr_noniram_{disable,enable} not being protected by spi_flash_op_{lock,unlock} in single core mode. This caused a safety assert to be triggered in esp_intr_noniram_disable.

- spi_flash_unlock not being protected by spi_flash_guard_{start,end}. This caused a conflict between SPI0 and SPI1 controllers when accessing SPI flash, manifesting in cache data corruption and IllegalInstruction exceptions, for some flash chips.

See merge request !522

7 years agospi_flash: protect spi_flash_unlock
Ivan Grokhotkov [Wed, 22 Feb 2017 04:51:16 +0000 (12:51 +0800)]
spi_flash: protect spi_flash_unlock

spi_flash_unlock was missing spi_flash_guard_start, which caused cache
to be enabled during unlock operation, causing hard-to-trace crashes
and cache data corruption.

7 years agoMerge branch 'bugfix/make_config_problems' into 'master'
Angus Gratton [Wed, 22 Feb 2017 02:10:34 +0000 (10:10 +0800)]
Merge branch 'bugfix/make_config_problems' into 'master'

build system: Fix several make & configuration problems

Collection of quasi-related build system fixes:
* Fix issues with "make menuconfig" running twice when no existing sdkconfig
* Fix issues with menuconfig getting into a bad state if "make -jN" and no existing sdkconfig
* Hopefully fix intermittent issue with build system sometimes not picking up all config, leading to missing BT/WiFi libs at compile/link time.
* Fix issues with path resolution on Windows (including in Eclipse)
* Add new BATCH_BUILD variable for IDEs and automated build environments.

See merge request !485

7 years agoBuild system: Add new BATCH_BUILD flag to disable interactive parts of the build
Angus Gratton [Fri, 10 Feb 2017 06:38:24 +0000 (17:38 +1100)]
Build system: Add new BATCH_BUILD flag to disable interactive parts of the build

Mostly useful for Eclipse (where accidentally running interactive
config hangs the build), but also good for CI and other automated
build systems.

7 years agokconfig: Ignore Windows host-compiled executables
Angus Gratton [Tue, 7 Feb 2017 03:28:23 +0000 (14:28 +1100)]
kconfig: Ignore Windows host-compiled executables

7 years agoEclipse: Process Windows paths correctly using cygpath
Angus Gratton [Tue, 7 Feb 2017 03:21:58 +0000 (14:21 +1100)]
Eclipse: Process Windows paths correctly using cygpath

Includes splitting the Windows Eclipse setup doc into a separate page,
as it has so many additional steps.

Addresses github #17 and #166
https://github.com/espressif/esp-idf/issues/17
https://github.com/espressif/esp-idf/issues/166

7 years agobuild system: Account for Windows behaviour of make wildcard for some dirs
Angus Gratton [Wed, 4 Jan 2017 01:36:59 +0000 (12:36 +1100)]
build system: Account for Windows behaviour of make wildcard for some dirs

See github #166

7 years agoBuild system: Fix error if librtc submodule not available to bootloader
Angus Gratton [Mon, 6 Feb 2017 06:12:16 +0000 (17:12 +1100)]
Build system: Fix error if librtc submodule not available to bootloader

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

7 years agobuild system: Fix parallel & double menuconfig issues when sdkconfig missing
Angus Gratton [Mon, 6 Feb 2017 06:02:07 +0000 (17:02 +1100)]
build system: Fix parallel & double menuconfig issues when sdkconfig missing

Fixes misbehaviour of default menuconfig when sdkconfig is missing.

(Either appearing twice, or breaking if make -jN is used.)

7 years agobuild system: Probable fix for errors due to bad config bypassing components
Angus Gratton [Fri, 3 Feb 2017 05:02:22 +0000 (16:02 +1100)]
build system: Probable fix for errors due to bad config bypassing components

See github #311 https://github.com/espressif/esp-idf/issues/311

Should fix weird compiler/linker bugs where config says something is
enabled, but build system says it is disabled.
Particularly noticeable when WiFi/BT libraries fail to
compile/link despite being enabled.

Underlying cause is configuration file regenerating, but component
Makefiles not reevaluating.

Entirely removes the idea that we don't need to generate config for some
targets (like 'clean'). We need valid config for these targets,
otherwise they don't know which files to clean (etc).

7 years agoMerge branch 'feature/partition_table_envvars' into 'master'
Angus Gratton [Tue, 21 Feb 2017 23:22:04 +0000 (07:22 +0800)]
Merge branch 'feature/partition_table_envvars' into 'master'

partition tables: Expand environment variables in gen_esp32part

Allows parametrizing partition table with (exported) make variables.

Merges PR #301 https://github.com/espressif/esp-idf/pull/301

See merge request !505

7 years agospi_flash: protect esp_intr_noniram_{disable,enable} in 1-core config
Ivan Grokhotkov [Tue, 21 Feb 2017 13:57:53 +0000 (21:57 +0800)]
spi_flash: protect esp_intr_noniram_{disable,enable} in 1-core config

MR !441 (7c155ab) has fixed issue with esp_intr_noniram_{disable,enable}
calls not being properly protected by spi_flash_op_{lock,unlock}.
Unit test was added, but the unit test environment tests only dual-core
config. Similar issue was present in the code path for the single-core
config, where esp_intr_noniram_{disable,enable} calls were unprotected.

This change fixes the protection issue and updates the unit test to
run properly in single core config as well.

The issue with running unit tests for single core config will be
addressed in a separate MR.

7 years agoUse THRESH_DMA_TRANS define everywhere, make code match "smaller or equal" description
Jeroen Domburg [Tue, 21 Feb 2017 10:27:56 +0000 (18:27 +0800)]
Use THRESH_DMA_TRANS define everywhere, make code match "smaller or equal" description

7 years agoFix SPI read edges in spi_intr
Lourens Naudé [Sun, 12 Feb 2017 22:59:09 +0000 (22:59 +0000)]
Fix SPI read edges in spi_intr

Signed-off-by: Jeroen Domburg <jeroen@espressif.com>
7 years agocomponent/bt : add option to release about 30K from BT if BLE only
Tian Hao [Tue, 21 Feb 2017 09:46:59 +0000 (17:46 +0800)]
component/bt : add option to release about 30K from BT if BLE only

1. later BT/BLE will be separated by BT/BLE macro, but this option should use when user make sure that in BLE only mode.

7 years agodeep sleep: add note about disabling WiFi and BT
Ivan Grokhotkov [Tue, 21 Feb 2017 04:29:25 +0000 (12:29 +0800)]
deep sleep: add note about disabling WiFi and BT

This change adds a note to esp_deep_sleep that applications should disable WiFi and BT before going into deep sleep.
SNTP example is also updated.

7 years agodeep sleep: bring some registers into known state
Ivan Grokhotkov [Tue, 21 Feb 2017 09:00:43 +0000 (17:00 +0800)]
deep sleep: bring some registers into known state

In case WiFi/BT stack has been enabled but wasn’t disabled, some RTC
bits may be left enabled, causing increased current consumption.
This change returns some of the bits back to their default values.

7 years agobootloader: disconnect VRTC from SAR input in bootloader_random_disable
Ivan Grokhotkov [Tue, 21 Feb 2017 04:10:49 +0000 (12:10 +0800)]
bootloader: disconnect VRTC from SAR input in bootloader_random_disable

Bootloader enables SAR ADC in test mode to get some entropy for the RNG.
The bits which control the ADC test mux were not disabled, which caused
extra ~24uA current to be drawn from VRTC, increasing deep sleep current
consumption. This change disables relevant test mode bits in
bootloader_random_disable.

7 years agoMerge branch 'bugfix/exception_after_merge_phy_disable' into 'master'
Ivan Grokhotkov [Tue, 21 Feb 2017 08:16:41 +0000 (16:16 +0800)]
Merge branch 'bugfix/exception_after_merge_phy_disable' into 'master'

bugfix: it causes exception that wifi interrupt happens when read/write flash, i…

…f pp_post() is on icache.

See merge request !518

7 years agoMerge branch 'master' of ssh://gitlab.espressif.cn:27227/idf/esp-idf
Liu Zhi Fu [Tue, 21 Feb 2017 07:03:34 +0000 (15:03 +0800)]
Merge branch 'master' of ssh://gitlab.espressif.cn:27227/idf/esp-idf

7 years agobugfix: it causes exception that wifi interrupt happens when read/write flash, if...
XiaXiaotian [Tue, 21 Feb 2017 06:25:34 +0000 (14:25 +0800)]
bugfix: it causes exception that wifi interrupt happens when read/write flash, if pp_post() is on icache.

7 years agoMerge branch 'feature/disable_phy_rf_when_disable_wifi_bt' into 'master'
Jiang Jiang Jian [Mon, 20 Feb 2017 17:40:49 +0000 (01:40 +0800)]
Merge branch 'feature/disable_phy_rf_when_disable_wifi_bt' into 'master'

disable PHY and RF when stop WiFi and disable BT

1. Add disable PHY and RF when WiFi and BT are both disabled(including call sniffer disable API).

2. Do not init PHY and RF when cpu start. Init PHY and RF when call Wifi or BT start APIs(including sniffer enable API).

3. Add a temporary lib: librtc_clk.a and will delete it when CPU frequency switching function is done.

4. Add an function to get OS tick rate.

5. Do not put the whole pp.a in iram0, only put lmac.o, ieee80211_misc.o, ets_time.o and wdev.o in iram0.

See merge request !510

7 years agoMerge branch 'master' of ssh://gitlab.espressif.cn:27227/idf/esp-idf into feature...
XiaXiaotian [Mon, 20 Feb 2017 17:20:48 +0000 (01:20 +0800)]
Merge branch 'master' of ssh://gitlab.espressif.cn:27227/idf/esp-idf into feature/disable_phy_rf_when_disable_wifi_bt

7 years agocomponent/bt : add bluetooth status check
Tian Hao [Mon, 20 Feb 2017 17:05:37 +0000 (01:05 +0800)]
component/bt : add bluetooth status check

1. add bluetooth controller/host initialize status check
2. separate bluetooth controller task schedule loop from controller init

7 years agocoexist: enable coexist when wifi&bt are enabled, disable coexist when one of wifi...
XiaXiaotian [Mon, 20 Feb 2017 15:53:25 +0000 (23:53 +0800)]
coexist: enable coexist when wifi&bt are enabled, disable coexist when one of wifi&bt is disabled.

7 years agocomponent/bt:fixed the write ccc crash bug error
Yulong [Mon, 20 Feb 2017 13:50:02 +0000 (08:50 -0500)]
component/bt:fixed the write ccc crash bug error

7 years agoMerge branch 'bugfix/vfat_open_append' into 'master'
Ivan Grokhotkov [Mon, 20 Feb 2017 05:32:32 +0000 (13:32 +0800)]
Merge branch 'bugfix/vfat_open_append' into 'master'

Fix fopen() in “a” (append) mode

fopen() does not work when file is opened in “a” (append) mode

* Merges github PR #302 https://github.com/espressif/esp-idf/pull/302
* Closes #328 https://github.com/espressif/esp-idf/issues/328

See merge request !503

7 years agophy init: modify some comments
XiaXiaotian [Mon, 20 Feb 2017 02:23:56 +0000 (10:23 +0800)]
phy init: modify some comments

7 years agoMerge branch 'feature/doc_drivers' into 'master'
Angus Gratton [Mon, 20 Feb 2017 02:28:52 +0000 (10:28 +0800)]
Merge branch 'feature/doc_drivers' into 'master'

docs: Add missing peripheral driver docs (ADC, DAC, RTC I/O, I2S)

Plus some general driver doc related cleanup.

touch_pad docs to follow in a subsequent MR.

See merge request !508

7 years agouart driver docs: Remove references to setting interrupt number
Angus Gratton [Thu, 16 Feb 2017 23:14:45 +0000 (10:14 +1100)]
uart driver docs: Remove references to setting interrupt number

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

7 years agodocs: Add missing peripheral driver docs (ADC, DAC, RTC I/O, I2S)
Angus Gratton [Thu, 16 Feb 2017 02:59:50 +0000 (13:59 +1100)]
docs: Add missing peripheral driver docs (ADC, DAC, RTC I/O, I2S)

7 years agortc_gpio: Replace RTC_GPIO_IS_VALID_GPIO macro with inline function
Angus Gratton [Wed, 15 Feb 2017 00:50:21 +0000 (11:50 +1100)]
rtc_gpio: Replace RTC_GPIO_IS_VALID_GPIO macro with inline function

7 years agocomponent/bt : add bt enable/disable for power save
Tian Hao [Fri, 17 Feb 2017 11:24:58 +0000 (19:24 +0800)]
component/bt : add bt enable/disable for power save

1. add new APIs bt controller enable/disab/deinit
2. make bt controller work need to call two APIs of esp_bt_controller_init and enable
3. modify phy init to make mac reset once

7 years agofix compile error that if enable CONFIG_ESP32_PHY_INIT_DATA_IN_PARTITION compile...
XiaXiaotian [Fri, 17 Feb 2017 07:29:11 +0000 (15:29 +0800)]
fix compile error that if enable CONFIG_ESP32_PHY_INIT_DATA_IN_PARTITION compile fail

7 years agoMerge branch 'feature/btdm_pll_track' into 'master'
Jiang Jiang Jian [Fri, 17 Feb 2017 05:48:26 +0000 (13:48 +0800)]
Merge branch 'feature/btdm_pll_track' into 'master'

component/bt : wide range work temperature for bluetooth RF

1. add PLL track for bluetooth RF for wide range temperature
2. move some initialized codes to cache

See merge request !511

7 years agocomponent/bt : wide range work temperature for bluetooth RF
Tian Hao [Fri, 17 Feb 2017 04:26:28 +0000 (12:26 +0800)]
component/bt : wide range work temperature for bluetooth RF

1. add PLL track for bluetooth RF for wide range temperature
2. move some initialized codes to cache

7 years agodisable phy and rf
XiaXiaotian [Thu, 16 Feb 2017 14:06:02 +0000 (22:06 +0800)]
disable phy and rf

1. add a macro in menuconfig for users to choose whether store phy calibration data into NVS or not.

2. rename some disable phy and rf APIs so that existing code which calls old APIS will fail to compile.

7 years agodisable PHY and RF when stop WiFi and disable BT
XiaXiaotian [Thu, 16 Feb 2017 11:05:07 +0000 (19:05 +0800)]
disable PHY and RF when stop WiFi and disable BT

1. Add disable PHY and RF when WiFi and BT are both disabled(including call sniffer disable API).

2. Do not init PHY and RF when cpu start. Init PHY and RF when call Wifi or BT start APIs(including sniffer enable API).

3. Add a temporary lib: librtc_clk.a and will delete it when CPU frequency switching function is done.

4. Add an function to get OS tick rate.

5. Do not put the whole pp.a in iram0, only put lmac.o, ieee80211_misc.o, ets_time.o and wdev.o in iram0.

7 years agoMerge branch 'bugfix/btdm_gatt' into 'master'
Jiang Jiang Jian [Thu, 16 Feb 2017 07:13:05 +0000 (15:13 +0800)]
Merge branch 'bugfix/btdm_gatt' into 'master'

component/bt : fix gatt write memory leak

fix bug of GATT write cause memory leak

See merge request !506

7 years agoMerge branch 'feature/ethernet_phy_power' into 'master'
Jiang Jiang Jian [Thu, 16 Feb 2017 07:12:09 +0000 (15:12 +0800)]
Merge branch 'feature/ethernet_phy_power' into 'master'

ethernet: add a gpio to enable/disable phy power

ethernet board v2 use gpio 17 .

See merge request !495

7 years agoMerge branch 'bugfix/btdm_iphone10_0_2' into 'master'
Jiang Jiang Jian [Thu, 16 Feb 2017 07:10:50 +0000 (15:10 +0800)]
Merge branch 'bugfix/btdm_iphone10_0_2' into 'master'

Bugfix/btdm iphone10 0 2

This connection error caused by iPhone, it think that TX data length must large than 27 when slave support EXTEND_DATA_LENGTH. But this should be allow. Besides,  the problem cannot be found on higher version of Iphone7, apple seemed to have fixed it.
Actually maybe other BLE device have the same problem.

See merge request !509

7 years agoethernet: add pin macro
shangke [Thu, 16 Feb 2017 06:36:46 +0000 (14:36 +0800)]
ethernet: add pin macro

7 years agocomponent/bt : fix connection bug of Iphone7 10.0.2
Tian Hao [Thu, 16 Feb 2017 06:10:44 +0000 (14:10 +0800)]
component/bt : fix connection bug of Iphone7 10.0.2

This connection error caused by iPhone, it think that TX data length must large than 27 when slave support EXTEND_DATA_LENGTH. But this should be allow. Besides,  the problem cannot be found on higher version of Iphone7, apple seemed to have fixed it.
Actually maybe other BLE device have the same problem.

7 years agocomponent/bt : fix gatt write memory leak
Tian Hao [Wed, 15 Feb 2017 12:08:39 +0000 (20:08 +0800)]
component/bt : fix gatt write memory leak

7 years agofatfs: Add unit test for overwrite/append fix
Angus Gratton [Wed, 15 Feb 2017 07:04:28 +0000 (18:04 +1100)]
fatfs: Add unit test for overwrite/append fix

7 years agoMerge branch 'bugfix/openssl_server_example' into 'master'
Ivan Grokhotkov [Wed, 15 Feb 2017 06:34:08 +0000 (14:34 +0800)]
Merge branch 'bugfix/openssl_server_example' into 'master'

Example 10_openssl_server should use TLSv1.2 instead of SSLv3; fixed corrupted HTTP Header

* Merges github PR #214 https://github.com/espressif/esp-idf/pull/214
* Closes #333 https://github.com/espressif/esp-idf/issues/333

See merge request !501

7 years agoopenssl_server example: Roll back to TLS_server_method() for compatibility
Angus Gratton [Wed, 15 Feb 2017 06:18:01 +0000 (17:18 +1100)]
openssl_server example: Roll back to TLS_server_method() for compatibility

Add a comment recommending TLS v1.2.

7 years agoMerge branch 'docs/flash_encryption_disable' into 'master'
Ivan Grokhotkov [Wed, 15 Feb 2017 05:31:08 +0000 (13:31 +0800)]
Merge branch 'docs/flash_encryption_disable' into 'master'

Docs: Document flash encryption disable steps, clean up flash encryption & secure boot docs

Generate clean up of flash encryption & secure boot docs

Including steps for disabling flash encryption (for people who accidentally enable it).

See merge request !500

7 years agoMerge branch 'bugfix/gperf_v3_1' into 'master'
Ivan Grokhotkov [Wed, 15 Feb 2017 05:29:18 +0000 (13:29 +0800)]
Merge branch 'bugfix/gperf_v3_1' into 'master'

kconfig: Remove gperf 3.1+ incompatible kconf_conf_id forward declaration

Forward declaration was unused. gperf 3.1+ changed parameter type from
'unsigned int' to 'size_t'.

Ref github #200 https://github.com/espressif/esp-idf/issues/200#issuecomment-279377753
Fixes #315 https://github.com/espressif/esp-idf/issues/315
Fixes #251 https://github.com/espressif/esp-idf/issues/251

See merge request !498

7 years agoMerge branch 'bugfix/add_espcoredump_to_add_paths_script' into 'master'
Ivan Grokhotkov [Wed, 15 Feb 2017 05:27:18 +0000 (13:27 +0800)]
Merge branch 'bugfix/add_espcoredump_to_add_paths_script' into 'master'

Add espcoredump to the add_path shell helper

Merges PR #335 https://github.com/espressif/esp-idf/pull/335

See merge request !504

7 years agoMerge branch 'bugfix/send_crosscore_iram' into 'master'
Ivan Grokhotkov [Wed, 15 Feb 2017 05:26:56 +0000 (13:26 +0800)]
Merge branch 'bugfix/send_crosscore_iram' into 'master'

esp32: Move esp_crosscore_int_send_yield() to IRAM

Merges PR #257 https://github.com/espressif/esp-idf/pull/257

See merge request !502

7 years agoMerge branch 'bugfix/phy_init_write_nvs_once' into 'master'
Ivan Grokhotkov [Wed, 15 Feb 2017 05:26:22 +0000 (13:26 +0800)]
Merge branch 'bugfix/phy_init_write_nvs_once' into 'master'

phy_init: don’t rewrite valid calibration data

In the default PHY init routine, calibration data is loaded from NVS.
Most of the time the incremental changes to calibration will be fairly
small, so we don’t need to rewrite the existing calibration data stored
in the NVS.

Possible enhancement to be done in the future: expose a function in PHY
library to tell how big was the change in calibration data. If the
change was significant, then calibration data stored in NVS should be
updated.

See merge request !487

7 years agoMerge branch 'bugfix/fix_protection_of_queue_list' into 'master'
Ivan Grokhotkov [Wed, 15 Feb 2017 05:25:51 +0000 (13:25 +0800)]
Merge branch 'bugfix/fix_protection_of_queue_list' into 'master'

freertos: fix protection issue in freertos queue event list

When functions in queue.c calls listLIST_IS_EMPTY() to check queue event list, the queue list is
protected by queue mutex, on the other hand, when xTaskIncrementTick() modify the queue list, the
 queue list is protected by xTaskQueueMutex, this may cause xTaskRemoveFromEventList operate on
the empty queue list and cause problem.
This change works around the problem by reducing the window where the race condition can happen.

See merge request !465

7 years agoMerge branch 'bugfix/OTA_and_flash_encryption_incompatible' into 'master'
Ivan Grokhotkov [Wed, 15 Feb 2017 05:24:10 +0000 (13:24 +0800)]
Merge branch 'bugfix/OTA_and_flash_encryption_incompatible' into 'master'

bootloader_support: fix bug OTA & flash encryption incompatible

github issue:https://github.com/espressif/esp-idf/issues/253

See merge request !464

7 years agopartition table: Fix comment at top of gen_esp32part.py
Angus Gratton [Tue, 14 Feb 2017 23:28:45 +0000 (10:28 +1100)]
partition table: Fix comment at top of gen_esp32part.py

7 years agoDocs: Mark PDF links as such in the documentation index
Angus Gratton [Tue, 14 Feb 2017 01:56:51 +0000 (12:56 +1100)]
Docs: Mark PDF links as such in the documentation index

Nothing worse than clicking what you think is an internal page link
and finding a PDF downloading!

7 years agoREADME: Add some tips on using menuconfig
Angus Gratton [Tue, 14 Feb 2017 01:56:13 +0000 (12:56 +1100)]
README: Add some tips on using menuconfig

7 years agoflash encryption/secure boot: Restructure documentation
Angus Gratton [Tue, 14 Feb 2017 01:48:28 +0000 (12:48 +1100)]
flash encryption/secure boot: Restructure documentation

Also add steps to disable flash encryption, as some people seem to
accidentally enable it.

Explicitly mark the flash encryption and secure boot as "READ DOCS
FIRST" in menuconfig.

7 years agoExpand environment variables in gen_esp32part
Deomid Ryabkov [Thu, 26 Jan 2017 01:47:53 +0000 (01:47 +0000)]
Expand environment variables in gen_esp32part

Allows parametrizing partition table with (exported) make variables.

7 years agoFix fopen() in “a” (append) mode
nineisk [Thu, 26 Jan 2017 02:30:12 +0000 (09:30 +0700)]
Fix fopen() in “a” (append) mode

fopen() does not work when file is opened in “a” (append) mode

7 years agoesp32: Move esp_crosscore_int_send_yield() to IRAM
Marcin Galczynski [Tue, 17 Jan 2017 17:20:17 +0000 (18:20 +0100)]
esp32: Move esp_crosscore_int_send_yield() to IRAM

7 years agoExample 10_openssl_server should use TLSv1.2 instead of SSLv3; fixed corrupted HTTP...
Malte Janduda [Tue, 10 Jan 2017 20:48:15 +0000 (21:48 +0100)]
Example 10_openssl_server should use TLSv1.2 instead of SSLv3; fixed corrupted HTTP Header

7 years agokconfig: Remove gperf 3.1+ incompatible kconf_conf_id forward declaration
Angus Gratton [Thu, 9 Feb 2017 01:12:28 +0000 (12:12 +1100)]
kconfig: Remove gperf 3.1+ incompatible kconf_conf_id forward declaration

Forward declaration was unused. gperf 3.1+ changed parameter type from
'unsigned int' to 'size_t'.

7 years agoMerge branch 'bugfix/update_wifi_lib_to_include_some_fix_and_optimization' into ...
Jiang Jiang Jian [Mon, 13 Feb 2017 13:22:43 +0000 (21:22 +0800)]
Merge branch 'bugfix/update_wifi_lib_to_include_some_fix_and_optimization' into 'master'

esp32: update wifi lib for some fixes and optimizations

1. Reduce the default static rx buffer size from 25 to 10
2. Adjust ampdu interrupt size to 3, namely, raise 1 interrupt per 3-mpdu
3. Make a copy for all received packets, including AMSDU/AMPDU/MPDU
4. Fix softap mis-forward issue
5. Fix pp q full issue
6. Fix sniffer copy wrong content issue

See merge request !491

7 years agoMerge branch 'master' of ssh://gitlab.espressif.cn:27227/idf/esp-idf
Liu Zhi Fu [Mon, 13 Feb 2017 09:39:53 +0000 (17:39 +0800)]
Merge branch 'master' of ssh://gitlab.espressif.cn:27227/idf/esp-idf

7 years agoMerge branch 'bugfix/btdm_blufi' into 'master'
Jiang Jiang Jian [Mon, 13 Feb 2017 06:52:46 +0000 (14:52 +0800)]
Merge branch 'bugfix/btdm_blufi' into 'master'

fix BLUFI bug

fix BLUFI bug with small MTU size

See merge request !493

7 years agoMerge branch 'bugfix/btdm_gatt_memleak' into 'master'
Jiang Jiang Jian [Mon, 13 Feb 2017 06:30:09 +0000 (14:30 +0800)]
Merge branch 'bugfix/btdm_gatt_memleak' into 'master'

component/bt : fix GATT disconnect memory leak bug

fix a bug of memory leak of GATT disconnection

See merge request !496

7 years agoMerge branch 'bugfix/btdm_demo_adv_raw_data' into 'master'
Jiang Jiang Jian [Mon, 13 Feb 2017 06:27:21 +0000 (14:27 +0800)]
Merge branch 'bugfix/btdm_demo_adv_raw_data' into 'master'

component/bt : use real adv data to set raw adv data

Use real advertising data to set raw advertising data in GATT-SERVER demo.

See merge request !492

7 years agocomponent/bt : fix GATT disconnect memory leak bug
Tian Hao [Mon, 13 Feb 2017 06:00:26 +0000 (14:00 +0800)]
component/bt : fix GATT disconnect memory leak bug

7 years agoAdd espcoredump to the add_path shell helper
Lourens Naudé [Sun, 12 Feb 2017 22:48:41 +0000 (22:48 +0000)]
Add espcoredump to the add_path shell helper

7 years agoethernet: add doc
shangke [Sat, 11 Feb 2017 08:42:16 +0000 (16:42 +0800)]
ethernet: add doc

7 years agoethernet: add a gpio to enable/disable phy power
shangke [Sat, 11 Feb 2017 07:19:53 +0000 (15:19 +0800)]
ethernet: add a gpio to enable/disable phy power

7 years agocomponent/bt : use real adv data to set raw adv data
Tian Hao [Fri, 10 Feb 2017 03:02:10 +0000 (11:02 +0800)]
component/bt : use real adv data to set raw adv data

7 years agocomponent/bt : fix BLUFI bug with small MTU size
Tian Hao [Wed, 8 Feb 2017 07:03:57 +0000 (15:03 +0800)]
component/bt : fix BLUFI bug with small MTU size

7 years agofreertos: fix protection issue in freertos queue event list
Liu Zhi Fu [Tue, 24 Jan 2017 12:40:14 +0000 (20:40 +0800)]
freertos: fix protection issue in freertos queue event list

When functions in queue.c calls listLIST_IS_EMPTY() to check queue event list, the queue list is
protected by queue mutex, on the other hand, when xTaskIncrementTick() modify the queue list, the
 queue list is protected by xTaskQueueMutex, this may cause xTaskRemoveFromEventList operate on
the empty queue list and cause problem. This commit is to fix this bug.

may cause

7 years agoesp32: update wifi lib for some fixes and optimizations
Liu Zhi Fu [Fri, 10 Feb 2017 02:28:03 +0000 (10:28 +0800)]
esp32: update wifi lib for some fixes and optimizations

1. Reduce the default static rx buffer size from 25 to 10
2. Adjust ampdu interrupt size to 3, namely, raise 1 interrupt per 3-mpdu
3. Make a copy for all received packets, including AMSDU/AMPDU/MPDU
4. Fix softap mis-forward issue
5. Fix pp q full issue
6. Fix sniffer copy wrong content issue

7 years agoMerge branch 'test/get_test_env_config_from_gitlab' into 'master'
Ivan Grokhotkov [Wed, 8 Feb 2017 08:56:38 +0000 (16:56 +0800)]
Merge branch 'test/get_test_env_config_from_gitlab' into 'master'

CI: get test env config from gitlab

Previous design was put test env config on local runners. It's not easy to manage as test runners count growing.

Now we'll put config files for test runners to a Gitlab repository. Test runners will get its config from Gitlab every time before running.

See merge request !480

7 years agoMerge branch 'bugfix/yield_other_core_prio_check_fix' into 'master'
Jeroen Domburg [Wed, 8 Feb 2017 04:19:34 +0000 (12:19 +0800)]
Merge branch 'bugfix/yield_other_core_prio_check_fix' into 'master'

Fix interrupting task on other CPU that has lower prio than current task on current CPU

Fix for a very subtle bug introduced somewhere in december. This bug would cause a cross-core interrupt to only be sent if the activated task has a higher priority than the task currently running on *this* cpu, instead of on the other CPU.

See merge request !475