]> granicus.if.org Git - esp-idf/log
esp-idf
5 years agotest: clean up "leaks" tags from most unit tests
Ivan Grokhotkov [Mon, 15 Apr 2019 13:07:38 +0000 (21:07 +0800)]
test: clean up "leaks" tags from most unit tests

5 years agoMerge branch 'bugfix/freemodbus_fix_incorrect_read_coil_event' into 'master'
Ivan Grokhotkov [Mon, 15 Apr 2019 11:41:49 +0000 (19:41 +0800)]
Merge branch 'bugfix/freemodbus_fix_incorrect_read_coil_event' into 'master'

freemodbus: fix incorrectly set coils read event in modbus controller

See merge request idf/esp-idf!4749

5 years agoMerge branch 'feature/btdm_AVRCP_TG' into 'master'
Jiang Jiang Jian [Mon, 15 Apr 2019 10:53:51 +0000 (18:53 +0800)]
Merge branch 'feature/btdm_AVRCP_TG' into 'master'

component/bt: implement AVRCP Target APIs

See merge request idf/esp-idf!3899

5 years agoMerge branch 'feature/add_support_for_signal_test' into 'master'
Jiang Jiang Jian [Mon, 15 Apr 2019 09:45:01 +0000 (17:45 +0800)]
Merge branch 'feature/add_support_for_signal_test' into 'master'

esp_wifi:  add support for signal test

Closes WIFI-324

See merge request idf/esp-idf!4717

5 years agoMerge branch 'bugfix/fix_deprecated_warning_with_dfs_init_auto_config' into 'master'
Ivan Grokhotkov [Mon, 15 Apr 2019 07:57:49 +0000 (15:57 +0800)]
Merge branch 'bugfix/fix_deprecated_warning_with_dfs_init_auto_config' into 'master'

cpu_start: fix warnings with CONFIG_PM_DFS_INIT_AUTO option

See merge request idf/esp-idf!4761

5 years agoMerge branch 'feature/esp_event_loop_examples_protocols' into 'master'
Ivan Grokhotkov [Mon, 15 Apr 2019 07:54:22 +0000 (15:54 +0800)]
Merge branch 'feature/esp_event_loop_examples_protocols' into 'master'

examples/protocols: move Wi-Fi connection code into helper component, support Ethernet

See merge request idf/esp-idf!3766

5 years agoMerge branch 'doc/move_WiFi_Kconfig' into 'master'
Ivan Grokhotkov [Mon, 15 Apr 2019 04:00:59 +0000 (12:00 +0800)]
Merge branch 'doc/move_WiFi_Kconfig' into 'master'

move WiFi-specific Kconfig to esp-wifi component

See merge request idf/esp-idf!4736

5 years agoexamples/protocols/mdns: use common network component
Ivan Grokhotkov [Wed, 21 Nov 2018 05:52:08 +0000 (13:52 +0800)]
examples/protocols/mdns: use common network component

5 years agoexamples/protocols/asio: use common network component
Ivan Grokhotkov [Tue, 20 Nov 2018 16:44:31 +0000 (00:44 +0800)]
examples/protocols/asio: use common network component

5 years agoexamples/protocols/coap: use common network component
Ivan Grokhotkov [Tue, 20 Nov 2018 16:43:52 +0000 (00:43 +0800)]
examples/protocols/coap: use common network component

5 years agoexamples/protocols/esp_http_client: use common network component
Ivan Grokhotkov [Tue, 20 Nov 2018 16:43:40 +0000 (00:43 +0800)]
examples/protocols/esp_http_client: use common network component

5 years agoexamples/protocols/http(s,2)_request: use common network component
Ivan Grokhotkov [Thu, 11 Apr 2019 10:54:26 +0000 (18:54 +0800)]
examples/protocols/http(s,2)_request: use common network component

5 years agoexamples/protocols/http(s)_server: use common network component
Ivan Grokhotkov [Tue, 20 Nov 2018 16:42:37 +0000 (00:42 +0800)]
examples/protocols/http(s)_server: use common network component

5 years agoexamples/protocols/mqtt: use common network component
Ivan Grokhotkov [Tue, 20 Nov 2018 16:42:03 +0000 (00:42 +0800)]
examples/protocols/mqtt: use common network component

