]> granicus.if.org Git - esp-idf/log
esp-idf
6 years agoMerge branch 'bugfix/reset_some_peripherals_when_cpu_start' into 'master'
Angus Gratton [Mon, 21 May 2018 01:53:42 +0000 (09:53 +0800)]
Merge branch 'bugfix/reset_some_peripherals_when_cpu_start' into 'master'

driver:   Reset  communication peripherals when cpu start up.

See merge request idf/esp-idf!2296

6 years agodriver(i2c, rmt):Add intr_flag setting to ESP_INTR_FLAG_IRAM support when enable...
kooho [Wed, 2 May 2018 07:27:41 +0000 (15:27 +0800)]
driver(i2c, rmt):Add intr_flag setting to ESP_INTR_FLAG_IRAM support when enable psram.

6 years agofreeRTOS/Re-factor ring buffers
Darian Leung [Wed, 18 Apr 2018 17:20:34 +0000 (01:20 +0800)]
freeRTOS/Re-factor ring buffers

This fixes multiple bugs with ring buffers and re-factors the code. The public
API has not changed, however the underlying implementation have various private
functions have been changed. The following behavioral changes have been made

-   Size of ring buffers for No-Split/Allow-Split buffers will not be rounded
    up to the nearest 32-bit aligned size. This was done to simplify the
    implementation

-   Item size for No-Split/Allow-Split buffers will also be rounded up to the
    nearest 32-bit aligned size.

The following bugs have been fixed

-   In copyItemToRingbufAllowSplit(), when copying an item where the aligned
    size is smaller than the remaining length, the function does not consider
    the case where the true size of the item is less than 4 bytes.

-   The copy functions will automatically wrap around the write pointers when
    the remaining length of the buffer is not large enough to fit a header, but
    does not consider if wrapping around will cause an overlap with the read
    pointer. This will make a full buffer be mistaken for an empty buffer

closes #1711
-   xRingbufferSend() can get stuck in a infinite loop when the size of the
    free memory is larger than the needed_size, but too small to fit in the ring
    buffer due to alignment and extra overhead of wrapping around.

closes #1846
-   Fixed documentation with ring buffer queue set API

-   Adding and removing from queue set does not consider the case where the
    read/write semaphores actually hold a value.

The following functions have been deprecated
    - xRingbufferIsNextItemWrapped() due to lack of thread safety
    - xRingbufferAddToQueueSetWrite() and xRingbufferRemoveFromQueueSetWrite()
    as adding the queue sets only work under receive operations.

The following functions have been added
    - xRingbufferReceiveSplit() and xRingbufferReceiveSplitFromISR() as a thread
    safe way to receive from allow-split buffers
    - vRingbufferGetInfo()

Documentation for ring buffers has also been added.

6 years agoAdd xRingbufferCanRead, xRingbufferCanWrite
Ing. Jaroslav Safka [Fri, 2 Mar 2018 22:17:32 +0000 (23:17 +0100)]
Add xRingbufferCanRead, xRingbufferCanWrite

Add function xRingbufferCanRead & xRingbufferCanWrite
to be able use queue sets. Without it is not possible
to check to which ringbuffer returned semaphore belongs.

6 years agoMerge branch 'patch-2' into 'master'
Angus Gratton [Mon, 21 May 2018 00:42:24 +0000 (08:42 +0800)]
Merge branch 'patch-2' into 'master'

Update idf-monitor.rst

See merge request idf/esp-idf!2149

6 years agoUpdate idf-monitor.rst
Lin Meiling [Thu, 29 Mar 2018 06:21:15 +0000 (14:21 +0800)]
Update idf-monitor.rst

6 years agoMerge branch 'feature/gcov_dbg_stubs' into 'master'
Angus Gratton [Mon, 21 May 2018 00:07:49 +0000 (08:07 +0800)]
Merge branch 'feature/gcov_dbg_stubs' into 'master'

Feature/gcov dbg stubs

See merge request idf/esp-idf!1494

6 years agoadd Channel State Information(CSI) support
Xia Xiaotian [Wed, 9 May 2018 08:44:06 +0000 (16:44 +0800)]
add Channel State Information(CSI) support

6 years agoMerge branch 'mesh/update_libs' into 'master'
Jiang Jiang Jian [Sun, 20 May 2018 09:26:57 +0000 (17:26 +0800)]
Merge branch 'mesh/update_libs' into 'master'

mesh: update libs

See merge request idf/esp-idf!2416

6 years agomesh: update libs
qiyueixa [Fri, 18 May 2018 04:25:52 +0000 (12:25 +0800)]
mesh: update libs

