]> granicus.if.org Git - esp-idf/log
esp-idf
7 years agolwip: Enable IPV6_ONLY option for UDP sockets (BSD & netconn)
Angus Gratton [Fri, 7 Jul 2017 11:27:00 +0000 (19:27 +0800)]
lwip: Enable IPV6_ONLY option for UDP sockets (BSD & netconn)

* setsockopt(s, IPV6_ONLY, &one, sizeof(int)) will disable IPV6-only
  mode. Incoming/outgoing IPV4 packets are dropped.

* Otherwise, sockets bound to IPV6_ANY_ADDR can receive unicast packets
  for IPV4 or IPV6.

* sendto() a IPV6-mapped-IPV4 address on a UDP socket works correctly
  (not supported for RAW or TCP sockets.)

* getaddrinfo() option AI_V4MAPPED is implemented.

As well as extending support to TCP & RAW, there is some potential improvement
to dropping incoming packets - the drop happens a bit late in the process and
there is no "ICMP port unreachable" response sent.

7 years agolwip: Add IPV6 multicast group membership socket options
Angus Gratton [Mon, 10 Jul 2017 08:32:20 +0000 (16:32 +0800)]
lwip: Add IPV6 multicast group membership socket options

As described in RFC2133: IPV6_MULTICAST_IF, IPV6_MULTICAST_HOPS,
IPV6_MULTICAST_LOOP, IPV6_MULTICAST_LOOP, IPV6_DROP_MEMBERSHIP.

7 years agoMerge branch 'bugfix/btdm_hci_mode_periph_clk' into 'master'
Jiang Jiang Jian [Sat, 30 Sep 2017 07:57:10 +0000 (15:57 +0800)]
Merge branch 'bugfix/btdm_hci_mode_periph_clk' into 'master'

fix example of controller_hci_uart peripheral clk init

See merge request !1295

7 years agoMerge branch 'bugfix/btdm_change_pll_track_interrupt' into 'master'
Jiang Jiang Jian [Sat, 30 Sep 2017 07:53:58 +0000 (15:53 +0800)]
Merge branch 'bugfix/btdm_change_pll_track_interrupt' into 'master'

component/bt : change pll track interrupt bits

See merge request !1310

7 years agoMerge branch 'bugfix/btdm_btc_ble_set_rand_addr' into 'master'
Jiang Jiang Jian [Sat, 30 Sep 2017 07:49:53 +0000 (15:49 +0800)]
Merge branch 'bugfix/btdm_btc_ble_set_rand_addr' into 'master'

component/bt: Fix bug of function btc_ble_set_rand_addr

See merge request !1297

7 years agoMerge branch 'bugfix/btdm_mem_leak_of_gattc_open_and_close' into 'master'
Jiang Jiang Jian [Sat, 30 Sep 2017 07:48:57 +0000 (15:48 +0800)]
Merge branch 'bugfix/btdm_mem_leak_of_gattc_open_and_close' into 'master'

component/bt: Fix bug of memory leak of gatt open and close

See merge request !1325

7 years agoMerge branch 'bugfix/btdm_gattc_mutiple_read_bug' into 'master'
Jiang Jiang Jian [Sat, 30 Sep 2017 07:45:56 +0000 (15:45 +0800)]
Merge branch 'bugfix/btdm_gattc_mutiple_read_bug' into 'master'

component/bt: Fixed the bug of mutiple read can not callback.

See merge request !1286

7 years agoMerge branch 'bugfix/btdm_gattc_get_db_prop_bug' into 'master'
Jiang Jiang Jian [Sat, 30 Sep 2017 07:42:45 +0000 (15:42 +0800)]
Merge branch 'bugfix/btdm_gattc_get_db_prop_bug' into 'master'

component/bt: Fiexd the bug of the gattc cannot get the db properties.

See merge request !1284

7 years agoMerge branch 'bugfix/btdm_fail_to_find_handle_#15534' into 'master'
Jiang Jiang Jian [Sat, 30 Sep 2017 07:42:07 +0000 (15:42 +0800)]
Merge branch 'bugfix/btdm_fail_to_find_handle_#15534' into 'master'

component/bt: Fix the bug of total attr didn't reset when init the gattc cache.

See merge request !1331

7 years agoMerge branch 'bugfix/explicit_task_wdt_feed' into 'master'
Jeroen Domburg [Sat, 30 Sep 2017 02:42:15 +0000 (10:42 +0800)]
Merge branch 'bugfix/explicit_task_wdt_feed' into 'master'

