]> granicus.if.org Git - esp-idf/log
esp-idf
5 years agomdns: fixed crash on free undefined ptr after skipped strdup
David Cermak [Tue, 29 Jan 2019 09:32:12 +0000 (10:32 +0100)]
mdns: fixed crash on free undefined ptr after skipped strdup

Shortcircuit evaluation may cause skip of _mdns_strdup_check of any further question field, which after clear_rx_packet freed undefined memory.
Fixes https://ezredmine.espressif.cn:8765/issues/28465

5 years agoMerge branch 'bugfix/mdns_crash_free_strdup_3.2' into 'release/v3.2'
Ivan Grokhotkov [Tue, 29 Jan 2019 02:37:25 +0000 (10:37 +0800)]
Merge branch 'bugfix/mdns_crash_free_strdup_3.2' into 'release/v3.2'

mdns: fixed crash on free undefined ptr if strdup is skipped (Backport 3.2)

See merge request idf/esp-idf!4190

5 years agomdns: fixed crash on free undefined ptr after skipped strdup
David Cermak [Fri, 25 Jan 2019 16:19:13 +0000 (17:19 +0100)]
mdns: fixed crash on free undefined ptr after skipped strdup

Shortcircuit evaluation may cause skip of _mdns_strdup_check of any further question field, which after clear_rx_packet freed undefined memory.
Fixes https://ezredmine.espressif.cn:8765/issues/28465

5 years agoMerge branch 'mesh/bugfix_backport_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Mon, 28 Jan 2019 06:05:51 +0000 (14:05 +0800)]
Merge branch 'mesh/bugfix_backport_v3.2' into 'release/v3.2'

Mesh/bugfix backport v3.2

See merge request idf/esp-idf!4117

5 years agoMerge branch 'bugfix/i2c_master_clear_bus_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Fri, 25 Jan 2019 05:52:48 +0000 (13:52 +0800)]
Merge branch 'bugfix/i2c_master_clear_bus_v3.2' into 'release/v3.2'

i2c/fix i2c_master_clear_bus (backport v3.2)

See merge request idf/esp-idf!4127

5 years agoMerge branch 'bugfix/ble_active_scan_not_wait_scan_rsp_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Fri, 25 Jan 2019 05:52:16 +0000 (13:52 +0800)]
Merge branch 'bugfix/ble_active_scan_not_wait_scan_rsp_v3.2' into 'release/v3.2'

component/bt: add a option to make report adv data and scan response individually (backport v3.2)

See merge request idf/esp-idf!4157

5 years agoMerge branch 'bugfix/mqtt_tests_local_broker_v3.2' into 'release/v3.2'
Ivan Grokhotkov [Thu, 24 Jan 2019 14:00:26 +0000 (22:00 +0800)]
Merge branch 'bugfix/mqtt_tests_local_broker_v3.2' into 'release/v3.2'

MQTT tests: connect to local broker in CI (Backport 3.2)

See merge request idf/esp-idf!4119

5 years agocomponent/bt: add a option to make report adv data and scan response individually
Tian Hao [Wed, 23 Jan 2019 06:11:56 +0000 (14:11 +0800)]
component/bt: add a option to make report adv data and scan response individually

Originally, when doing BLE active scan, Bluedroid will not report adv to
application layer until receive scan response. This option is used to
disable the behavior. When enable this option, Bluedroid will report
adv data or scan response to application layer immediately.

5 years agoMerge branch 'bugfix/bootloader_map_size_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Thu, 24 Jan 2019 06:09:35 +0000 (14:09 +0800)]
Merge branch 'bugfix/bootloader_map_size_v3.2' into 'release/v3.2'

bootloader: fix incorrect mapping size (backport v3.2)

See merge request idf/esp-idf!4138

5 years agoMerge branch 'bugfix/sha_ownership_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Thu, 24 Jan 2019 06:08:35 +0000 (14:08 +0800)]
Merge branch 'bugfix/sha_ownership_v3.2' into 'release/v3.2'

hwcrypto sha: Allow SHA contexts to be shared between tasks (backport v3.2)

See merge request idf/esp-idf!4143

5 years agotest: modify the reason code from 204 to 15 in WIFI_CONN_0904
qiyueixa [Mon, 21 Jan 2019 03:33:58 +0000 (11:33 +0800)]
test: modify the reason code from 204 to 15 in WIFI_CONN_0904

5 years agomesh: bugfix
qiyueixa [Mon, 21 Jan 2019 03:06:17 +0000 (11:06 +0800)]
mesh: bugfix