1. use pbkdf2_sha1() to encrypted mesh ie key.
2. fix esp_mesh_waive_root().
3. fix esp_mesh_stop().
4. fix xon issues.

6 years agoMerge branch 'feature/add_event_SYSTEM_EVENT_AP_STAIPASSIGNED' into 'master'
Jiang Jiang Jian [Sat, 19 May 2018 09:04:24 +0000 (17:04 +0800)]
Merge branch 'feature/add_event_SYSTEM_EVENT_AP_STAIPASSIGNED' into 'master'

add event SYSTEM_EVENT_AP_STAIPASSIGNED

See merge request idf/esp-idf!2202

6 years agoMerge branch 'bugfix/docs_fix_vcp_driver_link' into 'master'
Jiang Jiang Jian [Sat, 19 May 2018 09:00:17 +0000 (17:00 +0800)]
Merge branch 'bugfix/docs_fix_vcp_driver_link' into 'master'

docs: fix link for FTDI VCP drivers

See merge request idf/esp-idf!2420

6 years agoMerge branch 'feature/unified_btdm_modem_sleep_with_coex' into 'master'
Jiang Jiang Jian [Sat, 19 May 2018 08:20:49 +0000 (16:20 +0800)]
Merge branch 'feature/unified_btdm_modem_sleep_with_coex' into 'master'

component/bt: implement bluetooth modem sleep

See merge request idf/esp-idf!2198

6 years agocomponent/bt: implement bluetooth modem sleep mode, one mode for BLE only and another...
wangmengyang [Sun, 8 Apr 2018 11:19:47 +0000 (19:19 +0800)]
component/bt: implement bluetooth modem sleep mode, one mode for BLE only and another for dual mode bluetooth

1. provide options for bluetooth low power mode
2. provide two options for bluetooth low power clock: main XTAL and external 32kHz XTAL
3. provide function and callbacks to control bluetooth low power mode, including enable/disable sleep, software wakeup request, low power clock settings, check power state, etc
4. modify vhci API vhci_host_send_packet to use blocking mode
5. note that DFS and bluetooth modem sleep can not be used together currently.

6 years agoadd event SYSTEM_EVENT_AP_STAIPASSIGNED
zhangyanjiao [Mon, 9 Apr 2018 03:01:44 +0000 (11:01 +0800)]
add event SYSTEM_EVENT_AP_STAIPASSIGNED

6 years agoMerge branch 'doc/nvs_flash_encryption' into 'master'
Jiang Jiang Jian [Fri, 18 May 2018 16:44:56 +0000 (00:44 +0800)]
Merge branch 'doc/nvs_flash_encryption' into 'master'

nvs README: Remove section about encryption capability

See merge request idf/esp-idf!2404

6 years agoDnsFuzzer: Added fuzzer test for exercising lwip/dns receiving DNS responses
David Cermak [Fri, 18 May 2018 13:54:08 +0000 (15:54 +0200)]
DnsFuzzer: Added fuzzer test for exercising lwip/dns receiving DNS responses

6 years agoesp32: Adds GCOV debug stubs support
Alexey Gerenkov [Thu, 15 Feb 2018 17:09:03 +0000 (20:09 +0300)]
esp32: Adds GCOV debug stubs support

Adds the following functionality
 - Debug stubs infrastructure
 - Stub for retrieveing GCOV data without user source code modification

6 years agodocs: fix link for FTDI VCP drivers
Mahavir Jain [Fri, 18 May 2018 11:39:53 +0000 (17:09 +0530)]
docs: fix link for FTDI VCP drivers

Signed-off-by: Mahavir Jain <mahavir@espressif.com>
6 years agoMerge branch 'feature/add_more_information_about_wifi_config' into 'master'
Jiang Jiang Jian [Fri, 18 May 2018 09:29:32 +0000 (17:29 +0800)]
Merge branch 'feature/add_more_information_about_wifi_config' into 'master'

wifi: Add more information about wifi config

See merge request idf/esp-idf!2384

6 years agodriver(uart):Fix the bug that uart buffer_full flag is true all the time.
kooho [Fri, 18 May 2018 07:47:02 +0000 (15:47 +0800)]
driver(uart):Fix the bug that uart buffer_full flag is true all the time.

6 years agoMerge branch 'feature/vfs_find_free_fd' into 'master'
Angus Gratton [Fri, 18 May 2018 07:22:20 +0000 (15:22 +0800)]
Merge branch 'feature/vfs_find_free_fd' into 'master'

