]> granicus.if.org Git - esp-idf/log
esp-idf
5 years agoMerge branch 'bugfix/mqtt_fragmented_packed_msg_3.2' into 'release/v3.2' v3.2 v3.2-rc
Ivan Grokhotkov [Mon, 25 Mar 2019 02:49:56 +0000 (10:49 +0800)]
Merge branch 'bugfix/mqtt_fragmented_packed_msg_3.2' into 'release/v3.2'

MQTT support for fragmented and packed messages (Backport 3.2)

See merge request idf/esp-idf!4593

5 years agotcp_transport: modification of ws to read headers first in order to read the exact...
David Cermak [Tue, 20 Nov 2018 02:31:19 +0000 (03:31 +0100)]
tcp_transport: modification of ws to read headers first in order to read the exact payload

closes https://github.com/espressif/esp-mqtt/issues/69

5 years agomqtt: support for BEFORE_CONNECT event in idf
David Cermak [Fri, 16 Nov 2018 10:42:58 +0000 (10:42 +0000)]
mqtt: support for BEFORE_CONNECT event in idf

Updated examples to use new event id, idf to use mqtt with fixed retained, oversized messages

5 years agoMerge branch 'bugfix/sphinx_build_failure_on_rtd_v3.2' into 'release/v3.2'
Krzysztof Budzynski [Thu, 21 Mar 2019 06:24:24 +0000 (14:24 +0800)]
Merge branch 'bugfix/sphinx_build_failure_on_rtd_v3.2' into 'release/v3.2'

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

See merge request idf/esp-idf!4554

5 years agoMerge branch 'bugfix/nvs_api_usage_in_simple_ota_example_v3.2' into 'release/v3.2'
Angus Gratton [Thu, 21 Mar 2019 05:06:48 +0000 (13:06 +0800)]
Merge branch 'bugfix/nvs_api_usage_in_simple_ota_example_v3.2' into 'release/v3.2'

Minor bugfix in simple ota example (backport v3.2)

See merge request idf/esp-idf!4584

5 years agobugfix(simple_ota): Compatible with V3.1 and V3.2
InfiniteYuan1 [Tue, 18 Dec 2018 03:50:33 +0000 (11:50 +0800)]
bugfix(simple_ota): Compatible with V3.1 and V3.2

(cherry picked from commit 0fa31d3e311e2e49b4a37ebf7c32cae2ee3070d4)

5 years agoMerge branch 'bugfix/btdm_fix_no_adv_report_when_scaning_with_sleep_enable_v3.2'...
Jiang Jiang Jian [Wed, 20 Mar 2019 14:03:12 +0000 (22:03 +0800)]
Merge branch 'bugfix/btdm_fix_no_adv_report_when_scaning_with_sleep_enable_v3.2' into 'release/v3.2'

Component/bt: fix no adv report when scanning with sleep enable(backport v3.2)

See merge request idf/esp-idf!4537

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. (backport v3.2)

5 years agoComponent/bt: fix no adv report when scanning with sleep enable
zhiweijian [Mon, 18 Mar 2019 09:32:09 +0000 (17:32 +0800)]
Component/bt: fix no adv report when scanning with sleep enable

5 years agoMerge branch 'bugfix/remove_malloc_ble_prov_v3.2' into 'release/v3.2'
Angus Gratton [Fri, 15 Mar 2019 06:29:30 +0000 (14:29 +0800)]
Merge branch 'bugfix/remove_malloc_ble_prov_v3.2' into 'release/v3.2'

(backport v3.2) Protocomm BLE: Make changes in handling BLE read/write requests

See merge request idf/esp-idf!4495

5 years agoMerge branch 'bugfix/console_allow_buffered_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Fri, 15 Mar 2019 06:03:29 +0000 (14:03 +0800)]
Merge branch 'bugfix/console_allow_buffered_v3.2' into 'release/v3.2'

console example: use buffered stdout by default (backport v3.2)

See merge request idf/esp-idf!4507

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 agoMerge branch 'feature/btdm_add_update_duplicate_scan_exceptional_list_apis_v3.2'...
Jiang Jiang Jian [Fri, 15 Mar 2019 02:46:57 +0000 (10:46 +0800)]
Merge branch 'feature/btdm_add_update_duplicate_scan_exceptional_list_apis_v3.2' into 'release/v3.2'

Component/bt: add update duplicate scan exceptional list APIs

See merge request idf/esp-idf!4494