1. fix network channel switch function.
2. support not configuring the network channel.
3. support not configuring the router BSSID even if the router is hidden.
4. add allow_channel_switch to mesh configuration.
5. add allow_router_switch to mesh router configuration.
6. support handling beacon without IE of DS Parameter Set.
7. fix Wi-Fi RX fails in a specific scenario (update libphy.a).
8. fix STAs can not detect disconnection from AP when encrypt transmission is used.
9. fix can not find hidden APs.
10. for root, modify the active scan time to 120ms.
11. remove all rc when clear parent Wi-Fi configuration.
12. fix memory leak caused by the remove announcement being sent is not released when esp_mesh_stop() is called.
13. fix modify IE encrypt after mesh is started.
14. ignore esp_mesh_connect() if mesh automatic reconnection is enabled.
15. fix reason is cleared before vote is done.
16. fix issues in the example of manual_networking when mesh network is encrypted.
17. detect and fix root conflicts when router BSSID is not set.
18. when root can not connect to the router due to NO_MORE_STAS(reason code:5), root will stop re-connection and perform MESH_NWK_LOOK_FOR_NETWORK.
19. wifi: fix the disconnection caused by receiving a deauth frame from non-parent node during scanning.
20. fix routing table redundant issue due to the remove announcement is not 100% reliable.
21. modify the max routes limitation from 300 to 1000.
22. wifi: fix ap does not deauth the sta which has not yet completed the 4-way handshake but the max replay count is reached.

5 years agoMerge branch 'bugfix/wifi_fix_invalid_csi_data_index_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Wed, 23 Jan 2019 14:14:04 +0000 (22:14 +0800)]
Merge branch 'bugfix/wifi_fix_invalid_csi_data_index_v3.2' into 'release/v3.2'

esp32: fix invalid channel state information(CSI) data index (backort v3.2)

See merge request idf/esp-idf!4129

5 years agoMerge branch 'bugfix/vfs_unregister_nested_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Wed, 23 Jan 2019 13:54:50 +0000 (21:54 +0800)]
Merge branch 'bugfix/vfs_unregister_nested_v3.2' into 'release/v3.2'

vfs: fix unregister removing top level VFS instead of nested (backport v3.2)

See merge request idf/esp-idf!4137

5 years agoMerge branch 'bugfix/init_memctl_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Wed, 23 Jan 2019 13:43:58 +0000 (21:43 +0800)]
Merge branch 'bugfix/init_memctl_v3.2' into 'release/v3.2'

bootloader, esp32: add workaround for Tensilica erratum 572 (backport v3.2)

See merge request idf/esp-idf!4134

5 years agohwcrypto sha: Use spinlocks instead of semaphores for small state changes
Angus Gratton [Fri, 21 Dec 2018 05:16:16 +0000 (16:16 +1100)]
hwcrypto sha: Use spinlocks instead of semaphores for small state changes

Significant performance improvement and smaller RAM footprint.

5 years agohwcrypto sha: Allow SHA contexts to be shared between tasks
Angus Gratton [Fri, 21 Dec 2018 04:37:57 +0000 (15:37 +1100)]
hwcrypto sha: Allow SHA contexts to be shared between tasks

Previously, hardware SHA engine "locks" were mutex semaphores. This meant that the task which
started a particular SHA session (in hardware) needed to finalise that session, or an invalid
FreeRTOS state was created.

Replace with binary semaphore which can be shared between tasks.

Includes a unit test, but unit test doesn't crash even without this fix
(some other unknown condition is required).

5 years agoUpdate esptool.py to v2.6
Angus Gratton [Wed, 9 Jan 2019 07:11:41 +0000 (23:11 -0800)]
Update esptool.py to v2.6

5 years agobootloader: account for load address when mapping cache pages
Ivan Grokhotkov [Mon, 3 Sep 2018 10:15:20 +0000 (18:15 +0800)]
bootloader: account for load address when mapping cache pages

Bootloader used to calculate the number of cache pages assuming that
load address was aligned, while in reality load address for DROM and
IROM was offset by 0x20 bytes from the start of 64kB page. This
caused the bootloader to map one less page if the size of the image
was 0x4..0x1c less than a multiple of 64kB.

Reported in https://esp32.com/viewtopic.php?f=13&t=6952.

5 years agobootloader: fix IROM and DROM swapped in log messages
Ivan Grokhotkov [Mon, 3 Sep 2018 10:10:46 +0000 (18:10 +0800)]
bootloader: fix IROM and DROM swapped in log messages

5 years agovfs: fix unregister removing top level VFS instead of nested
Ivan Grokhotkov [Thu, 6 Dec 2018 11:30:05 +0000 (19:30 +0800)]
vfs: fix unregister removing top level VFS instead of nested

Credits @neoniousTR.

Fixes https://github.com/espressif/esp-idf/pull/2770

5 years agobootloader, esp32: add workaround for Tensilica erratum 572
Ivan Grokhotkov [Thu, 1 Nov 2018 03:30:48 +0000 (11:30 +0800)]
bootloader, esp32: add workaround for Tensilica erratum 572

If zero-overhead loop buffer is enabled, under certain rare conditions
when executing a zero-overhead loop, the CPU may attempt to execute an invalid instruction. Work around by disabling the buffer.

5 years agoesp32: fix invalid channel state information(CSI) data index
XiaXiaotian [Thu, 27 Dec 2018 13:06:58 +0000 (21:06 +0800)]
esp32: fix invalid channel state information(CSI) data index

    Due to a hardware limitation in ESP32, the first four bytes of some
    CSI data is invalid, not the last four bytes.

    Correct a mistake of CSI sub-carrier index in documentation.