Add "find file descriptor" API to be used by VFS drivers

See merge request idf/esp-idf!2389

6 years agoMerge branch 'feature/vfs_select' into 'master'
Angus Gratton [Fri, 18 May 2018 07:04:25 +0000 (15:04 +0800)]
Merge branch 'feature/vfs_select' into 'master'

Allow VFS file descriptors in select()

See merge request idf/esp-idf!2377

6 years agodriver: reset communication peripherals when the cpu starts.
kooho [Fri, 18 May 2018 03:12:19 +0000 (11:12 +0800)]
driver: reset communication peripherals when the cpu starts.

6 years agoAllow VFS file descriptors in select()
Roland Dobai [Thu, 3 May 2018 08:41:10 +0000 (10:41 +0200)]
Allow VFS file descriptors in select()

6 years agoVFS: allow to find free file descriptors & register them
Roland Dobai [Fri, 11 May 2018 13:56:53 +0000 (15:56 +0200)]
VFS: allow to find free file descriptors & register them

6 years ago(wifi): Add more information about wifi config
Deng Xin [Fri, 11 May 2018 06:49:16 +0000 (14:49 +0800)]
(wifi): Add more information about wifi config

1. Update libphy.a to v3900
2. Update librtc.a to v238
3. add scan_method, sort_method and threshold when invoke esp_wifi_get_config()
4. add rssi of each STA in softAP list
5. add country information in scan result
6. add noise floor in rx pkt

Closes https://github.com/espressif/esp-idf/issues/1095
Closes https://github.com/espressif/esp-idf/issues/1723
Closes https://github.com/espressif/esp-idf/issues/1483

6 years agoMerge branch 'bugfix/performance_tests_psram' into 'master'
Jiang Jiang Jian [Fri, 18 May 2018 03:35:33 +0000 (11:35 +0800)]
Merge branch 'bugfix/performance_tests_psram' into 'master'

tests: Increase performance thresholds when running with PSRAM

See merge request idf/esp-idf!2414

6 years agoexamples/wifi/power_save: enable tickless idle
Ivan Grokhotkov [Thu, 3 May 2018 17:31:15 +0000 (01:31 +0800)]
examples/wifi/power_save: enable tickless idle

6 years agodocs: update information about automatic light sleep
Ivan Grokhotkov [Thu, 3 May 2018 17:59:54 +0000 (01:59 +0800)]
docs: update information about automatic light sleep

6 years agofreertos,esp32: automatic light sleep support
Ivan Grokhotkov [Thu, 12 Apr 2018 10:18:45 +0000 (18:18 +0800)]
freertos,esp32: automatic light sleep support

6 years agoMerge branch 'bugfix/idle_task_stack_size' into 'master'
Angus Gratton [Fri, 18 May 2018 02:10:13 +0000 (10:10 +0800)]
Merge branch 'bugfix/idle_task_stack_size' into 'master'

freertos: Bump default idle task stack size to 1536 bytes

See merge request idf/esp-idf!2411

6 years agoMerge branch 'feature/tw15298_support_create_wifi_task_on_any_core' into 'master'
Jiang Jiang Jian [Fri, 18 May 2018 01:55:45 +0000 (09:55 +0800)]
Merge branch 'feature/tw15298_support_create_wifi_task_on_any_core' into 'master'

esp32: support to create wifi task on any core

See merge request idf/esp-idf!2379

6 years agoMerge branch 'bugfix/update_ota_download_valid_bin' into 'master'
Jiang Jiang Jian [Fri, 18 May 2018 01:52:17 +0000 (09:52 +0800)]
Merge branch 'bugfix/update_ota_download_valid_bin' into 'master'

bugfix(ota): update ota to download valid bin file

See merge request idf/esp-idf!2038

6 years agoesp32: support to create wifi task on any core
Liu Zhi Fu [Thu, 3 May 2018 09:02:44 +0000 (17:02 +0800)]
esp32: support to create wifi task on any core

Support to create WiFi task on any core.
Closes https://github.com/espressif/esp-idf/issues/968

6 years agoMerge branch 'bugfix/i2s_mix_result_with_error_code_master' into 'master'
Jiang Jiang Jian [Thu, 17 May 2018 13:53:06 +0000 (21:53 +0800)]
Merge branch 'bugfix/i2s_mix_result_with_error_code_master' into 'master'

fix i2s mix result and error code

See merge request idf/esp-idf!2227