5 years agoexamples/protocols/openssl: use common network component
Ivan Grokhotkov [Tue, 20 Nov 2018 16:41:45 +0000 (00:41 +0800)]
examples/protocols/openssl: use common network component

5 years agoexamples/protocols/sntp: use common network component
Ivan Grokhotkov [Tue, 20 Nov 2018 16:41:31 +0000 (00:41 +0800)]
examples/protocols/sntp: use common network component

5 years agoexamples/protocols/sockets: use common network component
Ivan Grokhotkov [Tue, 20 Nov 2018 16:41:08 +0000 (00:41 +0800)]
examples/protocols/sockets: use common network component

5 years agoci: don’t look for project CMakeLists in common_components
Ivan Grokhotkov [Wed, 21 Nov 2018 05:54:09 +0000 (13:54 +0800)]
ci: don’t look for project CMakeLists in common_components

5 years agoexamples: add component for protocol examples network functionality
Ivan Grokhotkov [Tue, 20 Nov 2018 16:40:26 +0000 (00:40 +0800)]
examples: add component for protocol examples network functionality

5 years agofreemodbus: fix incorrectly set coils read event
aleks [Wed, 10 Apr 2019 15:45:22 +0000 (17:45 +0200)]
freemodbus: fix incorrectly set coils read event

incorrect set of the MB_EVENT_COILS_WR event is changed while read coils in mbcontroller.c file
added read/write handling for appropriate registers in freemodbus.c example file

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

5 years agocpu_start: fix warnings with CONFIG_PM_DFS_INIT_AUTO option
Mahavir Jain [Fri, 12 Apr 2019 10:03:33 +0000 (15:33 +0530)]
cpu_start: fix warnings with CONFIG_PM_DFS_INIT_AUTO option

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

5 years agoesp_wifi: add support for signal test
liu zhifu [Sat, 13 Apr 2019 04:38:33 +0000 (12:38 +0800)]
esp_wifi: add support for signal test

Add support for WiFi signal test

5 years agoMerge branch 'feat/spi_hal_support' into 'master'
Angus Gratton [Sun, 14 Apr 2019 23:57:11 +0000 (07:57 +0800)]
Merge branch 'feat/spi_hal_support' into 'master'

spi_master: refactor and add HAL support

See merge request idf/esp-idf!4159

5 years agoMerge branch 'bugfix/rename_ldgen_common_module' into 'master'
Jiang Jiang Jian [Sun, 14 Apr 2019 03:20:22 +0000 (11:20 +0800)]
Merge branch 'bugfix/rename_ldgen_common_module' into 'master'

ldgen: rename common module

See merge request idf/esp-idf!4758

5 years agoldgen: rename common module
Renz Christian Bagaporo [Sat, 13 Apr 2019 00:59:32 +0000 (08:59 +0800)]
ldgen: rename common module

5 years agoMerge branch 'feature/wifi_refactor_softap_power_save' into 'master'
Jiang Jiang Jian [Fri, 12 Apr 2019 15:48:11 +0000 (23:48 +0800)]
Merge branch 'feature/wifi_refactor_softap_power_save' into 'master'

refactor softap power save

Closes WIFI-415 and IDF-81

See merge request idf/esp-idf!1905

5 years agoMerge branch 'bugfix/nvs_fix_erase_any' into 'master'
Jiang Jiang Jian [Fri, 12 Apr 2019 15:04:10 +0000 (23:04 +0800)]
Merge branch 'bugfix/nvs_fix_erase_any' into 'master'

nvs_flash: Multi-page blob erased using nvs_erase_key should be cleaned properly

See merge request idf/esp-idf!4634

5 years agoMerge branch 'bugfix/btdm_fix_memory_leak_when_set_txpwr' into 'master'
Jiang Jiang Jian [Fri, 12 Apr 2019 15:00:44 +0000 (23:00 +0800)]
Merge branch 'bugfix/btdm_fix_memory_leak_when_set_txpwr' into 'master'

component/bt: fix memory leak when settig tx power

See merge request idf/esp-idf!4712