5 years agoci, examples: use sdkconfig.ci as an extra defaults file, if present
Ivan Grokhotkov [Mon, 10 Dec 2018 05:26:40 +0000 (13:26 +0800)]
ci, examples: use sdkconfig.ci as an extra defaults file, if present

- Allows placing CI-specific settings into sdkconfig.ci file
- Allows substituting environment variables in sdkconfig.ci

5 years agobugfix(i2c): reduce speed of I2C master bus reset routine and release SDA
Wangjialin [Wed, 28 Nov 2018 07:41:46 +0000 (15:41 +0800)]
bugfix(i2c): reduce speed of I2C master bus reset routine and release SDA

closes https://github.com/espressif/esp-idf/issues/2494
closes https://github.com/espressif/esp-idf/pull/2493
closes https://github.com/espressif/esp-idf/pull/2496

1. Change bus reset to handle interrupted READ sequences.
2. Slow down I2C to 100khz during reset
3. If a SLAVE device was in a read operation when the bus was interrupted, the SLAVE device is controlling SDA.The only bit during the 9 clock cycles of a byte READ the MASTER(ESP32) is guaranteed control over, is during the ACK bit period.
If the SLAVE is sending a stream of ZERO bytes, it will only release SDA during the ACK bit period. The master(ESP32) cannot generate a STOP unless SDA is HIGH. So, this reset code synchronizes the bit stream with, Either, the ACK bit, Or a 1 bit.

5 years ago1. Slow down I2C to 100khz During Reset
chuck todd [Sun, 30 Sep 2018 20:47:05 +0000 (14:47 -0600)]
1. Slow down I2C to 100khz During Reset

I am stealing this delay coding from @jeremyherbert #2493 pr.

2. Change Bus Reset to handle interrupted READ sequences.

The current code does not handle interrupted READ cycles.

 If a SLAVE device was in a read operation when the bus was interrupted, the SLAVE device is controlling SDA.

The only bit during the 9 clock cycles of a byte READ the MASTER(ESP32) is guaranteed control over, is during the ACK bit period.

If the SLAVE is sending a stream of ZERO bytes, it will only release SDA during the ACK bit period. The master(ESP32) cannot generate a STOP unless SDA is HIGH.

So, this reset code synchronizes the bit stream with, Either, the ACK bit, Or a 1 bit.

3. fix typo

correct `sda_id` to `sda_io` in `i2c_master_clear_bus()` @ryan-ma found it.  This typo was generated when I manually edited this patch on GitHub, I should have done a Copy/Paste operation!

5 years agoreduce speed of i2c master bus reset routine and release sda
jeremy [Sun, 30 Sep 2018 09:26:09 +0000 (19:26 +1000)]
reduce speed of i2c master bus reset routine and release sda

5 years agomqtt tests: connect to local broker when running in CI to make the tests more reliable
David Cermak [Fri, 7 Dec 2018 14:15:34 +0000 (15:15 +0100)]
mqtt tests: connect to local broker when running in CI to make the tests more reliable

5 years agoMerge branch 'bugfix/phy_rtc_cache_disabled_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Fri, 18 Jan 2019 02:54:03 +0000 (10:54 +0800)]
Merge branch 'bugfix/phy_rtc_cache_disabled_v3.2' into 'release/v3.2'

Fix PHY/RTC functions called in ISR, but stored in flash

See merge request idf/esp-idf!4114

5 years agoFix some bugs in phy
Tian Hao [Sun, 13 Jan 2019 08:05:12 +0000 (16:05 +0800)]
Fix some bugs in phy

1. fix bug PHY/RTC functions called in ISR (update phy to v4007)
2. add UnitTest to test it
3. fix task watchdog bug when wifi change channel
4. disable/enable agc to mac deinit/init

5 years agoMerge branch 'bugfix/wifi_fix_incorrect_tx_complete_state_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Sat, 12 Jan 2019 16:10:50 +0000 (00:10 +0800)]
Merge branch 'bugfix/wifi_fix_incorrect_tx_complete_state_v3.2' into 'release/v3.2'

esp32: fix the incorrect tx complete state issue (backport v3.2)

See merge request idf/esp-idf!4105

5 years agoesp32: fix the incorrect tx complete state issue
jack [Sat, 12 Jan 2019 07:34:09 +0000 (15:34 +0800)]
esp32: fix the incorrect tx complete state issue

5 years agoMerge branch 'bugfix/fix_ba_hardware_index_deleting_issue_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Sat, 12 Jan 2019 06:23:33 +0000 (14:23 +0800)]
Merge branch 'bugfix/fix_ba_hardware_index_deleting_issue_v3.2' into 'release/v3.2'

esp32: fix wrongly deleting hardware BA index bug (backport v3.2)

See merge request idf/esp-idf!4102

5 years agoesp32: fix wrongly deleting hardware BA index bug
Liu Zhi Fu [Fri, 11 Jan 2019 13:46:28 +0000 (21:46 +0800)]
esp32: fix wrongly deleting hardware BA index bug