6 years agoMerge branch 'feature/add_set_factory_info_customer_in_wps_v3.1' into 'master'
Jiang Jiang Jian [Thu, 17 May 2018 13:49:40 +0000 (21:49 +0800)]
Merge branch 'feature/add_set_factory_info_customer_in_wps_v3.1' into 'master'

wifi: add set factory information feature by customer in wps

See merge request idf/esp-idf!2412

6 years agotests: Increase performance threshold for VFS running with PSRAM
Angus Gratton [Thu, 17 May 2018 11:12:45 +0000 (19:12 +0800)]
tests: Increase performance threshold for VFS running with PSRAM

Cache effects on microbenchmarks in cached flash can be significant, depending on linker layout in flash.

6 years agoMerge branch 'bugfix/fix_an_error_in_comment_of_uart_driver' into 'master'
Jiang Jiang Jian [Thu, 17 May 2018 09:17:14 +0000 (17:17 +0800)]
Merge branch 'bugfix/fix_an_error_in_comment_of_uart_driver' into 'master'

deiver(uart):revise the explanation of uart break length

See merge request idf/esp-idf!2398

6 years agoMerge branch 'bugfix/o3_fails' into 'master'
Jiang Jiang Jian [Thu, 17 May 2018 08:48:13 +0000 (16:48 +0800)]
Merge branch 'bugfix/o3_fails' into 'master'

Fix compilation errors when -O3 is used

See merge request idf/esp-idf!2396

6 years agowifi: add set factory information feature by customer in wps
Deng Xin [Mon, 14 May 2018 02:58:19 +0000 (10:58 +0800)]
wifi: add set factory information feature by customer in wps

6 years agoMerge branch 'bugfix/wifi_fix_a_few_wifi_bugs' into 'master'
Jiang Jiang Jian [Thu, 17 May 2018 08:33:38 +0000 (16:33 +0800)]
Merge branch 'bugfix/wifi_fix_a_few_wifi_bugs' into 'master'

Fix a few WiFi bugs

See merge request idf/esp-idf!2312

6 years agoMerge branch 'bugfix/fix_qio_mode' into 'master'
Jiang Jiang Jian [Thu, 17 May 2018 08:21:46 +0000 (16:21 +0800)]
Merge branch 'bugfix/fix_qio_mode' into 'master'

bootloader(flash): fix flash QIO mode configuration error.

See merge request idf/esp-idf!2403

6 years agoMerge branch 'bugfix/btdm_change_scan_mode_after_conn_or_disconn' into 'master'
Jiang Jiang Jian [Thu, 17 May 2018 03:13:13 +0000 (11:13 +0800)]
Merge branch 'bugfix/btdm_change_scan_mode_after_conn_or_disconn' into 'master'

component/bt: Change scan mode after connected or disconnected

See merge request idf/esp-idf!2402

6 years agofix i2s mix result and error code
Zhang Zhao Xiang [Wed, 11 Apr 2018 11:37:31 +0000 (19:37 +0800)]
fix i2s mix result and error code

6 years agofreertos: Bump default idle task stack size to 1536 bytes
Angus Gratton [Thu, 17 May 2018 02:14:26 +0000 (10:14 +0800)]
freertos: Bump default idle task stack size to 1536 bytes

In situations where idle task runs a lot of idle hooks or cleanup code
(due to pthread local storage, etc) it can use more than 1KB of stack.

(I think the trigger is if a context switch happens at the right point
in the TLS cleanup).

Also removes an sdkconfig.default which accidentally set all config items,
including this stack size.

6 years agoDhcpFuzzer: dhcp client addded
David Cermak [Tue, 15 May 2018 13:49:10 +0000 (15:49 +0200)]
DhcpFuzzer: dhcp client addded

6 years agobootloader(flash): fix flash QIO mode configuration error.
Wangjialin [Tue, 15 May 2018 09:14:52 +0000 (17:14 +0800)]
bootloader(flash): fix flash QIO mode configuration error.

reported from github: https://github.com/espressif/esp-idf/issues/1944

1. Add SPI register setup in execute_flash_command.
2. Save and recover the SPI ctrl register in execute_flash_command.

6 years agoMerge branch 'bugfix/docs_small_updates' into 'master'
Angus Gratton [Wed, 16 May 2018 11:53:40 +0000 (19:53 +0800)]
Merge branch 'bugfix/docs_small_updates' into 'master'

Bugfix/docs small updates

See merge request idf/esp-idf!2392

6 years agoMerge branch 'bugfix/mbedtls_submodule' into 'master'
Angus Gratton [Wed, 16 May 2018 11:52:45 +0000 (19:52 +0800)]
Merge branch 'bugfix/mbedtls_submodule' into 'master'