5 years agoMerge branch 'bugfix/improve_spi_timing_for_psram_and_flash' into 'master'
Jiang Jiang Jian [Fri, 12 Apr 2019 14:57:04 +0000 (22:57 +0800)]
Merge branch 'bugfix/improve_spi_timing_for_psram_and_flash' into 'master'

bugfix(psram): improve spi cs timing settings for psram

See merge request idf/esp-idf!4641

5 years agoMerge branch 'feat/example_sdio_over_spi' into 'master'
Ivan Grokhotkov [Fri, 12 Apr 2019 08:12:57 +0000 (16:12 +0800)]
Merge branch 'feat/example_sdio_over_spi' into 'master'

sdio: support SDIO over spi

See merge request idf/esp-idf!3069

5 years agoMerge branch 'feature/move_aws_iot_to_independent_repository' into 'master'
Angus Gratton [Fri, 12 Apr 2019 08:06:38 +0000 (16:06 +0800)]
Merge branch 'feature/move_aws_iot_to_independent_repository' into 'master'

aws_iot: moving AWS IoT to independent repository

See merge request idf/esp-idf!4624

5 years agoMerge branch 'feature/esp_event_loop_examples_wifi' into 'master'
Ivan Grokhotkov [Fri, 12 Apr 2019 05:55:15 +0000 (13:55 +0800)]
Merge branch 'feature/esp_event_loop_examples_wifi' into 'master'

examples/wifi,ethernet,system: use esp_event library for event handling

See merge request idf/esp-idf!3765

5 years agoMerge branch 'feature/esp_event_loop_library_compat_base' into 'master'
Ivan Grokhotkov [Fri, 12 Apr 2019 05:54:18 +0000 (13:54 +0800)]
Merge branch 'feature/esp_event_loop_library_compat_base' into 'master'

Implement Wi-Fi, Ethernet, IP event handling based on esp_event library

Closes IDF-37 and IDF-267

See merge request idf/esp-idf!3635

5 years agoaws_iot: moving AWS IoT to independent repository
Mahavir Jain [Mon, 25 Mar 2019 16:00:26 +0000 (21:30 +0530)]
aws_iot: moving AWS IoT to independent repository

Like other cloud frameworks, AWS IoT will also be supported through
independent repository, https://github.com/espressif/esp-aws-iot

5 years agoMerge branch 'bugfix/enb_secboot_post_flash_enc' into 'master'
Angus Gratton [Fri, 12 Apr 2019 05:33:50 +0000 (13:33 +0800)]
Merge branch 'bugfix/enb_secboot_post_flash_enc' into 'master'

Enable secure boot only after encrypting flash

Closes IDF-234

See merge request idf/esp-idf!4709

5 years agoMerge branch 'feature/unit_test_tag_leaks' into 'master'
Angus Gratton [Fri, 12 Apr 2019 01:31:23 +0000 (09:31 +0800)]
Merge branch 'feature/unit_test_tag_leaks' into 'master'

Add support a [leaks] tag for UT

Closes IDF-143

See merge request idf/esp-idf!4333

5 years agoAdd support a [leaks] tag for UT
Konstantin Kondrashov [Fri, 12 Apr 2019 01:31:23 +0000 (09:31 +0800)]
Add support a [leaks] tag for UT

5 years agosdio: support SDIO over spi in the example
Michael (XIAO Xufeng) [Thu, 23 Aug 2018 12:43:07 +0000 (20:43 +0800)]
sdio: support SDIO over spi in the example

5 years agosdmmc: support SDIO over SPI
michael [Fri, 28 Dec 2018 18:04:37 +0000 (02:04 +0800)]
sdmmc: support SDIO over SPI

5 years agorefactor softap power save
XiaXiaotian [Mon, 5 Feb 2018 04:16:59 +0000 (12:16 +0800)]
refactor softap power save

    1. Softap support multicast and broadcast saving and flushing
    when the associated stations enable IEEE80211 legacy power
    save(which is called modem sleep in ESP32).
    2. Improve the frame saving and flushing mechanism of softap power
    save.

5 years agoMerge branch 'doc/review_system_log-index' into 'master'
Krzysztof Budzynski [Thu, 11 Apr 2019 07:33:39 +0000 (15:33 +0800)]
Merge branch 'doc/review_system_log-index' into 'master'

Review log.rst and index.rst files in api-reference/system