5 years agoComponent/bt: add update duplicate scan exceptional list APIs
zhiweijian [Wed, 21 Nov 2018 07:45:48 +0000 (15:45 +0800)]
Component/bt: add update duplicate scan exceptional list APIs

5 years agoProtocomm BLE: Make changes in handling BLE read/write requests
Hrishikesh Dhayagude [Fri, 8 Mar 2019 06:48:40 +0000 (12:18 +0530)]
Protocomm BLE: Make changes in handling BLE read/write requests

1. Remove unwanted malloc during BLE send response
2. Populate the missing parameters in the response - handle, offset, auth_req

5 years agoMerge branch 'feature/btdm_add_adv_report_flow_control_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Thu, 14 Mar 2019 05:51:52 +0000 (13:51 +0800)]
Merge branch 'feature/btdm_add_adv_report_flow_control_v3.2' into 'release/v3.2'

component/bt: add vendor hci and adv report flow control (backport v3.2)

See merge request idf/esp-idf!4462

5 years agoMerge branch 'bugfix/mdns_add_remove_multiple_srv_3.2' into 'release/v3.2'
Angus Gratton [Wed, 13 Mar 2019 23:56:40 +0000 (07:56 +0800)]
Merge branch 'bugfix/mdns_add_remove_multiple_srv_3.2' into 'release/v3.2'

mdns: fix possible crash if tx packet contained answer to removed service (backport 3.2)

See merge request idf/esp-idf!4481

5 years agoMerge branch 'bugfix/mdns_incorrect_semaphore_use_v3.2' into 'release/v3.2'
Angus Gratton [Wed, 13 Mar 2019 22:26:51 +0000 (06:26 +0800)]
Merge branch 'bugfix/mdns_incorrect_semaphore_use_v3.2' into 'release/v3.2'

mdns: use binary semaphore instead of mutex when searching (Backport 3.2)

See merge request idf/esp-idf!4478

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-438

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-438

5 years agomdns: use binary semaphore instead of mutex when searching
Ivan Grokhotkov [Mon, 4 Mar 2019 08:59:09 +0000 (16:59 +0800)]
mdns: use binary semaphore instead of mutex when searching

mdns_search_once_t::lock is used to synchronize tasks (taken by one
task and given by the other) so it should not be a mutex.
Convert to semaphore, and rename to indicate its purpose.

5 years agoMerge branch 'bugfix/confgen_expr_value_v3.2' into 'release/v3.2'
Angus Gratton [Wed, 13 Mar 2019 08:54:41 +0000 (16:54 +0800)]
Merge branch 'bugfix/confgen_expr_value_v3.2' into 'release/v3.2'

confgen: Fix bug with JSON metadata conditional range generation

See merge request idf/esp-idf!4470

5 years agoconfgen: Fix bug with JSON metadata conditional range generation
Angus Gratton [Fri, 1 Mar 2019 04:38:23 +0000 (15:38 +1100)]
confgen: Fix bug with JSON metadata conditional range generation

When generating JSON metadata for ranges where there are conditional ranges (ie different allowed range
depending on another config setting), the JSON metadata would always have the last named range as
the expression was not evaluated properly.

Thanks to ulfalizer on GitHub for pointing this out.

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

5 years agoComponent/bt: add BLE adv report flow control
zhiweijian [Fri, 1 Mar 2019 13:59:55 +0000 (21:59 +0800)]
Component/bt: add BLE adv report flow control

5 years agoMerge branch 'feature/upgrade_sphinx_and_breathe_v3.2' into 'release/v3.2'
Krzysztof Budzynski [Tue, 12 Mar 2019 08:53:11 +0000 (16:53 +0800)]
Merge branch 'feature/upgrade_sphinx_and_breathe_v3.2' into 'release/v3.2'

docs: Preparation for upgrade of Sphinx and Breathe packages to versions 1.8.4…

See merge request idf/esp-idf!4380

5 years agocomponent/bt: add vendor hci cmd
zwj [Mon, 29 Oct 2018 13:27:39 +0000 (21:27 +0800)]
component/bt: add vendor hci cmd

5 years agoMerge branch 'bugfix/autoip_memoey_leak_debug_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Fri, 8 Mar 2019 11:54:34 +0000 (19:54 +0800)]
Merge branch 'bugfix/autoip_memoey_leak_debug_v3.2' into 'release/v3.2'

fix the bug in auto Ip memory leak (backport v3.2)

See merge request idf/esp-idf!4431

5 years agoMerge branch 'bugfix/httpd_sess_ctx_backportv3.2' into 'release/v3.2'
Angus Gratton [Fri, 8 Mar 2019 03:52:17 +0000 (11:52 +0800)]
Merge branch 'bugfix/httpd_sess_ctx_backportv3.2' into 'release/v3.2'