mbedtls: Add submodule check at build time

See merge request idf/esp-idf!2395

6 years agoMerge branch 'feature/ledc_add_api_set_hpoint_val' into 'master'
Angus Gratton [Wed, 16 May 2018 11:52:26 +0000 (19:52 +0800)]
Merge branch 'feature/ledc_add_api_set_hpoint_val' into 'master'

driver(ledc): fix duty and fade issues and add thread-safe version APIs.

See merge request idf/esp-idf!2233

6 years agoMerge branch 'feature/btdm_modify_bt_gap_structure' into 'master'
Angus Gratton [Wed, 16 May 2018 11:46:55 +0000 (19:46 +0800)]
Merge branch 'feature/btdm_modify_bt_gap_structure' into 'master'

component/bt: modify BT GAP structure

See merge request idf/esp-idf!2364

6 years agocomponent/bt: modify BT GAP structure
baohongde [Wed, 16 May 2018 10:58:13 +0000 (18:58 +0800)]
component/bt: modify BT GAP structure

1. Separate the upward and the downward
2. Cancel use of msg.aid when call btc_transfer_context

6 years agoFix a few WiFi bugs
XiaXiaotian [Wed, 16 May 2018 10:50:28 +0000 (18:50 +0800)]
Fix a few WiFi bugs

1. remove rc when ap not found

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

2. allocate mimo packet to internal memory

3. use FRC2 timer instead of WDEV_NOW() for modem sleep to calculate
   TBTT time.

   It fixes the bug that TBTT will be incorrect if beacon is lost.

6 years agocomponent/bt: Change scan mode after connected or disconnected
baohongde [Tue, 15 May 2018 08:35:48 +0000 (16:35 +0800)]
component/bt: Change scan mode after connected or disconnected

6 years agoMerge branch 'bugfix/fix_interrupt_list_insert_issue' into 'master'
Jiang Jiang Jian [Wed, 16 May 2018 10:18:58 +0000 (18:18 +0800)]
Merge branch 'bugfix/fix_interrupt_list_insert_issue' into 'master'

esp32: fix interrupt list insert issue

See merge request idf/esp-idf!2391

6 years agoMerge branch 'bugfix/touch_change_default_enable_value' into 'master'
Jiang Jiang Jian [Wed, 16 May 2018 09:40:18 +0000 (17:40 +0800)]
Merge branch 'bugfix/touch_change_default_enable_value' into 'master'

bugfix(touch): change the default value for sar_touch_enable register.

See merge request idf/esp-idf!1870

6 years agoMerge branch 'bugfix/rmt_tx_cmd' into 'master'
Jiang Jiang Jian [Wed, 16 May 2018 09:39:04 +0000 (17:39 +0800)]
Merge branch 'bugfix/rmt_tx_cmd' into 'master'

example(rmt): tx cmd without negative coding

See merge request idf/esp-idf!1884

6 years agobugfix(ota): update ota to download valid bin file
Chen Wu [Mon, 12 Mar 2018 07:16:17 +0000 (15:16 +0800)]
bugfix(ota): update ota to download valid bin file

6 years agoMerge branch 'bugfix/improve_bt_debug' into 'master'
Jiang Jiang Jian [Wed, 16 May 2018 08:04:34 +0000 (16:04 +0800)]
Merge branch 'bugfix/improve_bt_debug' into 'master'

components/bt: Improve the Bluetooth debug messaging scheme

See merge request idf/esp-idf!2303

6 years agoMerge branch 'feature/tw16750_full_support_esp_wifi_80211_tx' into 'master'
Jiang Jiang Jian [Wed, 16 May 2018 06:55:00 +0000 (14:55 +0800)]
Merge branch 'feature/tw16750_full_support_esp_wifi_80211_tx' into 'master'

esp32/docs: fully support esp_wifi_80211_tx

See merge request idf/esp-idf!2007

6 years agoesp32/docs: fully support esp_wifi_80211_tx
Liu Zhi Fu [Mon, 26 Feb 2018 05:29:52 +0000 (13:29 +0800)]
esp32/docs: fully support esp_wifi_80211_tx

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

6 years agoFixed git command
krzychb [Fri, 11 May 2018 18:08:55 +0000 (20:08 +0200)]
Fixed git command

6 years agoFix git command. Merges https://github.com/espressif/esp-idf/pull/1943
Wenderson Oliveira [Thu, 10 May 2018 22:49:17 +0000 (19:49 -0300)]
Fix git command. Merges https://github.com/espressif/esp-idf/pull/1943

