]> granicus.if.org Git - esp-idf/log
esp-idf
7 years agocomponent/bt: optimize stack size of Bluetooth Tasks and make them be configurable...
wangmengyang [Mon, 6 Mar 2017 13:50:54 +0000 (21:50 +0800)]
component/bt: optimize stack size of Bluetooth Tasks and make them be configurable according to the CONFIG_NEWLIB_NANO_FORMAT option

7 years agoMerge branch 'bugfix/fix_mpdu_len_error' into 'master'
Wu Jian Gang [Fri, 3 Mar 2017 12:58:49 +0000 (20:58 +0800)]
Merge branch 'bugfix/fix_mpdu_len_error' into 'master'

esp32: update wifi lib to fix mpdu len error

Fix mpdu len error which impact espressif smartconfig

See merge request !552

7 years agoesp32: update wifi lib to fix mpdu len error
Liu Zhi Fu [Fri, 3 Mar 2017 10:06:05 +0000 (18:06 +0800)]
esp32: update wifi lib to fix mpdu len error

Fix mpdu len error which impact espressif smartconfig

7 years agoMerge branch 'feature/run_test_on_release_branches' into 'master'
Ivan Grokhotkov [Fri, 3 Mar 2017 09:41:58 +0000 (17:41 +0800)]
Merge branch 'feature/run_test_on_release_branches' into 'master'

CI: support running CI test on release branches

Patches will be cherry-picked to release branches after it's released. Therefore we need to run test jobs with the same strategy as master.

See merge request !551

7 years agoMerge branch 'bugfix/free_iram' into 'master'
Angus Gratton [Fri, 3 Mar 2017 06:08:10 +0000 (14:08 +0800)]
Merge branch 'bugfix/free_iram' into 'master'

uart driver: Remove ISR from IRAM

See merge request !486

7 years agoCI: support running CI test on release branches
He Yin Ling [Fri, 3 Mar 2017 06:06:07 +0000 (14:06 +0800)]
CI: support running CI test on release branches

7 years agouart driver: Remove UART ISR handler from IRAM
Angus Gratton [Tue, 7 Feb 2017 04:05:18 +0000 (15:05 +1100)]
uart driver: Remove UART ISR handler from IRAM

Doesn't change example behaviour, as ISR wasn't being registered as
ESP_INTR_FLAG_IRAM.

7 years agoMerge branch 'bugfix/github_small_fixes' into 'master'
Angus Gratton [Fri, 3 Mar 2017 04:58:22 +0000 (12:58 +0800)]
Merge branch 'bugfix/github_small_fixes' into 'master'

Merge small bugfix PRs from github

* https://github.com/espressif/esp-idf/pull/389
* https://github.com/espressif/esp-idf/pull/382
* https://github.com/espressif/esp-idf/pull/367
* https://github.com/espressif/esp-idf/pull/366
* https://github.com/espressif/esp-idf/pull/361
* https://github.com/espressif/esp-idf/pull/355
* https://github.com/espressif/esp-idf/pull/350
* https://github.com/espressif/esp-idf/pull/348
* https://github.com/espressif/esp-idf/pull/339
* https://github.com/espressif/esp-idf/pull/46
* https://github.com/espressif/esp-idf/pull/307

See merge request !541

7 years agodocs/eclipse: Add considerations for PATH, PYTHONPATH
Angus Gratton [Fri, 3 Mar 2017 01:19:24 +0000 (12:19 +1100)]
docs/eclipse: Add considerations for PATH, PYTHONPATH

Thanks to @motla who mentioned these on github:
https://github.com/espressif/esp-idf/pull/157#issuecomment-271109920

7 years agoesp_err: Use separate code path for ESP_ERROR_CHECK assertion
Angus Gratton [Thu, 2 Mar 2017 06:22:22 +0000 (17:22 +1100)]
esp_err: Use separate code path for ESP_ERROR_CHECK assertion