See merge request idf/esp-idf!4738

5 years agoReview log.rst and index.rst files in api-reference/system
Kirill Chalov [Thu, 11 Apr 2019 07:33:38 +0000 (15:33 +0800)]
Review log.rst and index.rst files in api-reference/system

5 years agomake esp_wifi component depend on CONFIG_NO_BLOBS
suda-morris [Thu, 11 Apr 2019 04:47:44 +0000 (12:47 +0800)]
make esp_wifi component depend on CONFIG_NO_BLOBS

If CONFIG_NO_BLOBS is enabled, esp_wifi won't link wifi library.

5 years agomove WiFi-specific Kconfig to esp-wifi component
suda-morris [Tue, 9 Apr 2019 06:12:47 +0000 (14:12 +0800)]
move WiFi-specific Kconfig to esp-wifi component

1. separate Kconfig from esp32 component
2. modify component.mk for esp_wifi a little bit to make it depend on IDF_TARGET

5 years agoexamples/wifi: use esp_event library to handle events
Ivan Grokhotkov [Tue, 20 Nov 2018 10:26:53 +0000 (18:26 +0800)]
examples/wifi: use esp_event library to handle events

5 years agoexamples/system: use esp_event library to handle events
Ivan Grokhotkov [Tue, 20 Nov 2018 10:25:25 +0000 (18:25 +0800)]
examples/system: use esp_event library to handle events

5 years agoexamples/ethernet: use esp_event library to handle events
Ivan Grokhotkov [Tue, 20 Nov 2018 10:24:49 +0000 (18:24 +0800)]
examples/ethernet: use esp_event library to handle events

5 years agoMerge branch 'feature/gcc8_use_bundled_newlib' into 'master'
Ivan Grokhotkov [Thu, 11 Apr 2019 04:19:29 +0000 (12:19 +0800)]
Merge branch 'feature/gcc8_use_bundled_newlib' into 'master'

Use newlib headers and libraries from toolchain when compiling with GCC 8.2

See merge request idf/esp-idf!4450

5 years agowifi: don’t disable event handling for SoftAP
Ivan Grokhotkov [Tue, 9 Apr 2019 04:09:56 +0000 (12:09 +0800)]
wifi: don’t disable event handling for SoftAP

Events are needed to initialise the tcpip_adapter and start the DHCP server

5 years agoesp_event: don’t warn if no handlers are present for specific event
Ivan Grokhotkov [Mon, 8 Apr 2019 11:31:37 +0000 (19:31 +0800)]
esp_event: don’t warn if no handlers are present for specific event

5 years agotcpip_adapter: unregister shutdown handlers, don’t fail on repeated registration
Ivan Grokhotkov [Mon, 8 Apr 2019 11:30:32 +0000 (19:30 +0800)]
tcpip_adapter: unregister shutdown handlers, don’t fail on repeated registration

5 years agosystem_api: return error on repeated registration of shutdown handler
Ivan Grokhotkov [Mon, 8 Apr 2019 11:30:07 +0000 (19:30 +0800)]
system_api: return error on repeated registration of shutdown handler

5 years agosystem_api: add esp_unregister_shutdown_handler
Ivan Grokhotkov [Mon, 8 Apr 2019 11:29:44 +0000 (19:29 +0800)]
system_api: add esp_unregister_shutdown_handler

5 years agoevent: re-add wifi disconnect reason logging (e621e0af)
Ivan Grokhotkov [Tue, 25 Dec 2018 07:44:14 +0000 (15:44 +0800)]
event: re-add wifi disconnect reason logging (e621e0af)

5 years agodocs: add event handling API guide
Ivan Grokhotkov [Wed, 21 Nov 2018 07:56:06 +0000 (15:56 +0800)]
docs: add event handling API guide

5 years agomdns: use esp_event library to handle events
Ivan Grokhotkov [Wed, 21 Nov 2018 05:46:45 +0000 (13:46 +0800)]
mdns: use esp_event library to handle events

5 years agoevent loop: re-implement based on esp_event library
Ivan Grokhotkov [Tue, 6 Nov 2018 03:09:32 +0000 (11:09 +0800)]
event loop: re-implement based on esp_event library