esp_http_server: Provide apps an option to let http_server ignore sess_ctx changes

See merge request idf/esp-idf!4421

5 years agofix the bug in auto Ip memory leak
xiehang [Wed, 6 Mar 2019 12:01:36 +0000 (20:01 +0800)]
fix the bug in auto Ip memory leak

5 years agoMerge branch 'bugfix/lack_of_break_in_tcp_client_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Wed, 6 Mar 2019 06:22:59 +0000 (14:22 +0800)]
Merge branch 'bugfix/lack_of_break_in_tcp_client_v3.2' into 'release/v3.2'

fix the bug in tcp_client (backport v3.2)

See merge request idf/esp-idf!4391

5 years agoMerge branch 'bugfix/fix_dig_gpio_unable_hold_bug_v3.2' into 'release/v3.2'
Angus Gratton [Wed, 6 Mar 2019 04:10:38 +0000 (12:10 +0800)]
Merge branch 'bugfix/fix_dig_gpio_unable_hold_bug_v3.2' into 'release/v3.2'

Bugfix/fix digital gpio unable hold bug  (backport v3.2)

See merge request idf/esp-idf!4355

5 years agoesp_http_server: Provide apps an option to let http_server ignore sess_ctx changes
Piyush Shah [Mon, 4 Mar 2019 18:51:03 +0000 (00:21 +0530)]
esp_http_server: Provide apps an option to let http_server ignore sess_ctx changes

By default, if a URI handler changes the http session context,
the webserver internally clears the older context after the handler
returns. However, if applications want to change this behavior and
manage the allocation/de-allocation/freeing themselves and let the
server handle only the "socket close" case, this commit provides such
an option.

5 years agoMerge branch 'feature/add_api_get_rmt_idle_level_v3.2' into 'release/v3.2'
Angus Gratton [Tue, 5 Mar 2019 02:51:00 +0000 (10:51 +0800)]
Merge branch 'feature/add_api_get_rmt_idle_level_v3.2' into 'release/v3.2'

Bugfix:  Fixed some RMT related issues (backport v3.2)

See merge request idf/esp-idf!4358

5 years agoMerge branch 'bugfix/make_get_coreid_volatile_backport_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Fri, 1 Mar 2019 10:49:00 +0000 (18:49 +0800)]
Merge branch 'bugfix/make_get_coreid_volatile_backport_v3.2' into 'release/v3.2'

freertos: Make xPortGetCoreID() volatile (backport v3.2)

See merge request idf/esp-idf!4379

5 years agoMerge branch 'bugfix/ble_reconn_rescan_readv_crash_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Fri, 1 Mar 2019 10:06:02 +0000 (18:06 +0800)]
Merge branch 'bugfix/ble_reconn_rescan_readv_crash_v3.2' into 'release/v3.2'

component/bt : fix bug that there's low ratio crash when BLE do re-connect/re-scan/re-adv

See merge request idf/esp-idf!4325

5 years agofreertos: Make xPortGetCoreID() volatile
Darian Leung [Tue, 26 Feb 2019 12:58:02 +0000 (20:58 +0800)]
freertos: Make xPortGetCoreID() volatile

When xPortGetCoreID() is called twice within a function,
it might only be called once after compilation. This
commit makes the inline assembly of the function volatile.

Closes #3093

5 years agoMerge branch 'bugfix/multiple_backports_v3.2' into 'release/v3.2'
Ivan Grokhotkov [Thu, 28 Feb 2019 13:42:19 +0000 (21:42 +0800)]
Merge branch 'bugfix/multiple_backports_v3.2' into 'release/v3.2'

multiple backports (v3.2)

See merge request idf/esp-idf!4367

5 years agoMerge branch 'bugfix/cmake_psram_fix_flag_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Thu, 28 Feb 2019 13:06:11 +0000 (21:06 +0800)]
Merge branch 'bugfix/cmake_psram_fix_flag_v3.2' into 'release/v3.2'

cmake: Fix psram workaround compiler flag application (backport v3.2)

See merge request idf/esp-idf!4364

5 years agoci: Only use "github_sync" tagged runners to talk to GitHub
Angus Gratton [Sun, 24 Feb 2019 23:41:39 +0000 (10:41 +1100)]
ci: Only use "github_sync" tagged runners to talk to GitHub