* Minimum code size overhead
* Makes function safe to use when flash cache is disabled

Builds on #339 https://github.com/espressif/esp-idf/pull/339

7 years agospi_flash: Add spi_flash_cache_enabled() test function
Angus Gratton [Thu, 2 Mar 2017 04:21:03 +0000 (15:21 +1100)]
spi_flash: Add spi_flash_cache_enabled() test function

7 years agosdmmc: Use slot width as default slot_config width parameter, instead of 4
Angus Gratton [Thu, 2 Mar 2017 06:18:44 +0000 (17:18 +1100)]
sdmmc: Use slot width as default slot_config width parameter, instead of 4

Ref #361 https://github.com/espressif/esp-idf/pull/361

7 years agocomponent/bt: fix bug where uuid was not reset in btc_gatts_act_create_attr_tab.
Derek Gregory [Sat, 28 Jan 2017 08:47:09 +0000 (00:47 -0800)]
component/bt: fix bug where uuid was not reset in btc_gatts_act_create_attr_tab.

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

7 years agoble: Fix ble_adv data truncation
lucashutchinson [Thu, 2 Mar 2017 03:41:03 +0000 (16:41 +1300)]
ble: Fix ble_adv data truncation

Fixed issue with ble_adv data being truncated after the 31st octet due to an incorrect length passed in a memcpy.

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