Bugfix/New Task Watchdog API

See merge request !1187

7 years agoesp32: New Task Watchdog API
Darian Leung [Wed, 30 Aug 2017 13:11:10 +0000 (21:11 +0800)]
esp32: New Task Watchdog API

Legacy API of task watchdog used the same function esp_task_wdt_feed() to add
and feed a task. This caused issues of implicitly adding a task to the wdt list
if the function was used in shared code.

The new API introduces init, adding, feeding, deleting, deinit functions. Tasks
must now be explicitly added to the task watchdog using their handles. Deletion
must also be explicit using task handles. This resolves the issue of implicit
task additions to the task watchdog due to shared code calling
esp_task_wdt_feed().

Task watchdog is now fully configurable at runtime by calling the init and
deinit functions.

Also added functions to get the handles of idle tasks of the other core. This
helps when adding idle tasks to the watchdog at run time.

Configuring the task watchdog using menu config is still available, however
menu config will only result in calling the init and add functions for idle
tasks shortly after the scheduler starts.

Menu config also allows for using legacy behavior, however the legacy behavior
willcall the new API functions but with slight variations to make them legacy
compatible.

Documentation and example have also been updated

gcov_rtio.c headers updated to prevent error of freertos header files being
included in the wrong order.

Resolves issue TW#13265

7 years agoesp32: Fix task watchdog timer triggering issues TW#14794
Darian Leung [Wed, 30 Aug 2017 05:56:37 +0000 (13:56 +0800)]
esp32: Fix task watchdog timer triggering issues TW#14794

The two task watchdog timer bugs are as follows...
1) If only a single task existed on the wdt task list, and esp_task_wdt_feed()
was only called once, the watchdog triggers but fails to print task name
2) If a single task already exists on the task wdt list, and another task calls
esp_task_wdt_feed() once, the watchdog fails to trigger

Problem stemmed from the loop responsible for resetting the watchdog timer
having incorrect loop parameters. The loop failed to traverse the full length
of the task wdt list

7 years agocomponent/bt: Fix bug of function btc_ble_set_rand_addr
baohongde [Wed, 20 Sep 2017 11:53:50 +0000 (19:53 +0800)]
component/bt: Fix bug of function btc_ble_set_rand_addr

7 years agoMerge branch 'test/unity_print' into 'master'
Jeroen Domburg [Fri, 29 Sep 2017 03:20:04 +0000 (11:20 +0800)]
Merge branch 'test/unity_print' into 'master'

test: update the format of TEST_ASSERT macro series in ``unity.c``

See merge request !1327

7 years agoMerge branch 'feature/malloc_psram' into 'master'
Jeroen Domburg [Thu, 28 Sep 2017 10:19:09 +0000 (18:19 +0800)]
Merge branch 'feature/malloc_psram' into 'master'

Add logic to make external RAM usable with malloc()

See merge request !1278

7 years agoAdd logic to make external RAM usable with malloc()
Jeroen Domburg [Fri, 22 Sep 2017 08:02:39 +0000 (16:02 +0800)]
Add logic to make external RAM usable with malloc()

7 years agocomponent/bt: Fix bug of function btc_ble_set_rand_addr
baohongde [Thu, 28 Sep 2017 06:41:31 +0000 (14:41 +0800)]
component/bt:  Fix bug of function btc_ble_set_rand_addr

7 years agocomponent/bt: Fix bug of memory leak of gatt open and close
baohongde [Wed, 27 Sep 2017 06:57:48 +0000 (14:57 +0800)]
component/bt: Fix bug of memory leak of gatt open and close

7 years agocomponent/bt: Fix the bug of total attr didn't reset when init the gattc cache.
Yulong [Thu, 28 Sep 2017 06:09:02 +0000 (02:09 -0400)]
component/bt: Fix the bug of total attr didn't reset when init the gattc cache.

7 years agoMerge branch 'feature/add_espnow_example' into 'master'
Angus Gratton [Wed, 27 Sep 2017 23:43:29 +0000 (07:43 +0800)]
Merge branch 'feature/add_espnow_example' into 'master'

Feature/add espnow example

See merge request !1263

7 years agotest: update the format of TEST_ASSERT macro series in ``unity.c``
michael [Wed, 27 Sep 2017 09:06:39 +0000 (17:06 +0800)]
test: update the format of TEST_ASSERT macro series in ``unity.c``