5 years agoci: Retry submodule sync 2 more times before failing
Angus Gratton [Wed, 20 Feb 2019 23:48:55 +0000 (10:48 +1100)]
ci: Retry submodule sync 2 more times before failing

5 years agonvs: add a blob fragmentation test case
Ivan Grokhotkov [Fri, 22 Feb 2019 10:14:48 +0000 (18:14 +0800)]
nvs: add a blob fragmentation test case

Ref. TW12937

5 years agonvs: do eager cleanup of HashListBlocks
Ivan Grokhotkov [Fri, 22 Feb 2019 09:28:43 +0000 (17:28 +0800)]
nvs: do eager cleanup of HashListBlocks

Previously when HashList was removing items, HashListBlocks were
removed lazily. This resulted in empty HashListBlocks dangling around
in full pages, even when all items have been erased. These blocks
would only be deleted when NVS was re-initialized
(nvs_flash_deinit/nvs_flash_init).

This change does eager cleanup instead, based on the code from
@negativekelvin offered in
https://github.com/espressif/esp-idf/issues/1642#issuecomment-367227994.

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

5 years agoesp_timer: fix occasional failures in "monotonic values" test
Ivan Grokhotkov [Fri, 22 Feb 2019 13:27:43 +0000 (21:27 +0800)]
esp_timer: fix occasional failures in "monotonic values" test

1. ref_clock used in unit tests occasionally produces time off by ~100
microseconds shortly after being started. Add a delay to let
ref_clock stabilise, until the cause is found.

2. Reduce roundoff error accumulation which would occasionally cause
the test to fail, by choosing an overflow value which can be divided
by APB frequency.

3. Move time sampling part of the test into an IRAM function to
reduce variations due to cache behavior.

4. Remove calculation of "standard deviation" in the test, as what was
calculated was not actually standard deviation, and it did not add any
useful information.

5 years agoesp_timer: improve unit test robustness
Ivan Grokhotkov [Thu, 15 Nov 2018 12:03:13 +0000 (20:03 +0800)]
esp_timer: improve unit test robustness

1. call esp_timer_get_time and ref_clock_get in the same order on
   start and in the loop

2. disable interrupts when calculating delta between ref_clock
   and esp_timer

3. ensure both functions are in cache before calculating the delta

5 years agosoc: define named constants for DPORT_CPUPERIOD_SEL values
Ivan Grokhotkov [Tue, 26 Feb 2019 09:07:59 +0000 (17:07 +0800)]
soc: define named constants for DPORT_CPUPERIOD_SEL values

5 years agobootloader: check previously used clock frequency at run time
Ivan Grokhotkov [Thu, 29 Nov 2018 07:18:11 +0000 (15:18 +0800)]
bootloader: check previously used clock frequency at run time

In the situation when bootloader was compiled for 240MHz, and app was
compiled for 160MHz, and the chip is a revision 0 chip, the
bootloader will assume that the application has also been running at
240MHz. This will cause the chip to lock up later. Modify this to use
a run time check of DPORT_CPUPERIOD_SEL, which indicates which of the
PLL frequencies was used.

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

5 years agosoc/rtc_clk: don’t clear DPORT_CPUPERIOD_SEL when switching to XTAL
Ivan Grokhotkov [Thu, 29 Nov 2018 07:15:21 +0000 (15:15 +0800)]
soc/rtc_clk: don’t clear DPORT_CPUPERIOD_SEL when switching to XTAL

This is not necessary since RTC_CNTL_SOC_CLK_SEL is set before this.

5 years agomake: fix issues related to EXTRA_COMPONENT_DIRS
Ivan Grokhotkov [Wed, 13 Feb 2019 03:40:48 +0000 (11:40 +0800)]
make: fix issues related to EXTRA_COMPONENT_DIRS

1. When one of the COMPONENT_DIRS points to a component directory
(i.e. a directory containing component.mk, not a directory of multiple
components), and there is a subdirectory in it which also contains
a component, the subdirectory was mistakenly added to the list of
components and compiled.

For example:

    main/
        component.mk
        main.c
        test/
            component.mk
            test_main.c

Would compile test_main.c and link libtest.a.

2. When one of the COMPONENT_DIRS points to a component directory, and
the parent directory contained a directory with the same name as
another component, that directory would be mistakenly added to the
COMPONENT_PATHS.

For example:

    esp/
        esp-idf/
        esp32/
            (random stuff)
        mycomponent/
            component.mk
            mycomponent.c
        myproject/
            main/
            Makefile

and Makefile sets EXTRA_COMPONENT_DIRS=$(realpath ../mycomponent),
then "esp32" directory which is at the same level as mycomponent
was added to COMPONENT_PATHS.

