]> granicus.if.org Git - esp-idf/log
esp-idf
5 years agoMerge branch 'doc/ota_readme_cert_cn' into 'master'
Angus Gratton [Thu, 21 Mar 2019 01:26:12 +0000 (09:26 +0800)]
Merge branch 'doc/ota_readme_cert_cn' into 'master'

ota example: Mention the certificate needs CN set correctly

See merge request idf/esp-idf!4441

5 years agoMerge branch 'bugfix/sphinx_build_failure_on_rtd' into 'master'
Krzysztof Budzynski [Wed, 20 Mar 2019 18:14:36 +0000 (02:14 +0800)]
Merge branch 'bugfix/sphinx_build_failure_on_rtd' into 'master'

docs: Upgraded sphinx package version to prevent build failures on readthedocs…

See merge request idf/esp-idf!4552

5 years agoMerge branch 'feature/btdm_add_api_to_clean_gattc_cache' into 'master'
Jiang Jiang Jian [Wed, 20 Mar 2019 14:05:00 +0000 (22:05 +0800)]
Merge branch 'feature/btdm_add_api_to_clean_gattc_cache' into 'master'

Component/bt: add api to clean gattc cache

See merge request idf/esp-idf!3951

5 years agoMerge branch 'bugfix/btdm_fix_no_adv_report_when_scaning_with_sleep_enable' into...
Jiang Jiang Jian [Wed, 20 Mar 2019 13:36:23 +0000 (21:36 +0800)]
Merge branch 'bugfix/btdm_fix_no_adv_report_when_scaning_with_sleep_enable' into 'master'

Component/bt: fix no adv report when scanning with sleep enable

See merge request idf/esp-idf!4535

5 years agoMerge branch 'bugfix/btdm_fix_build_warning_when_bluedroid_disable_log' into 'master'
Jiang Jiang Jian [Wed, 20 Mar 2019 13:09:59 +0000 (21:09 +0800)]
Merge branch 'bugfix/btdm_fix_build_warning_when_bluedroid_disable_log' into 'master'

Component/bt: fix build warning when bluedroid disable log

See merge request idf/esp-idf!4524

5 years agoMerge branch 'bugfix/mesh_memory_leak' into 'master'
Jiang Jiang Jian [Wed, 20 Mar 2019 06:57:05 +0000 (14:57 +0800)]
Merge branch 'bugfix/mesh_memory_leak' into 'master'

mesh: fix memory leak and group send

See merge request idf/esp-idf!4438

5 years agoMerge branch 'feature/optimized_gpio_intr_service' into 'master'
Angus Gratton [Wed, 20 Mar 2019 06:19:17 +0000 (14:19 +0800)]
Merge branch 'feature/optimized_gpio_intr_service' into 'master'

driver: Add optimization by speed in ISR functions for gpio, rmt, pcnt

Closes IDF-328

See merge request idf/esp-idf!4241

5 years agoMerge branch 'bugfix/btdm_fix_blufi_prepare_write_crash' into 'master'
Jiang Jiang Jian [Wed, 20 Mar 2019 03:46:15 +0000 (11:46 +0800)]
Merge branch 'bugfix/btdm_fix_blufi_prepare_write_crash' into 'master'

Component/bt: fix blufi prepare write crash

See merge request idf/esp-idf!4447

5 years agoMerge branch 'bugfix/newlib_misc_cleanups' into 'master'
Anton Maklakov [Wed, 20 Mar 2019 03:08:20 +0000 (11:08 +0800)]
Merge branch 'bugfix/newlib_misc_cleanups' into 'master'

newlib: minor cleanup

See merge request idf/esp-idf!4550

5 years agoMerge branch 'feature/separate_eventloop_from_esp32' into 'master'
Ivan Grokhotkov [Wed, 20 Mar 2019 01:59:17 +0000 (09:59 +0800)]
Merge branch 'feature/separate_eventloop_from_esp32' into 'master'

separate legacy esp_event from esp32 component to esp_event

See merge request idf/esp-idf!4539

5 years agoMerge branch 'bugfix/error_in_bootloader_loadprohibited' into 'master'
Angus Gratton [Tue, 19 Mar 2019 23:28:09 +0000 (07:28 +0800)]
Merge branch 'bugfix/error_in_bootloader_loadprohibited' into 'master'

esp_tool: Exclude elf-sha256 from bootloader

Closes IDFGH-690

See merge request idf/esp-idf!4520

5 years agodocs: Upgraded sphinx package version to prevent build failures on readthedocs site...
krzychb [Tue, 19 Mar 2019 15:47:39 +0000 (16:47 +0100)]
docs: Upgraded sphinx package version to prevent build failures on readthedocs site. Upgraded versions of other packages that are used during documentation build.