Fix the bug that hardware BA index will be wrongly removed in
WiFi mode WIFI_MODE_APSTA.

5 years agoMerge branch 'bugfix/wifi_defragmentation_only_for_data_frame_v3.2' into 'release...
Jiang Jiang Jian [Fri, 11 Jan 2019 13:25:19 +0000 (21:25 +0800)]
Merge branch 'bugfix/wifi_defragmentation_only_for_data_frame_v3.2' into 'release/v3.2'

esp32: do defragmentation only for data and management frame (backport v3.2)

See merge request idf/esp-idf!4090

5 years agoMerge branch 'bugfix/check_dependencies_msys_v3.2' into 'release/v3.2'
Ivan Grokhotkov [Fri, 11 Jan 2019 07:42:20 +0000 (15:42 +0800)]
Merge branch 'bugfix/check_dependencies_msys_v3.2' into 'release/v3.2'

tools: Be more helpful to MSYS32 users with package installation & check if current python is inside virtual environment (backport v3.2)

See merge request idf/esp-idf!4063

5 years agopython: Add check if current python is inside virtual environment
Sergei Silnov [Tue, 8 Jan 2019 10:40:49 +0000 (11:40 +0100)]
python:  Add check if current python is inside virtual environment

5 years agotools: Be more helpful to MSYS32 users with package installation
Roland Dobai [Wed, 19 Dec 2018 13:04:57 +0000 (14:04 +0100)]
tools: Be more helpful to MSYS32 users with package installation

5 years agoesp32: do defragmentation only for data and management frame
XiaXiaotian [Wed, 9 Jan 2019 08:00:51 +0000 (16:00 +0800)]
esp32: do defragmentation only for data and management frame

    Check frame type before defragmentation. Only data and management frame
    can do defragmentation.

5 years agoMerge branch 'bugfix/coex_unforce_wifi_if_no_data_buffered_in_beacon_v3.2' into ...
Jiang Jiang Jian [Thu, 10 Jan 2019 06:11:02 +0000 (14:11 +0800)]
Merge branch 'bugfix/coex_unforce_wifi_if_no_data_buffered_in_beacon_v3.2' into 'release/v3.2'

esp32: unforce wifi if receiving beacon with no data buffered in dream (backport v3.2)

See merge request idf/esp-idf!4036

5 years agoMerge branch 'bugfix/timer_delete_dispatch_race_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Thu, 10 Jan 2019 05:44:15 +0000 (13:44 +0800)]
Merge branch 'bugfix/timer_delete_dispatch_race_v3.2' into 'release/v3.2'

esp_timer: do not allow deleting timers while callbacks are dispatched (backport v3.2)

See merge request idf/esp-idf!4062

5 years agoesp32: unforce wifi if receiving beacon with no data buffered in dream
XiaXiaotian [Thu, 27 Dec 2018 09:49:07 +0000 (17:49 +0800)]
esp32: unforce wifi if receiving beacon with no data buffered in dream
state and reduce force receiving broadcast data time

    1. If receiving beacon which indicates that there is no data buffered,
    do not force to receive WiFi data.
    2. If receiving beacon which indicates that there is broadcast data
    buffered, reduce the time to force receiving broadcast data.

5 years agoMerge branch 'bugfix/ignore_windows_conf_tools_v32' into 'release/v3.2'
Jiang Jiang Jian [Wed, 9 Jan 2019 05:57:54 +0000 (13:57 +0800)]
Merge branch 'bugfix/ignore_windows_conf_tools_v32' into 'release/v3.2'

gitignore: Add mconf-idf.exe and conf-idf.exe (v3.2)

See merge request idf/esp-idf!4071

5 years agoMerge branch 'bugfix/fix_mbox_thread_safe_issue_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Wed, 9 Jan 2019 02:21:22 +0000 (10:21 +0800)]
Merge branch 'bugfix/fix_mbox_thread_safe_issue_v3.2' into 'release/v3.2'

tcpip: fix mbox thread-safe issue  (backport v3.2)

See merge request idf/esp-idf!4005

5 years agoMerge branch 'bugfix/mdns_udp_send_protected_backport3.2' into 'release/v3.2'
Ivan Grokhotkov [Tue, 8 Jan 2019 04:04:23 +0000 (12:04 +0800)]
Merge branch 'bugfix/mdns_udp_send_protected_backport3.2' into 'release/v3.2'

mdns networking udp send protected (Backport 3.2)

See merge request idf/esp-idf!4020

5 years agoMerge branch 'bugfix/mdns_crash_when_query_backport3.2' into 'release/v3.2'
Ivan Grokhotkov [Tue, 8 Jan 2019 04:03:52 +0000 (12:03 +0800)]
Merge branch 'bugfix/mdns_crash_when_query_backport3.2' into 'release/v3.2'

mdns crash when query (backport 3.2)

See merge request idf/esp-idf!3950

5 years agoMerge branch 'bugfix/fix_the_country_code_bug_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Mon, 7 Jan 2019 12:33:02 +0000 (20:33 +0800)]
Merge branch 'bugfix/fix_the_country_code_bug_v3.2' into 'release/v3.2'