7 years agoMerge branch 'test/spi_master_internal_connect' into 'master'
Jeroen Domburg [Wed, 27 Sep 2017 09:00:31 +0000 (17:00 +0800)]
Merge branch 'test/spi_master_internal_connect' into 'master'

test(spi_master): add test case for 3 DMA issues with internal connection by gpio mux.

See merge request !1217

7 years agoMerge branch 'bugfix/bt_sdp_server_continuation' into 'master'
Angus Gratton [Wed, 27 Sep 2017 03:13:54 +0000 (11:13 +0800)]
Merge branch 'bugfix/bt_sdp_server_continuation' into 'master'

bluedroid: Add continuation offset check to SDP server

See merge request !1323

7 years agotest(spi_master): add test case for 3 DMA issues with internal connection by gpio...
michael [Fri, 1 Sep 2017 10:49:45 +0000 (18:49 +0800)]
test(spi_master): add test case for 3 DMA issues with internal connection by gpio mux.

3 issues are:
1. RX buffer not aligned (start and end)
2. not setting rx_buffer
3. setting rx_length != length

also add spi release code here.

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

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

7 years agoMerge branch 'bugfix/timestamp' into 'master'
Ivan Grokhotkov [Tue, 26 Sep 2017 08:15:42 +0000 (16:15 +0800)]
Merge branch 'bugfix/timestamp' into 'master'

fix(global, log): correct the CCOUNT register when switching CPU clock during boot 2nd and before scheduler.

See merge request !1296

7 years agoMerge branch 'bugfix/bind_dhcp_server_udp_to_ip_of_ap' into 'master'
Ivan Grokhotkov [Tue, 26 Sep 2017 08:06:55 +0000 (16:06 +0800)]
Merge branch 'bugfix/bind_dhcp_server_udp_to_ip_of_ap' into 'master'

Fix the bug that if one device is in station+softap mode, other device can not get IP address after connecting to the softap.

See merge request !1314

7 years agoMerge branch 'feature/support_wifi_country_api' into 'master'
Ivan Grokhotkov [Tue, 26 Sep 2017 08:05:49 +0000 (16:05 +0800)]
Merge branch 'feature/support_wifi_country_api' into 'master'

esp32: support wifi country code

See merge request !1300

7 years agoMerge branch 'feature/docs_update_sigmadelta_api' into 'master'
Ivan Grokhotkov [Tue, 26 Sep 2017 08:05:18 +0000 (16:05 +0800)]
Merge branch 'feature/docs_update_sigmadelta_api' into 'master'

Updated sigma delta API documenation and example

See merge request !1319

7 years agofix(global, log): fix `esp_log(_early)_timestamp` readings after startup by correct...
michael [Wed, 13 Sep 2017 09:34:43 +0000 (17:34 +0800)]
fix(global, log): fix `esp_log(_early)_timestamp` readings after startup by correct the CCOUNT register when switching CPU clock.

TW#13332, Closes #700

7 years agoesp32: support wifi country code
Liu Zhi Fu [Tue, 19 Sep 2017 12:59:48 +0000 (20:59 +0800)]
esp32: support wifi country code

1. Add completed support for WiFi country code
2. Modify esp_wifi_set_country API

7 years agoMerge branch 'feature/docs_updating_idf' into 'master'
Angus Gratton [Tue, 26 Sep 2017 02:34:38 +0000 (10:34 +0800)]
Merge branch 'feature/docs_updating_idf' into 'master'

Added a section how to update existing local esp-idf repository and load specifiā€¦

See merge request !1273

7 years agoMerge branch 'feature/record_more_info_of_scanned_ap' into 'master'
Ivan Grokhotkov [Tue, 26 Sep 2017 02:13:48 +0000 (10:13 +0800)]
Merge branch 'feature/record_more_info_of_scanned_ap' into 'master'

Record more information of scanned AP

See merge request !1289

7 years agoMerge branch 'feature/tw15502_add_iperf_example' into 'master'
Ivan Grokhotkov [Tue, 26 Sep 2017 01:38:34 +0000 (09:38 +0800)]
Merge branch 'feature/tw15502_add_iperf_example' into 'master'

example: add iperf example

See merge request !1313