5 years agolwip, wpa_supplicant: use endianness macros from libc if possible
Ivan Grokhotkov [Tue, 19 Mar 2019 11:58:42 +0000 (19:58 +0800)]
lwip, wpa_supplicant: use endianness macros from libc if possible

5 years agonewlib: remove usage of pre-ANSI defines
Ivan Grokhotkov [Tue, 19 Mar 2019 11:57:20 +0000 (19:57 +0800)]
newlib: remove usage of pre-ANSI defines

5 years agonewlib: enable timeradd, timersub, and similar macros
Ivan Grokhotkov [Fri, 8 Mar 2019 07:16:26 +0000 (15:16 +0800)]
newlib: enable timeradd, timersub, and similar macros

This uses a hack (temporarily defining __rtems__ from a wrapper header
file) to include timeradd, timersub, and similar macros, without
modifying newlib headers.

5 years agoRevert "feat(time): enable the macro timeradd, timersub, timerclear, etc."
Ivan Grokhotkov [Fri, 8 Mar 2019 07:26:04 +0000 (15:26 +0800)]
Revert "feat(time): enable the macro timeradd, timersub, timerclear, etc."

This reverts commit 8f994b9dce3fb563370cc0ed4958b907016ccb57.

5 years agoMerge branch 'power_management/i2s+i2c' into 'master'
Ivan Grokhotkov [Tue, 19 Mar 2019 09:27:59 +0000 (17:27 +0800)]
Merge branch 'power_management/i2s+i2c' into 'master'

Power management/i2s+i2c

See merge request idf/esp-idf!4338

5 years agoMerge branch 'bugfix/fix_minor_make_build_system_issue' into 'master'
Ivan Grokhotkov [Tue, 19 Mar 2019 09:24:30 +0000 (17:24 +0800)]
Merge branch 'bugfix/fix_minor_make_build_system_issue' into 'master'

make: use `shell` command to extract version string

See merge request idf/esp-idf!4526

5 years agoMerge branch 'test/detect_exception_in_idf_dut' into 'master'
Ivan Grokhotkov [Tue, 19 Mar 2019 09:23:55 +0000 (17:23 +0800)]
Merge branch 'test/detect_exception_in_idf_dut' into 'master'

tiny-test-fw: support detect exception in IDFDUT

See merge request idf/esp-idf!4527

5 years agoesptool: Only insert SHA256 if overwriting zero data
Konstantin Kondrashov [Tue, 19 Mar 2019 05:29:07 +0000 (13:29 +0800)]
esptool: Only insert SHA256 if overwriting zero data

5 years agoesp_tool: Exclude elf-sha256 from bootloader
Konstantin Kondrashov [Fri, 15 Mar 2019 12:02:16 +0000 (20:02 +0800)]
esp_tool: Exclude elf-sha256 from bootloader

Closes: IDFGH-690
5 years agotest: handle exception by unit test script:
He Yin Ling [Mon, 18 Mar 2019 14:19:30 +0000 (22:19 +0800)]
test: handle exception by unit test script:

unit test script will detect exception, we don't need to let test fail
when exception happened.

5 years agotiny-test-fw: support translate backtrace in IDFDUT
He Yin Ling [Mon, 18 Mar 2019 04:16:24 +0000 (12:16 +0800)]
tiny-test-fw: support translate backtrace in IDFDUT

5 years agotiny-test-fw: support detect exception in IDFDUT
He Yin Ling [Sat, 16 Mar 2019 12:07:52 +0000 (20:07 +0800)]
tiny-test-fw: support detect exception in IDFDUT

5 years agoMerge branch 'bugfix/i2c_driver_release_opt' into 'master'
Ivan Grokhotkov [Tue, 19 Mar 2019 02:59:21 +0000 (10:59 +0800)]
Merge branch 'bugfix/i2c_driver_release_opt' into 'master'

driver/i2c: write i2c command structure to hardware in one operation

See merge request idf/esp-idf!4538

5 years agoseparate legacy esp_event from esp32 component to esp_event
morris [Mon, 18 Mar 2019 11:58:04 +0000 (19:58 +0800)]
separate legacy esp_event from esp32 component to esp_event

5 years agodriver/i2c: write i2c command structure to hardware in one operation
Ivan Grokhotkov [Mon, 18 Mar 2019 10:20:34 +0000 (18:20 +0800)]
driver/i2c: write i2c command structure to hardware in one operation