7 years agodocs/*-setup: Use --enable-local instead of --prefix=$PWD for ct-ng
Angus Gratton [Thu, 2 Mar 2017 05:07:28 +0000 (16:07 +1100)]
docs/*-setup: Use --enable-local instead of --prefix=$PWD for ct-ng

7 years agodocs/linux-setup: Install dependencies for Ubuntu 16.04
Daniel Bovensiepen [Fri, 7 Oct 2016 15:31:24 +0000 (23:31 +0800)]
docs/linux-setup: Install dependencies for Ubuntu 16.04

Not sure which Ubuntu is used in the installation guide but for the latest LTS release 16.04 we need libtool-bin for
compiling crosstool-NG proper

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

7 years agoesp_err: add NDEBUG guard, comment about flash cache
Angus Gratton [Thu, 2 Mar 2017 04:40:49 +0000 (15:40 +1100)]
esp_err: add NDEBUG guard, comment about flash cache

Follow-up to 316b040

7 years agoUpdate to ESP_ERROR_CHECK
Neil Kolban [Tue, 14 Feb 2017 05:03:04 +0000 (23:03 -0600)]
Update to ESP_ERROR_CHECK

See request from ESP_Angus here:
https://esp32.com/viewtopic.php?f=18&t=1179

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

7 years agoAdded missing platform.h to mbedtls ssl.h
Anne Jan Brouwer [Fri, 17 Feb 2017 00:58:44 +0000 (01:58 +0100)]
Added missing platform.h to mbedtls ssl.h

There was a missing definition of mbedtls_time_t

See for example:
https://travis-ci.org/SHA2017-badge/Firmware/jobs/202459377

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

7 years agolwip: Use strlcpy() instead of memcpy() to copy hostname to static buffer
Angus Gratton [Thu, 2 Mar 2017 03:50:58 +0000 (14:50 +1100)]
lwip: Use strlcpy() instead of memcpy() to copy hostname to static buffer

7 years agolwip: Fix hostname set in tcpip_adapter_lwip
alarruskain [Fri, 17 Feb 2017 10:02:00 +0000 (11:02 +0100)]
lwip: Fix hostname set in tcpip_adapter_lwip

Hostname for each interface is not correctly stored in "hostinfo" variable.

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

7 years agodocs: Fix typo in build-system.rst
gbcwbz [Sun, 19 Feb 2017 11:33:08 +0000 (19:33 +0800)]
docs: Fix typo in build-system.rst

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

7 years agosdmmc: Add width field to the slot config.
Daniel Campora [Mon, 20 Feb 2017 00:42:58 +0000 (00:42 +0000)]
sdmmc: Add width field to the slot config.

Therefore if the width is set to 1, you can choose to only
configure the CLK, DAT0 and CMD pins.

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

7 years agoexamples/ethernet: Same sense of meaning SW_STRAP
rudi ;-) [Tue, 21 Feb 2017 01:52:27 +0000 (02:52 +0100)]
examples/ethernet: Same sense of meaning SW_STRAP

Merges #366 #367
https://github.com/espressif/esp-idf/pull/366
https://github.com/espressif/esp-idf/pull/367

7 years agoexamples/ethernet: typo, better named
rudi ;-) [Sun, 26 Feb 2017 03:13:39 +0000 (04:13 +0100)]
examples/ethernet: typo, better named

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

7 years agoMerge branch 'bugfix/separate_ethernet_and_wifi' into 'master'
Ivan Grokhotkov [Fri, 3 Mar 2017 03:53:32 +0000 (11:53 +0800)]
Merge branch 'bugfix/separate_ethernet_and_wifi' into 'master'

Allow separate ethernet & wifi configuration

If only 1/2 of ethernet & WiFi are enabled in config, the other interface is no longer linked into the firmware.

* Fixes bug where enabling Ethernet but not WiFi would fail to compile.
* Also means that enabling WiFi but not Ethernet no longer links some unused ethernet interface functions.

See merge request !525

7 years agoMerge branch 'bugfix/freertos_event_groups' into 'master'
Ivan Grokhotkov [Fri, 3 Mar 2017 03:45:59 +0000 (11:45 +0800)]
Merge branch 'bugfix/freertos_event_groups' into 'master'

FreeRTOS: Fix cross-core event group sync

As above

Also includes fixes which allowed removing some semi-hacky bits from the event group unit tests - specifically, higher priority tasks will always be started immediately even if they run on the opposite core.

See merge request !535

7 years agoMerge branch 'bugfix/rsa4096' into 'master'
Ivan Grokhotkov [Fri, 3 Mar 2017 03:41:11 +0000 (11:41 +0800)]
Merge branch 'bugfix/rsa4096' into 'master'

mbedtls: Use two MPI multiplications when multiply operands too large

Allows RSA4096 via hardware crypto operations.

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

See merge request !477

7 years agoMerge branch 'feature/fatfs_dynamic_pdrv' into 'master'
Ivan Grokhotkov [Fri, 3 Mar 2017 03:40:37 +0000 (11:40 +0800)]
Merge branch 'feature/fatfs_dynamic_pdrv' into 'master'

FATFS enable support for multiple drives

Current implementation has drive numbers and paths hardcoded to support
only one FATFS drive. Arduino has it's own SPI driver to allow
compatibility and flexibility. With the MR it is possible to have up to
```_VOLUMES``` drives connected (SPI, SDMMC and others) at the same
time and accessed through VFS

See merge request !478

7 years agoMerge branch 'bugfix/openssl_debuging_error' into 'master'
Ivan Grokhotkov [Fri, 3 Mar 2017 03:29:37 +0000 (11:29 +0800)]
Merge branch 'bugfix/openssl_debuging_error' into 'master'

components/openssl : Fix compilation error when openssl debugging is enabled

See merge request !512

7 years agoMerge branch 'feature/freertos_kconfig' into 'master'
Ivan Grokhotkov [Fri, 3 Mar 2017 03:29:05 +0000 (11:29 +0800)]
Merge branch 'feature/freertos_kconfig' into 'master'

freertos kconfig: Add max task length name, move task stack overflow watchpoint

* Allow setting task name length via kconfig
* Move task stack overflow watchpoint out of internals debugging submenu, place next to other stack overflow checks.
* Thread local pointer feature should depend on Ethernet or WiFi

See merge request !531

7 years agoMerge branch 'feature/docs_partition_ota_flash' into 'master'
Ivan Grokhotkov [Fri, 3 Mar 2017 03:27:01 +0000 (11:27 +0800)]
Merge branch 'feature/docs_partition_ota_flash' into 'master'

Partition/SPI/OTA docs & OTA new functionality

* Update partition, SPI flash & OTA docs to reflect functionality changes
* Refactor OTA implementation to perform checks mentioned in API doc
* Add new functions to OTA API: esp_ota_get_running_partition() & esp_ota_get_next_update_partition() functions
* Add spi_flash_cache2phys() & spi_flash_phys2cache() functions to support esp_ota_get_running_partition()

See merge request !513

7 years agoMerge branch 'feature/enable_qio_directly' into 'master'
Ivan Grokhotkov [Fri, 3 Mar 2017 03:25:52 +0000 (11:25 +0800)]
Merge branch 'feature/enable_qio_directly' into 'master'

Enable SPI flash Quad I/O in bootloader

Bootloader checks flash ID, enables Quad I/O mode based on flash type.

See merge request !479

7 years agoMerge branch 'feature/tw10306_menuconfig_adds_some_wifi_options' into 'master'
Jiang Jiang Jian [Thu, 2 Mar 2017 11:46:29 +0000 (19:46 +0800)]
Merge branch 'feature/tw10306_menuconfig_adds_some_wifi_options' into 'master'

menuconfig adds some WiFi options

menuconfig adds some WiFi options
 1. Add options to enable/disable AMPDU
  2. Add options to configure WiFi task stack size
  3. Add options to configure WiFi RX/TX buffer number

See merge request !519

7 years agoesp32: menuconfig adds some WiFi options
Liu Zhi Fu [Tue, 21 Feb 2017 06:52:25 +0000 (14:52 +0800)]
esp32: menuconfig adds some WiFi options

1. Add options to enable/disable AMPDU
2. Add options to enable/disable WIFI NVS
3. Add options to configure WiFi RX/TX buffer number

7 years agoMerge branch 'feature/add_user_set_mac' into 'master'
Jiang Jiang Jian [Thu, 2 Mar 2017 09:34:14 +0000 (17:34 +0800)]
Merge branch 'feature/add_user_set_mac' into 'master'

Feature/add user set mac

1. Add menuconfig for user to set mac address of wifi, bt and ethernet.
2. Add the number of MAC address generated from efuse for user to choose.
3. Add MAC address derive method.

See merge request !542

7 years agoMerge branch 'bugfix/tw10169_dhcp_release_cause_tcp_abort' into 'master'
Jiang Jiang Jian [Thu, 2 Mar 2017 09:28:11 +0000 (17:28 +0800)]
Merge branch 'bugfix/tw10169_dhcp_release_cause_tcp_abort' into 'master'

Bugfix/tw10169 dhcp release cause tcp abort

Modify the DHCP timer granularity from 1 minutes to 1 second.

See merge request !539

7 years agoMerge branch 'feature/in_isr_context' into 'master'
Jeroen Domburg [Thu, 2 Mar 2017 09:17:23 +0000 (17:17 +0800)]
Merge branch 'feature/in_isr_context' into 'master'

Add xPortInIsrContext function + unit test

As title states.

See merge request !533

7 years agoAdd xPortInIsrContext function + unit test. This function returns true when the curre...
Jeroen Domburg [Mon, 27 Feb 2017 08:34:19 +0000 (16:34 +0800)]
Add xPortInIsrContext function + unit test. This function returns true when the current CPU runs in an interrupt handler context.

7 years agomac address: add the number of MAC address generated from efuse for user to choose
XiaXiaotian [Thu, 2 Mar 2017 06:57:45 +0000 (14:57 +0800)]
mac address: add the number of MAC address generated from efuse for user to choose

1. Add the number of MAC address generated from efuse for user to choose.

2. Add MAC address derive method.

7 years agoMerge branch 'bugfix/rng_disabled_wifi_stop_2' into 'master'
Ivan Grokhotkov [Thu, 2 Mar 2017 02:51:30 +0000 (10:51 +0800)]
Merge branch 'bugfix/rng_disabled_wifi_stop_2' into 'master'

esp32: Fix hardware rng after esp_wifi_stop (second implementation)

Ensures hardware RNG remains enabled at all times.

Reworked  version of !534

See merge request !536

7 years agoMerge branch 'bugfix/fix_some_default_lwip_bool_options' into 'master'
Jiang Jiang Jian [Wed, 1 Mar 2017 14:03:57 +0000 (22:03 +0800)]
Merge branch 'bugfix/fix_some_default_lwip_bool_options' into 'master'

Bugfix/fix some default lwip bool options

menuconfig options with bool type should use 'y/n' to set the default value, instead of '1/0'

See merge request !538

7 years agocomponent/bt: modify the bluetooth read_efuse_mac interface
wangmengyang [Wed, 1 Mar 2017 13:04:12 +0000 (21:04 +0800)]
component/bt: modify the bluetooth read_efuse_mac interface

7 years agomac address: add user set mac address
XiaXiaotian [Wed, 1 Mar 2017 12:42:46 +0000 (20:42 +0800)]
mac address: add user set mac address

add menuconfig for user to set mac address of wifi, bt and ethernet.

7 years agoCheck DHCP rebind timer before checking dhcp release timer in cause they have the...
Liu Zhi Fu [Wed, 1 Mar 2017 06:48:27 +0000 (14:48 +0800)]
Check DHCP rebind timer before checking dhcp release timer in cause they have the same value.

lwip: modify dhcp timer granularity from 60s to 1s

Current DHCP granularity is 60 seconds, it's not accurate, it can cause DHCP release/rebind/renew timer
timeout at the same time, also it may renew/rebind/release at wrong time, thus cause problem.

7 years agomac address: add user set mac address
XiaXiaotian [Wed, 1 Mar 2017 12:42:46 +0000 (20:42 +0800)]
mac address: add user set mac address

add menuconfig for user to set mac address of wifi, bt and ethernet.

7 years agolwip: fix bool options default value wrong issue
Liu Zhi Fu [Wed, 1 Mar 2017 05:37:36 +0000 (13:37 +0800)]
lwip: fix bool options default value wrong issue

menuconfig options with bool type should use 'y/n' to use the default value,
instead of '1/0'

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 agoesp32 phy_init: Move DPORT Wifi clock masks to macro values
Angus Gratton [Wed, 1 Mar 2017 01:02:04 +0000 (12:02 +1100)]
esp32 phy_init: Move DPORT Wifi clock masks to macro values

Amended fix for c642079 !534

7 years agoesp32 dport_reg.h: Fix typo in register bit names
Angus Gratton [Wed, 1 Mar 2017 01:01:07 +0000 (12:01 +1100)]
esp32 dport_reg.h: Fix typo in register bit names

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 agofreertos tests: Enable test_freertos_task_delete
Angus Gratton [Tue, 28 Feb 2017 04:31:40 +0000 (15:31 +1100)]
freertos tests: Enable test_freertos_task_delete

7 years agofreertos: Schedule tasks immediately when they are created on opposite core
Angus Gratton [Tue, 28 Feb 2017 04:13:30 +0000 (15:13 +1100)]
freertos: Schedule tasks immediately when they are created on opposite core

7 years agofreertos: Fix cross-core usage of event groups
Angus Gratton [Tue, 28 Feb 2017 01:06:36 +0000 (12:06 +1100)]
freertos: Fix cross-core usage of event groups

Fixes & re-enabled broken unit tests
Adds per-event-group spinlock instead of single global lock

7 years agofreertos Kconfig: Thread local storage pointer feature required for WiFi or Ethernet
Angus Gratton [Mon, 27 Feb 2017 23:59:23 +0000 (10:59 +1100)]
freertos Kconfig: Thread local storage pointer feature required for WiFi or Ethernet

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 agofreertos: Move the "set debug watchpoint as stack overflow check" out of debugging...
Angus Gratton [Mon, 27 Feb 2017 00:49:46 +0000 (11:49 +1100)]
freertos: Move the "set debug watchpoint as stack overflow check" out of debugging internals

Place it near the other stack overflow kconfig items, instead.

7 years agoFreeRTOS: Support setting task name max length
Angus Gratton [Mon, 27 Feb 2017 00:46:16 +0000 (11:46 +1100)]
FreeRTOS: Support setting task name max length

Ref: https://esp32.com/viewtopic.php?f=13&t=1297&p=5762

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 agoethernet example: Disable WiFi, enable Ethernet in default config
Angus Gratton [Fri, 24 Feb 2017 03:56:29 +0000 (14:56 +1100)]
ethernet example: Disable WiFi, enable Ethernet in default config

Ref: https://esp32.com/viewtopic.php?f=2&t=1249

7 years agowifi event_default_handlers/tcpip_adapter: Support disabling WiFi, keeping Ethernet
Angus Gratton [Fri, 24 Feb 2017 03:46:23 +0000 (14:46 +1100)]
wifi event_default_handlers/tcpip_adapter: Support disabling WiFi, keeping Ethernet

7 years agolwip: Refactor support for L2 pbuf free notification into each driver
Angus Gratton [Fri, 24 Feb 2017 03:45:17 +0000 (14:45 +1100)]
lwip: Refactor support for L2 pbuf free notification into each driver

Makes it easier to handle different drivers enabled at compile/link time.

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 agoapp_update: fix logic error when update ota info
Tian Zhong Xing [Mon, 20 Feb 2017 10:09:32 +0000 (18:09 +0800)]
app_update: fix logic error when update ota info

7 years agoota ops: Rewrite esp_ota_get_next_update_partition() to be more predictable, add...
Angus Gratton [Tue, 21 Feb 2017 03:08:09 +0000 (14:08 +1100)]
ota ops: Rewrite esp_ota_get_next_update_partition() to be more predictable, add unit tests

7 years agounit tests: Use a unit test app partition table, configure spi_flash to use data...
Angus Gratton [Tue, 21 Feb 2017 02:40:42 +0000 (13:40 +1100)]
unit tests: Use a unit test app partition table, configure spi_flash to use data partition

7 years agopartition iterator: Free iterator when reaching end of linked list
Angus Gratton [Mon, 20 Feb 2017 05:02:45 +0000 (16:02 +1100)]
partition iterator: Free iterator when reaching end of linked list

7 years agoota ops: Verify partition argument passed to esp_ota_begin()
Angus Gratton [Mon, 20 Feb 2017 05:02:29 +0000 (16:02 +1100)]
ota ops: Verify partition argument passed to esp_ota_begin()

7 years agoota ops: Add new functions esp_ota_get_next_update_partition / esp_ota_get_running_pa...
Angus Gratton [Mon, 20 Feb 2017 03:02:39 +0000 (14:02 +1100)]
ota ops: Add new functions esp_ota_get_next_update_partition / esp_ota_get_running_partition

* Update OTA example to use these.
* Refactor esp_ota_begin() to return ESP_ERR_OTA_PARTITION_CONFLICT as documented

7 years agospi_flash tests: Refactor mmap tests to be run in any order
Angus Gratton [Mon, 20 Feb 2017 03:24:08 +0000 (14:24 +1100)]
spi_flash tests: Refactor mmap tests to be run in any order

7 years agospi_flash: Add new phys2cache & cache2phys functions to query flash cache mappings
Angus Gratton [Fri, 17 Feb 2017 07:26:43 +0000 (18:26 +1100)]
spi_flash: Add new phys2cache & cache2phys functions to query flash cache mappings

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.