7 years agoexample: add iperf example
Liu Zhi Fu [Thu, 30 Mar 2017 15:12:25 +0000 (23:12 +0800)]
example: add iperf example

Support iperf

7 years agoUpdated sigma delta API documenation and example
krzychb [Mon, 25 Sep 2017 19:20:48 +0000 (21:20 +0200)]
Updated sigma delta API documenation and example

7 years agocomponent/bt : change pll track interrupt bits
Tian Hao [Fri, 22 Sep 2017 12:14:30 +0000 (20:14 +0800)]
component/bt : change pll track interrupt bits

7 years agoMerge branch 'bugfix/scan_fail' into 'master'
Jiang Jiang Jian [Mon, 25 Sep 2017 10:28:09 +0000 (18:28 +0800)]
Merge branch 'bugfix/scan_fail' into 'master'

component/bt : fix bug of scan fail after a long time

See merge request !1301

7 years agofix example of controller_hci_uart peripheral clk init
Tian Hao [Wed, 20 Sep 2017 10:13:51 +0000 (18:13 +0800)]
fix example of controller_hci_uart peripheral clk init

7 years agoMerge branch 'feature/multi_heap_assert' into 'master'
Angus Gratton [Mon, 25 Sep 2017 01:51:14 +0000 (09:51 +0800)]
Merge branch 'feature/multi_heap_assert' into 'master'

multi_heap: Print the problem address when aborting due to heap corruption

See merge request !1277

7 years agoFix the bug that if one device is in station+softap mode, other device can not
XiaXiaotian [Fri, 22 Sep 2017 10:10:34 +0000 (18:10 +0800)]
Fix the bug that if one device is in station+softap mode, other device can not
get IP address after connecting to the softap.

    Now the default netif is station in station+softap mode. The UDP pcb of
DHCP server is binded to IP 0.0.0.0. When other device connects to softap, the
DHCP offer will be sent by softap.But because the destination IP of DHCP offer
is broadcast IP and the source IP of it is 0.0.0.0, it will be sent from default
netif, that is station interface. Other device can not receive the DHCP offer
sent from station interface. As a result, other device can not get IP address.
The resolution is that bind UDP pcb to the IP address of softap. So, the source
IP of DHCP offer is that of softap. DHCP offer can be sent from softap interface
by source IP route method.

7 years agoMerge branch 'test/update_ble_known_issues' into 'master'
Ivan Grokhotkov [Fri, 22 Sep 2017 14:34:18 +0000 (22:34 +0800)]
Merge branch 'test/update_ble_known_issues' into 'master'

test: udpate new BLE known issues

See merge request !1306

7 years agoMerge branch 'bugfix/gpio26_rtc_hold' into 'master'
Ivan Grokhotkov [Fri, 22 Sep 2017 14:34:04 +0000 (22:34 +0800)]
Merge branch 'bugfix/gpio26_rtc_hold' into 'master'

driver/rtc: fix copy-paste error in HOLD_FORCE field name for GPIO26

See merge request !1299

7 years agoMerge branch 'bugfix/light_sleep' into 'master'
Ivan Grokhotkov [Fri, 22 Sep 2017 08:37:59 +0000 (16:37 +0800)]
Merge branch 'bugfix/light_sleep' into 'master'

Light sleep fix

See merge request !1303

7 years agoAdd an example to show how to use ESPNOW
XiaXiaotian [Wed, 13 Sep 2017 12:38:04 +0000 (20:38 +0800)]
Add an example to show how to use ESPNOW

7 years agoRecord more information of scanned AP
XiaXiaotian [Tue, 19 Sep 2017 12:17:25 +0000 (20:17 +0800)]
Record more information of scanned AP

7 years agoMerge branch 'bugfix/dport_in_single_core' into 'master'
Ivan Grokhotkov [Fri, 22 Sep 2017 06:48:05 +0000 (14:48 +0800)]
Merge branch 'bugfix/dport_in_single_core' into 'master'

esp32: exclude DPORT-related code in single core mode

See merge request !1304

7 years agoMerge branch 'bugfix/build_kconfig_deps' into 'master'
Angus Gratton [Fri, 22 Sep 2017 04:42:37 +0000 (12:42 +0800)]
Merge branch 'bugfix/build_kconfig_deps' into 'master'

build: make clean should remove all .d files in tools/kconfig

See merge request !1302