GCC compiler can generate 8-bit stores when modifying bitfields of
volatile structs (https://github.com/espressif/esp-idf/issues/597).
In the specific case of I2C driver, this resulted in byte_num field
to be written using s8i. However the peripheral requires 32-bit
writes, and ignores 8-bit writes. This change modifies the code to
compose the 32-bit command register value first, and then write the
complete value to the hardware.

5 years agoMerge branch 'bugfix/coredump_fixes' into 'master'
Ivan Grokhotkov [Mon, 18 Mar 2019 10:23:25 +0000 (18:23 +0800)]
Merge branch 'bugfix/coredump_fixes' into 'master'

espcoredump fixes for GCC 8.2

See merge request idf/esp-idf!4528

5 years agoComponent/bt: fix no adv report when scaning with sleep enable
zhiweijian [Mon, 18 Mar 2019 08:35:50 +0000 (16:35 +0800)]
Component/bt: fix no adv report when scaning with sleep enable

5 years agoPM: I2S and I2C added in the Power Management docs
Sachin Parekh [Fri, 22 Feb 2019 14:18:59 +0000 (19:48 +0530)]
PM: I2S and I2C added in the Power Management docs

Signed-off-by: Sachin Parekh <sachin.parekh@espressif.com>
5 years agoI2S: Enable Power Management locks
Sachin Parekh [Fri, 22 Feb 2019 12:17:42 +0000 (17:47 +0530)]
I2S: Enable Power Management locks

Acquires PM_APB_FREQ_MAX lock when carrying any transaction on I2S if
Power Management Framework is enabled.

Signed-off-by: Sachin Parekh <sachin.parekh@espressif.com>
5 years agoI2C: Enable Power Management locks
Sachin Parekh [Fri, 22 Feb 2019 12:14:03 +0000 (17:44 +0530)]
I2C: Enable Power Management locks

Acquires PM_APB_FREQ_MAX lock when carrying any transaction on I2C if
Power Management Framework is enabled.

Signed-off-by: Sachin Parekh <sachin.parekh@espressif.com>
5 years agomesh: fix memory leak and group send
chenyudong [Mon, 18 Mar 2019 06:43:21 +0000 (14:43 +0800)]
mesh: fix memory leak and group send

fix a bug in group send
fix esp_mesh_set_router when router_t not initialized
fix mesh memory leak with invalid option

5 years agoMerge branch 'bugfix/fix_the_bug_cal_PMK_too_long' into 'master'
Jiang Jiang Jian [Mon, 18 Mar 2019 06:26:48 +0000 (14:26 +0800)]
Merge branch 'bugfix/fix_the_bug_cal_PMK_too_long' into 'master'

wifi: fix the bug that calculate PMK too long

Closes IDFGH-524

See merge request idf/esp-idf!4349

5 years agoComponent/bt: fix build warning when bluedroid disable log
zhiweijian [Fri, 15 Mar 2019 12:59:55 +0000 (20:59 +0800)]
Component/bt: fix build warning when bluedroid disable log

5 years agoespcoredump: fix test with esp32-2018r1 toolchain
Ivan Grokhotkov [Fri, 15 Mar 2019 12:16:37 +0000 (20:16 +0800)]
espcoredump: fix test with esp32-2018r1 toolchain

5 years agoespcoredump: fix test compilation error with GCC 8
Ivan Grokhotkov [Mon, 11 Mar 2019 04:13:01 +0000 (12:13 +0800)]
espcoredump: fix test compilation error with GCC 8

5 years agomake: use `shell` command to extract version string
Mahavir Jain [Sun, 17 Mar 2019 13:33:22 +0000 (21:33 +0800)]
make: use `shell` command to extract version string

5 years agoMerge branch 'bugfix/bluetooth_fix_API_esp_bt_gap_set_scan_mode' into 'master'
Jiang Jiang Jian [Sun, 17 Mar 2019 06:19:11 +0000 (14:19 +0800)]
Merge branch 'bugfix/bluetooth_fix_API_esp_bt_gap_set_scan_mode' into 'master'

Modify esp_bt_gap_set_scan_mode() to be able to set connection modes as well as discoverable modes

See merge request idf/esp-idf!2208

5 years agoMerge branch 'bugfix/suppress_dhcpserver_debug_output' into 'master'
Jiang Jiang Jian [Sun, 17 Mar 2019 06:12:58 +0000 (14:12 +0800)]
Merge branch 'bugfix/suppress_dhcpserver_debug_output' into 'master'

dhcpserver: suppress send_nak debug output

Closes IDFGH-557

See merge request idf/esp-idf!4491

5 years agoMerge branch 'bugfix/esp_prov_ble_rw_except' into 'master'
Angus Gratton [Fri, 15 Mar 2019 13:10:53 +0000 (21:10 +0800)]
Merge branch 'bugfix/esp_prov_ble_rw_except' into 'master'

esp_prov : Catch DBus exception when reading/writing to BLE GATT characteristic

See merge request idf/esp-idf!4503

5 years agowifi: fix the bug that when call set_config before connecting to an encrypted AP...
zhangyanjiao [Fri, 15 Mar 2019 08:28:41 +0000 (16:28 +0800)]
wifi: fix the bug that when call set_config before connecting to an encrypted AP, PMK will be recalculated

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

5 years agoMerge branch 'bugfix/bb_watchdog_reset' into 'master'
Jiang Jiang Jian [Fri, 15 Mar 2019 08:12:30 +0000 (16:12 +0800)]
Merge branch 'bugfix/bb_watchdog_reset' into 'master'

esp32: add WiFi baseband watchdog reset

See merge request idf/esp-idf!4409

5 years agoMerge branch 'feature/confserver_v2' into 'master'
Angus Gratton [Fri, 15 Mar 2019 06:49:05 +0000 (14:49 +0800)]
Merge branch 'feature/confserver_v2' into 'master'

confserver: Add v2 confserver protocol with separate visibility info

See merge request idf/esp-idf!4162

5 years agoMerge branch 'bugfix/esp_sha_signing_sha256' into 'master'
Angus Gratton [Fri, 15 Mar 2019 06:35:38 +0000 (14:35 +0800)]
Merge branch 'bugfix/esp_sha_signing_sha256' into 'master'

secure boot: Fix esp_sha INT WDT, switch to using mbedTLS API

Closes IDFGH-681

See merge request idf/esp-idf!4440

5 years agoMerge branch 'bugfix/make_gcc_version_evaluation' into 'master'
Angus Gratton [Fri, 15 Mar 2019 06:30:48 +0000 (14:30 +0800)]
Merge branch 'bugfix/make_gcc_version_evaluation' into 'master'

make: Ensure that component_project_vars.mk not generated before config

See merge request idf/esp-idf!4474

5 years agoMerge branch 'bugfix/esp-http-client-event-fixes' into 'master'
Ivan Grokhotkov [Fri, 15 Mar 2019 03:45:40 +0000 (11:45 +0800)]
Merge branch 'bugfix/esp-http-client-event-fixes' into 'master'

Minor bugfixes in esp_http_client and tcp_transport

See merge request idf/esp-idf!4467

5 years agoMerge branch 'bugfix/name_conflict_esp32_project_ld' into 'master'
Ivan Grokhotkov [Fri, 15 Mar 2019 03:42:20 +0000 (11:42 +0800)]
Merge branch 'bugfix/name_conflict_esp32_project_ld' into 'master'

esp32: Rename esp32.common.ld to esp32.project.ld to avoid build errors when downgrading

See merge request idf/esp-idf!4484

5 years agoconfserver: Send an error response if JSON request is malformatted
Angus Gratton [Fri, 15 Mar 2019 01:17:14 +0000 (12:17 +1100)]
confserver: Send an error response if JSON request is malformatted

5 years agoconfserver: In protocol V2, a "load" should only send back changes not all items
Angus Gratton [Thu, 14 Mar 2019 06:47:08 +0000 (17:47 +1100)]
confserver: In protocol V2, a "load" should only send back changes not all items

5 years agoconfserver: Add support for new V2 protocol
Angus Gratton [Fri, 25 Jan 2019 04:16:51 +0000 (12:16 +0800)]
confserver: Add support for new V2 protocol

V2 adds:
* Independent result for visibility (showing/hiding menus)
* Includes adding IDs for all items (menus & symbols) in kconfig_menus.json

Still backwards compatible with V1, with some small changes (menu items now listed in results).

Also added some protocol docs, changed the "listening on stdin" message to come after any kconfiglib warnings

5 years agoMerge branch 'bugfix/idf_py_windows_relpath' into 'master'
Angus Gratton [Fri, 15 Mar 2019 01:36:25 +0000 (09:36 +0800)]
Merge branch 'bugfix/idf_py_windows_relpath' into 'master'

idf.py: Fix Windows issue if project and IDF are on different drives

Closes IDFGH-478

See merge request idf/esp-idf!4404

5 years agoesp_prov : Catch DBus exception when reading/writing to BLE GATT characteristic
Anurag Kar [Thu, 14 Mar 2019 11:58:26 +0000 (17:28 +0530)]
esp_prov : Catch DBus exception when reading/writing to BLE GATT characteristic

This is useful in the context of provisioning when server initiates disconnection if secure session establishment fails.

5 years agoMerge branch 'bugfix/ble_assert_8192' into 'master'
Jiang Jiang Jian [Thu, 14 Mar 2019 12:24:33 +0000 (20:24 +0800)]
Merge branch 'bugfix/ble_assert_8192' into 'master'

fix the bug assert(8192 0) in rwble.c 234

See merge request idf/esp-idf!4461

5 years agoesp_http_client: Fix header sent event bug
Jitin George [Thu, 14 Mar 2019 05:50:02 +0000 (11:20 +0530)]
esp_http_client: Fix header sent event bug

5 years agotcp_transport: Fix case sensitive header comparison
Jitin George [Tue, 12 Mar 2019 13:16:04 +0000 (18:46 +0530)]
tcp_transport: Fix case sensitive header comparison

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

5 years agoMerge branch 'bugfix/console_allow_buffered' into 'master'
Ivan Grokhotkov [Thu, 14 Mar 2019 07:40:42 +0000 (15:40 +0800)]
Merge branch 'bugfix/console_allow_buffered' into 'master'

console example: use buffered stdout by default

See merge request idf/esp-idf!4476

5 years agoMerge branch 'feature/trim_idf_ver_to_fit_32bit_field' into 'master'
Ivan Grokhotkov [Thu, 14 Mar 2019 07:39:20 +0000 (15:39 +0800)]
Merge branch 'feature/trim_idf_ver_to_fit_32bit_field' into 'master'

tools/test_build_system: Trim IDF_VER to fit a 32-bit field

Closes IDFGH-682

See merge request idf/esp-idf!4477

5 years agofix the bug assert(8192 0) in rwble.c 234
Tian Hao [Tue, 12 Mar 2019 03:21:47 +0000 (11:21 +0800)]
fix the bug assert(8192 0) in rwble.c 234

5 years agoMerge branch 'bugfix/spi_flash_mmap_stale_data_issue' into 'master'
Angus Gratton [Thu, 14 Mar 2019 06:56:12 +0000 (14:56 +0800)]
Merge branch 'bugfix/spi_flash_mmap_stale_data_issue' into 'master'

spi_flash: fix stale read issue for memory mapped partition

See merge request idf/esp-idf!4437

5 years agodhcpserver: suppress send_nak debug output
zhangyanjiao [Thu, 14 Mar 2019 03:47:21 +0000 (11:47 +0800)]
dhcpserver: suppress send_nak debug output

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

5 years agoesp32: Chunk input blocks for esp_sha() function performance, add perf test
Angus Gratton [Mon, 11 Mar 2019 07:24:32 +0000 (18:24 +1100)]
esp32: Chunk input blocks for esp_sha() function performance, add perf test

5 years agosecure boot: Use mbedtls_sha256() not esp_sha()
Angus Gratton [Fri, 8 Mar 2019 05:16:55 +0000 (16:16 +1100)]
secure boot: Use mbedtls_sha256() not esp_sha()

Latter is probably compiled into most firmwares already, saves some size.

Ref https://github.com/espressif/esp-idf/issues/3127

5 years agoesp32 hwcrypto: Prevent esp_sha() from disabling interrupts for extended period
Angus Gratton [Fri, 8 Mar 2019 05:14:15 +0000 (16:14 +1100)]
esp32 hwcrypto: Prevent esp_sha() from disabling interrupts for extended period

* Closes https://github.com/espressif/esp-idf/issues/3127
* Closes IDFGH-681

Also reported at https://esp32.com/viewtopic.php?f=13&t=9506

5 years agoMerge branch 'feature/github_sync_prs_jira' into 'master'
Angus Gratton [Thu, 14 Mar 2019 05:53:10 +0000 (13:53 +0800)]
Merge branch 'feature/github_sync_prs_jira' into 'master'

github: Sync PRs to JIRA as well

See merge request idf/esp-idf!4487

5 years agoMerge branch 'ci/print_error_label_check' into 'master'
Angus Gratton [Thu, 14 Mar 2019 03:37:20 +0000 (11:37 +0800)]
Merge branch 'ci/print_error_label_check' into 'master'

ci: Print an error in the log if the label check fails

See merge request idf/esp-idf!4485

5 years agogithub: Sync PRs to JIRA as well
Angus Gratton [Thu, 14 Mar 2019 02:05:50 +0000 (13:05 +1100)]
github: Sync PRs to JIRA as well

Currently the GitHub sync half-syncs these (as it will create a JIRA issue as soon as the first
comment is made on the PR).

5 years agoMerge branch 'bugfix/mdns_add_remove_multiple_srv_master' into 'master'
Angus Gratton [Thu, 14 Mar 2019 00:10:23 +0000 (08:10 +0800)]
Merge branch 'bugfix/mdns_add_remove_multiple_srv_master' into 'master'

mdns: fix possible crash if tx packet contained answer to removed service

Closes IDF-498 and IDF-504

See merge request idf/esp-idf!4348

5 years agomake: Ensure that component_project_vars.mk not generated before config
Angus Gratton [Wed, 13 Mar 2019 11:03:41 +0000 (22:03 +1100)]
make: Ensure that component_project_vars.mk not generated before config

* Fix the situation where component_project_vars.mk is generated before config exists
* Does not fix situation where config is changed and component_project_vars.mk contents should be
  changed. This may still require a rebuild.

5 years agoci: Print an error in the log if the label check fails
Angus Gratton [Wed, 13 Mar 2019 23:15:49 +0000 (10:15 +1100)]
ci: Print an error in the log if the label check fails

One less step for a developer to figure out why this failed.

5 years agoMerge branch 'bugfix/remove_malloc_ble_prov' into 'master'
Angus Gratton [Wed, 13 Mar 2019 23:08:50 +0000 (07:08 +0800)]
Merge branch 'bugfix/remove_malloc_ble_prov' into 'master'

Protocomm BLE: Make changes in handling BLE read/write requests

See merge request idf/esp-idf!4444

5 years agoesp32: Rename esp32.common.ld to esp32.project.ld to avoid build errors when downgrading
Angus Gratton [Wed, 13 Mar 2019 22:59:31 +0000 (09:59 +1100)]
esp32: Rename esp32.common.ld to esp32.project.ld to avoid build errors when downgrading

Linker script generator produces build/esp32/esp32.common.ld from
components/esp32/ld/esp32.common.ld.in

This works fine until IDF is downgraded to V3.1 which uses components/esp32/ld/esp32.common.ld and
doesn't track build/esp32/esp32.common.ld at all.

At this point, the linker runs in the build/esp32 directory and "-T esp32.common.ld" picks up the
linker script generated .ld file, which causes mis-builds.

As reported on forums: https://esp32.com/viewtopic.php?f=13&t=9684&p=40105

5 years agoMerge branch 'doc/review_get_started' into 'master'
Krzysztof Budzynski [Wed, 13 Mar 2019 16:10:26 +0000 (00:10 +0800)]
Merge branch 'doc/review_get_started' into 'master'

Update IDF getting started sections for make and cmake as well as IDF monitor…

See merge request idf/esp-idf!4331

5 years agoUpdate IDF getting started sections for make and cmake as well as IDF monitor…
Kirill Chalov [Wed, 13 Mar 2019 16:10:26 +0000 (00:10 +0800)]
Update IDF getting started sections for make and cmake as well as IDF monitor…

5 years agormt/driver: Sped the rmt_driver_isr_default ISR
Konstantin Kondrashov [Thu, 7 Feb 2019 13:20:39 +0000 (21:20 +0800)]
rmt/driver: Sped the rmt_driver_isr_default ISR

Used __builtin_ctz function to sped ISR.

5 years agopcnt/driver: Sped the pcnt_intr_service ISR
Konstantin Kondrashov [Thu, 7 Feb 2019 13:18:19 +0000 (21:18 +0800)]
pcnt/driver: Sped the pcnt_intr_service ISR

Used __builtin_ctz function to sped ISR.

5 years agogpio/driver: Sped the gpio_intr_service ISR up by 1.5 uSeconds (+-50% faster).
Pieter du Preez [Fri, 21 Dec 2018 14:07:51 +0000 (14:07 +0000)]
gpio/driver: Sped the gpio_intr_service ISR up by 1.5 uSeconds (+-50% faster).

Removed as much branching (if statements) from the
gpio_intr_service ISR, as possible and split the while loop into
two. Also forced writing the two status*_w1tc variables only once,
instead of every time after calling the external function hooks.

The measurements below, was done using the following tools:

Toolchain version: crosstool-ng-1.22.0-80-g6c4433a
Compiler version: 5.2.0

Here follows a comparison of the gpio_intr_service ISR's
execution time, using a DS1054 oscilloscope. All the time spent
calling external functions, via the function pointers
gpio_isr_func[gpio_num].fn, were disregarded.

With OPTIMIZATION_FLAGS = -Og, 1.34 uSeconds faster:

3.22 uSec (with this patch)
4.56 uSec (with commit 71c90ac4)

100 - (100 * 4.56 / 3.22) = 42% faster

With OPTIMIZATION_FLAGS = -Os, 1.65 uSeconds faster:

2.89 uSec (with this patch)
4.54 uSec (with commit 71c90ac4)

100 - (100 * 4.54 / 2.89) = 57% faster

Signed-off-by: Konstantin Kondrashov <konstantin@espressif.com>
Merges https://github.com/espressif/esp-idf/pull/2861

5 years agotools/test_build_system: Add tests with long IDF_VER
KonstantinKondrashov [Wed, 13 Mar 2019 12:43:33 +0000 (20:43 +0800)]
tools/test_build_system: Add tests with long IDF_VER

5 years agoMerge branch 'test/fix_some_ut_not_assigned' into 'master'
Ivan Grokhotkov [Wed, 13 Mar 2019 12:42:24 +0000 (20:42 +0800)]
Merge branch 'test/fix_some_ut_not_assigned' into 'master'

test: fix some ut case not assigned

See merge request idf/esp-idf!4449

5 years agoexamples: don't enable buffering on stdout in console examples
Ivan Grokhotkov [Wed, 13 Mar 2019 12:19:55 +0000 (20:19 +0800)]
examples: don't enable buffering on stdout in console examples

newlib uses significantly more stack space when printing to an
unbuffered stream. To reduce the amount of stack space required to
use the console, don’t disable buffering. linenoise should support
unbuffered stdout instead.

5 years agoconsole/linenoise: support buffered stdout
Ivan Grokhotkov [Wed, 13 Mar 2019 12:17:25 +0000 (20:17 +0800)]
console/linenoise: support buffered stdout

5 years agocmake: Trim IDF_VER to fit a 32-bit field
Konstantin Kondrashov [Wed, 13 Mar 2019 12:04:43 +0000 (20:04 +0800)]
cmake: Trim IDF_VER to fit a 32-bit field

5 years agomake: Trim IDF_VER to fit a 32-bit field
Konstantin Kondrashov [Wed, 13 Mar 2019 12:01:28 +0000 (20:01 +0800)]
make: Trim IDF_VER to fit a 32-bit field

Closes: https://github.com/espressif/esp-idf/issues/3131
5 years agoComponent/bt: fix blufi prepare write crash
zhiweijian [Mon, 25 Feb 2019 06:48:46 +0000 (14:48 +0800)]
Component/bt: fix blufi prepare write crash

5 years agomdns: fix possible crash when probing on particular interface with duplicated service...
David Cermak [Mon, 11 Mar 2019 10:49:29 +0000 (11:49 +0100)]
mdns: fix possible crash when probing on particular interface with duplicated service instances due to naming conflicts on network

Issue: MDNS server initially sends probing packets to resolve naming confilicts with already registered service instances. In case of a conflict, instance name is altered and probing restarts. Original instance however wasnnot removed from the structure and upon service removal only one entry was removed and a dangling service might have been kept in the structure to bring about a crash.
Resolution: Keep only one instance of a service in the probing structure.

Closes IDF-498

5 years agomdns: enable pcbs before starting service thread to avoid updating pcb's internal...
David Cermak [Mon, 4 Mar 2019 11:32:10 +0000 (12:32 +0100)]
mdns: enable pcbs before starting service thread to avoid updating pcb's internal variables from concurent tasks

possible race condition: user task runs mdns_init, which enables pcbs while mdns-task already created could execute enable/disable of the same pcbs if an appropriate system event received

5 years agomdns: fix possible deadlock on mdns deinit calling mdns_free()
David Cermak [Mon, 4 Mar 2019 10:13:52 +0000 (11:13 +0100)]
mdns: fix possible deadlock on mdns deinit calling mdns_free()

mnds_free() initiates stop and delete timer tasks, which after locking the mutex could lead to a dead lock in case timer task executed before deleting the task, as it would wait indefinitelly for unlocking the mutex. This condition is fixed by calling _mdns_stop_timer without locking the mutex, because there's no need to protect any data when stopping and deleting the timer task

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

5 years agomdsn: fix race condition in updating packet data from user task when failed to alloca...
David Cermak [Fri, 1 Mar 2019 15:59:38 +0000 (16:59 +0100)]
mdsn: fix race condition in updating packet data from user task when failed to allocate or queue a new service

Issue: mdns_service_add API allocates and queues an action to be processed in mdns task context; when allocation or queueing fails, allocated structure needs to be freed. Function _mdns_free_service did not only fee all the structures, but also updates packet data.
Resolution: Moved removal of packet data outside of _mdns_free_service function.

5 years agomdns: fix possible crash when packet scheduled to transmit contained service which...
David Cermak [Mon, 25 Feb 2019 13:29:39 +0000 (14:29 +0100)]
mdns: fix possible crash when packet scheduled to transmit contained service which might have been already removed

packets scheduled to transmit are pushed to action queue and removed from tx_queue_head structure, which is searched for all remaining services and while service is removed, then service questions/asnwers are also removed from this structure. This update fixes possible crash when packet is pushed to action queue, and when service is removed, its answers are removed from tx_queue_head, but not from action queue. this could lead to a crash when the packet is poped from action queue containing questions/answers to already removed (freed) service

Closes IDF-504

5 years agoMerge branch 'feature/btdm_add_adv_report_flow_control' into 'master'
Jiang Jiang Jian [Wed, 13 Mar 2019 08:58:07 +0000 (16:58 +0800)]
Merge branch 'feature/btdm_add_adv_report_flow_control' into 'master'

Component/bt: add BLE adv report flow control

See merge request idf/esp-idf!4423

5 years agoComponent/bt: add api to clean gattc cache
zhiweijian [Wed, 12 Dec 2018 13:40:31 +0000 (21:40 +0800)]
Component/bt: add api to clean gattc cache

5 years agoMerge branch 'feat/spi_master_variable_dummy' into 'master'
Ivan Grokhotkov [Wed, 13 Mar 2019 07:15:58 +0000 (15:15 +0800)]
Merge branch 'feat/spi_master_variable_dummy' into 'master'

spi_master: add support for variable dummy length in a same device

See merge request idf/esp-idf!4360

5 years agoMerge branch 'test/spi_sio_test' into 'master'
Ivan Grokhotkov [Wed, 13 Mar 2019 07:15:43 +0000 (15:15 +0800)]
Merge branch 'test/spi_sio_test' into 'master'

spi: add test for sio mode

See merge request idf/esp-idf!3416

5 years agoMerge branch 'bugfix/confgen_expr_value' into 'master'
Angus Gratton [Wed, 13 Mar 2019 05:54:17 +0000 (13:54 +0800)]
Merge branch 'bugfix/confgen_expr_value' into 'master'

confgen: Fix bug with JSON metadata conditional range generation

See merge request idf/esp-idf!4402

5 years agoModify esp_bt_gap_set_scan_mode() to be able to set connection modes as well as disco...
Hrishikesh Dhayagude [Mon, 9 Apr 2018 10:30:48 +0000 (16:00 +0530)]
Modify esp_bt_gap_set_scan_mode() to be able to set connection modes as well as discoverable modes

The current API is insufficient to allow the users to set different combinations of connection and discoverable mode

Users should be able to choose the device modes independently:
1. Connectable-
  i. Non-connectable mode
  ii. Connectable mode

2. Discoverable-
  i. Non-discoverable mode
  ii. Limited discoverable mode
  iii. General discoverable mode

5 years agospi_flash: add test case for stale read issue on memory mapped partition
Mahavir Jain [Fri, 8 Mar 2019 05:37:10 +0000 (11:07 +0530)]
spi_flash: add test case for stale read issue on memory mapped partition

5 years agospi_flash: fix stale read issue for memory mapped partition
Mahavir Jain [Fri, 8 Mar 2019 05:30:49 +0000 (11:00 +0530)]
spi_flash: fix stale read issue for memory mapped partition

On flash program operation (either erase or write), if corresponding address has
cache mapping present then cache is explicitly flushed (for both pro and app cpu)

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

5 years agoMerge branch 'bugfix/ssid_passwords_null_terminated' into 'master'
Angus Gratton [Wed, 13 Mar 2019 05:29:09 +0000 (13:29 +0800)]
Merge branch 'bugfix/ssid_passwords_null_terminated' into 'master'

wifi: Specify that SSID & Password fields should be NULL terminated strings

See merge request idf/esp-idf!4468

5 years agoMerge branch 'feature/freertos_check_mutex_owner' into 'master'
Angus Gratton [Wed, 13 Mar 2019 05:15:34 +0000 (13:15 +0800)]
Merge branch 'feature/freertos_check_mutex_owner' into 'master'

freertos: check that mutex is released by owner task

See merge request idf/esp-idf!4012

5 years agoMerge branch 'bugfix/spi_flash_exclude_encrypted' into 'master'
Angus Gratton [Wed, 13 Mar 2019 05:15:24 +0000 (13:15 +0800)]
Merge branch 'bugfix/spi_flash_exclude_encrypted' into 'master'

esp_partition: disable encrypted reads/writes if flash encryption is disabled

See merge request idf/esp-idf!4099