Includes ds2ds unit test fix, iperf example test fix

5 years agotcpip_adapter: add event declarations
Ivan Grokhotkov [Tue, 25 Dec 2018 07:28:56 +0000 (15:28 +0800)]
tcpip_adapter: add event declarations

5 years agoethernet: add event declarations
Ivan Grokhotkov [Thu, 23 Aug 2018 09:50:29 +0000 (17:50 +0800)]
ethernet: add event declarations

5 years agowifi: add event declarations
Ivan Grokhotkov [Thu, 23 Aug 2018 09:50:16 +0000 (17:50 +0800)]
wifi: add event declarations

5 years agoesp_event: move trailing semicolons out of defines
Ivan Grokhotkov [Mon, 19 Nov 2018 08:54:57 +0000 (16:54 +0800)]
esp_event: move trailing semicolons out of defines

5 years agoMerge branch 'bugfix/wifi_spike_power' into 'master'
Jiang Jiang Jian [Thu, 11 Apr 2019 03:49:26 +0000 (11:49 +0800)]
Merge branch 'bugfix/wifi_spike_power' into 'master'

esp32: fix the issue that the spike transmit power of WiFi is higher than configured when WiFi and Bluetooth coexist

See merge request idf/esp-idf!4611

5 years agoMerge branch 'feature/post_events_from_isr' into 'master'
Angus Gratton [Thu, 11 Apr 2019 01:15:13 +0000 (09:15 +0800)]
Merge branch 'feature/post_events_from_isr' into 'master'

Support posting events from ISR

See merge request idf/esp-idf!4283

5 years agopthread: Use a definition only if we have the old toolchain
Anton Maklakov [Wed, 10 Apr 2019 14:05:10 +0000 (21:05 +0700)]
pthread: Use a definition only if we have the old toolchain

5 years agoEnable secure boot only after encrypting flash
Anurag Kar [Thu, 4 Apr 2019 09:55:22 +0000 (15:25 +0530)]
Enable secure boot only after encrypting flash

This prevents a device from being bricked in case when both secure boot & flash encryption are enabled and encryption gets interrupted during first boot. After interruption, all partitions on the device need to be reflashed (including the bootloader).

List of changes:
* Secure boot key generation and bootloader digest generation logic, implemented inside function esp_secure_boot_permanently_enable(), has been pulled out into new API esp_secure_boot_generate_digest(). The enabling of R/W protection of secure boot key on EFUSE still happens inside esp_secure_boot_permanently_enable()
* Now esp_secure_boot_permanently_enable() is called only after flash encryption process completes
* esp_secure_boot_generate_digest() is called before flash encryption process starts

5 years agonvs_flash: Multi-page blob erased using nvs_erase_key should be cleaned properly
negativekelvin [Wed, 27 Mar 2019 14:44:56 +0000 (20:14 +0530)]
nvs_flash: Multi-page blob erased using nvs_erase_key should be cleaned properly

Earlier eraseItem function in Storage class would do lazy cleanup of
multi-page blobs if called using type "ANY" instead of "BLOB". It used to
just delete BLOB data and index would remain as is. Any subsequent read
would delete index entry as well. This however would return a valid
length without error if nvs_get_blob API was just used for finding
length and not reading the complete blob. This change fixes this issue.

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

5 years agoesp_event: test posting from interrupt handler
Renz Christian Bagaporo [Tue, 12 Mar 2019 13:53:39 +0000 (21:53 +0800)]
esp_event: test posting from interrupt handler

5 years agoesp_event: allow posting events from ISRs
Renz Christian Bagaporo [Fri, 15 Feb 2019 13:28:24 +0000 (21:28 +0800)]
esp_event: allow posting events from ISRs

5 years agoci: add unit test job
Renz Christian Bagaporo [Wed, 10 Apr 2019 01:00:35 +0000 (09:00 +0800)]
ci: add unit test job

5 years agocomponents/bt: Fix errors caused by rebase
baohongde [Wed, 10 Apr 2019 09:59:23 +0000 (17:59 +0800)]
components/bt: Fix errors caused by rebase

5 years agocomponent/bt: implement AVRCP Target APIs
wangmengyang [Fri, 21 Dec 2018 09:04:21 +0000 (17:04 +0800)]
component/bt: implement AVRCP Target APIs