wifi: fix the bug that STA can scan the channel out of the country regdomain range (backport v3.2)

See merge request idf/esp-idf!4068

5 years agoMerge branch 'feature/i2s_tx_descriptor_auto_clear_backport_v3.2' into 'release/v3.2'
Ivan Grokhotkov [Mon, 7 Jan 2019 08:34:01 +0000 (16:34 +0800)]
Merge branch 'feature/i2s_tx_descriptor_auto_clear_backport_v3.2' into 'release/v3.2'

i2s: add (optional) support to clear tx descriptor in underflow case (backport v3.2)

See merge request idf/esp-idf!4056

5 years agowifi: fix the bug that STA can scan the channel out of the country regdomain range
zhangyanjiao [Thu, 3 Jan 2019 13:10:14 +0000 (21:10 +0800)]
wifi: fix the bug that STA can scan the channel out of the country regdomain range

5 years agogitignore: Add mconf-idf.exe and conf-idf.exe
Angus Gratton [Wed, 28 Nov 2018 01:05:29 +0000 (12:05 +1100)]
gitignore: Add mconf-idf.exe and conf-idf.exe

Problem since f6cd55d2ac

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

5 years agolwip: fix mbox thread-safe issue
Liu Zhi Fu [Thu, 20 Dec 2018 06:03:11 +0000 (14:03 +0800)]
lwip: fix mbox thread-safe issue

Fix a mbox free thread-safe issue that can lead to crash in sys_arch_mbox_fetch.

5 years agoesp_timer: do not allow deleting timers while callbacks are dispatched
Ivan Grokhotkov [Wed, 19 Dec 2018 07:53:50 +0000 (15:53 +0800)]
esp_timer: do not allow deleting timers while callbacks are dispatched

timer_process_alarm function of esp_timer holds a spinlock for the
entire duration of its operation, except for the time when timer
callback function is called. It is possible that when
timer_process_alarm releases the spinlock, a higher priority task may
run and delete the timer. Then the execution will return to
timer_process_alarm, and this will either cause a crash, or undesired
execution of callback after the timer has been stopped or deleted.

To solve this problem, add a mutex which will prevent deletion of timers
while callbacks are being dispatched.

5 years agoexamples: enable option to auto clear I2S tx descriptor on underflow
Mahavir Jain [Fri, 23 Nov 2018 09:09:04 +0000 (14:39 +0530)]
examples: enable option to auto clear I2S tx descriptor on underflow

Closes: https://github.com/espressif/esp-idf/issues/1945
(cherry picked from commit 1751607adfe7078f89a2bd07ea7f0a261cf8421c)

5 years agoi2s: add (optional) support to clear tx descriptor in underflow case
Mahavir Jain [Mon, 14 May 2018 09:03:45 +0000 (14:33 +0530)]
i2s: add (optional) support to clear tx descriptor in underflow case

It has been observed that, in case of underflow (data unavailability) in
I2S transmission, previously filled up tx descriptors continue to get
transmitted on line, causing noise in case of audio use case.

This change adds optional `tx_desc_auto_clear` field during I2S driver intialization
than can zero initialize tx descriptor in case of underflow situation in
interrupt handler itself.

Closes: https://github.com/espressif/esp-idf/issues/1789
(cherry picked from commit 765bf674d0d54b2b871bb2d1e41160bc4025da1a)

5 years agoMerge branch 'feature/freemodbus_move_rs485_mode_control_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Sat, 29 Dec 2018 02:28:27 +0000 (10:28 +0800)]
Merge branch 'feature/freemodbus_move_rs485_mode_control_v3.2' into 'release/v3.2'

examples: freemodbus port serial slave move uart mode settings into example (backport v3.2)

See merge request idf/esp-idf!4015

5 years agoMerge branch 'doc/btdm_modem_sleep_EVED_mode_for_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Sat, 29 Dec 2018 02:27:52 +0000 (10:27 +0800)]
Merge branch 'doc/btdm_modem_sleep_EVED_mode_for_v3.2' into 'release/v3.2'

doc/btdm_modem_sleep_EVED_mode_for_v3.2(backport v3.2)

See merge request idf/esp-idf!4016

5 years agoMerge branch 'bugfix/ota_magic_byte_issue_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Sat, 29 Dec 2018 02:24:24 +0000 (10:24 +0800)]
Merge branch 'bugfix/ota_magic_byte_issue_v3.2' into 'release/v3.2'

Bugfix/ota magic byte issue v3.2(backport v3.2)

See merge request idf/esp-idf!4004

5 years agoMerge branch 'bugfix/lwip_add_hostname_option_in_dhcp_discover_v3.2' into 'release...
Jiang Jiang Jian [Sat, 29 Dec 2018 02:07:50 +0000 (10:07 +0800)]
Merge branch 'bugfix/lwip_add_hostname_option_in_dhcp_discover_v3.2' into 'release/v3.2'

add hostname option in dhcp discover (backport v3.2)