7 years agoMerge branch 'bugfix/build_system_regen_component_vars' into 'master'
Angus Gratton [Fri, 22 Sep 2017 04:42:00 +0000 (12:42 +0800)]
Merge branch 'bugfix/build_system_regen_component_vars' into 'master'

build system: Fix bug requiring "make clean" after IDF updates or menuconfig changes

See merge request !1293

7 years agoesp32: exclude DPORT-related code in single core mode
Ivan Grokhotkov [Fri, 22 Sep 2017 03:54:51 +0000 (11:54 +0800)]
esp32: exclude DPORT-related code in single core mode

7 years agolight sleep: make sure code to be placed into IRAM is not inlined
Ivan Grokhotkov [Fri, 22 Sep 2017 03:41:30 +0000 (11:41 +0800)]
light sleep: make sure code to be placed into IRAM is not inlined

7 years agotest: udpate new BLE known issues:
He Yin Ling [Thu, 21 Sep 2017 13:35:00 +0000 (21:35 +0800)]
test: udpate new BLE known issues:

1. some cases caused by GATTC can't get correct attribute handle
2. some cases with increased fail ratio

7 years agobuild: make clean should remove all .d files in tools/kconfig
Angus Gratton [Fri, 22 Sep 2017 00:04:00 +0000 (10:04 +1000)]
build: make clean should remove all .d files in tools/kconfig

Causes a problem that can't be fixed by "make clean" if the
host OS headers have moved around.

ie https://esp32.com/viewtopic.php?f=13&t=3098&p=14487

7 years agoMerge branch 'doc/windows_env_updates' into 'master'
Angus Gratton [Thu, 21 Sep 2017 22:39:26 +0000 (06:39 +0800)]
Merge branch 'doc/windows_env_updates' into 'master'

doc: Add steps to update Windows environment installations

See merge request !1298

7 years agocomponent/bt : fix bug of scan fail after a long time
Tian Hao [Thu, 21 Sep 2017 09:31:20 +0000 (17:31 +0800)]
component/bt : fix bug of scan fail after a long time

7 years agoMerge branch 'bugfix/btdm_enable_limit' into 'master'
Ivan Grokhotkov [Thu, 21 Sep 2017 09:33:09 +0000 (17:33 +0800)]
Merge branch 'bugfix/btdm_enable_limit' into 'master'

BT controller: add function to release unused memory to the heap

See merge request !1248

7 years agoMerge branch 'docs/FreeRTOS_SMP_Changes' into 'master'
Jeroen Domburg [Thu, 21 Sep 2017 09:10:33 +0000 (17:10 +0800)]
Merge branch 'docs/FreeRTOS_SMP_Changes' into 'master'

docs: Added documentation for FreeRTOS SMP changes

See merge request !1238

7 years agodocs: Added documentation for FreeRTOS SMP changes
Darian Leung [Fri, 8 Sep 2017 11:50:15 +0000 (19:50 +0800)]
docs: Added documentation for FreeRTOS SMP changes

Added documentation about the ESP-IDF changes to FreeRTOS.
The documentation covers changes to the following FreeRTOS aspects.

    - Task Creation
    - Affects on scheduling (Task skipping, scheduler suspension, tick synchronicity)
    - Critical sections and disabling interrupts
    - Thread Local Storage Pointers and deletion callbacks
    - Configuring ESP-IDF FreeRTOS

7 years agoMerge branch 'feature/scan_optimize' into 'master'
Ivan Grokhotkov [Thu, 21 Sep 2017 08:31:47 +0000 (16:31 +0800)]
Merge branch 'feature/scan_optimize' into 'master'

WiFi: optimize scan feature

See merge request !1267

7 years agodoc: Add steps to update Windows environment installations
Angus Gratton [Thu, 21 Sep 2017 01:15:09 +0000 (11:15 +1000)]
doc: Add steps to update Windows environment installations

7 years agocomponent/bt : support bluetooth controller DRAM release dynamically
Tian Hao [Tue, 19 Sep 2017 12:10:35 +0000 (20:10 +0800)]
component/bt : support bluetooth controller DRAM release dynamically

1. remove CONFIG_BT_DRAM_RELEASE from Kconfig
2. add API to release bluetooth controller DRAM to heap

7 years agoWiFi: optimize scan feature
Deng Xin [Thu, 14 Sep 2017 13:27:26 +0000 (21:27 +0800)]
WiFi: optimize scan feature
1. Add all channel scan feature
2. Add sort matched SSID by authmode feature