1. Add more notification events to the enum according to the event list in AVRCP specification.
2. Add API and callback events for basic AVRCP target functionalities to do init, deinit, callback-registration, connection status indication.
3. Implement API to set/get supported PASSTHROUGH command on local AVRCP TG, implement callback events for remote passthrough command indication.
4. Implement API to set/get supported notification eventIDs on local AVRCP TG, implement API to send event notifications to remote CT. \
   Currently supported event in TG only includes ESP_AVRC_RN_VOLUME_CHANGE(0xd), which can be extended in later commits.
5. Implement callback events for SetAbsoluteVolume command indication on TG.
6. Add limitation of event_ids supported in RegisterNotification command in CT. The supported event_ids include: \
   ESP_AVRC_RN_PLAY_STATUS_CHANGE(0x1), ESP_AVRC_RN_TRACK_CHANGE(0x2), ESP_AVRC_RN_PLAY_POS_CHANGE(0x5), ESP_AVRC_RN_VOLUME_CHANGE(0xd).
7. Add feature bit mask in parameter of callback event ESP_AVRC_CT_REMOTE_FEATURES_EVT for peer feature information got from SDP.
8. Add API and callback event to AVRCP CT to retrieve remote TG's supported notification event capabilities.
9. Modify data type for parameter of callback event ESP_AVRC_CT_CHANGE_NOTIFY_EVT.
10. Change AVRCP version from 1.3 to 1.4 for compatibility cause in using AbsoluteVolume feature.
11. Modify local AVRCP device to be category 1 as CT and category 2 as TG that applies to bluetooth headphones or speakers.
12. Update the use of AVRCP APIs and events in the two examples: a2dp_sink and a2dp_gatts_coex, which include the demo of volume control and notification.

5 years agoMerge branch 'bugfix/http_client_redirection' into 'master'
Angus Gratton [Wed, 10 Apr 2019 06:48:22 +0000 (14:48 +0800)]
Merge branch 'bugfix/http_client_redirection' into 'master'

Fix url redirection issue

See merge request idf/esp-idf!4623

5 years agoesp32: disable -Wframe-address
Anton Maklakov [Tue, 9 Apr 2019 03:14:31 +0000 (10:14 +0700)]
esp32: disable -Wframe-address

Since the behavior is well defined on Xtensa with Window ABI we can
suppress a frame-address warning. Also fix the CMAKE_C*_FLAGS parsing.

5 years agonewlib: when compiling with GCC8, use newlib headers and libraries from toolchain
Ivan Grokhotkov [Mon, 1 Apr 2019 07:21:12 +0000 (15:21 +0800)]
newlib: when compiling with GCC8, use newlib headers and libraries from toolchain

5 years agonewlib: force including IDF locks implementation
Ivan Grokhotkov [Mon, 18 Mar 2019 03:47:00 +0000 (11:47 +0800)]
newlib: force including IDF locks implementation

5 years agonewlib: when compiling with GCC8, use newlib headers and libraries from toolchain
Ivan Grokhotkov [Fri, 8 Mar 2019 07:07:50 +0000 (15:07 +0800)]
newlib: when compiling with GCC8, use newlib headers and libraries from toolchain

5 years agoesp_rom: don’t include locale functions when compiling with newlib 3
Ivan Grokhotkov [Fri, 29 Mar 2019 04:37:51 +0000 (12:37 +0800)]
esp_rom: don’t include locale functions when compiling with newlib 3

5 years agoesp_rom: export newlib functions as strong symbols
Ivan Grokhotkov [Sun, 10 Mar 2019 14:12:34 +0000 (22:12 +0800)]
esp_rom: export newlib functions as strong symbols

5 years agopthread: add dummy implementation of pthread_setcancelstate
Ivan Grokhotkov [Fri, 8 Mar 2019 07:07:00 +0000 (15:07 +0800)]
pthread: add dummy implementation of pthread_setcancelstate

Used by new versions of newlib in stdio functions.

5 years agonewlib: fixes for compatibility with newlib 3.0
Ivan Grokhotkov [Thu, 28 Mar 2019 11:22:37 +0000 (19:22 +0800)]
newlib: fixes for compatibility with newlib 3.0