3. If EXTRA_COMPONENT_DIRS pointed to a directory with a list of
components, and one of the subdirectories was not a component, but
had the same name as another component, than that directory would be
mistakenly added to COMPONENT_PATHS instead of the real esp32
component directory.

For example:

    my_components/
        my_component/
            component.mk
            my_component.c
        esp32/
            (some random stuff)

and EXTRA_COMPONENT_DIRS would point to my_components/, then "esp32"
directory would be added to COMPONENT_PATHS instead of the real esp32
component directory.

5 years agokconfig: fix compatibility with very old versions of flex
Ivan Grokhotkov [Thu, 14 Feb 2019 03:17:48 +0000 (11:17 +0800)]
kconfig: fix compatibility with very old versions of flex

See https://github.com/crosstool-ng/crosstool-ng/commit/4e762e4918d8755e762db1db328760dfa5fc7a14

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

5 years agofix the bug in tcp_client
xiehang [Thu, 21 Feb 2019 08:25:07 +0000 (16:25 +0800)]
fix the bug in tcp_client

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

5 years agoMerge branch 'esp_http_server/lru_counter_for_timestamp_backportv3.2' into 'release...
Angus Gratton [Wed, 27 Feb 2019 23:03:38 +0000 (07:03 +0800)]
Merge branch 'esp_http_server/lru_counter_for_timestamp_backportv3.2' into 'release/v3.2'

esp_http_server/lru_counter_for_timestamp:Added LRU counter for timer(backport v3.2)

See merge request idf/esp-idf!4319

5 years agodocs: Preparation for upgrade of Sphinx and Breathe packages to versions 1.8.4 and...
krzychb [Sat, 16 Feb 2019 19:46:49 +0000 (20:46 +0100)]
docs: Preparation for upgrade of Sphinx and Breathe packages to versions 1.8.4 and 4.11.1. Updated check of Sphinx warnings to account for the filename instead of the whole path, that for the same errors may be different between English and Chinese docs. (backport v3.2)

5 years agocmake: Fix psram workaround compiler flag application
Angus Gratton [Fri, 22 Feb 2019 01:20:11 +0000 (12:20 +1100)]
cmake: Fix psram workaround compiler flag application

Previously, this compiler flag was not being applied
regardless of CONFIG_SPIRAM_CACHE_WORKAROUND setting.

Explanation: add_compile_options() only applies to
source files added after the function is run, or in
subdirectories added after the function is run. In
this case, no new source files were being added after
this function was run.

5 years agodriver(rmt): Fixed some RMT related issues.
Paul Abbott [Mon, 24 Sep 2018 19:23:26 +0000 (15:23 -0400)]
driver(rmt): Fixed some RMT related issues.

1. Add missing get function to RMT API: rmt_get_idle_level().
2. Suppress error message from rmt_wait_tx_done() if wait_time==0 (allows for polling).
3. Remove the blank lines between parameter lists.

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

5 years agodriver(gpio): fixed digital gpio unable hold bug during deep-sleep for release/v3.2.
kooho [Fri, 7 Dec 2018 13:44:43 +0000 (21:44 +0800)]
driver(gpio): fixed digital gpio unable hold bug during deep-sleep for release/v3.2.

5 years agocomponent/bt : fix bug that there's low ratio crash when BLE do re-connect/re-scan...
Tian Hao [Thu, 21 Feb 2019 04:18:30 +0000 (12:18 +0800)]
component/bt : fix bug that there's low ratio crash when BLE do re-connect/re-scan/re-adv

fix 3 bugs:
1. do BLE connect (both of slave and master), it mgiht cause crash due to there's much interrupts happens effect ble code running, for example, wifi run on the same core as bluetooth controller and wifi run throughtput test.
2. do BLE scan stop or adv stop or connection stop, it might cause ASSERT or crash due to memory corrupted in controller memory poll.
3. minor bug fix, not really effect bluetooth.

5 years agoesp_http_server/lru_counter_for_timestamp:Added LRU counter for timer
Supreet Deshpande [Wed, 30 Jan 2019 14:27:02 +0000 (19:57 +0530)]
esp_http_server/lru_counter_for_timestamp:Added LRU counter for timer

Replaced the os timer in http server by LRU counter. The timestamp is
unnecessary for LRU.