6 years agoMerge branch 'bugfix/rtc_xtal_tests' into 'master'
Angus Gratton [Tue, 15 May 2018 10:44:46 +0000 (18:44 +0800)]
Merge branch 'bugfix/rtc_xtal_tests' into 'master'

ci: Only run XTAL unit tests assuming board has an XTAL

See merge request idf/esp-idf!2401

6 years agonvs README: Remove section about encryption capability
Angus Gratton [Tue, 15 May 2018 10:02:28 +0000 (18:02 +0800)]
nvs README: Remove section about encryption capability

6 years agoci: Only run XTAL unit tests assuming board has an XTAL, run less repeats
Angus Gratton [Tue, 15 May 2018 06:37:04 +0000 (14:37 +0800)]
ci: Only run XTAL unit tests assuming board has an XTAL, run less repeats

6 years agoMerge branch 'feature/dport_access' into 'master'
Angus Gratton [Tue, 15 May 2018 07:32:28 +0000 (15:32 +0800)]
Merge branch 'feature/dport_access' into 'master'

soc: Dport access with pre-read register APB

See merge request idf/esp-idf!2257

6 years agoMerge branch 'test/add_iperf_example_test' into 'master'
He Yin Ling [Tue, 15 May 2018 06:58:08 +0000 (14:58 +0800)]
Merge branch 'test/add_iperf_example_test' into 'master'

test: add iperf example test

See merge request idf/esp-idf!1753

6 years agoMerge branch 'feature/vfs_access' into 'master'
Angus Gratton [Tue, 15 May 2018 06:33:51 +0000 (14:33 +0800)]
Merge branch 'feature/vfs_access' into 'master'

Implement VFS support for access()

See merge request idf/esp-idf!2378

6 years agoMerge branch 'bugfix/spi_native_pins' into 'master'
Angus Gratton [Tue, 15 May 2018 06:19:20 +0000 (14:19 +0800)]
Merge branch 'bugfix/spi_native_pins' into 'master'

fix several spi issues about pin configurations

See merge request idf/esp-idf!2309

6 years agoexample test: integrate wifi throughput test to CI
He Yin Ling [Mon, 8 Jan 2018 12:33:09 +0000 (20:33 +0800)]
example test: integrate wifi throughput test to CI

6 years agoexample test: add test case for iperf example
He Yin Ling [Sun, 7 Jan 2018 12:28:09 +0000 (20:28 +0800)]
example test: add test case for iperf example

6 years agoMerge branch 'bugfix/select_rtc_slow_clk' into 'master'
Angus Gratton [Tue, 15 May 2018 04:57:22 +0000 (12:57 +0800)]
Merge branch 'bugfix/select_rtc_slow_clk' into 'master'

esp32/clk: Fix starting rtc oscillator if it bad

See merge request idf/esp-idf!2215

6 years agoesp32/clk:Fix starting rtc oscillator if it is bad
Konstantin Kondrashov [Fri, 30 Mar 2018 12:14:29 +0000 (17:14 +0500)]
esp32/clk:Fix starting rtc oscillator if it is bad

If the RTC crystal is bad or has no matched capacitance, then you do not need to start such the crystal. It is necessary to determine this case, output an error (about impossibility to start from the oscillator) and start from the internal RC of the chain.

Reduced the default value of the number of bootstrap cycles. Because we can oscillating the oscillator which then stops. (in Kconfig). Changed from 100 to 5.

The number of calibration cycles has been increased. It is the main criterion for estimating the launch of an oscillator. A large increase leads to an increase in the load time, as well as the stability of recognition of this case. (in Kconfig).
Changed from 1024 to 3000.

6 years agoiperf example: add scan command to get AP rssi
He Yin Ling [Thu, 11 Jan 2018 06:18:29 +0000 (14:18 +0800)]
iperf example: add scan command to get AP rssi

6 years agoiperf example: add cmd to trace max heap usage
He Yin Ling [Fri, 9 Mar 2018 09:42:08 +0000 (17:42 +0800)]
iperf example: add cmd to trace max heap usage

6 years agotiny-test-fw: fix misc bugs:
He Yin Ling [Tue, 16 Jan 2018 14:16:03 +0000 (22:16 +0800)]
tiny-test-fw: fix misc bugs:

1. configs are not functional
    * decorator will be executed when search case, need to set default config before search case.
2. fix DUT encode/decode errors
    * python3 serial don't support write string/unicode, need to convert to bytes first.
    * python2 string could failed to encode/decode non-acsii chars