5 years agonewlib: add missing tzset() to the time test
Ivan Grokhotkov [Fri, 29 Mar 2019 04:38:06 +0000 (12:38 +0800)]
newlib: add missing tzset() to the time test

5 years agosysview: fix test case for compatibility with new binutils
Anton Maklakov [Tue, 9 Apr 2019 05:26:59 +0000 (12:26 +0700)]
sysview: fix test case for compatibility with new binutils

Since the ‘addr2line’ works correctly in the new version of binutils,
line numbers are different.

5 years agospi_master: compile as C11 due to use of stdatomic.h
Ivan Grokhotkov [Fri, 8 Mar 2019 06:57:00 +0000 (14:57 +0800)]
spi_master: compile as C11 due to use of stdatomic.h

stdatomic.h is available both in newlib and GCC include directories.
Normally (if you invoke the compiler without any flags) GCC include
directories are first on the list, so GCC’s stdatomic.h is used. In
IDF, we used to pass newlib include path as an extra include
directory, so newlib’s stdint.h got included instead.

Newlib 2.2.0 stdatomic implementation is compatible with -std=gnu99
but incompatible with -std=gnu11. And GCC doesn’t support atomic_load
with -std=gnu99 (it’s a C11 feature). So when we used atomic_load
with -std=gnu99, it worked due to newlib’s header.

Since we are no longer going to be including newlib headers into IDF,
GCC stdatomic will be used instead. Hence, add -std=gnu11 for source
files which use atomic features.

5 years agoFix url redirection issue.
Vikram Dattu [Tue, 26 Mar 2019 08:45:46 +0000 (16:45 +0800)]
Fix url redirection issue.

Operation:
In `esp_http_client_set_url`, we check for if old_host is same as new_host.
Delete and open new connection if host is different.

Issue:
We just pointed `client->connection_info.host` to `old_host` and reassigned it.
This made old_host and new_host always point to same location and hence, using old_host with new request.

Fix:
Made a separate copy for old_host using strdup.

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

Signed-off-by: Vikram Dattu <vikram.dattu@espressif.com>
5 years agoMerge branch 'bugfix/make_bootloader_depends_on_target' into 'master'
Angus Gratton [Wed, 10 Apr 2019 05:07:52 +0000 (13:07 +0800)]
Merge branch 'bugfix/make_bootloader_depends_on_target' into 'master'

make bootloader depend on IDF_TARGET

See merge request idf/esp-idf!4704

5 years agoesp32_wifi: fix the issue that the spike transmit power of WiFi is higher
XiaXiaotian [Mon, 25 Mar 2019 06:13:09 +0000 (14:13 +0800)]
esp32_wifi: fix the issue that the spike transmit power of WiFi is higher
than configured when WiFi and Bluetooth coexist

5 years agoMerge branch 'bugfix/increase_block_scan_timeout_value' into 'master'
Jiang Jiang Jian [Tue, 9 Apr 2019 12:45:21 +0000 (20:45 +0800)]
Merge branch 'bugfix/increase_block_scan_timeout_value' into 'master'

esp_wifi: increase block scan timeout value

Closes WIFI-396

See merge request idf/esp-idf!4695

5 years agobugfix(psram): improve spi cs timing settings for psram
Wangjialin [Thu, 28 Mar 2019 13:31:14 +0000 (21:31 +0800)]
bugfix(psram): improve spi cs timing settings for psram

1. remove redundant SPI clock settings, use rom functions to set clock.
2. remove redundant SPI cs setup and hold settings.
3. for old 32Mbit psram, cs hold time must only be 0.5T due to the special driving mode.(cs_setup = 0; cs_hold = 0)
4. for new 64Mbit psram, cs hold time is recommended to be 2.5T. (cs_setup = 1, cs_setup_time = 0;cs_hold = 1, cs_hold_time = 1)

5 years agoMerge branch 'bugfix/ws_transport_crash_on_connect_fail' into 'master'
Angus Gratton [Tue, 9 Apr 2019 02:19:47 +0000 (10:19 +0800)]
Merge branch 'bugfix/ws_transport_crash_on_connect_fail' into 'master'

transport_ws: Stop connecting when the parent's connect call has failed