5 years agoMerge branch 'bugfix/freertos_unused_xSize_backport_v3.2' into 'release/v3.2'
Ivan Grokhotkov [Mon, 25 Feb 2019 07:44:22 +0000 (15:44 +0800)]
Merge branch 'bugfix/freertos_unused_xSize_backport_v3.2' into 'release/v3.2'

freertos: Fix unused variable warning (backport v3.2)

See merge request idf/esp-idf!4296

5 years agofreertos: Fix unused variable warning
Darian Leung [Fri, 15 Feb 2019 17:42:00 +0000 (01:42 +0800)]
freertos: Fix unused variable warning

This commit fixes an unused variable warning when
configASSERT is undefined.

5 years agoMerge branch 'bugfix/mdns_service_memory_leak_3.2' into 'release/v3.2' v3.2-beta3
Angus Gratton [Thu, 21 Feb 2019 09:53:32 +0000 (17:53 +0800)]
Merge branch 'bugfix/mdns_service_memory_leak_3.2' into 'release/v3.2'

mdns: fix memory leak when query for service plus various other fixes (Backport v3.2)

See merge request idf/esp-idf!4287

5 years agomdns: fix memory leak in pbuf if tcpipadapter failed to get netif
David Cermak [Fri, 15 Feb 2019 14:59:11 +0000 (15:59 +0100)]
mdns: fix memory leak in pbuf if tcpipadapter failed to get netif

5 years agomdns example: fix print result for IPv6 addresses
David Cermak [Fri, 15 Feb 2019 14:54:18 +0000 (15:54 +0100)]
mdns example: fix print result for IPv6 addresses

5 years agomdns: fix malfuctional query_txt
David Cermak [Fri, 15 Feb 2019 12:46:51 +0000 (13:46 +0100)]
mdns: fix malfuctional query_txt

when running a query for a single txt, result entries were not created and attached to result structure. this issue was introduced when fixing memory leak in txt structure, which worked correctly for PTR queries, but caused trouble for TXT query.

5 years agomdns: fix possible crash when mdns_free called while action queue not empty
David Cermak [Fri, 15 Feb 2019 12:23:21 +0000 (13:23 +0100)]
mdns: fix possible crash when mdns_free called while action queue not empty

5 years agomdns: fix memory leak when query for service receives multiple ptr entries for one...
David Cermak [Thu, 14 Feb 2019 15:39:11 +0000 (16:39 +0100)]
mdns: fix memory leak when query for service receives multiple ptr entries for one instance

fixes redmine issue 27300

5 years agoMerge branch 'bugfix/psram_move_qsort_setlocale_flash_v3.2' into 'release/v3.2'
Angus Gratton [Thu, 21 Feb 2019 06:42:17 +0000 (14:42 +0800)]
Merge branch 'bugfix/psram_move_qsort_setlocale_flash_v3.2' into 'release/v3.2'

psram: Move newlib qsort() and setlocale() functions from IRAM to flash (backport v3.2)

See merge request idf/esp-idf!4322

5 years agoMerge branch 'bugfix/btdm_fix_connection_params_update_issues_v3.2' into 'release...
Jiang Jiang Jian [Thu, 21 Feb 2019 03:49:16 +0000 (11:49 +0800)]
Merge branch 'bugfix/btdm_fix_connection_params_update_issues_v3.2' into 'release/v3.2'

component/bt:fix connection params update issues (backport v3.2)

See merge request idf/esp-idf!4297

5 years agopsram: Move newlib qsort() and setlocale() functions from IRAM to flash
Angus Gratton [Wed, 20 Feb 2019 23:32:00 +0000 (10:32 +1100)]
psram: Move newlib qsort() and setlocale() functions from IRAM to flash

5 years agoMerge branch 'bugfix/cmake_stack_protector_v3.2' into 'release/v3.2'
Angus Gratton [Wed, 20 Feb 2019 07:40:14 +0000 (15:40 +0800)]
Merge branch 'bugfix/cmake_stack_protector_v3.2' into 'release/v3.2'

esp32: disable stack protector for startup code (CMake) (backport v3.2)

See merge request idf/esp-idf!4250

5 years agoMerge branch 'doc/add_coap_readme' into 'release/v3.2'
Angus Gratton [Wed, 20 Feb 2019 07:38:43 +0000 (15:38 +0800)]
Merge branch 'doc/add_coap_readme' into 'release/v3.2'

doc: add CoAP README.md(backport v3.2)

See merge request idf/esp-idf!4262

5 years agoMerge branch 'revert-00d10688' into 'release/v3.2'
Angus Gratton [Wed, 20 Feb 2019 07:09:59 +0000 (15:09 +0800)]
Merge branch 'revert-00d10688' into 'release/v3.2'