See merge request idf/esp-idf!3938

5 years agoMerge branch 'mesh/bugfix_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Fri, 28 Dec 2018 06:02:23 +0000 (14:02 +0800)]
Merge branch 'mesh/bugfix_v3.2' into 'release/v3.2'

mesh: when no parent is found, send probe request

See merge request idf/esp-idf!3940

5 years agoMerge branch 'bugfix/bbpll_wakeup_reset_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Mon, 24 Dec 2018 10:16:47 +0000 (18:16 +0800)]
Merge branch 'bugfix/bbpll_wakeup_reset_v3.2' into 'release/v3.2'

BBPLL reset fixes (backport v3.2)

See merge request idf/esp-idf!4011

5 years agomdns: fix networking running udp_sendif from lwip thread
David Cermak [Fri, 14 Dec 2018 10:23:19 +0000 (11:23 +0100)]
mdns: fix networking running udp_sendif from lwip thread

5 years agomdns: check all mallocs for failure and add default hook to log error with free heap
David Cermak [Fri, 7 Dec 2018 19:43:13 +0000 (20:43 +0100)]
mdns: check all mallocs for failure and add default hook to log error with free heap

solves crash about _mdns_result_txt_create when stress test

5 years agomdns: fixed static memory leak
David Cermak [Mon, 10 Dec 2018 15:42:10 +0000 (16:42 +0100)]
mdns: fixed static memory leak

5 years agomdns: resolve memory leak when txt record received multiple times
David Cermak [Thu, 6 Dec 2018 15:46:31 +0000 (16:46 +0100)]
mdns: resolve memory leak when txt record received multiple times

5 years agomdns: skip sending search when finished, not properly locked timer task
David Cermak [Fri, 30 Nov 2018 16:00:05 +0000 (17:00 +0100)]
mdns: skip sending search when finished, not properly locked timer task

5 years agocomponent/bt: add more information and description for bluetooth modem sleep
wangmengyang [Fri, 21 Dec 2018 11:29:47 +0000 (19:29 +0800)]
component/bt: add more information and description for bluetooth modem sleep

Add remark that "EVED" mode for bluetooth modem sleep is only used for internal test

5 years agomesh: when no parent is found, send probe request via broadcast
qiyueixa [Fri, 21 Dec 2018 09:49:58 +0000 (17:49 +0800)]
mesh: when no parent is found, send probe request via broadcast

1. fix error in checking Wi-Fi commit ID.

5 years agoMerge branch 'bugfix/ext_ram_bss_align_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Fri, 21 Dec 2018 09:31:33 +0000 (17:31 +0800)]
Merge branch 'bugfix/ext_ram_bss_align_v3.2' into 'release/v3.2'

Fix ext_ram_bss alignment crash (backport v3.2)

See merge request idf/esp-idf!4014

5 years agoexamples: freemodbus port serial slave move uart mode settings into example
aleks [Mon, 3 Dec 2018 13:16:36 +0000 (14:16 +0100)]
examples: freemodbus port serial slave move uart mode settings into example

Update freemodbus component file esp-idf/components/freemodbus/port/portserial.c to remove UART mode settings;
Move UART mode settings into esp-idf/examples/protocols/modbus_slave/main/freemodbus.c
Move UART pin settings from Component config into example Kconfig.projbuild file
Move setup of UART port pins from freemodbus component into example file

TW#27721
Closes https://github.com/espressif/esp-idf/issues/2784#issuecomment-443600157

5 years agopsram: Use 8-bit type for _ext_ram_bss_start/_ext_ram_bss_end
Angus Gratton [Wed, 19 Dec 2018 22:34:42 +0000 (09:34 +1100)]
psram: Use 8-bit type for _ext_ram_bss_start/_ext_ram_bss_end

Fixes pointer arithmetic when printing size of remaining heap

5 years agomulti_heap: Fix bug when start of heap is unaligned
Angus Gratton [Wed, 19 Dec 2018 22:34:24 +0000 (09:34 +1100)]
multi_heap: Fix bug when start of heap is unaligned

Alignment was accounted for in one place only.

TW27954

5 years agolinker external bss: Align end of ext bss to word boundary
Angus Gratton [Wed, 19 Dec 2018 08:22:47 +0000 (19:22 +1100)]
linker external bss: Align end of ext bss to word boundary

TW27954

5 years agoMerge branch 'bugfix/btdm_fix_crash_adv_scan_coex_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Fri, 21 Dec 2018 07:59:53 +0000 (15:59 +0800)]
Merge branch 'bugfix/btdm_fix_crash_adv_scan_coex_v3.2' into 'release/v3.2'

component/bt: fix crash when adv and scan coex and optimize duplicate scan (backport v3.2)

See merge request idf/esp-idf!3994

5 years agoMerge branch 'bugfix/btdm_fix_two_bugs_about_pairing_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Fri, 21 Dec 2018 06:26:19 +0000 (14:26 +0800)]
Merge branch 'bugfix/btdm_fix_two_bugs_about_pairing_v3.2' into 'release/v3.2'