See merge request idf/esp-idf!4701

5 years agoMerge branch 'bugfix/prov_fix_conn_id' into 'master'
Angus Gratton [Tue, 9 Apr 2019 01:28:18 +0000 (09:28 +0800)]
Merge branch 'bugfix/prov_fix_conn_id' into 'master'

Unified Provisioning: Miscellaneous fixes in BLE

See merge request idf/esp-idf!4691

5 years agoesp_wifi: increase WiFi block scan timeout value
liu zhifu [Mon, 8 Apr 2019 11:58:51 +0000 (19:58 +0800)]
esp_wifi: increase WiFi block scan timeout value

Increase WiFi block scan internal timeout value.

5 years agoMerge branch 'fix/mfg_util_todo_leftback' into 'master'
Angus Gratton [Tue, 9 Apr 2019 01:18:44 +0000 (09:18 +0800)]
Merge branch 'fix/mfg_util_todo_leftback' into 'master'

mfg_util: Remove to-do line leftback

See merge request idf/esp-idf!4707

5 years agoMerge branch 'bugfix/bootloader_flash_crypt_cnt_ff' into 'master'
Angus Gratton [Tue, 9 Apr 2019 00:10:06 +0000 (08:10 +0800)]
Merge branch 'bugfix/bootloader_flash_crypt_cnt_ff' into 'master'

flash encryption: reduce FLASH_CRYPT_CNT bit width to 7 bits

See merge request idf/esp-idf!4642

5 years agoMerge branch 'bugfix/wifi_fix_no_tbtt_after_rx_wrong_beacon' into 'master'
Jiang Jiang Jian [Mon, 8 Apr 2019 11:38:23 +0000 (19:38 +0800)]
Merge branch 'bugfix/wifi_fix_no_tbtt_after_rx_wrong_beacon' into 'master'

esp_wifi: fix the bug that no TBTT will be generated anymore after receiving wrong beacon when WiFi and BT coexist.

Closes IDF-589

See merge request idf/esp-idf!4716

5 years agomake bootloader depend on IDF_TARGET
suda-morris [Thu, 4 Apr 2019 07:20:24 +0000 (15:20 +0800)]
make bootloader depend on IDF_TARGET

5 years agoesp_wifi: fix the bug that no TBTT will be generated anymore after receiving
XiaXiaotian [Mon, 8 Apr 2019 02:36:29 +0000 (10:36 +0800)]
esp_wifi: fix the bug that no TBTT will be generated anymore after receiving
wrong beacon when WiFi and BT coexist.

5 years agoUnified Provisioning: Miscellaneous fixes in BLE
Hrishikesh Dhayagude [Wed, 3 Apr 2019 10:15:34 +0000 (15:45 +0530)]
Unified Provisioning: Miscellaneous fixes in BLE

1. Pass the correct conn_id to protocomm_req_handle
In transport_simple_ble_write(), passing param->exec_write.conn_id would
be invalid. Instead param->write.conn_id should be passed
Similar change in transport_simple_ble_exec_write() to use
param->exec_write.conn_id

2. simple_ble_start() assumes that the mode is BLE only and enables
Bluetooth controller accordingly. For, cases having BT + BLE like Alexa
(Provisioning over BLE + Audio over classic BT), this assumption should
be removed.

5 years agoMerge branch 'feature/common_fragment_grammar' into 'master'
Angus Gratton [Thu, 4 Apr 2019 23:19:22 +0000 (07:19 +0800)]
Merge branch 'feature/common_fragment_grammar' into 'master'

ldgen: Common fragment grammar

See merge request idf/esp-idf!4576

5 years agotransport_ws: Stop connecting when the parent's connect call has failed
Bas Verhoeven [Tue, 12 Mar 2019 09:44:27 +0000 (10:44 +0100)]
transport_ws: Stop connecting when the parent's connect call has failed

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

5 years agoMerge branch 'bugfix/coex_bt_disconn' into 'master'
Jiang Jiang Jian [Thu, 4 Apr 2019 12:53:04 +0000 (20:53 +0800)]
Merge branch 'bugfix/coex_bt_disconn' into 'master'

components/coex: Fix BT disconnecting due to too many reset BB

See merge request idf/esp-idf!4675