7 years agoMerge branch 'bugfix/apptrace_down_buf_init' into 'master'
Ivan Grokhotkov [Thu, 21 Sep 2017 04:37:40 +0000 (12:37 +0800)]
Merge branch 'bugfix/apptrace_down_buf_init' into 'master'

esp32: Fixes double initialization of apptrace down ring buffer in dual core mode

See merge request !1274

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

This error prevented EXT1 wakeup using GPIO26 from working.

7 years agoMerge branch 'bugfix/spiffs_debug' into 'master'
Angus Gratton [Wed, 20 Sep 2017 23:24:43 +0000 (07:24 +0800)]
Merge branch 'bugfix/spiffs_debug' into 'master'

Fix typo in spiffs config

See merge request !1287

7 years agoMerge branch 'bugfix/minor_fixes_github' into 'master'
Angus Gratton [Wed, 20 Sep 2017 23:21:32 +0000 (07:21 +0800)]
Merge branch 'bugfix/minor_fixes_github' into 'master'

Minor fixes from github

See merge request !1292

7 years agoMerge branch 'bugfix/eclipse_cpp_headers' into 'master'
Angus Gratton [Wed, 20 Sep 2017 23:20:49 +0000 (07:20 +0800)]
Merge branch 'bugfix/eclipse_cpp_headers' into 'master'

Fix CDT GCC parser to correctly parse C++ commands (github)

See merge request !1291

7 years agoFix typo in spiffs config and update submodule
me-no-dev [Tue, 19 Sep 2017 09:09:20 +0000 (17:09 +0800)]
Fix typo in spiffs config and update submodule

Fixes github issues #1012 and #1013

https://github.com/espressif/esp-idf/issues/1012
https://github.com/espressif/esp-idf/issues/1013

7 years agocomponent/bt: Change the cmpl_evt command in the bta_gattc_read_cmpl function.
Yulong [Wed, 20 Sep 2017 08:28:52 +0000 (04:28 -0400)]
component/bt: Change the cmpl_evt command in the bta_gattc_read_cmpl function.

7 years agobuild system tests: Don't unix2dos .git files, build directories
Angus Gratton [Wed, 20 Sep 2017 08:21:29 +0000 (18:21 +1000)]
build system tests: Don't unix2dos .git files, build directories

7 years agobuild system: Fix bad partial builds after updates, sdkconfig changes
Angus Gratton [Wed, 20 Sep 2017 07:38:54 +0000 (17:38 +1000)]
build system: Fix bad partial builds after updates, sdkconfig changes

Fixes accidental regression merging 9903ea1c1102.

Add test case for this kind of rebuilding.

7 years agoMerge branch 'bugfix/lwip_tcp_oversize_assert' into 'master'
Angus Gratton [Wed, 20 Sep 2017 02:16:47 +0000 (10:16 +0800)]
Merge branch 'bugfix/lwip_tcp_oversize_assert' into 'master'

fix lwip tcp_oversize_dbgcheck assert

See merge request !1260

7 years agoImproved `uart_flush()` documentation.
Simon Werner [Thu, 7 Sep 2017 23:08:34 +0000 (11:08 +1200)]
Improved `uart_flush()` documentation.

Improved `uart_flush()` documentation based on this discussion: https://esp32.com/viewtopic.php?f=13&t=2804&p=13377&hilit=uart_flush#p13373

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

7 years agoopenssl_client, openssl_server example: Fix misspelling of PRIORITY in OPENSSL_EXAMPL...
Chris Morgan [Tue, 22 Aug 2017 20:27:57 +0000 (16:27 -0400)]
openssl_client, openssl_server example: Fix misspelling of PRIORITY in OPENSSL_EXAMPLE_TASK_PRIORITY

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

7 years agoFix CDT GCC parser to correctly parse C++ commands
dziekon [Fri, 15 Sep 2017 22:02:33 +0000 (00:02 +0200)]
Fix CDT GCC parser to correctly parse C++ commands

Previously suggested parser command pattern:

xtensa-esp32-elf-(g?cc)|([gc]\+\+)|(clang)

was incorrect for compilation of c++ files, as it is expanded by Eclipse into or between:

xtensa-esp32-elf-(g?cc)
([gc]\+\+)
(clang)

Additional grouping around existing pattern solves that issue, and helps Eclipse to correctly find ESP-IDF includes.

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