components/bt: Fix two bugs about pairing(backport 3.2)

See merge request idf/esp-idf!3995

5 years agoMerge branch 'bugfix/btdm_prevent_light_sleep_for_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Fri, 21 Dec 2018 06:25:49 +0000 (14:25 +0800)]
Merge branch 'bugfix/btdm_prevent_light_sleep_for_v3.2' into 'release/v3.2'

bugfix/btdm_prevent_light_sleep_for_v3.2(backport v3.2)

See merge request idf/esp-idf!3986

5 years agosoc/rtc: reset another BBPLL related register
Ivan Grokhotkov [Wed, 12 Dec 2018 04:22:48 +0000 (12:22 +0800)]
soc/rtc: reset another BBPLL related register

Follow-up to b21ffc8a: an additional register needs to be reset.

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

5 years agosoc/rtc: reset BBPLL configuration after enabling it
Ivan Grokhotkov [Thu, 6 Dec 2018 06:43:24 +0000 (14:43 +0800)]
soc/rtc: reset BBPLL configuration after enabling it

A workaround to reset BBPLL configuration after light sleep. Fixes the
issue that Wi-Fi can not receive packets after waking up from light
sleep.

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

5 years agoMerge branch 'bugfix/idf_monitor_without_toolchain_v3.2' into 'release/v3.2'
Ivan Grokhotkov [Fri, 21 Dec 2018 04:01:54 +0000 (12:01 +0800)]
Merge branch 'bugfix/idf_monitor_without_toolchain_v3.2' into 'release/v3.2'

tools: Print useful error message from idf_monitor when toolchain isn't available (backport v3.2)

See merge request idf/esp-idf!3949

5 years agobugfix/ota_magic_byte_issue: Fix indent and replace constant by macro
Supreet Deshpande [Mon, 17 Dec 2018 04:26:18 +0000 (09:56 +0530)]
bugfix/ota_magic_byte_issue: Fix indent and replace constant by macro

Replace 0xE9 by ESP_IMAGE_HEADER_MAGIC.

5 years agobugfix/ota_magic_byte_issue: Fixes OTA magic byte error
Supreet Deshpande [Mon, 10 Dec 2018 11:46:38 +0000 (17:16 +0530)]
bugfix/ota_magic_byte_issue: Fixes OTA magic byte error

On enabling flash encryption, OTA fails with magic byte error in the second chunk
if the http data is split into two or more chunks and first chunk is less than 16.

5 years ago fix crash when adv and scan coex and optimize duplicate scan
zwj [Wed, 19 Dec 2018 11:53:01 +0000 (19:53 +0800)]
 fix crash when adv and scan coex and optimize duplicate scan

5 years agocomponents/bt: Fix two bugs about pairing
baohongde [Wed, 19 Dec 2018 11:42:47 +0000 (19:42 +0800)]
components/bt: Fix two bugs about pairing

1. Fix Legacy Pairing failed without remote device name
2. Fix discovery no device after disabling SSP

5 years agocomponent/bt: use a pm_lock to prevent light sleep when bluetooth is enabled due...
wangmengyang [Mon, 17 Dec 2018 11:54:57 +0000 (19:54 +0800)]
component/bt: use a pm_lock to prevent light sleep when bluetooth is enabled due to current imcompatibility

5 years agoMerge branch 'bugfix/btdm_assert_ble_65536_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Tue, 18 Dec 2018 04:03:21 +0000 (12:03 +0800)]
Merge branch 'bugfix/btdm_assert_ble_65536_v3.2' into 'release/v3.2'

fix bug that there's very low ratio to cause BLE assert(65536, 0) in rwble.c at line 222

See merge request idf/esp-idf!3968

5 years agoMerge branch 'bugfix/btdm_fix_receive_adv_pkt_when_duplicate_scan_enabled_v3.2' into...
Jiang Jiang Jian [Tue, 18 Dec 2018 03:45:28 +0000 (11:45 +0800)]
Merge branch 'bugfix/btdm_fix_receive_adv_pkt_when_duplicate_scan_enabled_v3.2' into 'release/v3.2'

Component/bt: fix receive adv pkt when enable duplicate scan (backport v3.2)

See merge request idf/esp-idf!3942

5 years agoMerge branch 'bugfix/tw27963_fix_wifi_stop_bug_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Tue, 18 Dec 2018 03:41:03 +0000 (11:41 +0800)]
Merge branch 'bugfix/tw27963_fix_wifi_stop_bug_v3.2' into 'release/v3.2'

esp32: fix WiFi stop bug in WiFi/BT coexist mode (backport v3.2)

See merge request idf/esp-idf!3982

5 years agoesp32: fix WiFi stop bug in WiFi/BT coexist mode
Liu Zhi Fu [Mon, 17 Dec 2018 12:52:40 +0000 (20:52 +0800)]
esp32: fix WiFi stop bug in WiFi/BT coexist mode

This fix includes following changes:
1. Fix the bug that esp_restart()/esp_wifi_stop() sometimes fails in WiFi/BT coexist mode.
2. Add a timer for WiFi stop and stop WiFi forcibly once the timer expires.

