kapil.gupta
de85de7c51
wpa_supplicant: Fix some memleaks and invalid memory access
...
Add changes to fix issues reported in clang analyzer
2020-05-06 11:05:30 +00:00
Island
27ae9d3e2c
Merge branch 'bugfix/ble_mesh_provisioner_check_key_v4.1' into 'release/v4.1'
...
ble_mesh: Check if appkey exist before deleting it (v4.1)
See merge request espressif/esp-idf!8621
2020-05-06 18:17:02 +08:00
Island
7db21de3b3
Merge branch 'bugfix/ble_mesh_compile_error_o2_v4.1' into 'release/v4.1'
...
ble_mesh: Fix compile error when -O2 (performance) is chosen (v4.1)
See merge request espressif/esp-idf!8616
2020-05-06 18:15:53 +08:00
Island
cec0f25484
Merge branch 'bugfix/ble_mesh_node_reset_erase_v4.1' into 'release/v4.1'
...
ble_mesh: Fix node not erase info completely (v4.1)
See merge request espressif/esp-idf!8622
2020-05-06 18:14:41 +08:00
David Čermák
f232b07e4e
Merge branch 'feature/config_mqtt_task_prio_v4.1' into 'release/v4.1'
...
esp_mqtt: configure task priority, esp_mqtt_abort_connection race condition, clenaup logs and docs (v4.1)
See merge request espressif/esp-idf!8472
2020-05-06 16:23:19 +08:00
lly
78b13034ef
ble_mesh: Fix node not erase info completely
...
Previously only mesh node info is supported to be stored
in flash. So when trying to reset the node, we only need
to judge if the BLE_MESH_VALID flag is set.
Currently we support storing both node & Provisioner info
in flash, when trying to erase the node info from flash,
the BLE_MESH_NODE flag will be checked. So we need to set
bt_mesh.flags to 0 when all the erase operations are done.
2020-05-06 11:43:43 +08:00
lly
099bf88b2e
ble_mesh: Check if appkey exist before deleting it
2020-05-06 11:40:20 +08:00
lly
466d450b4b
ble_mesh: Add length check for some mesh operations
2020-05-06 11:26:33 +08:00
lly
a742255f8e
ble_mesh: Fix compile error when -O2 (performance) is chosen
2020-05-06 11:26:25 +08:00
Island
dd89b2dc0d
Merge branch 'bugfix/ble_mesh_rpl_list_size_v4.1' into 'release/v4.1'
...
ble_mesh: Associate replay protection list size with nodes count (v4.1)
See merge request espressif/esp-idf!8493
2020-05-06 11:15:21 +08:00
Island
fefa9b7fe9
Merge branch 'doc/ble_mesh_fixes_v4.1' into 'release/v4.1'
...
doc: Fix some ble mesh description (v4.1)
See merge request espressif/esp-idf!8502
2020-05-06 11:13:16 +08:00
Island
547fd926a9
Merge branch 'bugfix/ble_mesh_add_missing_cpp_v4.1' into 'release/v4.1'
...
ble_mesh: Add missing #ifdef __cplusplus (v4.1)
See merge request espressif/esp-idf!8505
2020-05-06 11:12:13 +08:00
Island
d6cbfc7f19
Merge branch 'feat/ble_mesh_sensor_model_example_v4.1' into 'release/v4.1'
...
ble_mesh: Add ble mesh sensor model examples (v4.1)
See merge request espressif/esp-idf!8507
2020-05-06 11:11:59 +08:00
Island
61405472e4
Merge branch 'bugfix/ble_mesh_time_scene_wrong_name_v4.1' into 'release/v4.1'
...
ble_mesh: Fix time scene wrong macro name (v4.1)
See merge request espressif/esp-idf!8510
2020-05-06 11:11:24 +08:00
Piyush Shah
3fa198b8a2
wifi_provisioning: Catch the Wi-Fi events even after Connection errors
...
It was observed that after sending credentials, if the first
Wi-Fi conection attempt fails, the Wi-Fi provisioning managager
ignores subsequent Wi-Fi events. So, even if the device eventually
connects to the AP, the provisioning stays on indefinitely.
Changing a check so that subsequent events are also captured and
provisioning finishes successfully.
2020-05-05 22:09:18 +05:30
Angus Gratton
9778b163b1
Merge branch 'bugfix/fix_spi_flash_clock_config_error_v4.1' into 'release/v4.1'
...
flash: fix spi flash clock config error (backport v4.1)
See merge request espressif/esp-idf!8513
2020-05-05 11:31:11 +08:00
Nachiket Kukade
e006d21419
esp_wifi: Enable WPA3 & PMF by default
...
In wifi station example, set PMF(Protected Management Frames)
configuration to capable. Set WPA3 Feature in menuconfig enabled
by default. This will allow device to establish more secured
connection with AP's that support these protocols.
2020-05-04 17:37:56 +05:30
KonstantinKondrashov
4214179de1
spi_flash(new driver): Add a Kconfig option - Bypass a block erase and always do sector erase
...
Closes: IDF-1561
2020-05-04 17:16:33 +08:00
KonstantinKondrashov
5c98ff015e
spi_flash(LEGACY_IMPL): Add a Kconfig option - Bypass a block erase and always do sector erase
...
Closes: IDF-1561
2020-05-04 17:16:33 +08:00
KonstantinKondrashov
b56c7d9066
spi_flash: Add into sim/stubs the esp_timer
2020-05-04 17:16:33 +08:00
KonstantinKondrashov
d67e764ef6
spi_flash(new driver): Add vTaskDelay while a long erasing
2020-05-04 17:16:33 +08:00
KonstantinKondrashov
1554fd3d8a
spi_flash(LEGACY_IMPL): Add vTaskDelay while a long erasing
...
Added Kconfig options to enable yield operation during flash erase
Closes: https://github.com/espressif/esp-idf/issues/2083
Closes: https://github.com/espressif/esp-idf/issues/4916
Closes: IDFGH-261
2020-05-04 15:48:22 +08:00
David Cermak
0cd5e28bce
mqtt: clenaup logs and docs, esp_mqtt_abort_connection race condition
...
esp_mqtt_abort_connection: Fixed an issue which could result in a race condition and subsequent crash
esp_mqtt: Change an error print to use ESP_LOGE instead of ESP_LOGI
Move Sending MQTT connect message log from Info to Debug level
docs: Makes clear that publish API could block
Change the message printed after MQTT connection failure
2020-05-04 07:48:20 +02:00
Simon Brélivet
c1cd396b95
esp_mqtt: add option to configure mqtt task priority.
...
Merges https://github.com/espressif/esp-idf/pull/4947
2020-05-04 07:45:24 +02:00
lly
4b1cbe87b3
ble_mesh: Fix client local parameters not initialized
2020-04-30 11:50:15 +00:00
lly
8b2291a718
ble_mesh: Continue node info restore even if failure happens
...
During BLE Mesh Provisioner initialization, the stack will restore
the nodes information if settings storage is enabled.
Previously when a failure happens (e.g. found the same uuid) during
the restore procedure, the information of the following nodes will
not be restored and error will be directly returned.
But this will introduce some problem with user experience, because
some newly provisioned nodes information will not be restored and
Provisioner will not be able to control those nodes.
So we change the operation here, when a failure happens during the
restore procedure, Provisioner will only ignore the information of
the current node and continue restoring other nodes information.
2020-04-30 11:50:15 +00:00
lly
fca4124f70
ble_mesh: Remove some redundant functions
2020-04-30 11:50:15 +00:00
lly
d35d765395
ble_mesh: Notify unprovisioned device beacon to application layer
...
With this change, if a Provisioner has provisioned the maximum
number of nodes, it can still report the unprovisioned device
beacon from other nodes to the application layer. And this will
be more reasonable compared with the previous implementation.
Previously when the node array of Provisioner is full, no beacon
from unprovisioned devices will be reported, only some warning
logs will be given.
2020-04-30 11:50:15 +00:00
lly
94092a148c
ble_mesh: Check if assigned node address is duplicated
...
Previously only check the node address when it is assigned by the
application layer. Here we also check the address when the address
is allocated internally. And this will be useful when some mesh
internal tests are performed.
2020-04-30 11:50:15 +00:00
lly
68e8a7e0ba
ble_mesh: Update next alloc address when node info is added
2020-04-30 11:50:15 +00:00
lly
62ac50f9d7
ble_mesh: Fix Provisioner provisioning deadlock
2020-04-30 11:50:15 +00:00
lly
fefd52f093
ble_mesh: Remove BLE_MESH_MAX_STORED_NODES option
...
Previously the BLE_MESH_MAX_STORED_NODES option is added for
internal mesh test, which will be a little confusing for the
users to understand.
Here we remove this option, instead the BLE_MESH_MAX_PROV_NODES
will be used for all the cases. For mesh internal test, when
the test function is called to add some nodes info, the info
will be stored in the array of provisioned nodes directly.
2020-04-30 11:50:15 +00:00
lly
7c379f8a65
ble_mesh: Associate replay protection list size with nodes count
...
The replay protection list of Provisioner should be at least equal
to the number of nodes with the precondition that each node contains
only one element.
The help information of replay protection list is updated, and the
maximum number of nodes for Provisioner is adjusted based on the
replay protection list size.
2020-04-30 11:50:15 +00:00
lly
c28828d255
doc: Fix some ble mesh description
2020-04-30 11:43:26 +00:00
lly
67eef52822
ble_mesh: Add some common macros for sensor model
2020-04-30 11:35:11 +00:00
lly
6f7acf6a21
ble_mesh: Allow empty sensor series column value
2020-04-30 11:35:11 +00:00
lly
df96c73471
ble_mesh: Check if same sensor (settings) property id exists
2020-04-30 11:35:11 +00:00
lly
3ceb5b3718
ble_mesh: Allow empty sensor settings exist
2020-04-30 11:35:11 +00:00
lly
d51bd36142
ble_mesh: Add missing #ifdef __cplusplus
2020-04-30 08:45:55 +00:00
Angus Gratton
bd01c359bd
Merge branch 'bugfix/heap_psram_fill_v4.1' into 'release/v4.1'
...
heap: Only fill new heaps with FREE_FILL_PATTERN if Comprehensive poisoning is on (v4.1)
See merge request espressif/esp-idf!8490
2020-04-30 13:45:07 +08:00
zhangyanjiao
43d8950682
wifi changes:
...
1. fix the bug for softAP update second channel wrong
2. change wifi_scan_time_t from union to struct
3. query country code wrong when policy change from manual to auto
2020-04-29 17:27:00 +08:00
baohongde
ddaa9d4523
Coexistence: Add coexist API to enable BLE connection dynamic priority
2020-04-29 13:57:59 +08:00
dowster
58044063dd
Fix typo with sigmadelta.h #ifdef
2020-04-29 12:20:46 +08:00
morris
67f9448e71
fix broken CONFIG_LEGACY_INCLUDE_COMMON_HEADERS
2020-04-29 12:19:25 +08:00
morris
5b516b107a
timer_group: update hal api && fix intr_enable
...
timer group interrupt enable is controled by level_int_ena instead of int_ena
Closes https://github.com/espressif/esp-idf/issues/5103
2020-04-29 12:19:25 +08:00
Nachiket Kukade
27ec86cd8e
esp_wifi: Update wifi lib
...
Backports PMF Certification fixes -
1. Check return status of decrypt operation. Fixes 5.3.3.1.
2. Allow PMF negotiation for WPA2-Enterprise. Fixes 5.3.3.2, 5.3.3.4.
3. Add NULL check on key before encrypting PMF, fixes crash.
Closes WIFI-2251
2020-04-29 01:47:32 +00:00
Nachiket Kukade
6254bf443e
wpa_supplicant: Disable TLSv1.2 by default
...
Some Enterprise Authentication Servers do not support TLS v1.2.
Move this option to Menuconfig and disable by default.
2020-04-28 10:46:59 +05:30
Jiang Jiang Jian
198953df8f
Merge branch 'fixbug/tcp_kill_state_assert_for_v4.1' into 'release/v4.1'
...
lw-ip:fixbug for tcp kill state assert(backport 4.1)
See merge request espressif/esp-idf!8452
2020-04-28 11:43:37 +08:00
Jiang Jiang Jian
87fa7af6b7
Merge branch 'bugfix/pm_dump_locks_v4.1' into 'release/v4.1'
...
esp_pm: esp_pm_dump_locks: don't print from a critical section (backport v4.1)
See merge request espressif/esp-idf!8353
2020-04-28 11:41:21 +08:00
Michael (XIAO Xufeng)
e558b2237d
Merge branch 'bugfix/mcpwm_period_error_v4.1' into 'release/v4.1'
...
bugfix(mcpwm_period_error): fix the issue of wrong period (backport v4.1)
See merge request espressif/esp-idf!7735
2020-04-27 18:06:15 +08:00
chenjianqiang
eb5bafeb65
flash: fix spi flash clock config error
...
Closes https://github.com/espressif/esp-idf/issues/5099
2020-04-27 16:56:58 +08:00
lly
e6fc2a7bc8
ble_mesh: Fix time scene wrong macro name
2020-04-27 16:24:13 +08:00
Angus Gratton
13ef9cf4bc
heap: Only fill new heaps with FREE_FILL_PATTERN if Comprehensive poisoning is on
...
Significantly speeds up heap initialization at startup when default "Light" heap
poisoning is enabled.
Tip via reddit user LinkeSeitentasche https://www.reddit.com/r/esp32/comments/fnj51a/a_guide_to_improving_esp32_boot_speed/
2020-04-27 16:32:24 +10:00
espressif
7d934dafb8
mcpwm: fix the issue of wrong period (backport v4.1)
2020-04-24 21:10:14 +08:00
xueyunfei
c50952ebaf
fixbug for tcp kill state assert
2020-04-23 15:58:29 +08:00
xueyunfei
0c92ca5175
fixbug for set dhcp time fail for 4.1
2020-04-22 11:13:01 +08:00
Angus Gratton
a41bcacf31
Merge branch 'bugfix/ppp_enable_ipv6_v4.1' into 'release/v4.1'
...
esp-netif: make the IPv6 configurable for PPP netifs (v4.1)
See merge request espressif/esp-idf!8200
2020-04-21 12:36:00 +08:00
Angus Gratton
e9c6f119de
Merge branch 'bugfix/make_system_using_rom_time_funcs_v4.1' into 'release/v4.1'
...
esp_rom: Fix esp32.rom.newlib-time.ld should includes all time ROM functions/data (v4.1)
See merge request espressif/esp-idf!8365
2020-04-17 14:14:13 +08:00
Angus Gratton
1ea008d22e
Merge branch 'feature/add_rtc_xtal_cal_retry_option_v4.1' into 'release/v4.1'
...
esp32: Add a Kconfig option - Number of attempts to repeat 32k XTAL calibration (v4.1)
See merge request espressif/esp-idf!7931
2020-04-16 15:25:03 +08:00
Jiang Jiang Jian
585d53dfa8
Merge branch 'bugfix/fix_errors_with_mbedtls_disabled_v4.1' into 'release/v4.1'
...
wpa_supplicant: Fix compilation errors when USE_MBEDTLS is disabled. (v4.1)
See merge request espressif/esp-idf!8356
2020-04-16 14:59:35 +08:00
Jiang Jiang Jian
1f480f4570
Merge branch 'bugfix/fix_API_esp_wifi_stop_crash_issue_v4.1' into 'release/v4.1'
...
bugfix: fix esp_wifi_stop crash issue (backport v4.1)
See merge request espressif/esp-idf!8329
2020-04-16 14:58:00 +08:00
Angus Gratton
d10ad9a4b1
Merge branch 'bufgix/esp_ota_get_app_elf_sha256_v4.1' into 'release/v4.1'
...
app_update: Fix case when elf file SHA256 should be printed by panic handler while cache is disabled (v4.1)
See merge request espressif/esp-idf!8366
2020-04-16 14:32:21 +08:00
Marius Vikhammer
0c4e55e3bd
app_update: fix test failure for get_app_elf_sha256 test
...
Commit fc03161f
updated esp_ota_get_app_elf_sha256 to store and return
X number of bytes of the hash, but the test case still expected 64 bytes.
Updated test case to use CONFIG value for expected length.
2020-04-15 21:09:57 +08:00
KonstantinKondrashov
a2a71fc68f
app_update: Fix case when elf file SHA256 should be printed by panic handler while cache is disabled
...
Closes: IDF-1342
2020-04-15 21:05:58 +08:00
KonstantinKondrashov
ae063d96c2
esp_rom: Fix esp32.rom.newlib-time.ld should includes all time ROM functions/data
...
- Added UT
Closes: https://github.com/espressif/esp-idf/issues/4925
2020-04-15 20:59:24 +08:00
KonstantinKondrashov
3948065c24
efuse: Using IDF_ENV_FPGA in UTs
2020-04-15 19:43:07 +08:00
KonstantinKondrashov
33eab40f2a
efuse/esp32s2: Fix get_coding_scheme() when CONFIG_SECURE_FLASH_ENC_ENABLED and LOG_LEVEL is Debug
2020-04-15 19:36:47 +08:00
KonstantinKondrashov
f59ef5e6ef
efuse/esp32: Fix get_coding_scheme() when CONFIG_SECURE_FLASH_ENC_ENABLED and LOG_LEVEL is Debug
...
Closes: https://github.com/espressif/esp-idf/issues/4862
2020-04-15 19:36:45 +08:00
Sagar Bijwe
b7ae3ff9bd
wpa_supplicant: Fix compilation errors when USE_MBEDTLS is disabled.
...
This is a regression from earlier commit related to TLSV12 which used
sha functions that are currently declared static.
Solution: Follow upstream code structure and resolve the errors.
2020-04-15 15:33:59 +05:30
KonstantinKondrashov
a2a89fb95d
esp32: Add a Kconfig option- Number of attempts to repeat 32k XTAL calibration
...
Closes: IDF-1479
2020-04-15 16:34:57 +08:00
Ivan Grokhotkov
ffe0cca423
esp_pm: esp_pm_dump_locks: don't print from a critical section
...
Closes https://github.com/espressif/esp-idf/issues/1917
2020-04-15 08:47:37 +02:00
Jiang Jiang Jian
b3410b9210
Merge branch 'bugfix/coredump_no_ext_stacks_v4.1' into 'release/v4.1'
...
core dump: don't allow core dumps to Flash if PSRAM is used for stacks (backport v4.1)
See merge request espressif/esp-idf!8228
2020-04-15 13:25:26 +08:00
Jiang Jiang Jian
b08b0f0949
Merge branch 'bugfix/psram_single_bit_error_v4.1' into 'release/v4.1'
...
psram: support psram 2T mode to fix single bit error (backport v4.1)
See merge request espressif/esp-idf!8327
2020-04-15 13:24:21 +08:00
Jiang Jiang Jian
f646cdd6a8
Merge branch 'nimble/fix_ble_hs_reset_v4.1' into 'release/v4.1'
...
NimBLE: Reset master and slave states on host reset and few minor fixes (backport v4.1)
See merge request espressif/esp-idf!8216
2020-04-15 13:23:59 +08:00
Jiang Jiang Jian
445f727e7a
Merge branch 'bugfix/fix_supplicant_tlsv12_v4.1' into 'release/v4.1'
...
wpa_supplicant: Fix wpa_supplicant TLS 1.2 issues (v4.1)
See merge request espressif/esp-idf!8202
2020-04-15 13:06:42 +08:00
Angus Gratton
e1562311bf
Merge branch 'bugfix/logging_compilation_fix_anti_rollback_v4.1' into 'release/v4.1'
...
Minor fix logging issue hindering compilation on anti rollback. (v4.1)
See merge request espressif/esp-idf!8302
2020-04-14 16:36:29 +08:00
Sagar Bijwe
afc1362ea6
wpa_supplicant: Fix wpa_supplicant TLS 1.2 issues
...
1) Fixed compilation issues.
2) Added tlsprf.c from upstream
3) Enabled SHA256 in supplicant compilation.
2020-04-13 16:39:59 +00:00
ronghulin
d880672076
bugfix: fix esp_wifi_stop crash issue
2020-04-13 16:05:48 +08:00
chenjianqiang
90a8945930
psram: support psram 2T mode to fix single bit error
...
1. add enable PSRAM 2T mode function
2. abort when himem and 2T mode are enabled meanwhile
3. set SPIRAM_2T_MODE as "n" by default, enable it when needed
2020-04-13 14:26:45 +08:00
lly
1ac44aa202
ble_mesh: Support BLE advertising simultaneously
2020-04-10 17:34:06 +08:00
Prasad Alatkar
acb92c225f
NimBLE: Minor fix in esp_nimble_cfg
and bleprph
README (backport v4.1)
2020-04-09 16:05:14 +05:30
Prasad Alatkar
072d01da2f
NimBLE: Reset master and slave states on host reset and fix build failure (backport v4.1)
2020-04-09 16:05:04 +05:30
Supreet Deshpande
87d68ebb98
Fixes logging issue hindering compilation on anti rollback.
2020-04-09 12:04:20 +05:30
lly
89f7e62011
ble_mesh: Add ble mesh white list test function
...
Using the ble mesh white list test functions, a node can choose to
only receive mesh messages from a specific node and relay the
messages for it. Messages from other nodes will be ignored.
2020-04-09 06:03:59 +00:00
Ivan Grokhotkov
4fe18a9258
Merge branch 'bugfix/IDFGH-2910_v4.1' into 'release/v4.1'
...
NVS: bugfix - iterator skipping version 1 blobs (v4.1)
See merge request espressif/esp-idf!8191
2020-04-09 05:45:49 +08:00
Shubham Kulkarni
4573688862
esp_ota_ops.c: Fix size calculation to erase partition range for OTA image
...
Closes https://github.com/espressif/esp-idf/issues/4953
2020-04-06 13:39:01 +05:30
Ivan Grokhotkov
cd301cc324
core dump: don't allow core dumps to Flash if PSRAM is used for stacks
...
It is not possible to write to Flash when the stack is located in
PSRAM, and it is not possible to write PSRAM buffers into Flash when
malloc can not be used.
2020-04-02 23:43:20 +02:00
Jiang Jiang Jian
9a1c5a903f
Merge branch 'bugfix/btdm_backports_v4.1_0328' into 'release/v4.1'
...
Bugfix/btdm backports v4.1 0328
See merge request espressif/esp-idf!8150
2020-04-02 22:47:49 +08:00
Jiang Jiang Jian
5e09d473c7
Merge branch 'bugfix/btdm_dont_dequeue_the_command_queue_v4.1' into 'release/v4.1'
...
component/bt: fix don't dequeue the command queue after process the read_by_type_req(backport v4.1)
See merge request espressif/esp-idf!8181
2020-04-01 19:06:55 +08:00
David Cermak
4b59f7e2c7
mdns: limit the GOT_IP6_EVENT to only known network interfaces
2020-04-01 08:52:54 +02:00
David Cermak
716298f8e3
esp-netif-ppp: support for posting GOT_IP event for IPv6
2020-04-01 08:52:54 +02:00
Francesco Giancane
3c01f68a78
lwip: make IPV6 link-local support over PPP configurable
...
Make the link local negotiation for IPV6 in PPP optional and
configurable.
This is because some modems do not support the IPV6 negotiation and
sending IPV6CP frames would in some cases break the network
configuration phase, resulting in a timeout during the Phase Network.
Please note that this does not disable the IPV6 support for the outgoing
communication (IPV6 is still enabled even if this option is not
selected) but just for the local link between lwIP and modem.
Signed-off-by: Francesco Giancane <francesco.giancane@accenture.com>
Merges https://github.com/espressif/esp-idf/pull/4782
Closes https://github.com/espressif/esp-idf/issues/1065
2020-04-01 08:52:54 +02:00
Angus Gratton
a5bf353e3f
Merge branch 'backport/malloc_zero_return_null_v4.1' into 'release/v4.1'
...
backport/malloc_zero_return_null_v4.1
See merge request espressif/esp-idf!8146
2020-04-01 14:41:33 +08:00
Jakob Hasse
26379f7d3e
NVS: bugfix - iterator skipping version 1 blobs
...
Closes https://github.com/espressif/esp-idf/issues/4954
2020-04-01 11:16:28 +08:00
xiewenxiang
79590d2e21
component/bt: fix don't dequeue the command queue after process the read_by_type_req
2020-03-31 16:27:08 +08:00
Angus Gratton
c17d55eb9b
esp32: Enable flash encryption by setting FLASH_CRYPT_CNT to max
...
Previous method was to write-protect this efuse, however on ECO3
the write protect field also covers the UART_DOWNLOAD_DIS efuse.
Doing it this way keeps the possibility of disabling UART download
mode, later.
2020-03-31 17:31:59 +11:00
Angus Gratton
cf8dd62fc4
secure boot v2: esp32: Prevent read disabling additional efuses
...
Also reduce the number of eFuse write cycles during first boot when
Secure Boot and/or Flash Encryption are enabled.
2020-03-31 17:31:56 +11:00
Angus Gratton
f96d28172b
Merge branch 'bugfix/monitor_encrypted_target_v4.1' into 'release/v4.1'
...
tools: Fix flashing encrypted binaries from IDF Monitor (v4.1)
See merge request espressif/esp-idf!8126
2020-03-31 13:09:55 +08:00
Jiang Jiang Jian
f538b63458
Merge branch 'bugfix/fix_airkiss_bug_v4.1' into 'release/v4.1'
...
fix the bug for Airkiss (backport v4.1)
See merge request espressif/esp-idf!8121
2020-03-31 00:07:51 +08:00
baohongde
a8494b68e1
components/coex: Fix wakeup delay with DFS
2020-03-28 20:12:21 +08:00
liu zhifu
8367bc4571
esp_wifi: backport some WiFi bugs
...
1. Fix WiFi log print level
2. Optimize WiFi/BT coexist sleep
- If any data tx/rx in WiFi slice, fore wakeup next TBTT
- Increase active timeout time to coex TBTT interval to avoid sleep in WiFi slice
2020-03-28 18:13:31 +08:00
gengyuchao
374e9b32d4
bugfix/fix_controller_disable_re_enable_crash
2020-03-28 17:14:37 +08:00
Felipe Neves
7fdc9571ba
multi_heap: ensure that malloc(0) return NULL pointer in any poisoning configuration
2020-03-27 14:27:45 -03:00
Mahavir Jain
f9f42a9d90
Merge branch 'fix/wifi_provisioning_uuid_v4.1' into 'release/v4.1'
...
Wifi_provisioning: Change service_uuid to non standard 128 bit UUID and add retries in test script (backport v4.1)
See merge request espressif/esp-idf!8081
2020-03-27 22:54:10 +08:00
Roland Dobai
820ed5c7f1
tools: Fix flashing encrypted binaries from IDF Monitor
2020-03-27 09:43:26 +01:00
zhangyanjiao
88f8f91d40
fix the bug for Airkiss
...
Closes https://github.com/espressif/esp-idf/issues/3362
2020-03-26 21:12:52 +08:00
Angus Gratton
06337f1034
Merge branch 'bugfix/cmake_bugfixes_v4.1' into 'release/v4.1'
...
CMake-related bugfixes (v4.1)
See merge request espressif/esp-idf!8067
2020-03-26 16:29:55 +08:00
Prasad Alatkar
db1111ef79
Wifi_provisioning_ble: Change service_uuid to non standard 128 bit UUID
...
- Modifies UUIDs in scheme_ble, manager example and esp_prov tool to custom 128
bit UUID
2020-03-26 05:04:52 +00:00
Jiang Jiang Jian
dbaf0f1e93
Merge branch 'bugfix/backport_some_wifi_bugs_0323_v4.1' into 'release/v4.1'
...
esp_wifi: Backport some wifi bugs 0323 (backport v4.1)
See merge request espressif/esp-idf!8086
2020-03-25 15:11:32 +08:00
Jiang Jiang Jian
906280e767
Merge branch 'optimization/TCPv6_connect_for_v4.1' into 'release/v4.1'
...
lw-ip:optimization TCPv6 connect for 4.1
See merge request espressif/esp-idf!8048
2020-03-24 15:25:27 +08:00
xiehang
55abe2eba8
esp_wifi: Fix ESP32S2 wifi log not printing
2020-03-24 15:05:05 +08:00
xiehang
fbe215f3c0
esp_wifi: backport some wifi bugs 0323
...
1.Reduce wifi bin size
2.Add TX packets size check
3.Fix scan get rssi error
4.Return fail when setting AP's channel out of range
2020-03-24 15:05:00 +08:00
Mahavir Jain
b8fe1fdf27
bootloader_support: initialize mbedtls_ctr_drbg_context per mbedtls v2.16.5 requirement
...
In commit 02d2903e39
, mbedtls was
updated to release v2.16.5, where it was made mandatory to initialize
mbedtls_ctr_drbg_context before using same. It was fixed in wpa supplicant
but missed out in secure boot v2 verification code. This commit
fixes that.
2020-03-23 11:22:20 +05:30
Mahavir Jain
355a210a38
mbedtls: upgrade to release v2.16.5
...
For detailed release notes please refer to:
https://tls.mbed.org/tech-updates/releases/mbedtls-2.16.5-and-2.7.14-released
Closes: IDFGH-2638
Closes: https://github.com/espressif/esp-idf/issues/4716
2020-03-23 11:22:02 +05:30
Sagar Bijwe
5c4f7948d4
wpa_supplicant: Fix SAE test-case failure on mbedtls version udpate
...
Problem:
mbedtls_ctr_drbg_context was initialized in crypto_ec_point_mul. This
was okay in releases before 2.16.4 as entropy_len used to get set to
MBEDTLS_CTR_DRBG_ENTROPY_LEN in function mbedtls_ctr_drbg_seed. The
function is now changed to set the length to
MBEDTLS_CTR_DRBG_ENTROPY_LEN if previous length is 0 and hence the bug.
Solution:
Initialize mbedtls_ctr_drbg_context in crypto_ec_point_mul.
2020-03-23 11:22:02 +05:30
Renz Bagaporo
bc81db3676
cmake: show error message on encrypted flash targets without proper config
2020-03-22 20:44:23 +08:00
Renz Bagaporo
cc95d14d80
ulp: fix ulp external project args
...
Closes https://github.com/espressif/esp-idf/issues/4713
2020-03-22 20:00:21 +08:00
Renz Christian Bagaporo
1717232f11
ulp: use quotes when specifying files for embedding ulp binaries
2020-03-22 19:59:50 +08:00
Renz Christian Bagaporo
2aba19e00d
partition_table: output partition table info for partition_table target
2020-03-22 19:58:48 +08:00
Jiang Jiang Jian
bac92d579f
Merge branch 'bugfix/send_ok_when_sta_disconnect_for_v4.1' into 'release/v4.1'
...
lw-ip:bugfix for TCPv6 send ok when sta disconnect for v4.1
See merge request espressif/esp-idf!8025
2020-03-21 15:15:49 +08:00
Jiang Jiang Jian
b445b59c5e
Merge branch 'bugfix/wep40_key_parsing_bug_v4.1' into 'release/v4.1'
...
Bugfix/wep40 key parsing bug v4.1
See merge request espressif/esp-idf!7990
2020-03-20 17:33:50 +08:00
xueyunfei
9b31a2e7f9
optimization TCPv6 connect for 4.1
2020-03-20 15:04:31 +08:00
Jiang Jiang Jian
71ffae5d6e
Merge branch 'bugfix/hfp_github_issues_v4.1' into 'release/v4.1'
...
Bugfix for HFP and some Github issue. v4.1
See merge request espressif/esp-idf!7975
2020-03-20 13:21:33 +08:00
xueyunfei
c092f9b881
bugfix for TCPv6 send ok when sta disconnect
2020-03-19 14:14:13 +08:00
kapil.gupta
582a493739
wpa_supplicant: Add parsing support for WEP40 key
...
WEP key is passed as ascii key without "", add parsing support
in supplicant for this.
2020-03-18 13:40:05 +00:00
Angus Gratton
4414e829de
Merge branch 'backport/feat/secure_boot_v2_v41' into 'release/v4.1'
...
Backport/feat/secure boot v2 v41
See merge request espressif/esp-idf!7854
2020-03-18 15:35:53 +08:00
weitianhua
f5fc735711
Bugfix for HFP and some Github issue.
...
1. Bugfix for AG audio crash (change the return position)
2. Fix the error macro name and error return in hfp_hf demo
3. Fix the annotation error using UTF-8 ' (from Github)
4. Change or remove the log in SCO related code region.
5. Correct error of introduction of a function.
2020-03-18 04:06:24 +00:00
lly
7815cd9ff4
ble_mesh: Fix ble mesh nimble host deinit
2020-03-17 16:18:50 +08:00
Jiang Jiang Jian
1cdea40bba
Merge branch 'bugfix/ble_mesh_miscellaneous_fix_v4.1' into 'release/v4.1'
...
Bugfix/ble mesh miscellaneous fix (v4.1)
See merge request espressif/esp-idf!7969
2020-03-17 15:34:19 +08:00
weitianhua
aa6347339c
Remove (x2) variable in BCM_STRNCPY_S and BCM_STRCPY_S when performance optimization enabled
2020-03-14 14:41:16 +08:00
weitianhua
8488f292c2
Fix mem_start uninitialized error when compiler optimization performance enabled
2020-03-14 14:41:06 +08:00
lly
6431a5e185
ble_mesh: Move dev_role to the end of model_pub
2020-03-13 19:24:49 +08:00
lly
27b28c0249
ble_mesh: Use the right netkey during iv update
2020-03-13 19:24:45 +08:00
lly
b29bc240a7
ble_mesh: Use the right net_idx & app_idx for publish
2020-03-13 19:24:37 +08:00
lly
940e87c0da
ble_mesh: Check buf->ref before unref the buffer
2020-03-13 19:24:32 +08:00
lly
60eaca9637
ble_mesh: Fix mesh memory use-after-free issue
2020-03-13 19:24:27 +08:00
lly
e01333514d
ble_mesh: Add ble mesh deinit in btc task
2020-03-13 19:24:23 +08:00
lly
f0519c674f
ble_mesh: Free beacon timer when deinit mesh
2020-03-13 19:24:18 +08:00
lly
de9186b908
ble_mesh: Use lock for mesh timer operations
2020-03-13 19:24:12 +08:00
Angus Gratton
5cd45a6d80
secure boot: Fix anti-fault value if hash is shorter than curve
...
(Not actually a problem with SBV1 anti-fault as hash size == curve size in this case.)
2020-03-13 14:01:45 +05:30
Ivan Grokhotkov
7f84669054
Merge branch 'bugfix/from_github_v4.1' into 'release/v4.1'
...
Fixes from Github (backport v4.1)
See merge request espressif/esp-idf!7920
2020-03-11 21:49:19 +08:00
xueyunfei
47f9c0e301
fix bug for after udp close select_waiting assert for v4.1
2020-03-11 10:06:43 +00:00
Mahavir Jain
d09a43fc1e
Merge branch 'bugfix/ota_with_redirection_v4.1' into 'release/v4.1'
...
esp_https_ota in sync with master (v4.1)
See merge request espressif/esp-idf!7914
2020-03-11 14:46:25 +08:00
Michael (XIAO Xufeng)
492065463d
Merge branch 'bugfix/put_spihost_handle_in_sram_v4.1' into 'release/v4.1'
...
spi: always put spihost handle in SRAM (backport v4.1)
See merge request espressif/esp-idf!7901
2020-03-10 14:22:32 +08:00
Alexander Borsuk
ba43902fb8
Fixes compilation error on verbose level (IDFGH-2439)
...
Closes #4552
Merges https://github.com/espressif/esp-idf/pull/4786
2020-03-09 11:25:54 +01:00
Jiang Jiang Jian
fefd64fa83
Merge branch 'Bugfix/netconn_marked_close_crash_for_v4.1' into 'release/v4.1'
...
lw-ip:fix bug for netconn marked close crash for v4.1
See merge request espressif/esp-idf!7896
2020-03-09 16:36:39 +08:00
Shubham Kulkarni
70b1ab76e8
esp_https_ota.c: Add errno check for WiFi disconnection while performing OTA
2020-03-09 13:26:36 +05:30
Shubham Kulkarni
6bc77d79a6
OTA: Add fix in case of URL redirection and a test case of URL redirection
...
Closes https://github.com/espressif/esp-idf/issues/4780
2020-03-09 13:26:36 +05:30
Shubham Kulkarni
4c09dc6270
OTA: Fixed OTA with chunked servers and added example_test with chunked server
2020-03-09 13:26:36 +05:30
Angus Gratton
2241dda536
Merge branch 'feature/netif_ppp_authtype_none_v4.1' into 'release/v4.1'
...
esp-netif: PPPoS fixes (v4.1)
See merge request espressif/esp-idf!7849
2020-03-09 13:34:16 +08:00
Michael (XIAO Xufeng)
a559d55379
Merge branch 'bugfix/spiflash_read_psram_v4.1' into 'release/v4.1'
...
spi_flash: Fix over-allocation and OOM crash when reading from SPI flash to PSRAM buffers (v4.1)
See merge request espressif/esp-idf!7877
2020-03-09 11:13:29 +08:00
xueyunfei
a1764ec5b0
fix bug for netconn marked close crash for v4.1
2020-03-09 02:54:20 +00:00
Felipe Neves
5ce7ec848c
heap: pushed down all the aligned_alloc / free implementation
2020-03-08 23:17:05 +00:00
Felipe Neves
15cdd2859a
heap: added aligned alloc implementation on multi_heap layer
2020-03-08 23:17:05 +00:00
morris
1af819d19b
spi: always put spihost handle in SRAM
...
Closes https://github.com/espressif/esp-idf/issues/4635
2020-03-06 17:36:44 +08:00
Michael (XIAO Xufeng)
a251485359
Merge branch 'bugfix/clean_pcnt_i2s_public_header_v4.1' into 'release/v4.1'
...
driver: clean pcnt.h i2s.h (backport v4.1)
See merge request espressif/esp-idf!7839
2020-03-06 14:05:33 +08:00
Jiang Jiang Jian
ee86ee0094
Merge branch 'feature/wpa3_testcases_support_v4.1' into 'release/v4.1'
...
esp_wifi: Support for additional WPA3 testcases (Backport v4.1)
See merge request espressif/esp-idf!7880
2020-03-06 12:23:43 +08:00
Prasad Alatkar
48fe9dfce7
NimBLE: Add Host based privacy (RPA) feature support (v4.1)
...
- This feature removes dependency on controller to use privacy (RPA)
Closes BT-519
2020-03-06 11:02:22 +08:00
Angus Gratton
5f2d918437
bootloader: Set the bootloader optimization level separately to the app
...
Change the default bootloader config to -Os to save size.
This is a useful feature because it allows switching between debug
and release configs in the app without also needing to account for a
size change in the bootloader.
2020-03-06 01:16:04 +05:30
Angus Gratton
32756b165e
bootloader: Add fault injection resistance to Secure Boot bootloader verification
...
Goal is that multiple faults would be required to bypass a boot-time signature check.
- Also strengthens some address range checks for safe app memory addresses
- Change pre-enable logic to also check the bootloader signature before enabling SBV2 on ESP32
Add some additional checks for invalid sections:
- Sections only partially in DRAM or IRAM are invalid
- If a section is in D/IRAM, allow the possibility only some is in D/IRAM
- Only pass sections that are entirely in the same type of RTC memory region
2020-03-06 01:16:04 +05:30
Angus Gratton
74b299c4c7
secure boot: Encrypt the bootloader signature when enabling flash encryption + secure boot v2
2020-03-06 01:16:04 +05:30
Supreet Deshpande
60fed38c0f
feat/secure_boot_v2: Adding secure boot v2 support for ESP32-ECO3
2020-03-06 01:16:04 +05:30
Prasad Alatkar
e36b3e0d04
NimBLE: Fix check for static random address & add MSYS_1 in menuconfig (v4.1)
...
Closes BT-522 & BT-523
2020-03-05 18:00:27 +08:00
Mahavir Jain
e7c8a36d46
Merge branch 'bugfix/esp_tls_blocking_timeout_v4.1' into 'release/v4.1'
...
esp-tls: add timeout for blocking connection (v4.1)
See merge request espressif/esp-idf!7395
2020-03-05 16:06:35 +08:00
Island
0e21d1e372
Merge branch 'nimble/misc_host_flow_ctrl_changes_v4.1' into 'release/v4.1'
...
NimBLE: Misc changes in host flow control, ble_gap_unpair, ble_hs_hci_rx_evt, memory management & example (backport v4.1)
See merge request espressif/esp-idf!7857
2020-03-05 14:54:39 +08:00
Jiang Jiang Jian
96cd373265
Merge branch 'bugfix/btdm_assert_when_create_connection_cancel_v4.1' into 'release/v4.1'
...
components/bt: Fix assert when create conntion cancel
See merge request espressif/esp-idf!7817
2020-03-05 14:53:18 +08:00
Nachiket Kukade
00f0cdcc92
esp_wifi: Support for additional WPA3 testcases
...
1. Anti-Clogging Token Request support
2. Return correct status from SAE modules for invalid scenarios
3. Add PMK Caching support for WPA3
2020-03-05 12:15:03 +05:30
Angus Gratton
425486223e
spi_flash: Remove 16KB free internal heap limit for esp_flash_read() into PSRAM
...
Allocation of the temporary internal buffer will now repeat until a small enough buffer can be
allocated, and only fail if less than a 256 byte block of internal RAM is free.
Adds unit test for the same, and generic test utility for creating memory pressure.
2020-03-05 17:10:22 +11:00
Angus Gratton
d6026823fa
spi_flash: Fix over-allocation and OOM crash when reading from SPI flash to PSRAM buffers
...
Previously would try allocate buffer of minimum size 16KB not maximum size 16KB, causing
out of memory errors for any large reads, or if less than 16KB contiguous free heap.
Also, if using legacy API and internal allocation failed then implementation would abort()
instead of returning the error to the caller.
Added test for using large buffers in PSRAM.
Closes https://github.com/espressif/esp-idf/issues/4769
Also reported on forum: https://esp32.com/viewtopic.php?f=13&t=14304&p=55972
2020-03-05 17:10:22 +11:00
David Cermak
233d4b94bd
esp_tls: fail connection if esp_tls_conn_new() timeouts
2020-03-04 15:15:40 +00:00
David Cermak
d19c1c4b3c
esp_tls: added connection timeout to esp_tls_conn_new_sync()
2020-03-04 15:15:40 +00:00
Jiang Jiang Jian
e7a33878bb
Merge branch 'bugfix/backport_some_wifi_issues_0302' into 'release/v4.1'
...
esp_wifi: backport some wifi issues 0302 (backport v4.1)
See merge request espressif/esp-idf!7826
2020-03-04 15:36:31 +08:00
Hrishikesh Dhayagude
74c528d836
NimBLE: Use dynamic buffers instead of static memory.
...
The NimBLE host buffers that consume a significant amount of memory are
now allocated dynamically.
The advantage is that, the memory can be reclaimed in cases where BLE
is turned off and not required for the current boot cycle
2020-03-04 12:01:53 +05:30
Prasad Alatkar
c55689ca18
NimBLE: Misc changes in host flow control, ble_gap_unpair, ble_hs_hci_rx_evt & example (v4.1)
...
- Add menuconfig option for NimBLE host flow control
- Include changes in `blecent` example from upstream PR!702
- add ble_hs_lock in ble_gap_unpair Upstream PR!584
- ble_hs_hci_rx_evt, upstream PR!738
Closes https://github.com/espressif/esp-idf/issues/4243
2020-03-04 11:35:47 +05:30
David Cermak
23c5770156
esp_netif_lwip_ppp: fix posting ip-event data
...
Closes https://github.com/espressif/esp-idf/issues/4634
2020-03-03 15:00:37 +01:00
Axel Lin
4c668ff3d3
esp_netif_lwip_ppp: Allow esp_netif_ppp_set_auth set auth_type with NETIF_PPP_AUTHTYPE_NONE
...
The ppp_set_auth() is guard by #if PPP_AUTH_SUPPORT in lwIP, so
make it consistent. This also simplify the code a bit because the code
in #if PAP_SUPPORT guard and #if CHAP_SUPPORT guard are exactly the same.
Once NETIF_PPP_AUTHTYPE_NONE added to esp_netif_auth_type_t, it also allows
setting NETIF_PPP_AUTHTYPE_NONE with this change.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Merges https://github.com/espressif/esp-idf/pull/4639
2020-03-03 15:00:37 +01:00
Axel Lin
4a623798f1
esp_netif_ppp: Add NETIF_PPP_AUTHTYPE_NONE to esp_netif_auth_type_t
...
To allow setting auth_type to PPPAUTHTYPE_NONE, add NETIF_PPP_AUTHTYPE_NONE
to esp_netif_auth_type_t.
So even PAP/CHAP are enabled in lwIP, the application still can set
auth_type to PPPAUTHTYPE_NONE.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
2020-03-03 15:00:37 +01:00
morris
077d68c752
driver: clean pcnt.h i2s.h
2020-03-03 18:12:11 +08:00
xiehang
4d10eb20db
esp_wifi: fix some WiFi bugs
...
Fix following WiFi bugs:
1. Fix crashing during shared WEP connection
2. Remove log "age_bss: null bss
3. Add WiFi stop checking at the beginning of wifi deinit api
4. Fix espnow crash
5. Fix the bug for setting channel when WiFi is no NULL mode
6. Adjust scheme percent when BT is in connected status
7. Fix WiFi stop leads to memory leak
8. Place the Vendor Specific Element at the end of WiFi packet
2020-03-03 14:49:36 +08:00
xueyunfei
94327c10ed
add host name in discover packet for v4.1
2020-03-03 14:25:47 +08:00
lly
8e34adb94c
ble_mesh: Calc incomplete timeout based on msg info
2020-03-02 02:08:13 +00:00
lly
7d41eb6f52
ble_mesh: Start the timer when starting to send the client message
2020-03-02 02:08:13 +00:00
lly
2a014db549
ble_mesh: No timeout for client message to non-unicast address
2020-03-02 02:08:13 +00:00
lly
6c207ea6d2
ble_mesh: Unify client application and lower transport layer timeout
2020-03-02 02:08:13 +00:00
lly
2611e23bd2
ble_mesh: Allow maximum 377 octets payload
2020-03-02 02:08:13 +00:00
lly
4b2ef7303e
ble_mesh: Reset transport info when node is removed
2020-03-02 02:08:13 +00:00
lly
21af266a11
ble_mesh: Provisioner ignores msg from removed node
2020-03-02 02:08:13 +00:00
lly
711c8472fc
ble_mesh: Miscellaneous modifications
...
1. Add an API to set Provisioner static oob value
2. Add an API to deinit BLE Mesh stack
3. Add an API to set Provisioner unicast address
4. Add an API to provision devices with fixed address
5. Add an API to store node composition data
6. Add an API to get node with device uuid
7. Add an API to get node with unicast address
8. Add an API to delete node with device uuid
9. Add an API to delete node with unicast address
10. Add an API for Provisioner to update local AppKey
11. Add an API for Provisioner to update local NetKey
12. Support Provisioner persistent functionality
13. Fix Provisioner entering IV Update procedure
14. Fix an issue which may cause client failing to send msg
15. Use bt_mesh.flags to indicate device role
16. Remove several useless macros
17. Callback RSSI of received mesh provisioning packets
18. Modify the Provisioner disable function
19. Change some log level from debug to info
20. Add parameters to Provisioner bind AppKey completion event
21. Fix node ignoring relay messages issue
22. Support using a specific partition for BLE Mesh
23. Fix compile warning when proxy related macros are disabled
24. Clean up BLE Mesh stack included header files
25. NULL can be input if client message needs no parameters
26. Fix compile warning when BT log is disabled
27. Initilize BLE Mesh stack local variables
28. Support using PSRAM for BLE Mesh mutex, queue and task
29. Add a menuconfig option to enable using memory from PSRAM
30. Clean up sdkconfig.defaults of BLE Mesh examples
2020-03-02 02:08:13 +00:00
Jiang Jiang Jian
a280f0a9ba
Merge branch 'bugfix/IPV6_multicast_adress_error_for_v4.1' into 'release/v4.1'
...
lw-ip:fix ipv6 bug when input the wrong broadcast for v4.1
See merge request espressif/esp-idf!7804
2020-02-29 17:06:56 +08:00
Michael (XIAO Xufeng)
4045dc8508
Merge branch 'bugfix/nec_example_v4.1' into 'release/v4.1'
...
bugfix in NEC example and low level function (v4.1)
See merge request espressif/esp-idf!7635
2020-02-29 02:56:12 +08:00
baohongde
dbc0a9b3f4
components/bt: Fix assert when create conntion cancel
2020-02-28 20:23:39 +08:00
wangmengyang
6fad6eb9f1
component/bt: set non-zero initial value for bt sleep clock cycle to avoid div-by-zero error in function "btdm_us_2_lpcycles" when BT modem sleep is not enabled
2020-02-28 14:08:47 +08:00
xueyunfei
9c5067a998
fix ipv6 bug when input the wrong broadcast for v4.1
2020-02-27 17:13:03 +08:00
Michael (XIAO Xufeng)
c4654298ce
Merge branch 'bugfix/add_missing_ledc_set_pin_declaration_v4.1' into 'release/v4.1'
...
Bugfix: Add missing ledc_set_pin declaration in led.h (v4.1)
See merge request espressif/esp-idf!7372
2020-02-26 15:20:40 +08:00
Jiang Jiang Jian
9c8c6b5cd5
Merge branch 'bugfix/sntp_init_can_run_before_net_connection_v4.1' into 'release/v4.1'
...
lw_ip: Add to sys_arch_protect() a check that the mutex is created before use if not then creates it (v4.1)
See merge request espressif/esp-idf!7756
2020-02-26 11:30:09 +08:00
KonstantinKondrashov
5487700bf1
lwip: Add to sys_arch_protect() a check that the mutex is created before use if not then creates it
...
Closes: https://github.com/espressif/esp-idf/issues/944
Closes: https://github.com/espressif/esp-idf/issues/3931
Closes: WIFI-1019
2020-02-24 15:48:27 +08:00
wangmengyang
cd492747e1
component/bt: fall back to main XTAL as Bluetooth sleep clock when EXT 32K CRYS is configured but not detected
2020-02-24 12:22:35 +08:00
Jiang Jiang Jian
9cdbda325a
Merge branch 'bugfix/btdm_backports_v4.1_0220' into 'release/v4.1'
...
components/bt: backports to release/v4.1
See merge request espressif/esp-idf!7716
2020-02-21 14:57:16 +08:00
Jiang Jiang Jian
9bf147515c
Merge branch 'bugfix/fix_sniffer_bug_caused_by_mode_switch_v4.1' into 'release/v4.1'
...
Fix sniffer bug caused by mode switch (backport v4.1)
See merge request espressif/esp-idf!7690
2020-02-21 14:53:56 +08:00
Jiang Jiang Jian
3a9750746f
Merge branch 'bugfix/add_option_to_ipv6_stateless_address_configuration_v4.1' into 'release/v4.1'
...
lw-ip: Add option to ipv6 stateless address configuration (backport v4.1)
See merge request espressif/esp-idf!7699
2020-02-21 14:53:32 +08:00
Shubham Kulkarni
124b735ac5
log: Check for ISR context and use proper API to get Tick Count
2020-02-20 15:38:08 +05:30
baohongde
a74d85945a
components/bt: backports to release/v4.1
...
Fix bugs about role switch
Fix watchdog timeout when sleep enabled and crash without enabling sw coex
Fix ble crash issue triggered by ble event irq miss(0x20000)
Future events scheduling error in case of wifi and bluetooth.
2020-02-20 17:53:40 +08:00
xiehang
ce4334f4bf
lwip: Enable IPv6 stateless address autoconfiguration
2020-02-20 14:44:49 +08:00
Jiang Jiang Jian
5c217d8bb6
Merge branch 'bugfix/coex_a2dp_stuck_after_creating_another_connection_v4.1' into 'release/v4.1'
...
components/coex: Fix a2dp stuck after creating another connection
See merge request espressif/esp-idf!7662
2020-02-20 14:16:53 +08:00
xiehang
0350ea5744
esp_wifi: Small refactor for ic_set_vif
2020-02-20 12:22:52 +08:00
baohongde
1e54e5ddef
components/coex: Fix misspell in Kconfig
2020-02-19 11:43:53 +08:00
Jiang Jiang Jian
8609b3730d
Merge branch 'bugfix/unified_prov_bluedroid_v4.1' into 'release/v4.1'
...
Unified Provisioning - BLE: Fix characteristics read response issue (backport v4.1)
See merge request espressif/esp-idf!7652
2020-02-18 20:57:22 +08:00
Jiang Jiang Jian
e8d33e4faf
Merge branch 'bugfix/ble_mesh_fix_compile_error_with_cpp_4.1' into 'release/v4.1'
...
ble_mesh: Fix compile error with c++ files (v4.1)
See merge request espressif/esp-idf!7583
2020-02-18 20:43:51 +08:00
baohongde
8908d52efa
components/coex: Fix a2dp stuck after creating another connection
2020-02-18 20:13:41 +08:00
Hrishikesh Dhayagude
5a244bc935
Unified Provisioning - BLE: Fix characteristics read response issue
...
Fix the issue when number of bytes to be read is an exact multiple of [MTU-1]
2020-02-18 15:11:51 +05:30
Jiang Jiang Jian
3b86e7e099
Merge branch 'bugfix/change_hci_task_size_back_v4.1' into 'release/v4.1'
...
components/bt: change HCI task size back
See merge request espressif/esp-idf!7568
2020-02-18 12:52:10 +08:00
morris
bd8baba0dc
rmt: fix missing 0x in rmt_ll.h
...
Closes https://github.com/espressif/esp-idf/issues/4760
2020-02-18 10:54:03 +08:00
Jiang Jiang Jian
73fd009d40
Merge branch 'bugfix/btdm_hfp_ag_crash_in_unknown_at_cmd_v4.1' into 'release/v4.1'
...
components/bt: Fix connection fail and crash when receive unknown AT cmd
See merge request espressif/esp-idf!7405
2020-02-14 19:46:49 +08:00
Jiang Jiang Jian
cbd24259b2
Merge branch 'bugfix/btdm_error_type_in_config_eir_evt_v4.1' into 'release/v4.1'
...
components/bt: Fix error EIR type in config eir event
See merge request espressif/esp-idf!7406
2020-02-14 16:38:25 +08:00
Xia Xiaotian
317f0d496a
soc: clear PHY status when cpu start
2020-02-13 14:25:32 +08:00
Jiang Jiang Jian
ca735340f9
Merge branch 'bugfix/ble_mesh_utf_8_comma_4.1' into 'release/v4.1'
...
ble_mesh: Kconfig included a UTF-8 comma (v4.1)
See merge request espressif/esp-idf!7575
2020-02-13 11:12:17 +08:00
lly
45af9bf3ec
ble_mesh: Fix compile error with c++ files
2020-02-13 09:46:54 +08:00
lly
7acdc2f7fc
ble_mesh: Kconfig included a UTF-8 comma
2020-02-12 18:25:43 +08:00
KonstantinKondrashov
c6c18ef2e8
spiffs: Fix for case when CONFIG_SPIFFS_USE_MTIME is not defined
...
Closes: 2c793cef06
2020-02-12 18:12:58 +08:00
blueMoods
9ebdcf5b37
components/bt: change HCI task size back
2020-02-12 16:32:56 +08:00
june
21c1682a7a
backport code optimize, mr !7409
2020-02-12 11:50:52 +08:00
Angus Gratton
33069f3133
Merge branch 'bugfix/part_gen_subtype_fix_v4.1' into 'release/v4.1'
...
partition_table: Fix subtype in gen_esp32part.py (v4.1)
See merge request espressif/esp-idf!7535
2020-02-11 12:06:41 +08:00
Angus Gratton
04f589b1c7
Merge branch 'bugfix/remove_cjson_test_file_from_cmake_build_v4.1' into 'release/v4.1'
...
cJSON: include only source file objects for cmake build (v4.1)
See merge request espressif/esp-idf!7545
2020-02-11 11:57:26 +08:00
Angus Gratton
901ae4d11c
Merge branch 'bugfix/newlib_nano_lib_linking_v4.1' into 'release/v4.1'
...
esp_rom: link newlib nano from ROM only if SPIRAM cache workaround is disabled (v4.1)
See merge request espressif/esp-idf!7544
2020-02-11 11:56:11 +08:00
Mahavir Jain
d41f3cc759
cJSON: include only source file objects for cmake build
...
Test file can cause build issues in some cases, since it has its own main() function
2020-02-10 17:32:14 +05:30
Mahavir Jain
1ae9541176
esp_rom: link newlib nano from ROM only if SPIRAM cache workaround is disabled
2020-02-10 17:30:25 +05:30
Supreet Deshpande
546cf10c5d
Fixes accessing some files from 2nd part of the bootloader.
2020-02-10 16:33:02 +05:30
boarchuz
994e632a59
Fix subtype in PartitionTable.find_by_type
...
Fix ptype->subtype
Closes https://github.com/espressif/esp-idf/pull/4723
2020-02-10 08:37:10 +01:00
KonstantinKondrashov
12353ff3d8
esp_timer/esp32: Fix case when alarm_reg > counter_reg but FRC_TIMER_INT_STATUS is not set
...
Closes: WIFI-1576
Closes: https://github.com/espressif/esp-idf/issues/2954
2020-02-06 14:43:40 +08:00
Hrudaynath Dhabe
7d30c6d799
WPS_CONFIG_INIT_DEFAULT(type) error
2020-02-06 14:07:14 +08:00
Angus Gratton
aedf89237f
Merge branch 'bugfix/select_driver_not_installed_v4.1' into 'release/v4.1'
...
VFS: Check in select() if the UART driver is installed or not (v4.1)
See merge request espressif/esp-idf!7416
2020-01-22 11:55:09 +08:00
morris
1a3bb06916
ethernet: always put eth_driver handle in SRAM
...
Closes https://github.com/espressif/esp-idf/issues/4635
2020-01-21 21:45:24 +08:00
morris
274b0b8d8a
ethernet: work with cache disabled
...
add ETH_MAC_FLAG_WORK_WITH_CACHE_DISABLE flag, make ethenret driver
possible to work when cache disabled
Closes https://github.com/espressif/esp-idf/issues/4406
2020-01-21 21:45:04 +08:00
Roland Dobai
c2a4dd0c68
VFS: Check in select() if the UART driver is installed or not
...
Closes https://github.com/espressif/esp-idf/issues/4627
2020-01-21 10:04:38 +01:00
Jiang Jiang Jian
3733c9f8e5
Merge branch 'bugfix/btdm_hci_timeout_v4.1' into 'release/v4.1'
...
Bugfix/btdm hci timeout v4.1
See merge request espressif/esp-idf!7339
2020-01-21 10:33:46 +08:00
baohongde
38ff669727
components/bt: Fix error EIR type in config eir event
2020-01-20 21:47:23 +08:00
baohongde
c324e7a435
components/bt: Fix connection fail and crash when receive unknown AT cmd
2020-01-20 21:43:23 +08:00
Tian Hao
3e4e538087
fix bug sleep may cause HCI timeout
...
When Host run different cpu and sleep enable, it may cause hci
timeout about 10s.
2020-01-20 17:41:28 +08:00
xiehang
b99a39535b
lwip: Enable IPv6 stateless address autoconfiguration
2020-01-20 08:26:00 +00:00
Tian Hao
f6523748fc
fix Kconfig use mistake cause some config not effect
...
1. Fix bluedroid task pinned_to_core un-effected
2. other minor sdkconfig bugs
2020-01-20 15:24:41 +08:00
Jiang Jiang Jian
09b4bb5eba
Merge branch 'bugfix/backport_some_wifi_bugs_0120_v4.1' into 'release/v4.1'
...
Bugfix/backport some wifi bugs 0120 v4.1
See merge request espressif/esp-idf!7390
2020-01-20 13:56:00 +08:00
June
c0e1f83a91
esp32 5p0 new features support
2020-01-20 12:18:55 +08:00
weitianhua
fd61f75db9
hfp disconn issue for bridgera
2020-01-20 12:18:26 +08:00
xiehang
abe0225ef5
esp_wifi:Fix double recycle bar crash issue
2020-01-20 12:10:48 +08:00
Hrudaynath Dhabe
b530b26e1b
esp_wifi: esp_wifi_sta_get_ap_info function returns actual values of group cipher and pairwise cipher
2020-01-20 12:10:06 +08:00
Paul Abbott
c014d32193
Bugfix(LEDC): Add missing ledc_set_pin declaration in led.h
2020-01-17 10:19:15 +08:00
zhiweijian
86bebae4fb
Component/bt: Fix GATTC trigger open event multiple times
2020-01-14 03:24:29 +00:00
Angus Gratton
ee269ed687
Merge branch 'bugfix/fatfs_corrupted_assert' into 'master'
...
fatfs: handle FR_INT_ERR as "filesystem corrupted"
Closes IDF-894
See merge request espressif/esp-idf!5912
2020-01-14 08:37:07 +08:00
houwenxiang
4c065c217e
driver(rmt): Fix the rmt err interrupt crash bug when sending 63 items
2020-01-13 08:30:20 +00:00
Jiang Jiang Jian
0a6e61ae6d
Merge branch 'bugfix/btdm_fix_blufi_prepare_buf_len_invalid' into 'master'
...
component/bt: fix blufi prepare write buf len invalid
See merge request espressif/esp-idf!7048
2020-01-13 15:59:14 +08:00
Jiang Jiang Jian
f8e3bf4a7a
Merge branch 'bugfix/mesh_ie_issues' into 'master'
...
mesh: fix mesh ie issues
See merge request espressif/esp-idf!7214
2020-01-13 15:58:00 +08:00
Angus Gratton
28d64e7f82
Merge branch 'bugfix/cmake_failure_on_spiffsgen_clean_project' into 'master'
...
spiffs: fix build issue on clean project
See merge request espressif/esp-idf!6596
2020-01-13 12:14:04 +08:00
Angus Gratton
a5a5c318f9
Merge branch 'bugfix/mmap_fail_on_esp32s2beta' into 'master'
...
spi_flash: reenable mmap tests on esp32s2beta
See merge request espressif/esp-idf!6595
2020-01-13 12:02:55 +08:00
Angus Gratton
ec20cf01b5
Merge branch 'feature/wider_alignment_range_malloc' into 'master'
...
feature/wider alignment range malloc
Closes IDF-648
See merge request espressif/esp-idf!6691
2020-01-13 12:02:35 +08:00
Angus Gratton
42d7b1d641
Merge branch 'bugfix/mbedtls_esp_bignum' into 'master'
...
mbedtls: esp bignum fix for 4096 keys
See merge request espressif/esp-idf!7211
2020-01-13 12:01:23 +08:00
chenyudong
79f0d460f5
mesh: fix mesh ie issues
...
Fix an error of mesh deinit lock.
Fix mesh send returns TIMEOUT.
Increase root window close time to 120s.
Clear ie.child when the child connected or fully associated.
Update rc_rssi when roots direct/forward.
Fix assoc in mesh ie wrong.
Mesh packets use AC_VI instead of AC_BE.
2020-01-13 10:58:18 +08:00
Jiang Jiang Jian
a27dfe6993
Merge branch 'bugfix/fix_ble_config_error_log_in_first_use_nvs' into 'master'
...
bugfix: remove the error code when there is no file in the nvs in config.c
See merge request espressif/esp-idf!7296
2020-01-13 10:24:43 +08:00
Ivan Grokhotkov
216dac8721
Merge branch 'test/add_esp32s2beta_ssc_build_job' into 'master'
...
test: add build ssc job for esp32s2beta
See merge request espressif/esp-idf!7068
2020-01-13 10:19:48 +08:00
Jiang Jiang Jian
7a7c4a5486
Merge branch 'bugfix/coex_schm' into 'master'
...
Bugfix/coex schm
See merge request espressif/esp-idf!7176
2020-01-12 20:37:42 +08:00
Jiang Jiang Jian
a9cf334f0a
Merge branch 'feature/Add_tcp_sack' into 'master'
...
feature for add tcp sack
Closes WIFI-1600
See merge request espressif/esp-idf!7241
2020-01-12 20:28:21 +08:00
Jiang Jiang Jian
3634192ded
Merge branch 'bugfix/ble_throughput_heap_size_too_large_fix' into 'master'
...
bugfix:Fixed throughput wasting memory and packet loss issues.
Closes BT-437 and BCI-141
See merge request espressif/esp-idf!7063
2020-01-12 20:25:02 +08:00
Jiang Jiang Jian
8ec233dfd0
Merge branch 'bugfix/sync_zephyr_v2.0_ble_mesh_fixes' into 'master'
...
ble_mesh: sync Zephyr v2.0 ble mesh fixes
Closes BLEMESH-56
See merge request espressif/esp-idf!6892
2020-01-12 20:23:57 +08:00
Felipe Neves
6a307ee70f
heap: removed ptr check in diram area since aligned allocator does not support data allocated from IRAM
2020-01-10 10:15:32 -03:00
Felipe Neves
0d8a5ebec7
heap: added aligned calloc function plus tests
2020-01-10 10:05:28 -03:00
Felipe Neves
8e5ea171d3
newlib: reverted support of memalign function
2020-01-10 10:05:28 -03:00
Felipe Neves
45766daa4f
test_multi_heap_host/test_multi_heap: fix undefined reference error when testing aligned_alloc with no heap poisoning
2020-01-10 10:05:28 -03:00
Felipe Neves
aa100d2dfe
newlib: added heap_caps_aligned_alloc on bottom of memalign
2020-01-10 10:05:28 -03:00
Felipe Neves
a2db437c46
heap/heap_caps: Added tests for align allocation on both internal and external ram
2020-01-10 10:05:28 -03:00
Felipe Neves
7fbf4c74d7
heap/heap_caps: added initial, top level heap_caps_aligned_alloc and heap_caps_aligned_free
2020-01-10 10:05:27 -03:00
Felipe Neves
f31b8a8ab8
heap/multi_heap_poisoning: aligned alloc now working togheter with heap poisining code
2020-01-10 10:05:27 -03:00
Felipe Neves
8bd09429d3
heap/test_multi_heap_host: added initial tests for heap aligned alloc
2020-01-10 10:05:27 -03:00
Felipe Neves
d26ddaa644
heap/multi_heap: added initial implementation of aligned alloc function
2020-01-10 10:05:27 -03:00
gengyuchao
3366467980
ble:set a esp api to get size of controller send packets buffer.
2020-01-10 20:32:07 +08:00
gengyuchao
189cd21660
bugfix:Fixed throughput wasting memory and packet loss issues.
2020-01-10 20:32:07 +08:00
gengyuchao
8e1a28940c
ble:config.c remove the error code when there is no file in the nvs because it is not an error.
2020-01-10 20:04:10 +08:00
Angus Gratton
a05c00c2b3
Merge branch 'bugfix/esp_netif_get_dns' into 'master'
...
esp_netif: fix esp_netif_get_dns_info() to copy the entire ip_addr_t
Closes IDFGH-2472
See merge request espressif/esp-idf!7266
2020-01-10 17:51:29 +08:00
baohongde
a2398f0dcc
components/esp_wifi: improve coexistence performance according to specific WiFi/BT/BLE scienario
...
1. Improve WiFi throughput in some Classic BT scienarios(idle, inquire scan,
connected, sniff, a2dp pause, etc).
2. Support WiFi + Classic BT + BLE mesh coexistence scienario.
3. Improve WiFi scan and connect succeed ratio in coexistence scienario.
4. Do not support to choose software coexistence preference anymore for it is
determined according to coexistence scienario automatically.
components/lwip: increase TCP send buffer and receive window limitation when TCP window scale is enabled
components/ble_mesh: Fix some bugs about ble mesh
1. fix send acl pkt after ble have sent terminate ind modify min adv interval to 10ms.
2020-01-10 16:00:12 +08:00
Angus Gratton
c7738f24fc
Merge branch 'bugfix/ledc_driver_enums' into 'master'
...
driver: Avoid possible accidental mismatch between ledc_clk_src_t & ledc_clk_cfg_t enum
See merge request espressif/esp-idf!7021
2020-01-10 15:34:43 +08:00
Jiang Jiang Jian
0f9ab61619
Merge branch 'bugfix/fix_wifi_buffer_reload_issue' into 'master'
...
esp_wifi: fix WiFi buffer reload issue
Closes WIFI-1634
See merge request espressif/esp-idf!7230
2020-01-10 15:08:19 +08:00
Jiang Jiang Jian
2f23fa8ab7
Merge branch 'bugfix/bt_osi_config_snprintf_add_length_check' into 'master'
...
bugfix:Fix length check for snprintf in osi config
See merge request espressif/esp-idf!7155
2020-01-10 15:06:37 +08:00
Jiang Jiang Jian
8cf4d02720
Merge branch 'bugfix/ble_mesh_update_lightness_last' into 'master'
...
ble_mesh: Update lightness last state when actual state is changed
See merge request espressif/esp-idf!7206
2020-01-10 14:47:29 +08:00
Angus Gratton
782fc0df5f
Merge branch 'refactor/can_driver' into 'master'
...
Refactor CAN to use HAL and LowLevel layers
Closes IDF-617
See merge request espressif/esp-idf!7019
2020-01-10 14:22:02 +08:00
He Yin Ling
21a7580dc1
test: update SSC bin path of nvs compatible test
2020-01-10 14:14:51 +08:00
Angus Gratton
bdf6c00154
Merge branch 'feature/likely_unlikely' into 'master'
...
Adding likely unlikely macros to hot code paths
Closes IDF-284
See merge request espressif/esp-idf!6368
2020-01-10 14:05:07 +08:00
Renz Christian Bagaporo
fb1dec37d8
spi_flash: reenable mmap tests on esp32s2beta
2020-01-10 16:17:01 +11:00
Angus Gratton
5ee92c259b
Merge branch 'bugfix/mdns_fix_typos' into 'master'
...
mdns: fixed typos in the variable names and the comments
See merge request espressif/esp-idf!7060
2020-01-10 13:13:07 +08:00
Konstantin Kondrashov
2c793cef06
idf: Support a custom toolchain with time_t wide 64-bits
...
Allows resolving the Y2K38 problem.
Closes: IDF-350
Closes: https://github.com/espressif/esp-idf/issues/584
2020-01-10 12:58:54 +08:00
Angus Gratton
a39e8e5de9
Merge branch 'feature/asio_update' into 'master'
...
asio: updated ASIO port to use latest asio and esp-idf features
See merge request espressif/esp-idf!6623
2020-01-10 12:57:25 +08:00
Angus Gratton
426319c123
Merge branch 'feature/nvs_cxx_new' into 'master'
...
NVS: exposing C++ functionality via C++ handle
See merge request espressif/esp-idf!6926
2020-01-10 12:32:17 +08:00
Angus Gratton
880cc02ef2
Merge branch 'bugfix/mqtt_submodule_ref_update' into 'master'
...
MQTT: update submodule to point to latest commit.
Closes IDF-1162, IDF-1126, IDFGH-2197, IDFGH-2235, IDFGH-2293, FCS-254, and FCS-267
See merge request espressif/esp-idf!7216
2020-01-10 12:32:03 +08:00
Angus Gratton
6ab9f846c9
Merge branch 'bugfix/compare_and_setextram' into 'master'
...
bugfix/pthread: fix pthread_once() race condiion possibility adding critical section in compare and set function
Closes IDFGH-2448
See merge request espressif/esp-idf!7236
2020-01-10 12:29:54 +08:00
Angus Gratton
264abd8b34
Merge branch 'bugfix/esp32s2_xtal_choice' into 'master'
...
esp32s2:remove unsupported xtal choice
Closes IDF-1228
See merge request espressif/esp-idf!7085
2020-01-10 12:01:26 +08:00
Jiang Jiang Jian
9ecc2c3309
Merge branch 'bugfix/fix_ble_mesh_memory_leak' into 'master'
...
ble_mesh: Fix memory leak when node is reset
Closes BLEMESH-122
See merge request espressif/esp-idf!7076
2020-01-10 11:43:49 +08:00
Angus Gratton
4847c2adb0
Merge branch 'docs/fix_tasK_create_static_doxygen_comment' into 'master'
...
Fixed error in return type of xTaskCreateStatic
Closes IDFGH-2185
See merge request espressif/esp-idf!7253
2020-01-10 11:41:15 +08:00
Angus Gratton
b98981e7ae
Merge branch 'feature/call_with_shared_stack' into 'master'
...
Call with shared stack improvements
See merge request espressif/esp-idf!7228
2020-01-10 11:40:11 +08:00
Jiang Jiang Jian
4dee412191
Merge branch 'bugfix/fix_crash_when_send_udp_too_big' into 'master'
...
lw-ip: Drop packets larger than MTU
Closes WIFI-1524
See merge request espressif/esp-idf!7147
2020-01-10 11:37:00 +08:00
Ivan Grokhotkov
a559014ff0
Merge branch 'bugfix/coredump_bin_fmt_ver_update' into 'master'
...
Fixes coredump compatibility with legacy binary core dumps
See merge request espressif/esp-idf!6794
2020-01-10 10:04:17 +08:00
David Cermak
b7ef7feaeb
newlib: using lwip implementation of interface name/index conversion
...
Links https://github.com/espressif/esp-idf/issues/3557
2020-01-09 21:53:50 +01:00
David Cermak
13d603e486
asio: updated ASIO port to use latest asio and esp-idf features
...
closes https://github.com/espressif/esp-idf/issues/4296
2020-01-09 21:53:50 +01:00
David Cermak
2efb3288a0
mbedtls: fix hw accelerated big-num mul if operand and result overlap
...
this issue is mainly exposed when using larger (4096) client key in TLS mutual auth,
since it uses multiplications > 2048 when mbedtls_mpi_mul_mpi is used in recursion,
which works only if both operands point to different location than result since
mpi_mult_mpi_overlong() called mbedtls_mpi_grow() to reallocate buffers used in previous
pointer arithmetics and thus corrupting it. Fixed by growing the mpi buffer before
calling mpi_mult_mpi_overlong()
2020-01-09 18:11:18 +00:00
David Cermak
b0a714476a
mbedtls: added mpi multiplication test for large numbers
2020-01-09 18:11:18 +00:00
David Cermak
1acf4d46ef
mbedtls: bugnum test for rsa operations with blinding
2020-01-09 18:11:18 +00:00
gengyuchao
8a687d46ad
reduce useless calloc size
2020-01-09 21:12:48 +08:00
gengyuchao
945e4f7162
bugfix:Fix length check for snprintf in osi config
2020-01-09 21:12:48 +08:00
Felipe Neves
57edda15a0
shared_stack: added minimal stack size for shared stack, configurable via menuconfig
2020-01-09 09:59:00 -03:00
David Cermak
ecca39e19f
mdns: fixed typos in the variable names and the comments
2020-01-09 12:50:13 +00:00
Marius Vikhammer
e8787fc49e
mqtt: update submodule to point to latest commit.
...
Adds bugfixes for:
- Too early publishing
- Potential mutex memory leak
- CI related issues.
- Wait for entire connack message
- Event loop not getting cleaned up
Adds support for ALPN, configurable reconnect time, QEMU CI tests and password
protected client key.
MQTT MR: https://gitlab.espressif.cn:6688/espressif/esp-mqtt/merge_requests/46
Closes IDF-1162
Closes https://github.com/espressif/esp-mqtt/issues/137
MQTT MR: https://gitlab.espressif.cn:6688/espressif/esp-mqtt/merge_requests/47
Closes IDF-1126
MQTT MR: https://gitlab.espressif.cn:6688/espressif/esp-mqtt/merge_requests/48
Closes IDFGH-2197
Closes https://github.com/espressif/esp-idf/issues/4349
Closes https://github.com/espressif/esp-mqtt/issues/140
MQTT MR: https://gitlab.espressif.cn:6688/espressif/esp-mqtt/merge_requests/48
Closes IDFGH-2235
Closes https://github.com/espressif/esp-idf/issues/4384
MQTT MR: https://gitlab.espressif.cn:6688/espressif/esp-mqtt/merge_requests/49
Closes https://github.com/espressif/esp-idf/issues/4433
Closes IDFGH-2293
MQTT MR: https://gitlab.espressif.cn:6688/espressif/esp-mqtt/merge_requests/50
Closes FCS-254
MQTT MR: https://gitlab.espressif.cn:6688/espressif/esp-mqtt/merge_requests/53
Closes FCS-267
2020-01-09 11:35:49 +00:00
Jakob Hasse
d286876d34
NVS: expose C++ API
...
Closes https://github.com/espressif/esp-idf/issues/3540
2020-01-09 18:29:23 +08:00
zhiweijian
b820b3fc56
component/bt: fix blufi prepare write buf len invalid
2020-01-09 09:38:35 +00:00
Geng Yu Chao
090843fa17
component/bt: Fix the issue with pointer type conversion in gattc. Unified count pointer type in bta and btc, change pointer type in bta from int to uint16_t.
2020-01-09 16:30:55 +08:00
David Cermak
92087edbb8
esp_netif: fix esp_netif_get_dns_info() to copy the entire ip_addr_t
...
closes https://github.com/espressif/esp-idf/issues/4584
closes IDFGH-2472
2020-01-09 09:17:38 +01:00
Darian Leung
a049e02d96
can: Refactor CAN to use HAL and LowLevel layers
...
The following commit refactors the CAN driver such that
it is split into HAL and Lowlevel layers. The following
changes have also been made:
- Added bit field members to can_message_t as alternative
to message flags. Updated examples and docs accordingly
- Register field names and fields of can_dev_t updated
2020-01-09 16:13:51 +08:00
Jiang Jiang Jian
dd8db6621b
Merge branch 'bugfix/add_missing_gatt_descriptors_GH' into 'master'
...
bugfix: ble add missing gatt descriptors
Closes BCI-138
See merge request espressif/esp-idf!6978
2020-01-09 15:57:08 +08:00
Krzysztof Bociurko
c7dfb435f8
Fixed error in return type of xTaskCreateStatic*
...
Signed-off-by: Darian <darian@espressif.com>
Merges https://github.com/espressif/esp-idf/pull/2651
2020-01-09 14:01:20 +08:00
xueyunfei
d8d2991692
feature for add tcp sack
2020-01-09 13:58:08 +08:00
liu zhifu
3750fe945f
esp_wifi: fix WiFi buffer reload issue
2020-01-09 13:42:27 +08:00
Angus Gratton
4ece6eedae
Merge branch 'bugfix/ws_rcv_exceed_buf' into 'master'
...
tcp_transport/ws_client: websockets now correctly handle messages longer than buffer
Closes IDF-1084 and IDF-1083
See merge request espressif/esp-idf!6740
2020-01-09 13:18:31 +08:00
suda-morris
1ffb546135
esp32s2:remove unsupported xtal choice
...
ESP32-S2 only supports 40MHz XTAL and doesn't have XTAL autodetection.
2020-01-09 13:09:21 +08:00
Jiang Jiang Jian
da877bcc8f
Merge branch 'bugfix/coex_bt_ble_stuck' into 'master'
...
components/bt: Fix A2DP stuck when BLE's interval is too small
See merge request espressif/esp-idf!5587
2020-01-09 11:37:35 +08:00
Angus Gratton
dba3c241a9
Merge branch 'feature/nvs_storage_copy_part_name' into 'master'
...
NVS: partition name is copied now
Closes IDF-1231
See merge request espressif/esp-idf!6933
2020-01-09 10:42:25 +08:00
Angus Gratton
ca8fac876f
Merge branch 'refactor/move_esp_adapter' into 'master'
...
esp_wifi: Move wifi OS adapter structures into esp_wifi component
See merge request espressif/esp-idf!6546
2020-01-09 07:35:19 +08:00
Jiang Jiang Jian
21e24aef1d
Merge branch 'bugfix/sniff_mode_for_hfp' into 'master'
...
components bt/: Disable sniff mode during (e)SCO connection for HFP.
See merge request espressif/esp-idf!7017
2020-01-08 16:28:19 +08:00
Angus Gratton
459b3195ac
esp_wifi: Move esp32 DPORT access wrappers into esp_wifi component
2020-01-08 18:23:29 +11:00
Angus Gratton
65dad0d46f
build system: Remove some dependencies from esp32 & esp32s2beta
...
Possible now that wifi related source files are all in esp_wifi
2020-01-08 18:13:12 +11:00
Angus Gratton
f616d2f2de
esp_wifi: Move wifi OS adapter structures into esp_wifi component
2020-01-08 18:13:12 +11:00
Angus Gratton
5cd1f5e7c1
Merge branch 'bugfix/esp_tls_client_key_password' into 'master'
...
tcp_transport/esp-tls: support for client-key password
Closes FCS-267
See merge request espressif/esp-idf!7151
2020-01-08 14:40:38 +08:00
Mahavir Jain
717674e2c2
Merge branch 'bugfix/softap_prov_disconnect' into 'master'
...
Bugfix/softap prov disconnect
See merge request espressif/esp-idf!7205
2020-01-08 12:30:42 +08:00
gengyuchao
7e54ac08e6
ble Fix typo and add some comment
2020-01-08 04:17:49 +00:00
Brian Friedkin
efc514fa0a
add missing gatt descriptors
2020-01-08 04:17:49 +00:00
Jiang Jiang Jian
2e7e05a79a
Merge branch 'bugfix/fix_amsdu_decrypt_bug' into 'master'
...
esp_wifi: fix a WiFi A-MSDU decrypt bug
Closes WIFI-1611
See merge request espressif/esp-idf!7157
2020-01-08 11:15:44 +08:00
Angus Gratton
8421114264
Merge branch 'feat/ut_disabled_for_targets' into 'master'
...
ut: use DISABLED_FOR_TARGETS macro in unit tests
See merge request espressif/esp-idf!7117
2020-01-08 09:22:29 +08:00
Felipe Neves
9800750f15
freertos/port: Put critical sections around uxPortCompareSetExtram() to prevent preemption during its execution.
...
Closes: https://github.com/espressif/esp-idf/issues/4561
2020-01-07 10:53:30 -03:00
Piyush Shah
868f317c19
wifi_prov_manager: Delay the Wi-Fi connect call
...
For SoftAP provisioning, if we start Wi-Fi connection as soon as the
apply config request is received, it has been observed that the clients
(Phone apps mostly) do not get the response for this as we switch the
Wi-Fi channel, causing a momentary disconnection.
Delaying the connection calls helps mitigate the issue.
Signed-off-by: Piyush Shah <piyush@espressif.com>
2020-01-07 09:51:54 +00:00
Piyush Shah
c4fb524d03
wifi_prov_manager: Change the name of an internal timer handle to better reflect the purpose
...
Signed-off-by: Piyush Shah <piyush@espressif.com>
2020-01-07 09:51:54 +00:00
Angus Gratton
3b9c8a6677
Merge branch 'bugfix/netif_cpp_issues' into 'master'
...
esp_netif c++ fixes
See merge request espressif/esp-idf!7045
2020-01-07 14:34:57 +08:00
Mahavir Jain
8bfb32735f
Merge branch 'bugfix/use_mbedtls_spiram_strategy' into 'master'
...
Use mbedtls SPIRAM strategy in example_test.py
Closes IDF-1293
See merge request espressif/esp-idf!7132
2020-01-07 11:37:08 +08:00
weitianhua
39a5eb84f3
Disable sniff mode during (e)SCO connection.
2020-01-07 03:15:32 +00:00
Angus Gratton
e890137ad3
Merge branch 'bugfix/cmake_reflashable_build_targets' into 'master'
...
secure boot: Fix bootloader build system target for bootloader digest
Closes IDFGH-2396
See merge request espressif/esp-idf!7069
2020-01-07 06:40:33 +08:00
David Cermak
b69ac4448e
tcp_transport: added API for client-key password
2020-01-06 21:16:24 +00:00
Felipe Neves
c309112b8a
expression_with_stack:make stack overflow detection watchpoint optional
2020-01-06 17:01:53 -03:00
baohongde
f9802da461
components/bt: Fix A2DP stuck when BLE's interval is too small
...
1. Fix the cumulative time switch from BLE to classic BT
2. Enhance classic BT performance while enable calssic BT and BLE at the same time
2020-01-06 20:22:04 +08:00
liu zhifu
c54e11537f
esp_wifi: fix WiFi AMSDU decrypt issue
2020-01-06 17:58:03 +08:00
Jiang Jiang Jian
0a8c641e6f
Merge branch 'bugfix/sniffer_crash_issue' into 'master'
...
esp_wifi: wifi stop bug when sniffer enable
Closes WIFI-1563 and WIFI-1137
See merge request espressif/esp-idf!7187
2020-01-06 17:22:01 +08:00
Marius Vikhammer
ffeda3003c
tcp_transport/ws_client: websockets now correctly handle messages longer than buffer
...
transport_ws can now be read multiple times in a row to read frames larger than the buffer.
Added reporting of total payload length and offset to the user in websocket_client.
Added local example test for long messages.
Closes IDF-1083
2020-01-06 17:18:13 +08:00
michael
f676a3b190
driver, soc: update multichip support headers
2020-01-06 17:13:54 +08:00
michael
4220752aed
ut: Move tests back from "esp32" subfolder
...
DISABLED_FOR_TARGETS macros are used
Partly revert "ci: disable unavailable tests for esp32s2beta"
This partly reverts commit 76a3a5fb48
.
Partly revert "ci: disable UTs for esp32s2beta without runners"
This partly reverts commit eb158e9a22
.
Partly revert "fix unit test and examples for s2beta"
This partly reverts commit 9baa7826be
.
Partly revert "efuse: Add support for esp32s2beta"
This partly reverts commit db84ba868c
.
2020-01-06 17:13:53 +08:00
Michael (XIAO Xufeng)
bc0eac579c
ut: add DISABLED_FOR_TARGETS macros to control ut building
2020-01-06 17:13:47 +08:00
lly
8116a787cd
ble_mesh: Fix PreviousAddress endianess in Friend Request
...
The upper transport layer is using big endian ordering. The
PreviousAddress field of a Friend Request message should therefore
be converted to native endianess using sys_cpu_to_be16().
2020-01-06 16:19:03 +08:00
lly
fc80d107ad
ble_mesh: Fix next_period computation
...
If the duration to publish is roughly the same as the period, we might
end up with elapsed == period, which returns 0 and cancel the periodic
publication. Instead 1 should be returned, just like when the elapsed
time is greater than the period.
2020-01-06 16:17:36 +08:00
lly
7d7bbec5fe
ble_mesh: Make model publication struct more compact
...
Previously the FastPeriodDivisor value was introduced to the model
publication struct. Based on the way it was grouped it seems the
intention was to fit it within the same octet as other bit fields,
but it actually makes the octet overflow by one bit. This ends up
creating another u8_t variable which in turn adds 24 bits of padding
after it.
To keep the size of the struct as compact as possible, group the flag
together with the key index, since that only requires 12 bits. Some
care is needed here, since the mesh stack does have special internal
key index values that require more than 12 bits such as
BLE_MESH_KEY_UNUSED and BLE_MESH_KEY_DEV. In this case restricting
ourselves to 12 bits is fine since the value in the model publication
struct follows 1:1 the value received in the Config Model Publication
Set message, and there the parameter is defined to be exactly 12 bits.
2020-01-06 16:17:36 +08:00
lly
82b4b89dea
ble_mesh: Fix compile error when using release optimization level
2020-01-06 16:17:36 +08:00
lly
b836674d8e
ble_mesh: Remove useless CONFIG_BLE_MESH_NODE
...
For Low Power node and Proxy Server, the two features
depend on BLE_MESH_NODE in Kconfig.in, here in the
stack there is no need to judge if CONFIG_BLE_MESH_NODE
is enabled.
2020-01-06 16:17:36 +08:00
lly
d83c37faed
ble_mesh: Fixes Provisioner not support friend feature
2020-01-06 16:17:36 +08:00
lly
77e7d023b9
ble_mesh: Fixes wrong subnet info used for Friend Clear
...
When Friend node tries to send Friend Clear message to other
Friend nodes, it should use the subnet information based on
the net_idx from friendship.
2020-01-06 16:17:36 +08:00
lly
131a4e7c22
ble_mesh: fix provisioner failed to send msg to 0xFFFF
...
According to Mesh Spec 3.4.5.3, a node shall implement a local
network interface. And here we limit the situation just based
on the spec, and Provisioner directly sending the msg without
passing through the local network interface.
2020-01-06 16:17:36 +08:00
lly
197e54053e
ble_mesh: fix virtual addr wrong return value
...
Fixes missing return value on `va_del`
Fixes wrong return value on `va_add`
2020-01-06 16:17:36 +08:00
lly
e8440ac2f9
ble_mesh: Persistent storage of Virtual Address
...
The 16-bit format group addresses will be stored,
but we don't store (or restore) the virtual label UUIDs,
i.e. after a power cycle the 16-bit group addresses
would be meaningless.
2020-01-06 16:17:36 +08:00
lly
74d0bd3134
ble_mesh: Proxy forwards ALL_NODES addr
...
Unless explicitly blacklisted, the Proxy node will forward all messages
for the ALL_NODES address to the GATT proxy client.
2020-01-06 16:17:36 +08:00
lly
1338fc4ff1
ble_mesh: Model message macros
...
Creates macros for determining model message lengths based on opcode,
payload length and MIC size. Also adds macro wrapping
NET_BUF_SIMPLE_DEFINE to serve the most common use case.
2020-01-06 16:17:36 +08:00
lly
f3b9b099cd
ble_mesh: Use net_buf_simple_clone
...
Uses net_buf_simple_clone to access the sdu of an unsegmented app packet
for re-encryption.
2020-01-06 16:17:36 +08:00
lly
aec696a3a4
ble_mesh: Skip local messages in rx
...
Local messages are already enqueued for the LPN in the tx path, and
don't have to be added again in the rx path.
2020-01-06 16:17:36 +08:00
lly
6516ab71ea
ble_mesh: Ensure seqnum match in app/net
...
Re-encrypts single-segment application messages when the network seqnum
has changed, to avoid encrypting messages with different seqnums in
network and transport. This operation is only required for unsegmented
messages, as segmented messages don't need to use the same seqnum in
network.
Reinstates the special adv data for friend messages to store the app key
index.
2020-01-06 16:17:36 +08:00
lly
b88dbf6348
ble_mesh: Expose app key get function
2020-01-06 16:17:36 +08:00
lly
906fb9d6e3
ble_mesh: Expose header parsing outside net
2020-01-06 16:17:36 +08:00
lly
865434e6de
ble_mesh: Remove unused macro FRIEND_BUF_SIZE
2020-01-06 16:17:36 +08:00
lly
67cb3062a6
ble_mesh: Make RSSI value available to mesh applications
2020-01-06 16:17:36 +08:00
lly
89a681fd4a
ble_mesh: Encrypt friend packets on send
...
Stores friend queue packets unencrypted, removing any out-of-order
issues caused by seqnum allocation. Also moves as much of the metadata
storage as possible into the packet, allowing us to free up some bytes
of net_buf user data for friend packets.
2020-01-06 16:17:36 +08:00
lly
99a63ce81d
ble_mesh: Expose SeqZero mask
...
Makes a define for the seqzero 13-bit mask in transport, and exposes it
in the header for use in the friend module.
2020-01-06 16:17:36 +08:00
lly
9f6dd19033
ble_mesh: Update lightness last state when actual state is changed
2020-01-04 14:57:08 +08:00
Felipe Neves
5db46ab9e6
assert: extend likely macro to be called when silent assertions are off
2020-01-03 14:42:58 -03:00
Felipe Neves
d059a955ae
freertos: removed likely macros from non-port specifics parts of freertos
...
fatfs: moved esp_compiler header file inside of disk implementation file
2020-01-03 14:42:57 -03:00
Felipe Neves
668b33dcf3
esp_compiler: generate likely and unlikely macros only when performance optimization is selected as build option
2020-01-03 14:42:57 -03:00
Felipe Neves
1b76253e0e
newlib/assert: placed unlikely macro as part of assertion
...
newlib/assert: replace unlikely with likely to keep original assertion
newlib/assert: fix assert macro that uses likely
freertos/port: add the missing sdkconfig.h back
newlib/assert: assert macro back to a single line
2020-01-03 14:42:55 -03:00
Felipe Neves
fc00236d79
components/esp_common: added esp_macros.h that aims to hold useful macros
...
esp_common/esp_compiler: renamed esp_macros file to a more specific one
esp_common/esp_compiler: removed CONTAINER_OF macro, it was a duplicate
components/freertos: placed likely macros around port and critical sections
component/freertos: placed likely macros on lists module
components/freertos: placed unlikely macros inside of assertion points, they likely wont fail
components/freertos: added likely macros on queue modules
FreeRTOS queues are one of most hot code path, because to queues itself tend to
be used a lot by the applications, besides that, queues are the basic primitive
to form both mutexes and semaphores, The focus here is to place likely
macros inside lowest level send and receive routines, since they're common
from all kobjects: semaphores, queues, mutexes and FR internals (like timer queue)
components/lwip: placed likely/unlikey on net-interfaces code
components/fatfs: added unlikely macros on disk drivers code
components/spiffs: added unlikely macros on low level fs driver
components/freertos: added likely/unlikely macros on timers and ticker
freertos/event_group: placed likely/unlikely macros on hot event group code paths
components/sdmmc: placed likely / unlikely macros on lower level path of sdmmc
components/bt: placed unlikely macros around bt HCI functions calling
components/lwip: added likely/unlikely macros on OS port code section
components/freertos: fix code style on tick handler
2020-01-03 14:42:49 -03:00
Shubham Kulkarni
563175d90a
mbedtls: Use SPIRAM strategy in example_test.py
2020-01-03 15:30:03 +05:30
Ivan Grokhotkov
52f8aa2adb
Merge branch 'feature/heap_non_os_build' into 'master'
...
heap: make compatible with non-OS builds, remove target dependence
Closes IDF-1236
See merge request espressif/esp-idf!7051
2020-01-03 17:12:51 +08:00
xiehang
3321999e4a
lwip: Drop packets larger than MTU
2020-01-03 08:55:35 +00:00
xiehang
ea1b821a60
Fix wifi stop bug when sniffer enable
2020-01-03 08:52:56 +00:00
Angus Gratton
7dc7557aa9
soc: Fix esp_ptr_executable() for single core ESP32 config & cache memory
...
In single core mode, APP CPU cache region is added to the available range.
2020-01-03 17:31:40 +11:00
Angus Gratton
e08fc62071
Merge branch 'bugfix/backtrace_rom_fn' into 'master'
...
soc: fix backtraces containing ROM functions
See merge request espressif/esp-idf!6719
2020-01-03 14:30:21 +08:00
Angus Gratton
4132923ebe
Merge branch 'bugfix/ws_user_context' into 'master'
...
websocket: added missing event data
Closes IDF-1271
See merge request espressif/esp-idf!7059
2020-01-03 09:29:41 +08:00
Ivan Grokhotkov
43de2cc84c
test: add a (non-automated) case for backtraces with ROM functions
2020-01-02 18:50:32 +01:00
Ivan Grokhotkov
b4aba189ab
heap: recognize 0x40000000 as an address terminating the backtrace
...
On Xtensa, backtrace can not recover the two most significant bits of
the address, as the window call size is encoded in these bits.
Because of this, __builtin_return_address modifies these MSBs to
match those of the callee, "fixing" the address. An unfortunate side
effect is that the zero return address, which usually terminates the
backtrace, gets converted to 0x40000000. While there is a valid
instruction at this address, its occurrence in the backtrace is
highly unlikely: this is the first instruction of WindowOverflow4
vector, and IDF apps switch VECBASE to an IRAM location very early at
startup.
2020-01-02 18:42:46 +01:00
Ivan Grokhotkov
d9534b3d6a
soc: fix backtraces containing ROM functions
...
esp_ptr_executable would return false for pointers to ROM, which would
interrupt the backtrace. This makes ROM ranges recognized as
executable.
2020-01-02 18:42:46 +01:00
David Cermak
b2c8ce8e2b
esp_netif: fixed initialization order of items in a struct
...
Closes https://github.com/espressif/esp-idf/issues/4389
Closes https://github.com/espressif/esp-idf/issues/4507
2020-01-02 17:16:47 +00:00
David Cermak
ddf59520c6
wifi: fixed missing c++ guards
...
Closes https://github.com/espressif/esp-idf/issues/4497
2020-01-02 17:16:47 +00:00
Mahavir Jain
97c8b90083
Merge branch 'bugfix/advanced_https_ota_example' into 'master'
...
Bugfix for failing OTA example
Closes IDF-1080 and IDFGH-2249
See merge request espressif/esp-idf!6979
2020-01-02 17:29:35 +08:00
Jakob Hasse
c31c45cae7
NVS: partition name is copied now
...
Closes IDF-1231
2020-01-02 09:18:24 +08:00
Ivan Grokhotkov
f30e920116
Merge branch 'bugfix/esp32s2beta_fix_wifi_init_crash' into 'master'
...
Fix ESP32S2BETA WiFi initialization crash issue
Closes WIFI-1597
See merge request espressif/esp-idf!7154
2019-12-31 17:57:41 +08:00
Shubham Kulkarni
032a041395
Bugfix for failing OTA example
...
example_test.py is added to test advanced_https_ota_example and native ota_example.
Closes https://github.com/espressif/esp-idf/issues/4394
2019-12-31 14:18:16 +05:30
Angus Gratton
17b5df4d72
Merge branch 'feature/function_call_with_stack' into 'master'
...
esp_common: added a macro to allow call functions using user allocated stack
Closes IDF-535
See merge request espressif/esp-idf!6709
2019-12-31 15:08:27 +08:00
Angus Gratton
cf2f732b2c
Merge branch 'bugfix/heap_tests_esp32s2beta' into 'master'
...
bugfix/heap test failure fixing for esp32s2 beta
Closes IDF-1021
See merge request espressif/esp-idf!6659
2019-12-31 15:03:01 +08:00
Angus Gratton
d4366e0e05
Merge branch 'bugfix/pthread_cxx_test_race' into 'master'
...
test: Fix possible race in pthread C++ test
Closes IDF-1270
See merge request espressif/esp-idf!7054
2019-12-31 07:06:54 +08:00
Angus Gratton
4ae9dad9a3
Merge branch 'bugfix/panic_cache_err_dig_reset' into 'master'
...
esp32: panic: do digital reset if cache error interrupt is set
See merge request espressif/esp-idf!7152
2019-12-31 07:04:22 +08:00
Ivan Grokhotkov
4bbfa6e494
Merge branch 'feature/soc_ledc_caps' into 'master'
...
soc: add ledc_caps.h, replace target-based ifdefs with caps-based
See merge request espressif/esp-idf!6858
2019-12-30 18:47:11 +08:00
Ivan Grokhotkov
9e93b619d9
Merge branch 'bugfix/coredump_epc_level' into 'master'
...
core dump: only get EPC/EPS registers up to XCHAL_NUM_INTLEVELS
See merge request espressif/esp-idf!7064
2019-12-30 18:45:59 +08:00
Ivan Grokhotkov
f2f008e167
Merge branch 'bugfix/xt_context_save' into 'master'
...
freertos: save/restore PS and EPC1 around window spilling, fixes setjmp regression
Closes IDFGH-2428
See merge request espressif/esp-idf!7135
2019-12-30 18:05:25 +08:00
Xia Xiaotian
b7e3886bf2
Fix ESP32S2BETA WiFi initialization crash issue
...
ESP32S2BETA does not need to enable WiFi common clock in WiFi library, for
WiFi common clock is not disabled when WiFi is in sleep state.
2019-12-30 16:51:12 +08:00
Ivan Grokhotkov
f52952cb45
esp32: panic: do digital reset if cache error interrupt is set
...
Even if frame->exccause != PANIC_RSN_CACHEERR, it is possible that
the cache error interrupt status is set. For example, this may happen
due to an invalid cache access in the panic handler itself.
Check cache error interrupt status instead of frame->exccause to
decide whether to do CPU reset or digital reset.
Also remove unnecessary esp_dport_access_int_pause from
esp_cache_err_get_cpuid, since the panic handler already calls
esp_dport_access_int_abort on entry.
2019-12-30 09:49:07 +01:00
Angus Gratton
03f6179211
Merge branch 'bugfix/app_partition_sha_values' into 'master'
...
bootloader_support: Fix for app SHA-256 calculation, chip revision log spam
See merge request espressif/esp-idf!6862
2019-12-30 12:45:30 +08:00
Angus Gratton
bc02b128be
Merge branch 'feature/add_eth_download_test' into 'master'
...
ethernet: test download blob && phy addr auto detect
Closes IDF-1238
See merge request espressif/esp-idf!6957
2019-12-30 11:52:40 +08:00
Angus Gratton
ba3f47efd6
bootloader_support: fix crash in image verification is SHA doesn't match
2019-12-30 13:48:11 +11:00
Angus Gratton
b2ed553bbf
bootloader_support: Reduce log spam about chip revisions
...
* Don't bother checking the chip revision if it looks like the partition
doesn't really contain an app
* Don't print the "info" level about the revision & min revision unless
we're in the bootloader (otherwise it gets printed at random times
during the OTA process)
2019-12-30 13:48:11 +11:00
Angus Gratton
5139934767
bootloader_common: Fix esp_partition_get_sha256(), add unit tests
...
Regression in 438d513a95
Reported here: https://esp32.com/viewtopic.php?f=13&t=13250&p=52460
2019-12-30 13:47:47 +11:00
Kirill Chalov
ab6311c548
Reveiw the file api-reference/peripherals/i2s.rst
2019-12-29 21:05:57 +00:00
Jiang Jiang Jian
c8b839b3d5
Merge branch 'bugfix/btdm_revert_changes_of_security_mask' into 'master'
...
components/bt: Revert changes of security mask
See merge request espressif/esp-idf!7118
2019-12-29 14:12:27 +08:00
Ivan Grokhotkov
e4d45608d3
soc: add ledc_caps.h, replace target-based ifdefs with caps-based
2019-12-28 20:33:21 +00:00
lly
3b9fe36494
ble_mesh: Fix memory leak when node is reset
...
When node is being reset, the init functions of each sig-defined
models will be invoked again, this will cause memory leak because
some model internal data will be allocated again.
Hence before trying to allocate memory for them, we add some check
to make sure no memory has been allocated previously.
And for client model, when the init functions are invoked again,
we will clear the list items.
2019-12-28 08:00:44 +00:00
Ivan Grokhotkov
3285ed116d
heap: make compatible with non-OS builds, remove target dependence
2019-12-27 12:40:06 +01:00
Ivan Grokhotkov
6c0044cc65
Merge branch 'bugfix/rtc_cntl_h_cpp_guards' into 'master'
...
Add missing extern "C" to rtc_cntl.h
Closes IDFGH-2419
See merge request espressif/esp-idf!7093
2019-12-27 19:21:06 +08:00
Ivan Grokhotkov
acca61c714
Merge branch 'bugfix/spiffs_partition_label_usage' into 'master'
...
spiffs: clarify the usage of partition_label, fix the example
Closes IDFGH-2313
See merge request espressif/esp-idf!7092
2019-12-27 19:20:46 +08:00
Ivan Grokhotkov
83d63b4673
unity: re-enable test case exit by longjmp
2019-12-27 11:27:01 +01:00
Ivan Grokhotkov
891eb3b020
freertos: save/restore PS and EPC1 around window spilling
...
Since in b0491307
, which has introduced the optimized window spill
procedure, _xt_context_save did not work correctly when called from
_xt_syscall_exc. This was because unlike _xt_lowint1, _xt_syscall_exc
does not save PS and EPC1. The new version of _xt_context_save
modified PS (on purpose) and EPC1 (accidentally, due to window
overflow exceptions), which resulted in a crash upon 'rfi' from the
syscall.
This commit adds restoring of PS and EPC1 in _xt_context_save. It also
slightly reduces the number of instructions used to prepare PS for
window spill.
Unit test for setjmp/longjmp (which were broken by this regression)
is added.
Closes https://github.com/espressif/esp-idf/issues/4541
2019-12-27 11:27:01 +01:00
Mahavir Jain
e0b667804f
Merge branch 'fix/test_flash_timeout_sdio_throughput' into 'master'
...
Fix several CI issues
See merge request espressif/esp-idf!7101
2019-12-26 20:25:31 +08:00
Mahavir Jain
3be94b6952
Merge branch 'bugfix/can_critical_section_logs' into 'master'
...
can: Fix critical section ESP_LOG functions
Closes IDFGH-2270 and IDF-1067
See merge request espressif/esp-idf!7081
2019-12-26 16:22:17 +08:00
Mahavir Jain
9738bc58ed
Merge branch 'bugfix/can_semaphore_take_in_critical' into 'master'
...
can: Fix semaphore take in critical section
Closes IDFGH-2115
See merge request espressif/esp-idf!7083
2019-12-26 16:15:07 +08:00
baohongde
3977ba7bc6
components/bt: Revert changes of security mask
2019-12-25 20:03:16 +08:00
zhangyanjiao
56c309b40b
fix the bugs in ESP-NOW:
...
1. fix the bug when modifying the channel info of peer node
2. fix the crash when modifying peer node between unencrypted and encrypted
3. fix the bug for fetch peer
4. modify the esp_wifi_set_channel() function
5. fix the bug that the channel parameter doesn't work when adding peer node
Closes https://github.com/espressif/esp-idf/issues/2833
Closes https://github.com/espressif/esp-idf/issues/4311
2019-12-25 11:46:27 +08:00
liu zhifu
97e7bdd161
esp_wifi: fix WiFi timer bug
2019-12-25 09:10:45 +08:00
liu zhifu
e1eeef2276
esp_wifi: fix a WiFi receiving bug
...
Support WiFi/BT MAC register writting when the WiFi/BT common clock is disabled.
2019-12-24 21:32:03 +08:00
Michael (XIAO Xufeng)
2ffe0aca12
esp_flash: increase the timeout for block erase
2019-12-24 16:50:09 +08:00
Michael (XIAO Xufeng)
72cf67cba3
sdio_slave_hal: fix the TAG non-static issue
...
(MINOR CHANGE)
2019-12-24 16:50:09 +08:00
Michael (XIAO Xufeng)
41e37ebabe
ci: decrease the performance threshold for sdio throughput
2019-12-24 16:50:08 +08:00
Jack
3f22448fdf
Fixes ESPNOW unicast packet Tx failure
2019-12-24 11:59:18 +08:00
Jiang Jiang Jian
a3501deb22
Merge branch 'bugfix/fix_the_bugs_for_bandwidth' into 'master'
...
fix the bugs for bandwidth
Closes WIFI-1306
See merge request espressif/esp-idf!6965
2019-12-24 11:43:44 +08:00
morris
7baf7ce273
ethernet: optimise tx and rx
2019-12-24 11:18:31 +08:00
morris
fce6a9c735
ethernet: test ethernet download
2019-12-24 11:18:30 +08:00
morris
197d5d7378
ethernet: support phy addr auto detect
2019-12-24 11:18:30 +08:00
Ivan Grokhotkov
f687cedebe
Merge branch 'bugfix/wa_dport_and_intr' into 'master'
...
esp32: Fix for DPORT
See merge request espressif/esp-idf!7070
2019-12-24 01:30:56 +08:00
Ivan Grokhotkov
750818de72
spiffs: clarify the usage of partition_label, fix the example
...
* If esp_vfs_spiffs_register is called with an explicit partition
label, other SPIFFS functions (info, format, unregister) must be
called with the same label.
* On the other hand, if label was NULL in the call to
esp_vfs_spiffs_register and the first matching partition was used,
calls to the rest of the SPIFFS functions should be done with NULL
partition_label argument.
Fix the Doxygen documentation. Update the example accordingly, in case
a user modifies "partition_label" value in esp_vfs_spiffs_conf_t conf
initializer.
Closes https://github.com/espressif/esp-idf/issues/4450
2019-12-23 18:20:14 +01:00
zhangyanjiao
7416c37fe1
fix the bug for getting channel and bandwidth
2019-12-23 20:06:13 +08:00
Jiang Jiang Jian
698350ff1f
Merge branch 'bugfix/fix_performance_issues_new' into 'master'
...
improve wifi performance
Closes WIFI-265, WIFI-1349, WIFI-23, WIFI-296, WIFI-397, WIFI-1255, WIFI-1256, and FCS-175
See merge request espressif/esp-idf!6928
2019-12-23 17:38:43 +08:00
Ivan Grokhotkov
c029888bf1
Merge branch 'fix/spi_ut_esp32s2beta' into 'master'
...
spi: re-enable the unit tests for esp32s2beta
Closes IDF-1020
See merge request espressif/esp-idf!6327
2019-12-23 15:10:31 +08:00
morris
888316fc64
bootloader_support: refactor to better support multi target
2019-12-23 05:45:17 +00:00
suda-morris
ba7c67ece8
bootloader won't have dependency on wifi
2019-12-23 05:45:17 +00:00
michael
2dd12ae5f8
spi: fix speed test issues on esp32s2beta
...
Also support performance value for different targets.
2019-12-23 10:23:01 +08:00
michael
3d1ec3f451
intr_alloc: fix the issue intr_enable/disable cannot be used in ISR in
...
esp32s2beta.
This issue is reported in config freertos_compliance_s2.
2019-12-23 10:23:00 +08:00
michael
262ba6f825
spi: fix iomux, timing and address phase issues for esp32s2beta
2019-12-23 10:23:00 +08:00
michael
11fa11000f
spi: re-enable the unit tests for esp32s2beta
2019-12-23 10:22:59 +08:00
Jack
1e47b01563
improve wifi performance
2019-12-22 19:34:53 +08:00
KonstantinKondrashov
9432ebddf9
esp32: Add UT for DPORT
2019-12-21 14:10:38 +00:00
KonstantinKondrashov
c4dcf6f917
esp32: Fix esp_dport_access_reg_read
2019-12-21 14:10:38 +00:00
KonstantinKondrashov
1687c53700
freertos: Fix save_context. Add RSYNC after WSR
...
RSYNC waits for all previously fetched WSR.* instructions to be performed before inter-
preting the register fields of the next instruction.
2019-12-21 14:10:38 +00:00
boarchuz
5dc10a4191
Add missing extern "C" to rtc_cntl.h
...
Related: https://github.com/espressif/arduino-esp32/issues/3149
2019-12-21 12:12:54 +11:00
Felipe Neves
8795b2681c
heap: added test case for realloc to verify if successive realloc in IRAM still ends there.
2019-12-20 13:48:09 -03:00
Felipe Neves
4909fdfe02
heap_caps: small fixes on comments plus cleaning
2019-12-20 13:35:56 -03:00
Felipe Neves
31145f38fa
heap_caps: added special case for realloc when previous area is an diram_iram ptr, this will force a malloc/copy/free
2019-12-20 13:35:56 -03:00
Felipe Neves
ce9f84fba9
heap_caps: enable check of pointer on diram_iram for both S2 and non-S2 platform
2019-12-20 13:35:56 -03:00
Felipe Neves
d9ab33118e
heap/multi_heap_poisoning: include heap_private.h only when no host heap tests
2019-12-20 13:35:56 -03:00
Felipe Neves
4a392932f1
heap/heap_caps: added special case for esp32s2 when handling memory allocated (and aliased) from IRAM
2019-12-20 13:35:56 -03:00
Felipe Neves
ecc4955c68
heap/test_malloc_caps: changed malloc caps test to deal with esp32 and esp32s2 memory differencies.
2019-12-20 13:35:56 -03:00
Felipe Neves
cf95ea40d4
heap/test_leak: changed requested memory on leak checks to match the threshold
2019-12-20 13:35:56 -03:00
Felipe Neves
d1b76d13bb
exp_expression_with_stack: added check for null pointer after obtaining a mutex in test
2019-12-20 13:28:29 -03:00
Felipe Neves
f0e82311a5
esp_expression_with_stack: fix wrong top of stack calculation plus documentation update
2019-12-20 13:23:47 -03:00
Felipe Neves
e4fb50e6f3
expression_with_stack_xtensa: fixed stack pointer to avoid its overflow on heap block metadata.
2019-12-20 13:18:13 -03:00
Felipe Neves
fab50ccf7c
expression_with_stack_xtensa: call esp watchpoint function using a callx4 to fix range problem of call4 function
2019-12-20 13:18:13 -03:00
Felipe Neves
674cb1c21c
esp_expression_with_stack: added fake stack frame plus some cleanup on main macro
2019-12-20 13:18:13 -03:00
Felipe Neves
5e18cd4e13
esp_expression_with_stack: added watchpoint on stack parameter before use it
2019-12-20 13:18:13 -03:00
Felipe Neves
dfea4196a2
docs: added esp-expression-with-stack on documentation
2019-12-20 13:18:13 -03:00
Felipe Neves
002f38c7f5
expression_with_stack_xtensa: protected switch stacks function to compile only on window ABI supported platform
2019-12-20 13:18:13 -03:00
Felipe Neves
11266ef05d
expression_with_stack_xtensa: renamed and moved assembly helpes of esp_expression_wit_stack to xtensa component
2019-12-20 13:18:13 -03:00
Felipe Neves
7b90f34c5a
esp_expression_with_stack: renamed macro and functions to have esp_ prefix
2019-12-20 13:18:13 -03:00
Felipe Neves
98b76617be
test_shared_stack_printf: moved the test stack inside the heap
2019-12-20 13:18:13 -03:00
Felipe Neves
debcc68c41
esp_common: added a macro to allow call functions using user allocated stack
2019-12-20 13:18:13 -03:00
Darian Leung
4c3d49e3f0
can: Fix semaphore take in critical section
...
This commit fixes can_reconfigure_alerts() which
could lead to a call to xSemaphoreTake() whilst
inside a critical section.
Closes https://github.com/espressif/esp-idf/issues/4277
2019-12-20 22:00:33 +08:00
Darian Leung
b6af587975
can: Fix critical section ESP_LOG functions
...
This commit removes any function calls within
the CAN driver that result in a call to ESP_LOG
whilst inside a critical section.
These function calls are either moved outside
critical sections (e.g., intr_alloc and gpio
functions), or substituted (e.g., assert()).
Closes https://github.com/espressif/esp-idf/issues/4412
2019-12-20 20:58:48 +08:00
Konstantin Kondrashov
98495e5939
sntp: Add API to set update interval
...
Closes: https://github.com/espressif/esp-idf/issues/4437
Closes: IDFGH-2298
2019-12-20 18:26:23 +08:00
Angus Gratton
28314f9bb0
Merge branch 'bugfix/parttool_regression' into 'master'
...
parttool: Fix regression when parsing binary partition data
See merge request espressif/esp-idf!7075
2019-12-20 17:33:21 +08:00
Jiang Jiang Jian
e977cc24ff
Merge branch 'bugfix/fix_ble_mesh_adv_buf_unref' into 'master'
...
ble_mesh: Fix adv buf unref and link_id in exceptional list
See merge request espressif/esp-idf!6828
2019-12-20 17:11:08 +08:00
Angus Gratton
8f15664be0
parttool: Fix regression when parsing binary partition data
...
Regression in a91de43537
2019-12-20 19:09:10 +11:00
Jiang Jiang Jian
abe26a1c02
Merge branch 'bugfix/ble_mesh_client_check_remain_time' into 'master'
...
ble_mesh: Client model check timer remaining time
See merge request espressif/esp-idf!7010
2019-12-20 15:21:26 +08:00
Mahavir Jain
ba0a22f59d
Merge branch 'fix/run_esptool_absolute_path' into 'master'
...
project_include.cmake: Make esptool_py_custom_target callable from other directories
See merge request espressif/esp-idf!7062
2019-12-20 14:05:53 +08:00
Angus Gratton
f0680b99b3
Merge branch 'bugfix/mdns_netif_local' into 'master'
...
mdns: fix preset of esp_netif ptr for local interfaces
Closes WIFI-1538
See merge request espressif/esp-idf!7009
2019-12-20 12:53:50 +08:00
lly
fbdaed0248
ble_mesh: Add unlock when failed to create alarm
2019-12-20 12:25:01 +08:00
lly
619e606356
ble_mesh: Rename ble mesh lock/unlock functions
...
Rename BLE Mesh internal lock/unlock functions, also seperate
the list, buf and atomic lock/unlock functions
2019-12-20 12:23:10 +08:00
Angus Gratton
3faa2a48d1
Merge branch 'test/uart_unit_tests' into 'master'
...
driver: test: Fix for 'uart read write' test failure, use some more verbose macros
See merge request espressif/esp-idf!6996
2019-12-20 12:15:45 +08:00
Angus Gratton
8099a90d46
Merge branch 'bugfix/parttool_backtraces' into 'master'
...
parttool: Avoid unnecessary exception backtrace for legitimate errors
See merge request espressif/esp-idf!7022
2019-12-20 12:14:23 +08:00
Angus Gratton
0cc98b8d76
secure boot: Fix bootloader build system target for bootloader digest
...
Closes https://github.com/espressif/esp-idf/issues/4513
2019-12-20 15:09:15 +11:00
Angus Gratton
15e67a49f4
Merge branch 'bugfix/nvs_flash_iterator' into 'master'
...
NVS: BUGFIX iterator corrupting entries.
Closes IDFGH-2229
See merge request espressif/esp-idf!6789
2019-12-20 11:40:23 +08:00
Jiang Jiang Jian
546aa18c84
Merge branch 'bugfix/fix_wifi_stop_memory_leak' into 'master'
...
esp_wifi/supplicant: fix some WiFi stop memory leak
Closes WIFI-1488
See merge request espressif/esp-idf!7043
2019-12-20 11:07:13 +08:00
Ivan Grokhotkov
37a8ff9040
core dump: only get EPC/EPS registers up to XCHAL_NUM_INTLEVELS
2019-12-19 16:47:57 +01:00
Amit Sheth
8f3987099e
project_include.cmake: Make esptool_py_custom_target callable from other directories
2019-12-19 17:53:09 +05:30
Marius Vikhammer
7c0e3765ec
websocket: added missing event data
...
user_context was missing from websocket event data, added. Also added the websocket client handle to the event data.
Removed unused event data struct.
Closes: IDF-1271
2019-12-19 17:36:37 +08:00
Ivan Grokhotkov
9addf631e5
Merge branch 'bugfix/mdns_deinit_event_crash' into 'master'
...
mdns: fixed crash on event during deinit
Closes WIFI-1485
See merge request espressif/esp-idf!6951
2019-12-19 15:42:05 +08:00
Jakob Hasse
38aa21fd15
WIFI: added log for wifi test, increased timeout
2019-12-19 14:53:28 +08:00
Angus Gratton
852462f4e2
test: Fix possible race in pthread C++ test
...
Also use TEST_ASSERT_EQUAL to get better debugging
Debugging intermittent UT failures on S2 release config
In the old version, the 300ms delay in between the two kinds of test
was supposed to keep the tasks in lockstep so it didn't matter that
global_sp was protected by two muxes.
However it seems like sometimes they could get out of sync -
I think because of a race in the sleep_until test. If the
second counter ticks over at that exact moment sleeping starts,
then the task doesn't sleep and will immediately keep running
for the next iteration, possibly racing the other tasks.
2019-12-19 15:55:51 +11:00
Angus Gratton
505a82488a
Merge branch 'bugfix/esp_log_from_critical' into 'master'
...
intr_alloc: don't call ESP_LOG from a critical section
Closes FCS-268
See merge request espressif/esp-idf!7047
2019-12-19 08:47:19 +08:00
Mahavir Jain
e8db1c4da0
Merge branch 'feature/enable_i2s_tests_on_esp32s2beta' into 'master'
...
Enable i2s and freertos test/s on esp32s2beta
See merge request espressif/esp-idf!6790
2019-12-18 17:51:54 +08:00
Ivan Grokhotkov
2b6c85e182
intr_alloc: don't call ESP_LOG from a critical section
...
Calling ESP_LOG from a critical section leads to abort() in 4.1, and
may also randomly abort() in earlier versions.
Closes FCS-268
2019-12-18 10:11:24 +01:00
liu zhifu
fde2f33912
esp_wifi/supplicant: fix some WiFi stop memory leak
2019-12-18 13:51:27 +08:00
Angus Gratton
30372f5a4f
Merge branch 'docs/esp_netif_programmer_manual' into 'master'
...
esp netif: formal fixes (docs and c++ sentinels again)
Closes IDFGH-2265
See merge request espressif/esp-idf!6819
2019-12-18 13:12:36 +08:00
Jakob Hasse
5249d33c1f
NVS: bugfix nvs_set_str/blob checks write mode
2019-12-18 09:06:45 +08:00
Jakob Hasse
bb1cd9a440
NVS: BUGFIX non-matching type iterator works
...
Closes IDFGH-2229
2019-12-18 09:06:45 +08:00
David Cermak
eaa2f12d67
mdns: fixed crash on event during deinit
...
mdns library deinitialization destroys internal structures including action queue. if an event (e.g. network update) received
after some essential stucture is destoyed, an unexpected behavour might be introduced (e.g. crash of adding the event notification
to the action queue which was already destroyed
Closes WIFI-1485
2019-12-17 18:18:22 +00:00
David Cermak
74d768fe6d
ci: updated mqtt weekend test for qemu support
...
Added default sdkconfig for qemu build for the mqtt publish example,
Added environment configuration for running the same test on target
or in qemu
Updated missing example tests per latest ttfw refactoring
2019-12-17 14:06:40 +01:00
Jiang Jiang Jian
259d43db83
Merge branch 'bugfix/fix_block_scan_crash_issue' into 'master'
...
esp_wifi: Fix wifi block scan crash issue
Closes AUD-873 and WIFI-922
See merge request espressif/esp-idf!6422
2019-12-17 20:03:10 +08:00
Jiang Jiang Jian
08b1ccb7b7
Merge branch 'bugfix/esp_netif_receive_null_netif' into 'master'
...
esp_netif: store netif before register wifi rxcb
Closes WIFI-1499
See merge request espressif/esp-idf!6947
2019-12-17 20:01:34 +08:00
David Cermak
b61b927008
esp_netif: minor log message fix in dhcps cb
...
To make it more general, since the DHCP server does not necessarily runs only on softAP.
2019-12-17 09:02:51 +01:00
Thomas Schaub
f21107d12d
esp_netif/tcpip_adapter: declare functions extern "C"
...
Merges https://github.com/espressif/esp-idf/pull/4408
2019-12-17 09:02:51 +01:00
David Cermak
ac47c74ec4
esp_netif, docs: Added programmer's manual section
...
Also added guide for creating a custom network capable I/O driver
And added notes about default wifi interfaces and implications of using
default short-hand creation functions.
2019-12-17 09:02:51 +01:00