7 years agoMerge branch 'bugfix/spi_temp_buffer_32bit_alignment' into 'master'
Jeroen Domburg [Tue, 19 Sep 2017 14:25:35 +0000 (22:25 +0800)]
Merge branch 'bugfix/spi_temp_buffer_32bit_alignment' into 'master'

fix(spi master, sdspi): fix the heap corruption bug that RX DMA writes over the temporary buffer boundary.

See merge request !1285

7 years agocomponent/bt : fix bluetooth controller enable limit && release memory when de-initia...
Tian Hao [Tue, 12 Sep 2017 14:36:17 +0000 (22:36 +0800)]
component/bt : fix bluetooth controller enable limit && release memory when de-initialize bluetooth controller

1. fix bluetooth controller enable limit
2. release memory when de-initialize bluetooth controller
3. fix heap_caps_add_region limit

7 years agofix(sdspi): fix issues causing the sdspi driver to work low efficiently with DMA.
michael [Tue, 19 Sep 2017 08:43:31 +0000 (16:43 +0800)]
fix(sdspi): fix issues causing the sdspi driver to work low efficiently with DMA.

7 years agocomponent/bt: Fixed the bug of mutiple read can not callback.
Yulong [Tue, 19 Sep 2017 08:50:26 +0000 (04:50 -0400)]
component/bt: Fixed the bug of mutiple read can not callback.

7 years agofix(spi_master): fix the heap corruption bug that RX DMA writes over the temporary...
michael [Fri, 15 Sep 2017 08:19:11 +0000 (16:19 +0800)]
fix(spi_master): fix the heap corruption bug that RX DMA writes over the temporary buffer boundary.

TW#15434

Closes #994.

7 years agoMerge branch 'bugfix/nvs_init_deinit' into 'master'
Ivan Grokhotkov [Tue, 19 Sep 2017 04:17:39 +0000 (12:17 +0800)]
Merge branch 'bugfix/nvs_init_deinit' into 'master'

nvs: fix bug that NVS is not initialized after init failure, add deinit functions

See merge request !1282

7 years agocomponent/bt: Fiexd the bug of the gattc cannot get the db properties.
Yulong [Tue, 19 Sep 2017 03:15:32 +0000 (23:15 -0400)]
component/bt: Fiexd the bug of the gattc cannot get the db properties.

7 years agonvs_flash: emulator: fix issues in load function, add save function
Ivan Grokhotkov [Mon, 18 Sep 2017 14:43:03 +0000 (22:43 +0800)]
nvs_flash: emulator: fix issues in load function, add save function

7 years agounit-test-app: initialize partition table info before starting the test
Ivan Grokhotkov [Mon, 18 Sep 2017 14:41:58 +0000 (22:41 +0800)]
unit-test-app: initialize partition table info before starting the test

7 years agonvs_flash: delete Storage if init fails
Ivan Grokhotkov [Mon, 18 Sep 2017 14:34:16 +0000 (22:34 +0800)]
nvs_flash: delete Storage if init fails

Previously, nvs_flash_init_custom would not be called if Storage for a
particular partition was already created. This caused issues if the
first call to nvs_flash_init failed due to Storage init error. This issue
exhibited itself as random failures of NVS CI test.

With this change, storage object is deleted (and not added to storage
list) if initialization fails.

7 years agonvs_flash: add functions to deinitialize storage
Ivan Grokhotkov [Mon, 18 Sep 2017 14:30:21 +0000 (22:30 +0800)]
nvs_flash: add functions to deinitialize storage

7 years agoMerge branch 'bugfix/minor_nvs_remove_unused_header' into 'master'
Ivan Grokhotkov [Tue, 19 Sep 2017 00:29:58 +0000 (08:29 +0800)]
Merge branch 'bugfix/minor_nvs_remove_unused_header' into 'master'

nvs: minor - removed unused header inclusion

See merge request !1279

7 years agoMerge branch 'feature/toolchain-update' into 'master'
Ivan Grokhotkov [Mon, 18 Sep 2017 11:32:39 +0000 (19:32 +0800)]
Merge branch 'feature/toolchain-update' into 'master'

make,docs: update toolchain

See merge request !1269

7 years agonvs: minor - removed unused header inclusion
Amey Inamdar [Mon, 18 Sep 2017 11:32:32 +0000 (17:02 +0530)]
nvs: minor - removed unused header inclusion