5 years agofix bug that there's very low ratio to cause BLE assert(65536, 0) in rwble.c at line 222
Tian Hao [Fri, 14 Dec 2018 09:38:52 +0000 (17:38 +0800)]
fix bug that there's very low ratio to cause BLE assert(65536, 0) in rwble.c at line 222

5 years agoComponent/bt: fix receive adv pkt when enable duplicate scan
zhiweijian [Fri, 23 Nov 2018 12:03:40 +0000 (20:03 +0800)]
Component/bt: fix receive adv pkt when enable duplicate scan

5 years agoMerge branch 'bugfix/btdm_modem_sleep_cowork_with_DFS_for_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Fri, 14 Dec 2018 12:28:31 +0000 (20:28 +0800)]
Merge branch 'bugfix/btdm_modem_sleep_cowork_with_DFS_for_v3.2' into 'release/v3.2'

Bugfix/btdm modem sleep cowork with dfs for v3.2(backport v3.2)

See merge request idf/esp-idf!3962

5 years agoMerge branch 'bugfix/btdm_fix_auth_mode_error_when_reconnection_in_smp_v3.2' into...
Jiang Jiang Jian [Fri, 14 Dec 2018 10:24:01 +0000 (18:24 +0800)]
Merge branch 'bugfix/btdm_fix_auth_mode_error_when_reconnection_in_smp_v3.2' into 'release/v3.2'

Component/bt: fix auth_mode error when reconnection in SMP (backport v3.2)

See merge request idf/esp-idf!3955

5 years agocomponent/bt: add DRAM_ATTR attribute to global variables(mostly in bss segment)...
wangmengyang [Fri, 14 Dec 2018 06:59:41 +0000 (14:59 +0800)]
component/bt: add DRAM_ATTR attribute to global variables(mostly in bss segment) in bt.c which can be accessed in ISR

5 years agoMerge branch 'bufix/btdm_fix_save_key_when_auth_mode_without_bond_v3.2' into 'release...
Jiang Jiang Jian [Fri, 14 Dec 2018 06:59:24 +0000 (14:59 +0800)]
Merge branch 'bufix/btdm_fix_save_key_when_auth_mode_without_bond_v3.2' into 'release/v3.2'

Component/bt: fix save keys when auth mode without bond (backport V3.2)

See merge request idf/esp-idf!3957

5 years agocomponent/bt: bugfix of bluetooth modem sleep not being able to work with Dynamic...
wangmengyang [Fri, 14 Dec 2018 06:56:29 +0000 (14:56 +0800)]
component/bt: bugfix of bluetooth modem sleep not being able to work with Dynamic Frequency Scaling

1. start an esp_timer on entering sleep to acquire pm_lock before wake up from modem sleep
2. decrease the clock division of XTAL fed to bluetooth low power clock from 32us to 2us period to allow to work under 240MHz Max CPU frequency
3. decrease the minimum sleep duration threshold to allow shorter bluetooth modem sleep period, especially for BLE with short connection interval
4. reconfigure bluetooth baseband(BT-BB) settings after PHY/RF init upon waking up from modem sleep to avoid packet RX/TX performance degradation

5 years agotools: Print useful error message from idf_monitor when toolchain isn't available
Roland Dobai [Sat, 1 Dec 2018 15:16:49 +0000 (16:16 +0100)]
tools: Print useful error message from idf_monitor when toolchain isn't available

5 years agoComponent/bt: fix save keys when auth mode without bond
zhiweijian [Fri, 23 Nov 2018 10:06:02 +0000 (18:06 +0800)]
Component/bt: fix save keys when auth mode without bond

5 years agoComponent/bt: fix auth_mode error when reconnection in SMP
zhiweijian [Fri, 30 Nov 2018 13:47:17 +0000 (21:47 +0800)]
Component/bt: fix auth_mode error when reconnection in SMP

5 years agoMerge branch 'test/add_case_to_detect_ds2ds_issue_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Thu, 13 Dec 2018 06:52:58 +0000 (14:52 +0800)]
Merge branch 'test/add_case_to_detect_ds2ds_issue_v3.2' into 'release/v3.2'

test: add case to detect ds2ds issue (backport v3.2)

See merge request idf/esp-idf!3851

5 years agoMerge branch 'bugfix/btdm_fix_accept_specified_sec_auth_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Thu, 13 Dec 2018 03:20:02 +0000 (11:20 +0800)]
Merge branch 'bugfix/btdm_fix_accept_specified_sec_auth_v3.2' into 'release/v3.2'

Component/bt: fix accept specified sec auth error(backport v3.2)

See merge request idf/esp-idf!3836

5 years agoMerge branch 'feature/illegal_instruction_panic_info_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Wed, 12 Dec 2018 07:58:22 +0000 (15:58 +0800)]
Merge branch 'feature/illegal_instruction_panic_info_v3.2' into 'release/v3.2'

panic: dump some instruction memory on IllegalInstruction exception (backport v3.2)

See merge request idf/esp-idf!3946