Revert "Merge branch 'bugfix/external_rtc_start_fail_3.2' into 'release/v3.2'"

See merge request idf/esp-idf!4293

5 years agoMerge branch 'bugfix/spiram_linker_wildcards_v3.2' into 'release/v3.2'
Angus Gratton [Wed, 20 Feb 2019 06:17:52 +0000 (14:17 +0800)]
Merge branch 'bugfix/spiram_linker_wildcards_v3.2' into 'release/v3.2'

esp32 psram: Provide library name for ROM libc objects linked as PSRAM workarounds (backport v3.2)

See merge request idf/esp-idf!4153

5 years agoMerge branch 'bugfix/coex_lc_protect_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Wed, 20 Feb 2019 03:14:22 +0000 (11:14 +0800)]
Merge branch 'bugfix/coex_lc_protect_v3.2' into 'release/v3.2'

component/esp32 : fix coexist lc protect cause memory corrupted

See merge request idf/esp-idf!4267

5 years agoesp32 psram: Provide library name for ROM libc objects linked as PSRAM workarounds
Angus Gratton [Tue, 22 Jan 2019 03:49:17 +0000 (11:49 +0800)]
esp32 psram: Provide library name for ROM libc objects linked as PSRAM workarounds

Fixes bug reported on forums where any source file ending in *lock.c or *creat.c
was being linked to IRAM.

https://esp32.com/viewtopic.php?f=13&t=8909&p=37362#p37362

5 years agoMerge branch 'bugfix/wdt_compability_app_with_old_bootloader_v3.2' into 'release...
Jiang Jiang Jian [Tue, 19 Feb 2019 18:17:09 +0000 (02:17 +0800)]
Merge branch 'bugfix/wdt_compability_app_with_old_bootloader_v3.2' into 'release/v3.2'

esp32: Fix wdt settings in esp_restart_noos (backport v3.2)

See merge request idf/esp-idf!4294

5 years agoMerge branch 'bugfix/fix_psram_eid_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Tue, 19 Feb 2019 18:13:47 +0000 (02:13 +0800)]
Merge branch 'bugfix/fix_psram_eid_v3.2' into 'release/v3.2'

bugfix(psram): fix psram size acquisition method, support esp32-pico chips (backport v3.2)

See merge request idf/esp-idf!4254

5 years agocomponent/bt:fix connection params update issues
zwj [Tue, 19 Feb 2019 12:26:36 +0000 (20:26 +0800)]
component/bt:fix connection params update issues

5 years agoMerge branch 'bugfix/btdm_crash_when_inquiry_cancel_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Tue, 19 Feb 2019 09:57:00 +0000 (17:57 +0800)]
Merge branch 'bugfix/btdm_crash_when_inquiry_cancel_v3.2' into 'release/v3.2'

Bugfix/btdm crash when inquiry cancel v3.2

See merge request idf/esp-idf!4277

5 years agoRevert "Merge branch 'bugfix/external_rtc_start_fail_3.2' into 'release/v3.2'"
Ivan Grokhotkov [Tue, 19 Feb 2019 04:47:44 +0000 (12:47 +0800)]
Revert "Merge branch 'bugfix/external_rtc_start_fail_3.2' into 'release/v3.2'"

This reverts merge request !4272

5 years agoesp32: Fix wdt settings in esp_restart_noos
Konstantin Kondrashov [Thu, 10 Jan 2019 12:17:04 +0000 (20:17 +0800)]
esp32: Fix wdt settings in esp_restart_noos

Fixed compatibility the new apps with the old bootloaders.

Closes: https://github.com/espressif/esp-idf/issues/2927
5 years agoMerge branch 'bugfix/aws_iot_backport_few_fixes_for_v3.2' into 'release/v3.2'
Angus Gratton [Tue, 19 Feb 2019 03:36:18 +0000 (11:36 +0800)]
Merge branch 'bugfix/aws_iot_backport_few_fixes_for_v3.2' into 'release/v3.2'

Bugfix/aws iot backport few fixes for v3.2 (backport_v3.2)

See merge request idf/esp-idf!4247

5 years agocomponent/esp32 : fix coexist lc protect cause memory corrupted
Tian Hao [Thu, 14 Feb 2019 08:52:17 +0000 (16:52 +0800)]
component/esp32 : fix coexist lc protect cause memory corrupted

The bug will cause memory corrupted (the largest range is from 0x3ffc0000 ~ 0x3ffc8000),
some strange error will happen, like IllegalInstruction, LoadProhibited and .etc.