3. fix bug that log folder not created
4. fix bug that test suite name is not correctly passed:
    * the keyward arg should be `test_suite_name` not `test_name`
5. fix bug that test stopped on failed case
6. fix DUT `read` don't return all data cache
    * `_DataCache.get_data` should first copy all data from queue to data cache and then return to user.
7. fix bug that `expect_all` failed even all expected item passed
8. optimize error info for expect
    * print pattern for regular expression when match failed
9. fix bug that set default config doesn't work

6 years agotiny-test-fw: add utilities:
He Yin Ling [Thu, 11 Jan 2018 09:49:27 +0000 (17:49 +0800)]
tiny-test-fw: add utilities:

1. Attenuator: control programmable attenuator
2. PowerControl: control APC PDU to power on/off devices
3. LineChart: use matplotlib to draw line chart

6 years agotiny-test-fw: implement `env.get_pc_nic_info`:
He Yin Ling [Sun, 7 Jan 2018 12:24:38 +0000 (20:24 +0800)]
tiny-test-fw: implement `env.get_pc_nic_info`:

this method is used to get mac/ipv4/ipv6 address for one NIC

6 years agoMerge branch 'doc/update_licenses' into 'master'
Angus Gratton [Tue, 15 May 2018 03:13:20 +0000 (11:13 +0800)]
Merge branch 'doc/update_licenses' into 'master'

docs: update list of third-party libraries, copyrights, and licenses

See merge request idf/esp-idf!2381

6 years agoMerge branch 'bugfix/sdspi_delayed_write_response' into 'master'
Angus Gratton [Tue, 15 May 2018 02:32:21 +0000 (10:32 +0800)]
Merge branch 'bugfix/sdspi_delayed_write_response' into 'master'

sdspi: handle delayed response to data write command

See merge request idf/esp-idf!2290

6 years agoMerge branch 'bugfix/rmt_tx_stop_bug' into 'master'
Jiang Jiang Jian [Tue, 15 May 2018 02:04:33 +0000 (10:04 +0800)]
Merge branch 'bugfix/rmt_tx_stop_bug' into 'master'

driver(rmt):  RMT tx stop  workaround

See merge request idf/esp-idf!1915

6 years agodocs: update list of third-party libraries, copyrights, and licenses
Ivan Grokhotkov [Thu, 10 May 2018 10:19:30 +0000 (18:19 +0800)]
docs: update list of third-party libraries, copyrights, and licenses

6 years agoMerge branch 'feature/adjust_log_level_about_uart' into 'master'
Jiang Jiang Jian [Tue, 15 May 2018 01:59:21 +0000 (09:59 +0800)]
Merge branch 'feature/adjust_log_level_about_uart' into 'master'

feat: Adjust log level about UART

See merge request idf/esp-idf!2047

6 years agosdmmc: wait for command done event even if data transfer is over
Ivan Grokhotkov [Fri, 20 Apr 2018 09:48:34 +0000 (17:48 +0800)]
sdmmc: wait for command done event even if data transfer is over

This fixes errors logged on the console: sdmmc_req:
handle_idle_state_events unhandled: 00000004 00000000

The issue happens if "data done" event occurs before "command done".
State machine code did not check *which* event occurred in
SENDING_CMD state, and went to IDLE or SENDING_DATA state on any
non-error event. In this case, we can't process "data done" event
until command has completed. This change introduces "unhandled event"
mask, which is carried over from one run of process_events to the
other. This allows waiting for the "command done" event to complete,
and then process "data done" event.

Ref TW17126.

6 years agosdio: allow reads/writes with lengths not divisible by 4
Ivan Grokhotkov [Fri, 20 Apr 2018 09:42:13 +0000 (17:42 +0800)]
sdio: allow reads/writes with lengths not divisible by 4

CMD53 in byte mode supports transfers of any number of bytes between 1
and 512. This change removes limitation that the number of bytes must
be divisible by 4. Host quirk, that such transfers must be split into
two commands (one for the aligned part and the other one for
unaligned) is taken into account.

6 years agoMerge branch 'feature/docs_translate_home_page' into 'master'
Jiang Jiang Jian [Tue, 15 May 2018 01:57:13 +0000 (09:57 +0800)]
Merge branch 'feature/docs_translate_home_page' into 'master'

Update index.rst. Merges https://github.com/espressif/esp-idf/pull/1747

See merge request idf/esp-idf!2368