Signed-off-by: Amey Inamdar <amey.inamdar@gmail.com>
7 years agoMerge branch 'feature/btdm_cherry_pick_ble_new_api' into 'master'
Jiang Jiang Jian [Mon, 18 Sep 2017 10:17:11 +0000 (18:17 +0800)]
Merge branch 'feature/btdm_cherry_pick_ble_new_api' into 'master'

Feature/btdm cherry pick ble new api

See merge request !1113

7 years agocomponnent/bt: remove the <<<<<<< HEAD in the code.
Yulong [Mon, 18 Sep 2017 09:44:50 +0000 (05:44 -0400)]
componnent/bt: remove the  <<<<<<< HEAD in the code.

7 years agosquash again
Yulong [Tue, 15 Aug 2017 03:24:36 +0000 (23:24 -0400)]
squash again
squash the commit.
component/bt:Added the update_white_list & set_prefer_conn_params API to the bt project.

component/bt: Added the get white list size API & delete the read adv tx power API.

component/bt: Change the esp_gap_ble_api.h esp_ble_gap_set_prefer_conn_params API docs.

changed btm_find_dev to btm_find_or_alloc_dev

component/bt: Change the rssi API deep copy method.

component/bt: Change the code as comment in the gitlab.

squash the commit.
component/bt:Added the update_white_list & set_prefer_conn_params API to the bt project.

component/bt: Added the get white list size API & delete the read adv tx power API.

component/bt: Change the esp_gap_ble_api.h esp_ble_gap_set_prefer_conn_params API docs.

changed btm_find_dev to btm_find_or_alloc_dev

component/bt: Change the rssi API deep copy method.

component/bt: Change the code as comment in the gitlab.

component/bt: change the ESP_BLE_CONN_PARAM_UNDEF redefinition error.

component/bt: Change the ESP_BLE_IS_VALID_PARAM function with the compile error.

7 years agowindows: Update windows prereq script & precompiled environment download
Angus Gratton [Mon, 18 Sep 2017 08:26:57 +0000 (18:26 +1000)]
windows: Update windows prereq script & precompiled environment download

7 years agoMerge branch 'feature/log_buffer' into 'master'
Ivan Grokhotkov [Mon, 18 Sep 2017 07:02:34 +0000 (15:02 +0800)]
Merge branch 'feature/log_buffer' into 'master'

feat(log): add new function to log buffer with level.

See merge request !1150

7 years agomulti_heap_poisoning: Use MULTI_HEAP_STDERR_PRINTF (ets_printf) to print heap errors
Angus Gratton [Mon, 18 Sep 2017 06:54:28 +0000 (16:54 +1000)]
multi_heap_poisoning: Use MULTI_HEAP_STDERR_PRINTF (ets_printf) to print heap errors

Needed because normal printf() can trigger a malloc() (for standard stream locks) which
then re-triggers this check.

7 years agomulti_heap: Print the problem address when aborting due to heap corruption
Angus Gratton [Mon, 18 Sep 2017 04:51:51 +0000 (14:51 +1000)]
multi_heap: Print the problem address when aborting due to heap corruption

New multi_heap code has proven effective at aborting when buffer overruns occur,
but it's currently hard to debug the stack traces from these failures.

7 years agofeat(log): add new function to log buffer with level and hex dump.
michael [Mon, 21 Aug 2017 14:03:53 +0000 (22:03 +0800)]
feat(log): add new function to log buffer with level and hex dump.

7 years agomake,docs: update toolchain to 1.22.0-72-g4d49225
Ivan Grokhotkov [Fri, 15 Sep 2017 01:24:27 +0000 (09:24 +0800)]
make,docs: update toolchain to 1.22.0-72-g4d49225

7 years agoMerge branch 'feature/partition_table_expand_line' into 'master'
Angus Gratton [Mon, 18 Sep 2017 01:18:25 +0000 (09:18 +0800)]
Merge branch 'feature/partition_table_expand_line' into 'master'

partition_table: Expand vars before splitting fields (github #841)

See merge request !1174

7 years agoesp32: Fixes double initialization of apptrace down ring buffer in dual core mode
Alexey Gerenkov [Fri, 15 Sep 2017 19:40:01 +0000 (22:40 +0300)]
esp32: Fixes double initialization of apptrace down ring buffer in dual core mode

Additional minor fixes:
 - Host file I/O code warnings
 - Initialization of down buffer for GCOV