5 years agoMerge branch 'feature/provisioning_backport_api_changes' into 'release/v3.2'
Angus Gratton [Tue, 19 Feb 2019 02:47:47 +0000 (10:47 +0800)]
Merge branch 'feature/provisioning_backport_api_changes' into 'release/v3.2'

(backport v3.2)  Provisioning Framework API changes

See merge request idf/esp-idf!4249

5 years agoprovisioning examples : typos fixed and minor change in timer callback execution
Anurag Kar [Fri, 8 Feb 2019 10:28:57 +0000 (15:58 +0530)]
provisioning examples : typos fixed and minor change in timer callback execution

Note : Examples have been updated to prevent invocation of bluedroid/wifi APIs from inside timer callback when stopping provisioning. Workaround is to spawn new task from inside the timer callback.

5 years agoprotocomm : typos fixed and descriptions corrected
Anurag Kar [Fri, 8 Feb 2019 09:51:33 +0000 (15:21 +0530)]
protocomm : typos fixed and descriptions corrected

5 years agoprotocomm unit_tests : test cases updated
Anurag Kar [Fri, 8 Feb 2019 09:21:19 +0000 (14:51 +0530)]
protocomm unit_tests : test cases updated

Changes:
* Version endpoint test added
* Memory leak test updated to include corner case exceptions in protocomm

5 years agoprotocomm security : memory leaks fixed
Anurag Kar [Fri, 8 Feb 2019 09:12:49 +0000 (14:42 +0530)]
protocomm security : memory leaks fixed

List of changes:
* Corner case exceptions are properly handled to ensure release of memory occupied by security infrastructure
* fixed erroneous cleanup of security instance by protocomm_console

5 years agoprotocomm : version endpoint behavior simplified
Anurag Kar [Fri, 8 Feb 2019 06:36:23 +0000 (12:06 +0530)]
protocomm : version endpoint behavior simplified

List of changes:
* Version endpoint now sends the set version string instead of verifying the incoming version string. This simplifies fetching version info from the provisioning application.
* esp_prov script updated to expect version string as response.

5 years agowifi_provisioning : context pointer added to wifi_config_t structure and related...
Anurag Kar [Mon, 28 Jan 2019 09:51:28 +0000 (15:21 +0530)]
wifi_provisioning : context pointer added to wifi_config_t structure and related examples/docs updated

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

5 years agoprovisioning framework : 'extern C' directives added for C++ support
Anurag Kar [Mon, 28 Jan 2019 09:48:47 +0000 (15:18 +0530)]
provisioning framework : 'extern C' directives added for C++ support

5 years agosoftap_prov: Changes in the example code as per changes to protocomm_httpd
Piyush Shah [Fri, 1 Feb 2019 12:51:46 +0000 (18:21 +0530)]
softap_prov: Changes in the example code as per changes to protocomm_httpd

Signed-off-by: Piyush Shah <piyush@espressif.com>
5 years agoprotocomm_httpd: Allow applications to pass HTTPD handle
Piyush Shah [Fri, 1 Feb 2019 12:50:37 +0000 (18:20 +0530)]
protocomm_httpd: Allow applications to pass HTTPD handle

This will be useful if a webserver is already running and the application
does not want protocomm to start a new instance.

Signed-off-by: Piyush Shah <piyush@espressif.com>
5 years agocomponents/bt: Add precautions for esp_vhci_host_send_packet (backport 3.2)
baohongde [Fri, 15 Feb 2019 09:27:24 +0000 (17:27 +0800)]
components/bt: Add precautions for esp_vhci_host_send_packet (backport 3.2)

5 years agocomponents/bt: Fix crash when inquiry stop (backport v3.2)
baohongde [Thu, 31 Jan 2019 03:47:41 +0000 (11:47 +0800)]
components/bt: Fix crash when inquiry stop (backport v3.2)

5 years agoMerge branch 'test/disable_sdio_example_ci_v3.2' into 'release/v3.2'
He Yin Ling [Mon, 18 Feb 2019 08:14:01 +0000 (16:14 +0800)]
Merge branch 'test/disable_sdio_example_ci_v3.2' into 'release/v3.2'

sdio: temporarily disable the sdio example ci

See merge request idf/esp-idf!4284

5 years agosdio: temporarily disable the sdio example ci, since the runners have
Michael (XIAO Xufeng) [Thu, 14 Feb 2019 07:51:21 +0000 (15:51 +0800)]
sdio: temporarily disable the sdio example ci, since the runners have
some power issue