6 years agoMerge branch 'bugfix/rename_clk_rst_bits_for_spi' into 'master'
Jiang Jiang Jian [Tue, 15 May 2018 01:49:56 +0000 (09:49 +0800)]
Merge branch 'bugfix/rename_clk_rst_bits_for_spi' into 'master'

rename clock enable and reset bits for SPI modules

See merge request idf/esp-idf!2293

6 years agoCorrected link rendering and additional translations
krzychb [Wed, 9 May 2018 05:45:54 +0000 (07:45 +0200)]
Corrected link rendering and additional translations

6 years agoMerge branch 'bugfix/btdm_fix_crash_without_smp_when_deinit_bluedroid' into 'master'
Jiang Jiang Jian [Mon, 14 May 2018 13:20:44 +0000 (21:20 +0800)]
Merge branch 'bugfix/btdm_fix_crash_without_smp_when_deinit_bluedroid' into 'master'

Component/bt: fix crash without SMP when deinit bluedroid

See merge request idf/esp-idf!2375

6 years agoDhcpFuzzer: Added AFL test for dhcpserver with sample packets
David Cermak [Mon, 14 May 2018 13:03:37 +0000 (15:03 +0200)]
DhcpFuzzer: Added AFL test for dhcpserver with sample packets

6 years agosoc: Change DPORT access
Konstantin Kondrashov [Thu, 22 Mar 2018 12:39:59 +0000 (17:39 +0500)]
soc: Change DPORT access

When two CPUs read the area of the DPORT and the area of the APB, the result is corrupted for the CPU that read the APB area.
And another CPU has valid data.

The method of eliminating this error.
Before reading the registers of the DPORT, make a preliminary reading of the APB register.
In this case, the joint access of the two CPUs to the registers of the APB and the DPORT is successful.

6 years agocomponents/bt: Improve the Bluetooth debug messaging scheme
Hrishikesh Dhayagude [Wed, 25 Apr 2018 02:11:06 +0000 (07:41 +0530)]
components/bt: Improve the Bluetooth debug messaging scheme

As of now, when Bluetooth debugs are enabled, all the messages are
mapped to BT_PRINTF which is mapped to ESP_LOGE. Hence, make monitor
shows all logs in red color which might lead to missing the actual
errors

This patch maps the Bluetooth messages to appropriate ESP_LOG* messages
and improves readability.

Also, make the BT trace level be configurable in menuconfig, so that
each layer of bt trace can be enabled/disabled.

Finally, add debug log control for BTC, OSI, BLUFI and clear up
Bluetooth debug logs.

So, with this the method of enabling Bluetooth logs is as follows:
1. make menuconfig -> Component config -> Bluetooth -> Bluedroid Enable
-> BT DEBUG LOG LEVEL -> set trace level for every layer of BT

Signed-off-by: Hrishikesh Dhayagude <hrishi@espressif.com>
6 years agoMerge branch 'feature/wifi_add_sniffer_ctrl_pkt' into 'master'
Jiang Jiang Jian [Mon, 14 May 2018 12:42:15 +0000 (20:42 +0800)]
Merge branch 'feature/wifi_add_sniffer_ctrl_pkt' into 'master'

add sniffer control packet support

See merge request idf/esp-idf!1904

6 years agoMerge branch 'bugfix/btdm_reconnect_con_params_update_reject_in_smp' into 'master'
Jiang Jiang Jian [Mon, 14 May 2018 12:19:29 +0000 (20:19 +0800)]
Merge branch 'bugfix/btdm_reconnect_con_params_update_reject_in_smp' into 'master'

Component/bt: update con params is rejected in smp when reconnection

See merge request idf/esp-idf!2318

6 years agorevise the explain of a parameter(brk_len) in uart driver file
chenjianqiang [Mon, 14 May 2018 11:47:16 +0000 (19:47 +0800)]
revise the explain of a parameter(brk_len) in uart driver file

6 years agodriver(rmt):Fix rmt_tx_stop bug.
kooho [Sat, 24 Feb 2018 08:36:21 +0000 (16:36 +0800)]
driver(rmt):Fix rmt_tx_stop bug.

6 years agoMerge branch 'bugfix/logging_docs_cleanup' into 'master'
Angus Gratton [Mon, 14 May 2018 10:36:35 +0000 (18:36 +0800)]
Merge branch 'bugfix/logging_docs_cleanup' into 'master'

log: clean up docs, clarify esp_log_level_set usage

See merge request idf/esp-idf!2080

6 years agoFix compilation errors when -O3 is used
Roland Dobai [Mon, 14 May 2018 09:54:27 +0000 (11:54 +0200)]
Fix compilation errors when -O3 is used

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