Jiang Jiang Jian
6c19711778
Merge branch 'feature/dev_security_restore_backport_v4p0' into 'release/v4.0'
...
feature/dev_security_restore_backport_v4p0(backport release/v4.0)
See merge request espressif/esp-idf!7738
2020-02-24 11:48:27 +08:00
Jiang Jiang Jian
28788e2d66
Merge branch 'bugfix/mbedtls_esp_bignum_v4.0' into 'release/v4.0'
...
mbedtls: esp bignum fix for 4096 keys (v4.0)
See merge request espressif/esp-idf!7705
2020-02-24 11:44:16 +08:00
June
9d15ffb573
backport mr !6031 - fix security info restore bug
2020-02-21 20:00:25 +08:00
Jiang Jiang Jian
6fee9da72e
Merge branch 'bugfix/enable_ipv6_address_autoconfig_v4.0' into 'release/v4.0'
...
lw-ip: Enable IPv6 stateless address autoconfiguration (backport v4.0)
See merge request espressif/esp-idf!7653
2020-02-21 14:53:47 +08:00
Mahavir Jain
54f7ed5dcc
Merge branch 'bugfix/esp_log_timestamp_v4.0' into 'release/v4.0'
...
Use proper API to get Tick Count is esp_log_timestamp (v4.0)
See merge request espressif/esp-idf!7719
2020-02-20 20:52:33 +08:00
Shubham Kulkarni
2966f8cb8c
log: Check for ISR context and use proper API to get Tick Count
2020-02-20 15:55:22 +05:30
Amit Sheth
b59bcb88ce
project_include.cmake: Make esptool_py_custom_target callable from other directories
2020-02-20 15:17:05 +05:30
David Cermak
f8fc84813c
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-02-20 10:03:00 +01:00
David Cermak
e29d17fcd0
mbedtls: added mpi multiplication test for large numbers
2020-02-20 10:03:00 +01:00
baohongde
06ff1ceae3
Fix bugs about role switch
...
Jitter in FHS
Jitter in first PULL
Receive EDR packet fail after role switch
2020-02-20 15:21:28 +08:00
Jiang Jiang Jian
b04e643bd0
Merge branch 'bugfix/coex_schm_v4.0' into 'release/v4.0'
...
Bugfix/coex schm v4.0
See merge request espressif/esp-idf!7636
2020-02-20 14:49:32 +08:00
xiehang
e4696f077d
lwip: Enable IPv6 stateless address autoconfiguration
2020-02-20 13:53:55 +08:00
baohongde
53e355b355
components/coex: Fix misspell in Kconfig
2020-02-19 11:48:45 +08:00
baohongde
d07b9e97d7
components/coex: Fix a2dp stuck after creating anther connection
2020-02-19 11:48:33 +08:00
Jiang Jiang Jian
615dc00e86
Merge branch 'bugfix/some_host_and_example_bugfix_Backport_to_4v0' into 'release/v4.0'
...
Bugfix/some host and example bugfix backport to v4.0
See merge request espressif/esp-idf!7360
2020-02-18 21:02:34 +08:00
Jiang Jiang Jian
8dd98715a4
Merge branch 'bugfix/unified_prov_bluedroid_v4.0' into 'release/v4.0'
...
Unified Provisioning - BLE: Fix characteristics read response issue (backport v4.0)
See merge request espressif/esp-idf!7650
2020-02-18 20:57:33 +08:00
Jiang Jiang Jian
3b954fb6d6
Merge branch 'bugfix/ble_mesh_fix_compile_error_with_cpp_4.0' into 'release/v4.0'
...
ble_mesh: Fix compile error with c++ files (v4.0)
See merge request espressif/esp-idf!7584
2020-02-18 20:44:41 +08:00
Hrishikesh Dhayagude
6f875f2db2
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:09:30 +05:30
baohongde
78ecc043d5
Improve coexistence performance according to specific WiFi/BT/BLE scienario
...
1. Improve WiFi performance in some Classic BT scienario(idle, inquire scan,
connecting, connected, sniff, a2dp pause, etc).
2. Support WiFi + Classic BT + BLE mesh coexistence scienario.
3. Improve WiFi scan and connect performance in coexistence scienario.
2020-02-18 12:40:48 +08:00
baohongde
c48a94d4a8
components/mesh: Fix some bugs about mesh
...
fix send acl pkt after ble have sent terminate ind
modify min adv interval to 10ms
2020-02-18 11:07:16 +08:00
baohongde
6f4e257601
Increase TCP send buffer and receive window limitation when TCP window scale is enabled
2020-02-18 11:06:15 +08:00
Angus Gratton
2fdb56e741
Merge branch 'feat/mcpwm_hal_fixes_v4.0' into 'release/v4.0'
...
mcpwm: add HAL layer support (fix part, backport v4.0)
See merge request espressif/esp-idf!7105
2020-02-18 09:45:13 +08:00
Jiang Jiang Jian
0f64291700
Merge branch 'bugfix/backport_some_wifi_bugs_0107_v4.0' into 'release/v4.0'
...
backport some Wi-Fi bugs 0107 (backport v4.0)
See merge request espressif/esp-idf!7260
2020-02-17 20:44:50 +08:00
Michael (XIAO Xufeng)
9037b8fb52
mcpwm: decrease test time
...
cherry-pick 538540ce
2020-02-15 23:10:33 +08:00
michael
0f10d12b81
mcpwm: fix the fault handling and capture issues
...
1. The fault signal 3 for unit 2 is corrected to the right value
2. Now `mcpwm_fault_set_oneshot_mode` will clear the status before, no
need to reset the peripheral.
3. The capture feature relies on the prescaler, but it's only
initialized in the mcpwm_init funciton, which is used to initialize a
PWM channel. This means, the capture may not work correctly if no PWM
channel is enabled.
Now the prescaler is also updated when `mcpwm_capture_enable` is
called.
2020-02-15 18:39:28 +08:00
michael
8c148ede22
mcpwm: enable some unit tests again
2020-02-15 18:39:27 +08:00
Jiang Jiang Jian
f92534f95d
Merge branch 'bugfix/btdm_error_type_in_config_eir_evt_v4.0' into 'release/v4.0'
...
components/bt: Fix error EIR type in config eir event
See merge request espressif/esp-idf!7407
2020-02-14 16:41:58 +08:00
xiehang
d2af36c9fb
lwip: Drop packets larger than MTU
2020-02-14 12:03:49 +08:00
zhangyanjiao
5894e049bc
esp_wifi: fix some WiFi issues
...
Fix following WiFi issues:
1. Fix WiFi buffer reload issue
2. Fix AMSDU decrypt issue
3. Fix some WiFi timer issues
4. Fix the crash caused by too big of association request RSN information
5. Fix the crash caused by block scan
6. Fix the bug for getting channel and bandwidth
7. Fix some Sniffer bugs
8. Fix some ESP-NOW issues
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
2020-02-14 12:03:18 +08:00
Jiang Jiang Jian
50b686bfb4
Merge branch 'bugfix/fix_performance_issues_new_v4.0' into 'release/v4.0'
...
esp_wifi: fix WiFi performance issue (backport v4.0)
See merge request espressif/esp-idf!7227
2020-02-14 11:47:06 +08:00
Xia Xiaotian
0a2bec85f3
soc: clear PHY status when cpu start
2020-02-13 14:36:11 +08:00
Jiang Jiang Jian
b6bec84c6e
Merge branch 'bugfix/ble_mesh_utf_8_comma_4_0' into 'release/v4.0'
...
ble_mesh: Kconfig included a UTF-8 comma (v4.0)
See merge request espressif/esp-idf!7576
2020-02-13 11:13:02 +08:00
Jiang Jiang Jian
fb924ece79
Merge branch 'bugfix/btdm_fix_multi_open_evt_and_clear_blufi_prepare_write_len' into 'release/v4.0'
...
component/bt: fix multi open evt and clear blufi prepare write len(backport v4.0)
See merge request espressif/esp-idf!7324
2020-02-13 11:08:41 +08:00
Jiang Jiang Jian
e07a64925b
Merge branch 'bugfix/coex_bt_ble_stuck_v4.0' into 'release/v4.0'
...
components/bt: Fix A2DP stuck when BLE's interval is too small
See merge request espressif/esp-idf!7220
2020-02-13 11:08:20 +08:00
Jiang Jiang Jian
e07ecea868
Merge branch 'hfp_a2dp_iphone_4.1' into 'release/v4.0'
...
components bt/: Disable sniff mode during (e)SCO connection for HFP. [backport 4.0]
See merge request espressif/esp-idf!7249
2020-02-13 11:08:10 +08:00
Jiang Jiang Jian
5b9cb366c2
Merge branch 'bugfix/fix_airkiss_bug_v4.0' into 'release/v4.0'
...
fix the bug for Airkiss
See merge request espressif/esp-idf!7346
2020-02-13 11:07:41 +08:00
Jiang Jiang Jian
d5bd2256f4
Merge branch 'bugfix/fix_ble_mesh_memory_leak_v4.0' into 'release/v4.0'
...
ble_mesh: Fix memory leak when node is reset (v4.0)
See merge request espressif/esp-idf!7278
2020-02-13 10:58:09 +08:00
Jiang Jiang Jian
c235640bf4
Merge branch 'bugfix/ble_mesh_update_lightness_last_v4.0' into 'release/v4.0'
...
ble_mesh: Update lightness last state when actual state is changed (v4.0)
See merge request espressif/esp-idf!7281
2020-02-13 10:58:06 +08:00
Jiang Jiang Jian
6193a439a3
Merge branch 'bugfix/sync_zephyr_v2.0_ble_mesh_fixes_v4.0' into 'release/v4.0'
...
ble_mesh: sync Zephyr v2.0 ble mesh fixes (v4.0)
See merge request espressif/esp-idf!7300
2020-02-13 10:58:03 +08:00
liu zhifu
a3cd5ab1ae
esp_wifi: improve WiFi performance
2020-02-13 10:50:48 +08:00
lly
3bf1b9b8ab
ble_mesh: Fix compile error with c++ files
2020-02-13 09:52:10 +08:00
lly
04fc15a4f3
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.
2020-02-12 12:03:31 +00:00
lly
e95b59c089
ble_mesh: Kconfig included a UTF-8 comma
2020-02-12 18:28:06 +08:00
Angus Gratton
91dc4d78f8
Merge branch 'bugfix/select_driver_not_installed_v4.0' into 'release/v4.0'
...
VFS: Check in select() if the UART driver is installed or not (v4.0)
See merge request espressif/esp-idf!7417
2020-02-11 12:08:48 +08:00
Angus Gratton
2bee223250
Merge branch 'bugfix/part_gen_subtype_fix_v4.0' into 'release/v4.0'
...
partition_table: Fix subtype in gen_esp32part.py (v4.0)
See merge request espressif/esp-idf!7536
2020-02-11 12:06:25 +08:00
Mahavir Jain
8df70a1728
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:26 +05:30
boarchuz
8c88f0f1f6
Fix subtype in PartitionTable.find_by_type
...
Fix ptype->subtype
Closes https://github.com/espressif/esp-idf/pull/4723
2020-02-10 12:04:45 +01:00
Ivan Grokhotkov
313c1ed1ba
Merge branch 'bugfix/esp_log_from_critical_v4.0' into 'release/v4.0'
...
intr_alloc: don't call ESP_LOG from a critical section (backport v4.0)
See merge request espressif/esp-idf!7159
2020-02-10 17:34:53 +08:00
Ivan Grokhotkov
0c2c821f8f
Merge branch 'bugfix/esp_ptr_executable_single_core_v4.0' into 'release/v4.0'
...
soc: Fix esp_ptr_executable() for single core ESP32 config & cache memory (v4.0)
See merge request espressif/esp-idf!7464
2020-02-10 16:30:34 +08:00
Ivan Grokhotkov
f5dc81aaae
Merge branch 'bugfix/panic_cache_err_dig_reset_v4.0' into 'release/v4.0'
...
esp32: panic: do digital reset if cache error interrupt is set (backport v4.0)
See merge request espressif/esp-idf!7484
2020-02-10 16:30:02 +08:00
Angus Gratton
3f76083e8c
Merge branch 'bugfix/several_ethernet_bugfix_from_4.1' into 'release/v4.0'
...
Ethenret driver bugfix and optimization (4.0)
See merge request espressif/esp-idf!7426
2020-02-06 14:38:47 +08:00
Hrudaynath Dhabe
8f0f3e8f88
WPS_CONFIG_INIT_DEFAULT(type) error
2020-02-06 14:06:38 +08:00
Ivan Grokhotkov
4ce7b666a6
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.
2020-01-30 12:28:22 +01:00
Angus Gratton
f27a344fc9
Merge branch 'bugfix/parttool_backtraces_v4.0' into 'release/v4.0'
...
parttool: Avoid unnecessary exception backtrace for legitimate errors (v4.0)
See merge request espressif/esp-idf!7463
2020-01-30 13:36:52 +08:00
Angus Gratton
a61fd1e42b
Merge branch 'bugfix/esp_timer_stucks_into_esp_timer_impl_set_alarm_v4.0' into 'release/v4.0'
...
esp_timer/esp32: Fix esp_timer_impl_set_alarm() when CPU and APB freqs are changed (v4.0)
See merge request espressif/esp-idf!7304
2020-01-29 14:25:27 +08:00
Angus Gratton
d897e522af
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-29 10:03:30 +11:00
Angus Gratton
59649ea825
parttool: Fix regression when parsing binary partition data
...
Regression in a91de43537
2020-01-29 09:40:23 +11:00
Angus Gratton
bdb0851065
parttool: Avoid unnecessary exception backtrace for legitimate errors
...
Previous version used exception handling for program control flow,
which makes for long and confusing backtrace messages if an error
occurs while parsing the CSV (as it also prints the phony error that
occurred while trying to parse as a binary, then prints
"During handling of the above exception, another exception occurred:",
then prints the real error).
Use the same heuristic that is applied in gen_esp32_part, instead.
Also, avoid printing the entire backtrace if the error is a gen_esp32_part
InputError, same as gen_esp32part does.
Found while looking into https://github.com/espressif/esp-idf/issues/4474
2020-01-29 09:40:22 +11:00
KonstantinKondrashov
9a24d95907
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-01-28 21:41:27 +08:00
Angus Gratton
08219f3cf5
Merge branch 'bugfix/esp_tls_blocking_timeout_v4.0' into 'release/v4.0'
...
esp-tls: add timeout for blocking connection (v4.0)
See merge request espressif/esp-idf!7396
2020-01-22 11:44:48 +08:00
Angus Gratton
b324ab9c6e
Merge branch 'bugfix/mqtt_submodule_ref_update_v4.0' into 'release/v4.0'
...
mqtt: update submodule to point to latest commit (backport 4.0)
See merge request espressif/esp-idf!7276
2020-01-22 11:29:34 +08:00
morris
93e5a31685
ethernet: always put eth_driver handle in SRAM
...
Closes https://github.com/espressif/esp-idf/issues/4635
2020-01-21 21:30:34 +08:00
morris
01cc5a38cc
ethernet: work with cache disabled
2020-01-21 21:30:18 +08:00
morris
7b128595ac
ethernet: optimise tx and rx
2020-01-21 20:51:03 +08:00
Roland Dobai
642dc19c25
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:11:08 +01:00
baohongde
e38c080f79
components/bt: Fix error EIR type in config eir event
2020-01-20 21:50:01 +08:00
David Cermak
c7e1416174
esp_tls: added connection timeout to esp_tls_conn_new_sync()
2020-01-20 07:26:51 +01:00
David Cermak
e0c88dbd73
esp_tls: fail connection if esp_tls_conn_new() timeouts
2020-01-20 07:08:40 +01:00
Paul Abbott
a58fa7665a
Bugfix(LEDC): Add missing ledc_set_pin declaration in led.h
2020-01-17 10:22:36 +08:00
gengyuchao
443ea78e78
bugfix:Fix length check for snprintf in osi config. And remove the error code when there is no file in the nvs in config.c
2020-01-16 16:20:43 +08:00
gengyuchao
ed6805625c
ble:set a esp api to get size of controller send packets buffer.
2020-01-16 16:09:34 +08:00
gengyuchao
74a89774fd
bugfix:Fixed throughput wasting memory and packet loss issues.
2020-01-16 16:09:17 +08:00
gengyuchao
7dc5c2af59
ble Fix typo and add some comment
2020-01-16 16:05:44 +08:00
Brian Friedkin
e5bd8b1982
add missing gatt descriptors
2020-01-16 16:05:29 +08:00
Geng Yu Chao
5445c80a8e
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-16 15:26:37 +08:00
Geng Yu Chao
69d341f7f0
Fix some typo in idf
2020-01-16 15:26:37 +08:00
KonstantinKondrashov
f927957950
esp32: Add UT for DPORT
2020-01-16 13:31:20 +08:00
KonstantinKondrashov
6fca0e3861
esp32: Fix esp_dport_access_reg_read
2020-01-16 13:31:20 +08:00
zhangyanjiao
5202be013a
fix the bug for Airkiss
2020-01-16 11:54:02 +08:00
gengyuchao
4900ead609
bugfix:btmd fix the problem that fixed_queue_enqueue may give the wrong semaphore if list_append fail to calloc a new node
2020-01-16 11:32:40 +08:00
Ivan Grokhotkov
386804d407
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
2020-01-15 04:16:24 +00:00
zhiweijian
93409bd57e
component/bt: fix blufi prepare write buf len invalid
2020-01-14 17:25:54 +08:00
zhiweijian
32ba52760f
Component/bt: Fix GATTC trigger open event multiple times
2020-01-14 17:24:36 +08:00
Marius Vikhammer
158f2d065d
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: esp-mqtt/merge_requests/46
Closes IDF-1162
Closes https://github.com/espressif/esp-mqtt/issues/137
MQTT MR: esp-mqtt/merge_requests/47
Closes IDF-1126
MQTT MR: 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: esp-mqtt/merge_requests/48
Closes IDFGH-2235
Closes https://github.com/espressif/esp-idf/issues/4384
MQTT MR: esp-mqtt/merge_requests/49
Closes https://github.com/espressif/esp-idf/issues/4433
Closes IDFGH-2293
MQTT MR: esp-mqtt/merge_requests/50
Closes FCS-254
MQTT MR: esp-mqtt/merge_requests/53
Closes FCS-267
2020-01-14 10:55:50 +08:00
lly
14a408c478
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-13 10:40:25 +08:00
lly
92d0d7ad49
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-13 10:40:20 +08:00
lly
19c9ae400b
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-13 10:40:13 +08:00
lly
566fb11a73
ble_mesh: Fix compile error when using release optimization level
2020-01-13 10:40:05 +08:00
lly
928480ada9
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-13 10:39:57 +08:00
lly
da0205b166
ble_mesh: Fixes Provisioner not support friend feature
2020-01-13 10:39:52 +08:00
lly
610fc8124a
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-13 10:39:42 +08:00
lly
21dbee1291
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-13 10:39:37 +08:00
lly
e5431e55a9
ble_mesh: fix virtual addr wrong return value
...
Fixes missing return value on `va_del`
Fixes wrong return value on `va_add`
2020-01-13 10:39:28 +08:00
lly
4405560483
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-13 10:39:22 +08:00
lly
51616eacee
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-13 10:39:15 +08:00
lly
4aa7f31f02
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-13 10:39:10 +08:00
lly
318f83e33a
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-13 10:39:03 +08:00
lly
4bf2ceee4e
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-13 10:38:59 +08:00
lly
a9c5092baf
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-13 10:38:54 +08:00
lly
9e47e04897
ble_mesh: Expose app key get function
2020-01-13 10:38:48 +08:00
lly
ca0bfb84d0
ble_mesh: Expose header parsing outside net
2020-01-13 10:38:38 +08:00
lly
cc772c1324
ble_mesh: Remove unused macro FRIEND_BUF_SIZE
2020-01-13 10:38:31 +08:00
lly
c344a4a3b9
ble_mesh: Make RSSI value available to mesh applications
2020-01-13 10:38:26 +08:00
lly
32387250bc
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-13 10:38:21 +08:00
lly
a870460f72
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-13 10:38:15 +08:00
lly
cf2c5b8d96
ble_mesh: Update lightness last state when actual state is changed
2020-01-10 15:33:59 +08:00
Ivan Grokhotkov
aa51829ec8
Merge branch 'bugfix/cmake_reflashable_build_targets_v4.0' into 'release/v4.0'
...
secure boot: Fix bootloader build system target for bootloader digest (v4.0)
See merge request espressif/esp-idf!7229
2020-01-09 15:56:08 +08:00
Angus Gratton
dcd735759e
Merge branch 'bugfix/mdns_deinit_event_crash_v4.0' into 'release/v4.0'
...
mdns: fixed crash on event during deinit (v4.0)
See merge request espressif/esp-idf!7246
2020-01-09 13:02:28 +08:00
Angus Gratton
a36bbd4e95
Merge branch 'bugfix/mdns_send_sdptr_answer_v4.0' into 'release/v4.0'
...
mdns: respond to discovery with the proper pseudo name _services._dns-sd._udp (v4.0)
See merge request espressif/esp-idf!7242
2020-01-09 13:01:11 +08:00
weitianhua
a388eb8806
componnets_bt/:fix hfp/a2dp coex bug with iphone
2020-01-08 19:25:29 +08:00
David Cermak
1f263434a6
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
2020-01-08 10:27:30 +01:00
David Cermak
06cc4e888d
mdns: respond to discovery with the proper pseudo name _services._dns-sd._udp
...
Closes https://github.com/espressif/esp-idf/issues/4369
Closes IDFGH-2219
2020-01-08 10:21:28 +01:00
Xia Xiaotian
0a2371972a
Fix WiFi beacon timeout and station fails to connect to AP sometimes
...
when WiFi and Bluetooth run togerther.
2020-01-08 16:48:16 +08:00
Angus Gratton
e3d65c8e3e
Merge branch 'bugfix/ws_user_context_v4.0' into 'release/v4.0'
...
websocket: added missing event data (backport v4.0)
See merge request espressif/esp-idf!7195
2020-01-07 14:34:08 +08:00
Angus Gratton
6da2676a3c
secure boot: Fix bootloader build system target for bootloader digest
...
Closes https://github.com/espressif/esp-idf/issues/4513
2020-01-07 09:38:01 +11:00
baohongde
3ae110b30c
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:31:54 +08:00
Jack
2ea0062fe8
Fix wifi stop bug when sniffer enable
2020-01-04 15:25:09 +08:00
Angus Gratton
16e102199a
Merge branch 'bugfix/backport_nvs_iterator_fix' into 'release/v4.0'
...
NVS: iterator corrupting entries (backport v4.0)
See merge request espressif/esp-idf!7071
2020-01-03 13:07:20 +08:00
Marius Vikhammer
2215aeaad8
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
2020-01-03 10:01:10 +08:00
Wang Jia Lin
51a1421f65
Merge branch 'bugfix/i2s_timergroup_dev_array_used_by_isr_issue' into 'release/v4.0'
...
bugfix(driver): fix i2s and timergroup some issues
See merge request espressif/esp-idf!7141
2020-01-02 21:20:21 +08:00
Jiang Jiang Jian
0cefe6df78
Merge branch 'bugfix/fix_a_wifi_rx_bug_v4.0' into 'release/v4.0'
...
esp_wifi: fix a WiFi receiving bug (backport v4.0)
See merge request espressif/esp-idf!7002
2020-01-02 16:30:04 +08:00
Angus Gratton
20e75ef87d
Merge branch 'feat/spi_internal_header_v4.0' into 'release/v4.0'
...
spi: move deprecated functions into internal header (backport v4.0)
See merge request espressif/esp-idf!7103
2020-01-02 02:16:18 +08:00
xiongyu
96a5e34d7a
bugfix(driver): fix i2s and timergroup some issues
...
* fix i2s and timergroup dev array used by isr crash issue
* Closes IDFGH-2432
* Closes https://github.com/espressif/esp-idf/issues/4545
* fix i2s adc data inv issue
* Closes IDFGH-2444
* Closes https://github.com/espressif/esp-idf/issues/4557
2019-12-31 11:02:35 +08:00
Jakob Hasse
daa2178f30
WIFI: added log for wifi test, increased timeout
2019-12-31 08:33:11 +08:00
Jakob Hasse
92b10b4ba3
NVS: bugfix nvs_set_str/blob checks write mode
2019-12-31 08:33:11 +08:00
Jakob Hasse
69b0919904
NVS: BUGFIX non-matching type iterator works
...
Closes IDFGH-2229
2019-12-31 08:33:11 +08:00
Piyush Shah
84029130cf
wifi_provisioning_softap: Allow applications to start webserver externally
...
If an application wants to use webserver, instead of creating another
webserver instance, the wifi provisioning manager can re-use the same.
The webserver handle can be passed using this new API.
Signed-off-by: Piyush Shah <piyush@espressif.com>
2019-12-30 17:34:05 +05:30
baohongde
d93bff2699
components/bt: Revert changes of security mask
2019-12-29 06:29:23 +00:00
liu zhifu
0631d185bd
esp_wifi: fix a WiFi receiving bug
...
Support WiFi/BT MAC register writting when the WiFi/BT common clock is disabled.
2019-12-26 19:41:04 +08:00
Michael (XIAO Xufeng)
6f6677ac42
spi: move deprecated functions into internal header
...
Resolves https://github.com/espressif/esp-idf/issues/4132
2019-12-24 17:43:32 +08:00
Shubham Kulkarni
0e623d4dbf
esp32/rtc_module: Fixed critical section API
...
Application used to abort as portENTER_CRITICAL is used in ISR.
portENTER_CRITICAL is changed to portENTER_CRITICAL_SAFE in touch_pad_clear_status()
https://github.com/aws/amazon-freertos/issues/1651
2019-12-24 14:52:54 +05:30
Jiang Jiang Jian
d41c020649
Merge branch 'bugfix/fix_ble_mesh_adv_buf_unref_v4.0' into 'release/v4.0'
...
ble_mesh: Fix adv buf unref and link_id in exceptional list (v4.0)
See merge request espressif/esp-idf!7080
2019-12-22 16:02:24 +08:00
lly
53e6eb8467
ble_mesh: Fix using wrong name for PB-GATT
2019-12-20 17:13:20 +08:00
lly
ebaa3e1c3e
ble_mesh: Fix adv buf unref and link_id in exceptional list
2019-12-20 17:13:15 +08:00
lly
23770edb43
ble_mesh: Add unlock when failed to create alarm
2019-12-20 15:34:10 +08:00
lly
6ea738eeb0
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 15:34:06 +08:00
lly
3e6d04fc86
ble_mesh: Use mutex to protect client list operations
2019-12-20 15:34:01 +08:00
lly
9dc45e788d
ble_mesh: Remove useless parameters of lock/unlock
2019-12-20 15:33:56 +08:00
lly
bf712e4f91
ble_mesh: Client model check timer remaining time
...
Before handling status message, client models need check if the
corresponding timer has expired. And if timeout happens, the
status message will be treated as a publish message.
2019-12-20 15:33:50 +08:00
Geng Yu Chao
f955c49423
Bugfix/btdm fix doc and host bug backport v4.0
2019-12-18 14:19:27 +08:00
Angus Gratton
1b15e6cf56
Merge branch 'bugfix/nvs_flash_missing_tests' into 'release/v4.0'
...
nvs: Added nvs tests, minor corrections (backport v4.0)
See merge request espressif/esp-idf!6987
2019-12-18 11:38:08 +08:00
Angus Gratton
1ad1e70077
Merge branch 'feature/can_support_low_bit_rates_backport_v4.0' into 'release/v4.0'
...
can: Add support for lower bit rates (backport v4.0)
See merge request espressif/esp-idf!6392
2019-12-18 07:46:06 +08:00
Jiang Jiang Jian
20e6d46d44
Merge branch 'bugfix/esp_timer_set_alarm_v4.0' into 'release/v4.0'
...
esp_timer: Fix set_alarm. Case when timestamp < now_time (v4.0)
See merge request espressif/esp-idf!6988
2019-12-16 19:37:59 +08:00
Jiang Jiang Jian
626c58fc67
Merge branch 'bugfix/btdm_avrc_metadata_length_error_v4.0' into 'release/v4.0'
...
components/bt: Fix AVRC metadata length error
See merge request espressif/esp-idf!6880
2019-12-16 16:13:32 +08:00
Darian Leung
03d5742e11
can: Add support for lower bit rates
...
This commit adds support for lower bit rates in the CAN Driver for
ESP32 Rev 2 or later chips.
2019-12-16 07:45:38 +00:00
Jiang Jiang Jian
3c081abb32
Merge branch 'feature/hwcrypto_perf_ut_v4.0' into 'release/v4.0'
...
mbedtls: enable HW SHA by default, add SHA performance test (backport v4.0)
See merge request espressif/esp-idf!6668
2019-12-16 14:24:25 +08:00
Ivan Grokhotkov
bf0863a50a
mbedtls: Enable SHA hardware acceleration by default
2019-12-15 20:46:20 +00:00
Ivan Grokhotkov
20d435c561
mbedtls: add SHA performance test
...
Results with this revision:
SHA256 rate 2.599MB/sec Debug 240MHz SW
SHA256 rate 1.147MB/sec Release 80MHz SW
SHA256 rate 3.469MB/sec Release 240MHz SW
SHA256 rate 2.687MB/sec Release 240MHz SW + PSRAM workaround
SHA256 rate 9.433MB/sec Debug 240MHz HW rev1
SHA256 rate 3.727MB/sec Release 80MHz HW rev1
SHA256 rate 10.961MB/sec Release 240MHz HW rev1
SHA256 rate 9.966MB/sec Release 240MHz HW rev1 + PRAM workaround
SHA256 rate 10.974MB/sec Debug 240MHz HW rev3
SHA256 rate 4.362MB/sec Release 80MHz HW rev3
SHA256 rate 13.207MB/sec Release 240MHz HW rev3
Debug = Og, assertions enabled
Release = O2, assertions disabled
2019-12-15 20:46:20 +00:00
baohongde
a82215d161
components/bt: Fix AVRC metadata length error
2019-12-14 05:48:26 +00:00
KonstantinKondrashov
dcbcb5fe58
esp_timer: Add Test case when set_alarm needs set timer < now_time
2019-12-14 04:46:27 +08:00
Ivan Grokhotkov
23e6b47a28
esp-tls: check return value of fcntl
2019-12-13 14:12:36 +00:00
Ivan Grokhotkov
85656ca77d
newlib: define fcntl as strong symbol
...
Closes https://github.com/espressif/esp-idf/issues/3694
Closes https://github.com/espressif/esp-idf/issues/4407
2019-12-13 14:12:36 +00:00
Ivan Grokhotkov
6f0f5d79f9
newlib: add definitions of system, raise
...
Closes IDF-1220
Closes IDFGH-1811
Closes https://github.com/espressif/esp-idf/pull/4020
2019-12-13 14:12:36 +00:00
Jakob Hasse
314a0443ad
nvs: Added nvs tests, minor corrections
...
* closes IDF-1135:
same namespace was used in different tests which
could lead to conflicts when re-running tests
* removes duplicated functions declarations
* correct argument order for test case macros
2019-12-13 17:06:27 +08:00
Angus Gratton
3ba9eae86c
Merge branch 'feature/ci_optimize_artifact_download_v4.0' into 'release/v4.0'
...
CI: optimize example build and artifact download (backport v4.0)
See merge request espressif/esp-idf!6940
2019-12-13 11:36:04 +08:00
Angus Gratton
30ac846112
Merge branch 'bugfix/cmake_secure_boot_v4.0' into 'release/v4.0'
...
secure boot: CMake bug fixes (v4.0)
See merge request espressif/esp-idf!6630
2019-12-12 06:30:37 +08:00
KonstantinKondrashov
8e54ee3f16
esp_timer: Fix set_alarm. Case when timestamp < now_time
...
arg1 = MAX(int64_t arg1, uint64_t arg2) gave the wrong result, if arg1 < 0, it was presented as a larger value.
And ALARM_REG = (uin32_t)arg1. This leads to an infinite loop.
Fixed: both args are int64_t.
Closes: WIFI-1511
2019-12-11 19:28:20 +08:00
chenyudong
ee6ba0eb47
mesh: fix mesh stop recv crash
2019-12-11 05:54:39 +00:00
Angus Gratton
510ec904c9
spi_flash tests: Fix exclusion of new API tests in legacy mode
2019-12-11 15:57:49 +11:00
Anton Maklakov
f8e1ee35e2
soc: fix unit tests not included in the build
...
Regression from 9eccd7c082
2019-12-11 15:57:49 +11:00
Ivan Grokhotkov
bfbc10e2d8
lw-ip: silence a warning related to CONFIG_LWIP_TCP_WND_DEFAULT value
2019-12-11 15:57:49 +11:00
xueyunfei
2b5a8fe5ea
optimize tcp random close for v4.0
2019-12-10 11:53:22 +08:00
Jiang Jiang Jian
c0597aaf69
Merge branch 'bugfix/phy_critical_v4.0' into 'release/v4.0'
...
fix bug that phy_enter_critical cannot effect on dual-core
See merge request espressif/esp-idf!6941
2019-12-09 14:17:54 +08:00
Jiang Jiang Jian
87c30adfed
Merge branch 'bugfix/coex_fix_wifi_scan_and_connect_bugs_v4.0' into 'release/v4.0'
...
esp_wifi: fix WiFi scan and connect bugs when coexist with Bluetooth
See merge request espressif/esp-idf!6939
2019-12-09 13:43:46 +08:00
Angus Gratton
3636bf5813
Merge branch 'bugfix/update_libexpat_v4.0' into 'release/v4.0'
...
expat: Update library from 2.2.5 to 2.2.9 (v4.0)
See merge request espressif/esp-idf!6921
2019-12-09 13:21:28 +08:00
Tian Hao
ea2959af36
fix bug that phy_enter_critical cannot effect on dual-core
...
Sometimes, libphy.a call phy_enter_critical() to protect accessing
critical sections, such like operating on I2C, but it may not effect
when both the CPU core call it. It may cause accessing I2C blocking
and cannot recover by esp_restart(), until do HW reboot.
2019-12-09 12:45:52 +08:00
Jiang Jiang Jian
585654388f
Merge branch 'bugfix/improve_lwip_performance_v4.0' into 'release/v4.0'
...
LW-IP: fix bug for performance lose when update lw-ip to 2.1.2
See merge request espressif/esp-idf!6938
2019-12-09 12:42:04 +08:00
Jack
939d5a0f6a
esp_wifi: fix WiFi scan and connect bugs when coexist with Bluetooth
...
1. Fix WiFi scan leads to poor performance of Bluetooth.
2. Improve WiFi connect success ratio when coexist with Bluetooth.
3. Check if WiFi is still connected when CSA or beacon timeout happen.
4. add coex pre init
2019-12-09 12:17:16 +08:00
Angus Gratton
4d3c650b49
Merge branch 'bugfix/macos_link_toomany_open_files_v4.0' into 'release/v4.0'
...
build system: explicitly disable LTO plugin to reduce the number of simultaneously open files (backport v4.0)
See merge request espressif/esp-idf!6867
2019-12-09 06:19:30 +08:00
Jiang Jiang Jian
2318e6828d
Merge branch 'Bugfix/add_netif_assert' into 'release/v4.0'
...
fix bug for netif add crash
See merge request espressif/esp-idf!6895
2019-12-07 17:33:39 +08:00
xueyunfei
262acbc0a8
fix bug for improve performance
2019-12-07 16:16:57 +08:00
Chinmay Chhajed
2887131b39
Changes in menuconfig
options to not compile any host when using hci
...
examples as no host is required there.
2019-12-06 12:09:16 +08:00
xueyunfei
104299353d
fix bug for netif add crash
2019-12-06 10:54:12 +08:00
xueyunfei
e4312f8ab5
fix bug for random tcp close for 4.0
2019-12-05 18:41:42 +08:00
David Cermak
5e67f9578d
lwip: Adapted lwip port layer to use 2.1.2-esp in 4.0
2019-12-05 16:24:04 +08:00
Roland Dobai
46a172178a
expat: Update library from 2.2.5 to 2.2.9
2019-12-05 09:17:39 +01:00
Angus Gratton
e6006a6bdf
Merge branch 'bugfix/remove_mbedtls_would_block_v40' into 'release/v4.0'
...
Remove check for would_block in mbedtls (Backport v4.0)
See merge request espressif/esp-idf!6913
2019-12-05 07:37:15 +08:00
Jiang Jiang Jian
a5b803540a
Merge branch 'bugfix/btdm_allow_start_adv_again_v4.0' into 'release/v4.0'
...
component/bt: allow to send stop adv again and fix tx prog crash(backport v4.0)
See merge request espressif/esp-idf!6653
2019-12-04 20:24:07 +08:00
Kedar Sovani
673ccaa1e5
Remove check for would_block in mbedtls
...
Basically, in the portability layer, it is checked if the socket is
NON-block, and if not, then even the EAGAIN and EWOULDBLOCK errors are
diverted to a RECV error. This causes a problem for sockets with
receive timeouts set. When such a timeout is set, the condition for
NON_BLOCK isn't met and hence a hard error is returned.
Searching for EAGAIN and EWOULDBLOCK in lwip returns only 3 results
(accept, recvfrom, close) and all of them look to be genuine cases for
EWOULDBLOCK. So removing this check to make receive timeout with TLS
work.
2019-12-04 17:28:15 +05:30
morris
0508ad525a
ethernet: add pm lock
2019-12-03 17:37:45 +08:00
morris
97defec6cd
ethernet:a bunch of bugfix from master
2019-12-03 17:37:35 +08:00
morris
96e6049dab
ethernet:add start stop control
2019-12-03 17:36:48 +08:00
morris
37154d4c08
ethernet:add reference counter
2019-12-03 15:53:39 +08:00
suda-morris
42a462d584
ethernet: add gpio number into config structure
2019-12-03 15:53:39 +08:00
Prasad Alatkar
69c86bc37e
NimBLE: Fix erroneous behaviour of NPL when controller not ready to receive (Backport v4.0)
2019-12-01 17:53:49 +08:00
Ivan Grokhotkov
14f1a30e38
build system: move -fno-rtti link option next to the compile option
...
Previous commit has added `link_options` to the root CMakeLists.txt,
can use it to collect such global link options now.
2019-11-28 11:02:30 +01:00
Jiang Jiang Jian
139913baa2
Merge branch 'bugfix/config_assert_thread_safety_backport_v4.0' into 'release/v4.0'
...
freertos: Fix configASSERT thread safety (backport v4.0)
See merge request espressif/esp-idf!6662
2019-11-28 11:51:13 +08:00
zhiweijian
8d189d9fb4
component/bt: allow adv stop again when adv is already stoped and fix crash when tx prog sometimes
2019-11-27 20:15:08 +08:00
weitianhua
e7a6fdca54
component/bt: Fix bugs in HFP feature
2019-11-27 16:48:26 +08:00
Jiang Jiang Jian
48dfbe05a4
Merge branch 'fixed_queue_v4.0' into 'release/v4.0'
...
component_bt/: Fix_pointer_type_fixed_queue v4.0
See merge request espressif/esp-idf!6846
2019-11-27 16:39:51 +08:00
weitianhua
5d00321d07
fix_pointer_type_fixed_queue
2019-11-27 15:06:15 +08:00
Jiang Jiang Jian
2e8ad19e35
Merge branch 'bugfix/ble_mesh_device_with_wrong_name_on_ios_v4.0' into 'release/v4.0'
...
ble_mesh: fix ble mesh device with wrong name on iOS (v4.0)
See merge request espressif/esp-idf!6521
2019-11-27 10:31:01 +08:00
Angus Gratton
7725ce4999
Merge branch 'fix/esp_flash_no_qe_4.0' into 'release/v4.0'
...
esp_flash: fix the QE write issue in high freq, and support UT for external chips (backport v4.0)
See merge request espressif/esp-idf!6423
2019-11-26 11:34:14 +08:00
Jiang Jiang Jian
e3f0854771
Merge branch 'bugfix/fix_timer_deleted_and_run_broken_callback_v4.0' into 'release/v4.0'
...
esp_timer: fix the bug that when timeout of timer happens try to run callback(v4.0)
See merge request espressif/esp-idf!6769
2019-11-22 17:38:06 +08:00
Michael (XIAO Xufeng)
b5d04a21fb
esp_flash: fix the quad issue for some GD flash chips
...
The GD flash with product ID 40H, is already used in Wrover-nosufix modules.
2019-11-21 12:26:15 +08:00
Michael (XIAO Xufeng)
337b1df430
esp_flash: add unit test for external flash and QE toggling
...
Tests for external flash chips used to controlled by macros, one bin for
one chip. And tests are done manually. This commit refactored the test
so that all 3 chips can all run in single test.
2019-11-21 12:26:15 +08:00
Michael (XIAO Xufeng)
41e64bd79c
esp_flash: rename internal variables for better readability
...
chip_drv in HAL are renamed as host
2019-11-21 12:26:14 +08:00
Michael (XIAO Xufeng)
2b7681ec4f
esp_flash: fix set qe bit and write command issues
...
There used to be dummy phase before out phase in common command
transactions. This corrupts the data.
The code before never actually operate (clear) the QE bit, once it finds
the QE bit is set. It's hard to check whether the QE set/disable
functions work well.
This commit:
1. Cancel the dummy phase
2. Set and clear the QE bit according to chip settings, allowing tests
for QE bits. However for some chips (Winbond for example), it's not
forced to clear the QE bit if not able to.
3. Also refactor to allow chip_generic and other chips to share the same
code to read and write qe bit; let common command and read command share
configure_host_io_mode.
4. Rename read mode to io mode since maybe we will write data with quad
mode one day.
2019-11-21 12:26:14 +08:00
Jiang Jiang Jian
a8f956e590
Merge branch 'bugfix/warning_fix_latest_freertos_v4.0' into 'release/v4.0'
...
Fixed warnings for components driver, esp32 and mbedtls (v4.0)
See merge request espressif/esp-idf!6759
2019-11-20 12:20:02 +08:00
Jiang Jiang Jian
3b879ce8c3
Merge branch 'bugfix/put_more_rx_code_to_iram_v4.0' into 'release/v4.0'
...
Put some rx code to iram (backport v4.0)
See merge request espressif/esp-idf!6492
2019-11-20 11:19:20 +08:00
Jack
5102308b2b
esp_timer: fix the bug that when timeout of timer happens try to run callback, and high priority task delete the timer and break the callback
2019-11-19 22:51:28 +08:00
Shubham Kulkarni
f95a723412
Fixed warnings for components driver, esp32 and mbedtls
2019-11-19 15:02:02 +05:30
Jiang Jiang Jian
88cbc26f4d
Merge branch 'bugfix/btdm_run_out_of_frame_element_v4.0' into 'release/v4.0'
...
components/bt: Fix assert due to no free element form
See merge request espressif/esp-idf!6700
2019-11-19 17:01:32 +08:00
Mahavir Jain
1b53af2e88
freertos: modify configASSERTs around scheduler state check
...
Regression introduced in commit 79e74e5d5f
It is possible that some FreeRTOS APIs are invoked prior to
scheduler start condition (e.g. flash initialization in unicore mode).
In that condition these asserts should not trigger (scheduler state being yet to be started),
hence changes per this fix.
2019-11-19 04:42:27 +00:00
Darian Leung
376107b2ae
freertos: Fix configASSERT thread safety
...
This commit fixes thread safety issues with configASSERT() calls
regarding the value of uxSchedulerSuspended. A false negative
occurs if a context switch to the opposite core occurs in between
the getting the core ID and the assesment.
Closes https://github.com/espressif/esp-idf/issues/4230
2019-11-19 04:42:27 +00:00
Jiang Jiang Jian
c9294aff6f
Merge branch 'bugfix/btdm_disable_some_secrity_mask_v4.0' into 'release/v4.0'
...
components/bt: Disable some unsupported security mask
See merge request espressif/esp-idf!6725
2019-11-19 12:15:36 +08:00
Angus Gratton
99fb9a3f7c
Merge branch 'bugfix/miscellaneous_cmake_fixes' into 'release/v4.0'
...
CMake bugfixes
See merge request espressif/esp-idf!6654
2019-11-19 06:52:07 +08:00
xiehang
e5773cc2fe
esp_wifi: Put some rx code to iram and update phy4180
2019-11-18 02:54:46 +00:00
He Yin Ling
4e6c575fed
Merge branch 'feature/add_env_tag_for_32khz_xtal_uts_v4.0' into 'release/v4.0'
...
soc(esp32&esp32s2beta): Add test_env for 32kHz XTAL unit tests (v4.0)
See merge request espressif/esp-idf!6603
2019-11-18 10:44:20 +08:00
baohongde
8353ecdf36
components/bt: Disable some unsupported security mask
2019-11-17 13:45:32 +08:00
Mahavir Jain
ebc2e7bce0
Merge branch 'fix/NimBLE_protocomm_mngr' into 'release/v4.0'
...
NimBLE: Fix bug in `protocomm_nimble` chararcteristic access callback (release/v4.0)
See merge request espressif/esp-idf!6703
2019-11-15 19:11:19 +08:00
Prasad Alatkar
c595b2fa8c
NimBLE: Fix bug in protocomm_nimble
chararcteristic access callback (release/v4.0)
...
Fixes bug in `protocomm_nimble` while writing to characteristic with length greater than MTU value.
2019-11-14 15:24:47 +05:30
lly
eb95bc68c4
ble_mesh: fix ble mesh device with wrong name on iOS
2019-11-14 16:56:34 +08:00
baohongde
f9f49107ca
components/bt: Fix assert due to no free element form
2019-11-14 15:20:54 +08:00
KonstantinKondrashov
fae116bb2e
soc/esp32: Add test_env for 32kHz XTAL unit tests
2019-11-14 12:26:43 +08:00
lly
f22d46515b
ble_mesh: miscellaneous modifications
...
1. Clean up client_common.c
2. Clean up esp_ble_mesh directory
3. Update Kconfig.in
4. Format esp_ble_mesh files
2019-11-14 11:59:21 +08:00
lly
27cb3d7f72
ble_mesh: adapt ble mesh with nimble host
2019-11-14 10:42:30 +08:00
lly
a302d210b9
ble_mesh: add events for configuration server model
2019-11-14 10:39:55 +08:00
lly
a32c72a1b2
ble_mesh: add Generic/Sensor/Time and Scenes/Lighting Server models
2019-11-14 10:39:49 +08:00
lly
f1850b54f3
ble_mesh: add proxy client functionality
2019-11-14 10:39:40 +08:00
lly
c85abf87b5
ble_mesh: add ble mesh friend node event
2019-11-14 10:39:17 +08:00
lly
9029ccd21b
ble_mesh: add low power node api and event
2019-11-14 10:39:13 +08:00
lly
eaeb36375a
ble_mesh: add heartbeat message recv callback
2019-11-14 10:39:08 +08:00
lly
805bc06127
ble_mesh: modify health server model callbacks
2019-11-14 10:39:04 +08:00
lly
4702cd1b51
ble_mesh: add separate advertising buffers for relay packets
2019-11-14 10:38:59 +08:00
Jiang Jiang Jian
720528ef11
Merge branch 'feature/nimble_host_esp_ble_mesh_v4.0' into 'release/v4.0'
...
components/bt: Add support of NimBLE host in ESP BLE Mesh (backport v4.0)
See merge request espressif/esp-idf!6619
2019-11-13 21:32:23 +08:00
Jiang Jiang Jian
6c7f72cc1b
Merge branch 'bugfix/http_client_buffer_overflow_v4.0' into 'release/v4.0'
...
Fix HTTP client buffer overflow (v4.0)
See merge request espressif/esp-idf!6666
2019-11-13 16:24:51 +08:00
Jiang Jiang Jian
7061c8aec2
Merge branch 'bugfix/mdns_invalid_hostname_queries_v4.0' into 'release/v4.0'
...
mdns: fix crash for hostname queries (backport v4.0)
See merge request espressif/esp-idf!6504
2019-11-13 16:19:19 +08:00
David Cermak
3ba8ae7a62
http_client: added comments to http header generation function
2019-11-12 09:59:50 +01:00
David Cermak
2c27c55679
http_client: possible buffer overflow fixed when determining last header item to be written
...
closes IDF-694
2019-11-12 09:59:50 +01:00
Jiang Jiang Jian
077b727608
Merge branch 'bugfix/backport_some_wifi_fixes_1009_v4.0' into 'release/v4.0'
...
esp_wifi: fix some WiFi bugs 1009 (backport v4.0)
See merge request espressif/esp-idf!6299
2019-11-12 11:27:40 +08:00
Angus Gratton
79f36e85d5
Merge branch 'fix/ci_ut_psram_wroverb_v4.0' into 'release/v4.0'
...
ci: fix one ut issue when using Wrover-B module with newer ver of PSRAM (backport v4.0)
See merge request espressif/esp-idf!6592
2019-11-11 18:38:53 +08:00
Renz Christian Bagaporo
d49077c13b
spiffs: fix build issue on clean project
...
From issue:
I did some poking around in components/spiffs/project_include.cmake and
it looks like what is failing is it isn't getting an offset from
parttool.py. I think what the problem is that the parttool.py cannot
determine the offset of the storage partition as I can't run menuconfig
to set the custom partitions.
I have tested that this problem is solvable by manually setting the
custom partitions in sdkconfig and that is a workaround but there should
be at least a better error message in the configuration when it cannot
find the partition as this would also happen if the partition name was
misspelled.
Closes https://github.com/espressif/esp-idf/issues/4236
2019-11-11 18:11:12 +08:00
Renz Christian Bagaporo
bc3134594d
esptool_py: add missing phony build targets for CMake
...
Adds targets erase_flash and monitor for users not using idf.py.
Closes https://github.com/espressif/esp-idf/issues/2420 .
2019-11-11 18:02:32 +08:00
Renz Christian Bagaporo
8300945189
cxx: force pthread to appear later in link line
2019-11-11 18:01:45 +08:00
Ivan Grokhotkov
088ac409d7
Merge branch 'bugfix/partition_cmake_md5_v4.0' into 'release/v4.0'
...
cmake: fix partition_table cmake when using md5 checksum (v4.0)
See merge request espressif/esp-idf!6640
2019-11-09 21:17:08 +08:00
Jiang Jiang Jian
14ce4cde2e
Merge branch 'bugfix/wifi_internal_memory_v4.0' into 'release/v4.0'
...
wifi: Include DMA reserved pool when allocating internal-only memory (v4.0)
See merge request espressif/esp-idf!6627
2019-11-09 13:47:33 +08:00
Wu Jian Gang
83cd515817
cmake: fix partition_table cmake when using md5 checksum
2019-11-08 18:52:18 +08:00
Angus Gratton
d48d9a1c88
Merge branch 'bugfix/i2s-bootloader-random-disable_v4.0' into 'release/v4.0'
...
bugfix(i2s_bootloader_random_disable): fix bug about i2s bootloader_random_disable for release/v4.0
See merge request espressif/esp-idf!6602
2019-11-08 17:12:02 +08:00
Michael (XIAO Xufeng)
f54cab62a2
ci: fix one ut issue when using Wrover-B module with newer ver of PSRAM
...
The workaround for PSRAM that will occupy an SPI bus is enabled only when:
1. used on 32MBit ver 0 PSRAM.
2. work at 80MHz.
The test used to only check 32MBit by the config option, but for PSRAM
on Wrover-B module seems to use a newer version of 32MBit PSRAM. So it
expects the workaround to be enabled, but actually not.
This commit split the unit test into two parts:
1. check all SPI buses are available, for all configs except psram_hspi
and psram_vspi, run on regular runners (including Wrover and Wrover-B).
a hidden option is enabled so that the compiler knows it's not building
psram_hspi or psram_vspi.
2. check the specified bus are acquired, for config psram_hspi and
psram_vspi. This only run on special runner (legacy Wrover module).
2019-11-08 08:25:35 +00:00
Angus Gratton
c64d4236fb
secure boot: In Reflashable mode, make sure the bootloader digest updates
...
... whenever the bootloader.bin is updated
2019-11-08 11:39:01 +08:00
Angus Gratton
90568fbf00
secure boot: Fix bug where verification key was not embedded in app
2019-11-08 11:39:01 +08:00
Angus Gratton
475a746e46
bt: Include DMA reserved pool when allocating internal-only memory
...
Fix for root cause of https://github.com/espressif/esp-idf/issues/3592
2019-11-08 11:37:46 +08:00
Angus Gratton
947fc14a3f
wifi: Include DMA reserved pool when allocating internal-only memory
...
Fix for root cause of https://github.com/espressif/esp-idf/issues/3592
2019-11-08 11:37:46 +08:00
Hrishikesh Dhayagude
9cc272978c
nimble: Miscellaneous changes
...
1. Update NimBLE submodule as per changes in adv interval and stop port
2. Make changes in ESP BLE Mesh NimBLE host code for the same
2019-11-06 18:27:14 +05:30
Hrishikesh Dhayagude
5cb6a49c1e
components/bt: Add support of NimBLE host in ESP BLE Mesh
2019-11-06 18:26:30 +05:30
Hrishikesh Dhayagude
56d1e4411e
NimBLE: Set the default number of max connections to the controller's value
...
Also, update the NimBLE submodule to remove unwanted logging stuff
2019-11-06 18:24:56 +05:30
Marius Vikhammer
5e042803a2
mdns: fix crash for hostname queries
...
Receiving TXT, PTR, SDPTR and SRV record type queries would crash the application if the hostname
was used as instance name.
Closes https://github.com/espressif/esp-idf/issues/4224
2019-11-05 11:31:18 +00:00
Chen Zheng Wei
74d06101b1
bugfix(i2s_bootloader_random_disable): fix bug about i2s bootloader_random_disable for release/v4.0
...
bootloader_random_disable disables the ADC incorrectly, causing the ADC to sometimes fail to work. Fix this bug
2019-11-05 17:18:13 +08:00
David Cermak
1a8e5a40d6
ws_client: added subprotocol configuration option to websocket client
...
closes https://github.com/espressif/esp-idf/issues/3893
2019-11-02 14:12:11 +01:00
David Cermak
b529c6f282
ws_client: fixed path config issue when ws server configured using host and path instead of uri
...
closes https://github.com/espressif/esp-idf/issues/3892
2019-11-02 14:12:11 +01:00
David Cermak
7a05879024
ws_client: fixed transport config option when server address configured as host, port, transport rather then uri
...
closes https://github.com/espressif/esp-idf/issues/3891
2019-11-02 14:12:11 +01:00
David Cermak
1611386431
ws_client: fix ping-pong mechanism to use mask, support reception of zero-payload PONG and sending non-zero-payload PING
...
Closes https://github.com/espressif/esp-idf/issues/3890
Closes https://github.com/espressif/esp-idf/issues/4138
2019-11-02 14:12:11 +01:00
Jiang Jiang Jian
6181686489
Merge branch 'bugfix/ws_client_fix_event_blocking_v4.0' into 'release/v4.0'
...
ws_client: fixed posting to event loop with websocket timeout (v4.0)
See merge request espressif/esp-idf!6450
2019-11-02 17:29:26 +08:00
Jiang Jiang Jian
0562281353
Merge branch 'bugfix/ws_buffer_overflow_fix_v4.0' into 'release/v4.0'
...
tcp_transport: fix possible buffer overflow in ws transport connect (v4.0)
See merge request espressif/esp-idf!6447
2019-11-02 17:28:12 +08:00
Jiang Jiang Jian
8bc1f6e2f5
Merge branch 'bugfix/ws_opcodes_fix_v4.0' into 'release/v4.0'
...
ws_client: fix for not sending ping responses, updated to pass events also for... (v4.0)
See merge request espressif/esp-idf!6451
2019-11-02 17:24:40 +08:00
Jiang Jiang Jian
dd99a6dbe8
Merge branch 'bugfix/ws_client_fixed_path_query_uri_v4.0' into 'release/v4.0'
...
websocket_client: fix URI parsing to include also query part in websocket connection path (v4.0)
See merge request espressif/esp-idf!6452
2019-11-02 17:19:44 +08:00
Jiang Jiang Jian
5a686d7ad1
Merge branch 'bugfix/mdns_answer_ip6_size_v4.0' into 'release/v4.0'
...
mdns: use constant size of AAAA answer instead of lw_IP struct size (v4.0)
See merge request espressif/esp-idf!6453
2019-11-02 17:17:45 +08:00
Jiang Jiang Jian
0ca0e7d3cc
Merge branch 'bugfix/mdns_BCT_fix_v4.0' into 'release/v4.0'
...
mdns: fixes to have the BCT passing with latest IDF/lw-IP (v4.0)
See merge request espressif/esp-idf!6454
2019-11-02 17:17:38 +08:00
Jiang Jiang Jian
f06ef95610
Merge branch 'bugfix/bugs_in_a2dp_task_v4.0' into 'release/v4.0'
...
components/bt: Not post message to a2dp ctrl queue from btc queue, just call it.
See merge request espressif/esp-idf!6532
2019-11-02 17:17:07 +08:00
liu zhifu
0078896347
esp_wifi: fix some WiFi bugs
...
Fix following WiFi bugs:
1. Fix the bug for API_CHECK_ENABLED
2. Fix the bug that wpa2 enterprise sta can connect open AP
3. Fix TKIP/CCMP PN replay attack detection bug
4. Increase buffer number type from uint8_t to uint16_t to support more than 255 buffers
5. Avoid recalculating PMK if esp_wifi_set_config() is not called
6. Fix 5.5M signal test bug
2019-11-01 22:16:30 +08:00
David Cermak
44599d3a84
ws_client: fix for not sending ping responses, updated to pass events also for PING and PONG messages, added interfaces to send both binary and text data
...
closes https://github.com/espressif/esp-idf/issues/3982
2019-11-01 14:14:15 +00:00
David Cermak
0fa7dcb946
websocket_client: fix URI parsing to include also query part in websocket connection path
...
closes https://github.com/espressif/esp-idf/issues/4090
2019-11-01 14:07:15 +00:00
David Cermak
d3a8dcb929
tcp_transport: fix possible buffer overflow in ws transport connect
...
closes IDF-692
2019-11-01 14:05:04 +00:00
David Cermak
4e8c1b91c0
ws_client: fixed posting to event loop with websocket timeout
...
Executing event loop `esp_event_loop_run()` with timeout causes delays in receiving events from user code. Fixed by removing the timeout to post synchronously.
closes https://github.com/espressif/esp-idf/issues/3957
2019-11-01 14:02:58 +00:00
Jiang Jiang Jian
4ed0d006b4
Merge branch 'bugfix/fix_wifi_deinit_memory_leak_v4.0' into 'release/v4.0'
...
esp_wifi: fix WiFi deinit memory leak (backport v4.0)
See merge request espressif/esp-idf!6539
2019-11-01 21:39:56 +08:00
baohongde
e85804824e
components/bt: Not post message to a2dp ctrl queue from btc queue, just call it.
2019-11-01 20:12:24 +08:00
Jiang Jiang Jian
304f6a577a
Merge branch 'bugfix/btdm_assert_deinit_a2dp_while_playing_v4.0' into 'release/v4.0'
...
components/bt: Fix assert when deinit A2DP while playing music
See merge request espressif/esp-idf!6534
2019-11-01 18:20:07 +08:00
David Cermak
29690afc57
mdns: use constant size of AAAA answer in mdns packets instead of deriving from lwip struct size, since the struct could contain also zones
...
closes WIFI-771
2019-11-01 09:50:42 +00:00
David Cermak
98450e80e5
mdns: fix possible race condition when checking DHCP status on WIFI_EVENT_STA_CONNECTED event.
...
tcpip_adapter_dhcpc_get_status() returns the actual internal value of dhcp client without any locking or TCP/IP stack context call, so when CONNECTED event fired with default settings it started DHCP client in TCP/IP stack context and at the same time mdns event handler checking actual DHCP state, which could still be INIT (not STARTED). Purpose of this check is to enable PCB if DHCP was stopped before setting network interface up (typically static IP settings), so the solutin is to check against TCPIP_ADAPTER_DHCP_STOPPED state
2019-11-01 07:51:49 +00:00
Jiang Jiang Jian
1007473a3b
Merge branch 'bugfix/btdm_check_avrc_connected_error_4.0' into 'release/v4.0'
...
components/bt: Fix error in checking AVRC connected
See merge request espressif/esp-idf!6440
2019-11-01 14:14:13 +08:00
Jiang Jiang Jian
e875f59ed5
Merge branch 'feature/esp-ble-mesh-documentation-v4.0' into 'release/v4.0'
...
Provide BLE Mesh documentation (v4.0)
See merge request espressif/esp-idf!6560
2019-11-01 14:02:26 +08:00
Darian Leung
666f87109f
CAN: Fix critical section compliance
...
This commit makes the CAN driver ISR use the ISR version
of critical section.
2019-11-01 12:14:39 +08:00
Jiang Jiang Jian
154f315a49
Merge branch 'Bugfix/close_nonblocking_tcp_crash_for_4.0' into 'release/v4.0'
...
Bugfix/close nonblocking tcp crash for 4.0
See merge request espressif/esp-idf!6517
2019-11-01 11:24:13 +08:00
Krzysztof Budzynski
f9fa039826
Provide BLE Mesh documentation
2019-10-31 17:08:26 +08:00
Anton Maklakov
fae64f79bb
C++: prepare RTTI support
...
Ref. https://github.com/espressif/esp-idf/issues/1684
Also, for full RTTI support, libstdc++.a in the toolchain should be built
in both with RTTI and w/o RTTI options. Multilib with -fno-rtti
flag is used for that.
Note that this commit does not actually enable RTTI support.
The respective Kconfig option is hidden, and will be made visible when
the toolchain is updated.
2019-10-31 13:27:39 +07:00
Anton Maklakov
4f297ed3fa
Revert "C++: add provisions for optional RTTI support"
...
This reverts commit 3d0466ccd1
.
2019-10-31 13:26:53 +07:00
Jiang Jiang Jian
8eaa440221
Merge branch 'bugfix/jump_time_54_sec_v4.0' into 'release/v4.0'
...
esp_timer: Fix time jumps back ~ 54sec (v4.0)
See merge request espressif/esp-idf!6456
2019-10-31 12:31:39 +08:00
Jiang Jiang Jian
56d5548747
Merge branch 'bugfix/btdm_backports_v4.0_1028' into 'release/v4.0'
...
bt: backport btdm controller fixes to v4.0
See merge request espressif/esp-idf!6514
2019-10-30 15:39:11 +08:00
xueyunfei
665a341147
fix bug for close nonblocking tcp crash
2019-10-30 10:44:36 +08:00
baohongde
cab589af9d
components/bt: Fix error in checking AVRC connected
2019-10-30 02:34:33 +00:00
liu zhifu
19e355e080
esp_wifi: fix WiFi deinit memory leak
2019-10-29 22:32:17 +08:00
baohongde
1cf2da8d67
components/bt: Fix assert when deinit A2DP while playing music
2019-10-29 19:58:52 +08:00
Jiang Jiang Jian
744625f234
Merge branch 'bugfix/btdm_disable_bt_gatt_v4.0' into 'release/v4.0'
...
components/bt: Disable BR/EDR GATT
See merge request espressif/esp-idf!6503
2019-10-29 18:15:54 +08:00
Jiang Jiang Jian
3a1d0e9352
Merge branch 'bugfix/coex_semaphore_take_in_isr_lock_v4.0' into 'release/v4.0'
...
fix bug that semaphore may schedule out in ISR locking
See merge request espressif/esp-idf!6426
2019-10-28 18:45:17 +08:00
baohongde
8afd0de501
components/bt: bugfix that bluetooth controller may not be able to enter sleep after end of wake up request
2019-10-28 15:10:23 +08:00
baohongde
1f7a66a22e
components/bt: Fix LMP sniff req timeout
2019-10-28 15:09:49 +08:00
baohongde
bcc19b7826
components/bt: Disable BR/EDR GATT
2019-10-28 11:21:09 +08:00
Jiang Jiang Jian
0a03a55c1e
Merge branch 'bugfix/fix_mesh_proxy_adv_with_wrong_dev_name_v4.0' into 'release/v4.0'
...
ble_mesh: using bt device name in mesh proxy adv (v4.0)
See merge request espressif/esp-idf!6439
2019-10-26 20:59:28 +08:00
Darian Leung
859ddcdb63
can: Fix reset mode entry and exit calls
...
This commit fixes multiple bugs caused by incorrect calls to
can_enter_reset_mode() and can_exit_reset_mode. Example test
scripts also updated to match new runners.
2019-10-26 16:45:10 +08:00
Tian Hao
c599d7aa49
fix bug that semaphore may schedule out in Critical Section
...
1. Since BLE full-scan feature for BLE mesh change the controller code cause this problem,
it cause coex semaphore take in "interrupt disable", then it may cause task schedule
and cause crash in freertos
2. Fix newlib lock ISR context and critical section check
3. Fix bt controller ISR context and critical section check
2019-10-25 12:01:06 +08:00
Jiang Jiang Jian
834893d8e4
Merge branch 'feature/esptool_v2.8_v4.0' into 'release/v4.0'
...
esptool: Bump to v2.8 release (v4.0)
See merge request espressif/esp-idf!6460
2019-10-25 11:38:09 +08:00
Angus Gratton
996db972f0
esptool: Bump to v2.8 release
2019-10-23 09:04:43 +11:00
KonstantinKondrashov
f1e8a49836
esp_timer: Fix System time jumps back ~54secs
...
Closes: https://github.com/espressif/esp-idf/issues/2513
2019-10-22 23:43:28 +08:00
KonstantinKondrashov
09cc922b42
esp32: Add UTs to check the System time does not jump back
2019-10-22 23:43:28 +08:00
lly
34c33f7440
ble_mesh: using bt device name in mesh proxy adv
2019-10-22 15:48:00 +08:00
Roland Dobai
5464aaac45
VFS: Fix bug which occurs when driver is installed during a select() call
...
Closes https://github.com/espressif/esp-idf/issues/3554
2019-10-21 14:54:48 +02:00
Jiang Jiang Jian
054e2dbb44
Merge branch 'bugfix/not_restoring_ble_mesh_cfg_val_v4.0' into 'release/v4.0'
...
ble_mesh: fix not restoring ble mesh cfg value (v4.0)
See merge request espressif/esp-idf!6276
2019-10-21 20:16:50 +08:00
Jiang Jiang Jian
59a186b27e
Merge branch 'bugfix/mqtt_example_url_update_v4.0' into 'release/v4.0'
...
MQTT: update default broker URL for examples (backport v4.0)
See merge request espressif/esp-idf!6410
2019-10-21 10:52:44 +08:00
Jiang Jiang Jian
de27a71a56
Merge branch 'bugfix/freertos_xTaskNotifyGive_v4.0' into 'release/v4.0'
...
freertos: remove semicolon in xTaskNotifyGive (v4.0)
See merge request espressif/esp-idf!6269
2019-10-21 10:35:56 +08:00
Jiang Jiang Jian
ed8ddf7e76
Merge branch 'bugfix/mqtt_reference_latest_version_4.0' into 'release/v4.0'
...
mqtt: updated to latest version to include latest fixes, support for global CA (backport 4.0)
See merge request espressif/esp-idf!6386
2019-10-21 10:34:56 +08:00
Jiang Jiang Jian
3860753818
Merge branch 'bugfix/vfs_fat_sdmmc_mount_v4.0' into 'release/v4.0'
...
Fix memory leak upon failure of esp_vfs_fat_sdmmc_mount() (v4.0)
See merge request espressif/esp-idf!6393
2019-10-21 10:33:50 +08:00
Jiang Jiang Jian
2056b891d3
Merge branch 'bugfix/ext_flash_load_partitions_v4.0' into 'release/v4.0'
...
spi_flash: ensure partition table loaded when esp_partition_register_external is called (backport v4.0)
See merge request espressif/esp-idf!6402
2019-10-21 10:33:01 +08:00
Jiang Jiang Jian
c6a6740e3f
Merge branch 'feature/cxx_rtti_preparation_v2_v4.0' into 'release/v4.0'
...
C++: add provisions for optional RTTI support (backport v4.0)
See merge request espressif/esp-idf!6403
2019-10-21 10:31:52 +08:00
Jiang Jiang Jian
dd1615d57c
Merge branch 'bugfix/can_driver_assertions_v4.0' into 'release/v4.0'
...
drivers/can: fix skipped function calls when assertions disabled (backport v4.0)
See merge request espressif/esp-idf!6405
2019-10-21 10:27:16 +08:00
Ajita Chavan
32b8b60dc5
flash_ops: fix spi_flash_read with source buffer not from internal memory and size < 16
...
Closes https://github.com/espressif/esp-idf/issues/4010
2019-10-19 15:00:00 +08:00
Marius Vikhammer
4283b59dde
MQTT: update default broker URL for examples
...
The MQTT broker URL used as default in the examples has ceased operation. All examples and documention have been updated to point to the new domain mqtt.eclipse.org.
This also required an update of the python example test scripts to use TLS 1.2
2019-10-18 17:32:33 +08:00
Ivan Grokhotkov
be894757ff
drivers/can: fix skipped function calls when assertions disabled
...
When CONFIG_FREERTOS_ASSERT_DISABLE is set, the function calls wrapped
inside the assertion macros would be removed from the code.
Closes https://github.com/espressif/esp-idf/issues/4143
2019-10-18 11:26:05 +02:00
Ivan Grokhotkov
3d0466ccd1
C++: add provisions for optional RTTI support
...
Ref. https://github.com/espressif/esp-idf/issues/1684
This change allows RTTI to be enabled in menuconfig. For full RTTI
support, libstdc++.a in the toolchain should be built without
-fno-rtti, as it is done now.
Generally if libstdc++.a is built with RTTI, applications which do not
use RTTI (and build with -fno-rtti) could still include typeinfo
structures referenced from STL classes’ vtables. This change works
around this, by moving all typeinfo structures from libstdc++.a into
a non-loadable section, placed into a non-existent memory region
starting at address 0. This can be done because when the application
is compiled with -fno-rtti, typeinfo structures are not used at run
time. This way, typeinfo structures do not contribute to the
application binary size.
If the application is build with RTTI support, typeinfo structures are
linked into the application .rodata section as usual.
Note that this commit does not actually enable RTTI support.
The respective Kconfig option is hidden, and will be made visible when
the toolchain is updated.
2019-10-18 11:22:39 +02:00
Ivan Grokhotkov
0fc30f4379
spi_flash: load partition table before adding an external partition
...
esp_partition_register_external did not call load_partitions, so if
it was called before any call to esp_partition_find, then the main
partition table would never be loaded. Introduce new function,
ensure_partitions_loaded, and call it both from esp_partition_find and
esp_partition_register_external.
Closes https://github.com/espressif/esp-idf/issues/4116
2019-10-18 11:14:32 +02:00
Roland Dobai
de9b0b1c56
Fix memory leak upon failure of esp_vfs_fat_sdmmc_mount()
...
Closes https://github.com/espressif/esp-idf/issues/4165
2019-10-18 10:27:37 +02:00
Prasad Alatkar
6a60c4a046
NimBLE: Misc changes in NimBLE porting layer and menuconfig option (Backport 4.0)
...
- Minor fix to remove while loop & delay while transmitting data from
host to controller.
- Add menuconfig option to enable predefined public-private keypair for
debugging (Vol. 3, Part H, 2.3.5.6.1)
- Update NimBLE submodule: Fix for #4028 , #4012
2019-10-18 13:18:09 +08:00
David Cermak
f96c02adac
mqtt: updated to latest version to include latest fixes, support for global CA store, extended error structure to receive mqtt specific errors. updated idf ssl example to use this error struct
...
backport of 640eac84fa
2019-10-17 16:45:29 +02:00
suda-morris
9351ae7dc9
freertos: remove semicolon in xTaskNotifyGive
2019-10-17 08:06:57 +00:00
Angus Gratton
2cde888a6d
Merge branch 'feature/enable_ethernet_unit_test_4.0' into 'release/v4.0'
...
ethernet: enable unit test (v4.0)
See merge request espressif/esp-idf!6220
2019-10-17 12:54:53 +08:00
Angus Gratton
c94434917d
Merge branch 'bugfix/ut_adjtime_v4.0' into 'release/v4.0'
...
newlib: Fix UT - test time adjustment happens linearly (v4.0)
See merge request espressif/esp-idf!6348
2019-10-17 12:51:35 +08:00
Jiang Jiang Jian
1cc6d2ef62
Merge branch 'docs/update_bootloader_chip_revision_print_v4.0' into 'release/v4.0'
...
bootloader_support: fix logging prints around chip revision (v4.0)
See merge request espressif/esp-idf!6336
2019-10-14 22:14:25 +08:00
Jiang Jiang Jian
090dd78355
Merge branch 'bugfix/multi_heap_printf_backport_v4.0' into 'release/v4.0'
...
heap: Fix printf usage in heap poisoning (backport v4.0)
See merge request espressif/esp-idf!6092
2019-10-14 21:28:36 +08:00
KonstantinKondrashov
706df7ab12
newlib: Fix UT - test time adjustment happens linearly
2019-10-14 14:52:04 +08:00
Mahavir Jain
a87e699104
bootloader_support: fix logging prints around chip revision
2019-10-13 11:58:16 +05:30
ganeshlandge
7566bfb548
fixes : set_url discards username and password
2019-10-12 10:50:11 +05:30
Angus Gratton
57335cfc26
Merge branch 'feature/add_chip_revision_to_image_header_4.0' into 'release/v4.0'
...
Add chip revision into image header(v4.0)
See merge request espressif/esp-idf!6127
2019-10-11 13:22:12 +08:00
Darian Leung
a389312750
heap: Fix printf usage in heap poisoning
...
This commit fixes the bug where printf() is used in
verify_allocated_region() when ets_printf() should be used.
2019-10-11 03:10:56 +00:00
lly
7d267a340f
ble_mesh: fix not callback net_key when device is provisioned
2019-10-11 10:05:12 +08:00
Roland Dobai
c875e5698a
Cosmetic Kconfig fixes
2019-10-10 09:11:01 +02:00
Angus Gratton
4cafa3e76e
Merge branch 'feature/add_psram_workaround_option_4.0' into 'release/v4.0'
...
make psram workaround depend on chip revison(v4.0)
See merge request espressif/esp-idf!6115
2019-10-10 11:00:29 +08:00
suda-morris
1e5ea2827c
ethernet: fix crash in unit test
2019-10-10 10:43:42 +08:00
suda-morris
cf5331b9f1
ethernet: enable unit test
2019-10-10 10:42:48 +08:00
Ivan Grokhotkov
28a2e6a775
Merge branch 'bugfix/deprecated_sdkconfig_defaults_v4.0' into 'release/v4.0'
...
Handle deprecated values in sdkconfig.defaults (v4.0)
See merge request espressif/esp-idf!6254
2019-10-09 23:50:05 +08:00
lly
66a46de2a7
ble_mesh: fix not restoring ble mesh cfg value
2019-10-08 16:37:20 +08:00
suda-morris
bcd496be49
bootloader: shrink bin size
...
1. write a bootloader version of "getting chip revision" function.
2. reduce wordy log.
2019-10-08 02:45:36 +00:00
suda-morris
79923d0199
Add chip revision into image header
...
Check chip id and chip revision before boot app image
Closes https://github.com/espressif/esp-idf/issues/4000
2019-10-08 02:45:36 +00:00
Aditya Patwardhan
858b3d2277
ESP32/esp-tls: include esp_err.h in esp_tls.h
...
Closes https://github.com/espressif/esp-idf/issues/4100
2019-10-07 17:47:51 +05:30
Roland Dobai
dedaf624db
Handle deprecated values in sdkconfig.defaults
...
The issue was pointed out also in
https://github.com/espressif/esp-idf/issues/4092
2019-10-03 10:13:42 +02:00
Xia Xiaotian
10d26549fa
Coexist: fix some coexist bugs
...
1. Fix high beacon and broadcast packets loss ratio of WiFi to
make MDNS test pass.
2. Improve stability of WiFi performance with a little sacrifice
of throughput.
3. Improve BLE advertising and connection performance with
dynamic priority. It sacrifices a little WiFi throughput, but
achieves balance between WiFi and Bluetooth.
2019-09-30 11:42:05 +08:00
zhangyanjiao
d9cfb05eb6
esp_wifi:
...
1. Fixed smartconfig ipc crash
2. Fix the WiFi init sequence bug
3. Fixed the bug that WiFi stop leads to task watchdog
4. Put g_promis_buf to IRAM
2019-09-29 11:38:11 +08:00
Jiang Jiang Jian
4322e89006
Merge branch 'bugfix/ble_mesh_client_invalid_addr_access_4.0' into 'release/v4.0'
...
ble_mesh: fix client model invalid address access (v4.0)
See merge request espressif/esp-idf!6218
2019-09-29 10:24:04 +08:00
Ivan Grokhotkov
96748f3037
Merge branch 'refactor/update_spi_ethernet_api_v4.0' into 'release/v4.0'
...
update spi ethernet api (v4.0)
See merge request espressif/esp-idf!6177
2019-09-27 19:43:15 +08:00
lly
5a94142481
ble_mesh: fix client model invalid address access
2019-09-27 15:28:10 +08:00
Ivan Grokhotkov
e5ff431b35
Merge branch 'fix/esp_flash_coredump_4.0' into 'release/v4.0'
...
esp_flash: fix coredump issues (backport v4.0)
See merge request espressif/esp-idf!6136
2019-09-26 21:26:53 +08:00
Ivan Grokhotkov
c225801b3e
Merge branch 'fix/add_parentheses_to_spi_swap_data_tx_4.0' into 'release/v4.0'
...
spi: Put argument of macro SPI_SWAP_DATA_TX in parentheses (backport v4.0)
See merge request espressif/esp-idf!6107
2019-09-26 21:25:20 +08:00
Jiang Jiang Jian
c776991233
Merge branch 'bugfix/kconfig_corrections_v4.0' into 'release/v4.0'
...
Fix Kconfig issues discovered by upstream Kconfiglib (v4.0)
See merge request espressif/esp-idf!6195
2019-09-25 16:26:40 +08:00
Jiang Jiang Jian
041fcceddf
Merge branch 'feat/esp_flash_support_encrypt_4.0' into 'release/v4.0'
...
esp_flash: add support for encrypted read and write (backport v4.0)
See merge request espressif/esp-idf!6106
2019-09-25 16:17:31 +08:00
Jiang Jiang Jian
a21eb04cc6
Merge branch 'bugfix/btdm_a2dp_sink_media_suspend_cmd_unack_for_v4.0' into 'release/v4.0'
...
bugfix/btdm_a2dp_sink_media_suspend_cmd_unack_for_v4.0(backport v4.0)
See merge request espressif/esp-idf!5940
2019-09-25 16:12:43 +08:00
Jiang Jiang Jian
116d0c8145
Merge branch 'bugfix/ble_mesh_queue_task_init_check_v4.0' into 'release/v4.0'
...
ble_mesh: check ble mesh queue and task init status (v4.0)
See merge request espressif/esp-idf!6193
2019-09-25 15:08:23 +08:00
suda-morris
dda49709fe
ethernet: update spi-ethernet api
2019-09-25 06:34:39 +00:00
Roland Dobai
fc738680f8
Fix Kconfig issues discovered by upstream Kconfiglib
2019-09-25 08:25:51 +02:00
Prasad Alatkar
499accb652
BT/Bluedroid: Add support to set min encryption key size requirement (backport)
...
- Backport of IDF MR!6122.
- Modifies `smp_utils.c` to add check on encryption key size received from
peer.
- Modifies `esp_ble_gap_set_security_param` API to add minimum encryption key
size requirement.
2019-09-25 11:57:21 +08:00
Jiang Jiang Jian
988147a451
Merge branch 'bugfix/btdm_loop_in_feature_req_ext_v4.0' into 'release/v4.0'
...
components/bt: Fix sending LMP_features_req_ext in a loop
See merge request espressif/esp-idf!6023
2019-09-25 11:52:10 +08:00
lly
9e6c56f9f2
ble_mesh: check ble mesh queue and task init status
2019-09-25 11:03:18 +08:00
Prasad Alatkar
daa65b6f91
NimBLE: Add optional mbedTLS support to NimBLE (backport)
...
- NimBLE: Additional menuconfig option to enable mbedTLS instead of Tinycrypt from
NimBLE, changes `component.mk` & `CMakeLists.txt` for the same.
- Addition of NimBLE stack size configuration and misc changes.
- mbedTLS: Addition of `CMAC` and `ECP_RESTARTABLE` to mbedTLS menuconfig option and
`esp_config.h`.
- Example: Minor changes to `app_mesh.c` application.
2019-09-23 21:37:40 +08:00
Jiang Jiang Jian
7f9626d378
Merge branch 'cleanup/make_supp_headers_private_v4.0' into 'release/v4.0'
...
wpa_supplicant: Make internal crypto headers private (backport v4.0)
See merge request espressif/esp-idf!6061
2019-09-23 18:00:43 +08:00
wangmengyang
6cad60f34b
bugfix that call of esp_a2d_media_ctrl(ESP_A2D_MEDIA_CTRL_SUSPEND) will not get an ACK from callback on A2DP sink
2019-09-23 03:22:34 +00:00
Jiang Jiang Jian
b4c7ed999c
Merge branch 'bugfix/remove_v40_deprecations_v4.0' into 'release/v4.0'
...
Remove features deprecated before ESP-IDF V4.0 (v4.0)
See merge request espressif/esp-idf!6150
2019-09-20 19:51:51 +08:00
Jiang Jiang Jian
8a5c08df98
Merge branch 'bugfix/fix_the_for_smartconfig_send_broadcast_to_phone_v4.0' into 'release/v4.0'
...
fix the bug that ESP32 sends broadcast to phone after smartconfig is done (backport v4.0)
See merge request espressif/esp-idf!6072
2019-09-20 14:02:19 +08:00
xiehang
4e7b559101
Delete extra '/'
2019-09-19 19:22:44 +08:00
xiehang
43616f6f05
esp_wifi: Update wifi lib
2019-09-19 17:49:18 +08:00
Angus Gratton
3b9ab9caa6
idf_test: Disable tests for Wi-Fi auto reconnect
...
Disable one, remove IDF tag from the other
2019-09-19 18:49:37 +10:00
Jack
0dc9ddb77c
Wi-Fi: remove wifi_fast_scan_threshold_t which is not suitable in name
2019-09-19 18:49:37 +10:00
Jack
9ab92331c4
dport: remove clock_en and reset bitname which is not suitable
2019-09-19 18:49:37 +10:00
Angus Gratton
08416d05ba
soc: Remove deprecated LEDC struct register names (bit_num, div_num)
...
Deprecated since ESP-IDF V3.0
2019-09-19 18:49:37 +10:00
Angus Gratton
200c82561a
soc: remove deprecated io_mux PIN_PULLxxx_yyy macros
...
Deprecated before ESP-IDF V1.0!
2019-09-19 18:49:37 +10:00
Angus Gratton
2e05c6020f
mbedtls: Remove esp_aes_encrypt/decrypt
...
Deprecated in ESP-IDF V3.1
Anyone reading this should please include mbedtls/aes.h and use mbedTLS APIs,
not the ESP-specific APIs.
2019-09-19 18:49:37 +10:00
Angus Gratton
d139c851f3
heap: Remove esp_heap_alloc_caps header
...
Deprecated in ESP-IDF V3.1
2019-09-19 18:49:37 +10:00
Angus Gratton
365e3fd685
fatfs: Remove esp_vfs_fat_unregister()
...
Deprecated in ESP-IDF V2.0
2019-09-19 18:49:37 +10:00
Angus Gratton
71fad5e2c0
esp_wifi: Remove WIFI_PS_MODEM constant
...
Deprecated in ESP-IDF V3.1
2019-09-19 18:48:55 +10:00
Angus Gratton
94ba3a20cb
esp_wifi: Remove deprecated auto connect API
...
Deprecated in ESP-IDF V3.1
2019-09-19 18:48:55 +10:00
Angus Gratton
5a7d3ef319
ringbuf: Remove deprecated RingbufferType_t
...
Deprecated in ESP-IDF V3.1
2019-09-19 18:48:55 +10:00
Angus Gratton
e4a4e6ed81
wdt: Remove deprecated esp_task_wdt_feed() function
...
Deprecated in ESP-IDF V3.1
2019-09-19 18:48:55 +10:00
Angus Gratton
8094e880c6
esp32/esp_common: Remove deprecated esp_efuse_read_mac() function
...
Deprecated since ESP-IDF V2.0
2019-09-19 18:48:30 +10:00
Angus Gratton
35b9223cf4
esp32/esp_common: Remove deprecated system_* APIs
...
Mostly deprecated before ESP-IDF V1.0 & V2.0
2019-09-19 18:48:30 +10:00
Angus Gratton
fe97d14e0f
esp_adc_cal: Remove deprecated ADC calibration functions
...
Deprecated since ESP-IDF V3.1
2019-09-19 18:48:14 +10:00
Angus Gratton
2c16557ee7
esp32: Remove deprecated system_deep_sleep function
...
Deprecated since ESP-IDF V3.0
2019-09-19 18:48:14 +10:00
Ivan Grokhotkov
5f8e5db268
esp32/test: fix usage of deprecated fields
2019-09-19 18:48:14 +10:00
Angus Gratton
a9fe3165c4
soc/pm: Remove deprecated use of rtc_cpu_freq_t enum
...
Removes deprecated ways of setting/getting CPU freq, light sleep freqs.
Deprecated since ESP-IDF V3.2
2019-09-19 18:48:13 +10:00
Angus Gratton
b01036e13e
driver: Remove features deprecated pre-IDF V4.0
2019-09-19 18:47:15 +10:00
Angus Gratton
10649ae23b
app_update: Remove deprecated "make erase_ota" target
...
Deprecated in v3.2
2019-09-19 18:45:36 +10:00
Angus Gratton
c4306f7942
bootloader_support: Remove deprecated partition load/verify functions
...
Deprecated since v3.2
2019-09-19 18:45:36 +10:00
Angus Gratton
62be877ada
bluetooth: Remove bt.h header (deprecated in v3.1-dev)
2019-09-19 18:45:36 +10:00
suda-morris
546026d018
make psram workaround depend on chip revison
...
Since ESP32 revision 3, the PSRAM workaround is not needed.
2019-09-19 13:50:53 +08:00
Jiang Jiang Jian
05d3665a14
Merge branch 'bugfix/ble_mesh_get_timer_remaining_time_v4.0' into 'release/v4.0'
...
ble_mesh: fix ble mesh get timer remaining time (v4.0)
See merge request espressif/esp-idf!6059
2019-09-18 16:38:31 +08:00
michael
0bba92b2a0
esp_flash: put adapter to legacy functions into IRAM to be back-compatible
2019-09-18 15:16:00 +08:00
Michael (XIAO Xufeng)
399477cd10
coredump: use esp_flash api in coredump
...
Also put esp_flash functions into noflash region, when
ESP32_PANIC_HANDLER_IRAM and coredump are enabled. The option disables
the re-enabling of the CPU-cache when it's disabled during coredump.
This requires all the coredump functions including the flash API to be
in the D/IRAM.
2019-09-18 15:14:53 +08:00
Michael (XIAO Xufeng)
d3b54ec84a
esp_flash: fix the coredump issue
...
During coredump, dangerous-area-checking should be disabled, and cache
disabling should be replaced by a safer version.
Dangerous-area-checking used to be in the HAL, but it seems to be more
fit to os functions. So it's moved to os functions. Interfaces are
provided to switch between os functions during coredump.
2019-09-18 14:30:23 +08:00
Michael (XIAO Xufeng)
e4b44f3488
esp_flash: fix coredump for legacy spi flash API
...
When legacy mode is used, the coredump still fails during linking
because "esp_flash_init_default_chip", "esp_flash_app_init" and
"esp_flash_default_chip " are not compiled and linked.
Instead of using ``if`` macros in callers, these functions are protected
by ``if`` macros in the header, and also not compiled in the sources.
"esp_flash_default_chip" variable is compiled with safe default value.
2019-09-18 14:28:12 +08:00
Nachiket Kukade
ca80b0445d
wpa_supplicant: Make internal crypto headers private (backport v4.0)
...
A lot of internally used crypto headers are publicly includeable
in user projects. This leads to bug reports when these headers
are incorrectly used or the API's are not used as intended.
Move all crypto headers into private crypto src folder, also move
crypto_ops into Supplicant to remove dependecy on crypto headers.
Closes IDF-476
2019-09-17 13:28:30 +00:00
lly
1e01accaa4
ble_mesh: fix duplicate memory free during receiving status message
2019-09-16 17:30:03 +08:00
Martin Thierer
2ca3735edd
spi: Put argument of macro SPI_SWAP_DATA_TX/RX in parentheses
...
Close https://github.com/espressif/esp-idf/pull/3996
2019-09-16 17:17:42 +08:00
Michael (XIAO Xufeng)
b9a2639ab4
esp_flash: add support for encrypted read and write
...
Using legacy implementation.
2019-09-16 17:10:08 +08:00
lly
77f186a7b9
ble_mesh: make unicast elem lookup O(1)
2019-09-16 15:06:52 +08:00
jiangguangming
536c131114
fix bug for cmake build system
...
The path of ${SDKCONFIG_H} does not exist, should be replaced by ${sdkconfig_header}.
2019-09-16 11:18:04 +08:00
Angus Gratton
ef17d8bba1
Merge branch 'bugfix/httpd_sess_close_v4.0' into 'release/v4.0'
...
httpd_sess_close: Check for session validity before closing (v4.0)
See merge request espressif/esp-idf!5742
2019-09-16 08:21:37 +08:00
Piyush Shah
4ee065df79
httpd_sess_close: Check for session validity before closing
...
If httpd_sess_trigger_close() gets called twice for the same socket,
the first httpd_sess_close() cb closes the correct socket, but the second
invocation closes the wrong socket which was just accepted and added to
the socket db. Checking for the lru counter will help identify this as the
counter is set only for requests actually served.
2019-09-12 08:41:31 +00:00
Roland Dobai
63c2834d7b
VFS: Fix memory access after free() in UART select()
...
Closes https://github.com/espressif/esp-idf/issues/4030
2019-09-12 08:38:31 +02:00
Jiang Jiang Jian
dbf2c3d480
Merge branch 'bugfix/btdm_config_msbc_v4.0' into 'release/v4.0'
...
components/bt: Disable Wide Bond Speech when SCO data path is PCM
See merge request espressif/esp-idf!5979
2019-09-12 13:23:54 +08:00
Jiang Jiang Jian
582d5de497
Merge branch 'bugfix/coex_bb_reset_lock_v4.0' into 'release/v4.0'
...
fix some coex bugs
See merge request espressif/esp-idf!6056
2019-09-12 11:04:10 +08:00
Jiang Jiang Jian
5a351af83f
Merge branch 'bugfix/flash_encryption_disable_plaintext_v4.0' into 'release/v4.0'
...
flash encryption: Always disable plaintext reflashes in Release mode (v4.0)
See merge request espressif/esp-idf!6070
2019-09-12 10:40:34 +08:00
Angus Gratton
00e3cb672b
Merge branch 'bugfix/flash_encryption_regressions_v4.0' into 'release/v4.0'
...
fix flash encryption regressions, add tests (backport v4.0)
See merge request espressif/esp-idf!6068
2019-09-11 12:06:02 +08:00
zhangyanjiao
67eb732dbe
fix the bug that ESP32 sends broadcast to phone after smartconfig is done
2019-09-11 11:37:29 +08:00
Angus Gratton
69241907a5
bootloader: Link RTC clock functions to the iram_loader section
...
As flash encryption & secure boot needs these functions after the app is loaded.
Fixes regression introduced in fb72a6f629
2019-09-11 10:16:43 +10:00
Angus Gratton
5b69614e32
flash encryption: Ensure flash encryption can't be disabled if Secure Boot is on
2019-09-11 10:16:43 +10:00
Ivan Grokhotkov
3e12967535
bootloader: add definition of esp_clk_apb_freq
...
Commit 8cd04c80
has added a dependency of efuse component on
esp_clk_apb_freq, however there was no definition of this function in
the bootloader context.
Reported at https://esp32.com/viewtopic.php?f=13&t=12035
2019-09-11 10:16:43 +10:00
Ivan Grokhotkov
d9f1219a21
efuse: set timing configuration before writing
2019-09-11 10:16:43 +10:00
Ivan Grokhotkov
b17ca9cb38
unit-test-app: add config with flash encryption enabled
2019-09-10 17:20:19 +02:00
Ivan Grokhotkov
801010dac6
spi_flash: fix mmap unit tests for flash encryption
2019-09-10 17:20:19 +02:00
Ivan Grokhotkov
a0256b9e9d
flash encryption: add option to require flash encryption to be enabled
...
In testing environment, to avoid accidentally enabling flash
encryption on a device, CONFIG_SECURE_FLASH_REQUIRE_ALREADY_ENABLED
can be set. If set, the bootloader will refuse to boot if flash
encryption is not enabled, instead of enabling it.
2019-09-10 17:19:08 +02:00
Ivan Grokhotkov
fae124a2c1
esp32: cpu_start: read binary image header via cache
...
When flash encryption is enabled, reading via cache also decrypts the
data, whereas spi_flash_read does not.
Closes https://github.com/espressif/esp-idf/issues/3907
2019-09-10 17:18:51 +02:00
Ivan Grokhotkov
ad100e497a
spi_flash: remove duplicate definition of spi_flash_unlock
...
The other (static) definition is in flash_ops.c, all references are
also in flash_ops.c.
2019-09-10 17:18:51 +02:00
lly
8dbb2083ea
ble_mesh: fix ble mesh get timer remaining time
2019-09-10 17:01:03 +08:00
Tian Hao
a8590c7e8e
fix some coex bugs
...
1. fix the bug that bb reset lock unhandled may cause assert in vPortCPUReleaseMutexIntsDisabledInternal
2. fix wifi mac reset may blocking then cause wdt timeout
3. fix bug wifi mac reset before coex init
2019-09-10 15:58:42 +08:00
Chinmay Chhajed
8876cda09b
esp_http_server : Bugfix in parsing of empty header values
...
This MR is intended to fix incorrect parsing of HTTP requests when empty header values are present.
The issue is was due to asymmetric behavior of `http_parser` library, which in case of:
non-empty header values : invokes callbacks with the pointer to the start of a value
empty header values : invokes callbacks with pointer to the start of next header or section
Since HTTP server relies on this pointer (along with length of the value) to locate the end of a value, and replace the line terminators (CRLFs) with null characters, the second case needed to be handled correctly.
Closes IDFGH-1539
Closes https://github.com/espressif/esp-idf/issues/3803
2019-09-10 05:58:49 +00:00
Jiang Jiang Jian
a7107d9bbd
Merge branch 'bugfix/ble_mesh_related_bugfixes_v4.0' into 'release/v4.0'
...
Bugfix/ble mesh related bugfixes v4.0
See merge request espressif/esp-idf!6042
2019-09-10 09:48:36 +08:00
Angus Gratton
850684438b
Merge branch 'bugfix/ethernet_rx_length_check_v4.0' into 'release/v4.0'
...
ethernet: bugfix and optimize (v4.0)
See merge request espressif/esp-idf!6028
2019-09-10 07:58:46 +08:00
Andrew
72264ca9b9
spi_common: remove deprecated spi_common_periph_claim macros (backport v4.0)
2019-09-10 06:42:31 +08:00
Angus Gratton
da2025a74a
Merge branch 'bugfix/newlib_time_test_v4.0' into 'release/v4.0'
...
newlib: Fix UT - test time adjustment happens linearly (v4.0)
See merge request espressif/esp-idf!6014
2019-09-10 06:40:09 +08:00
Angus Gratton
93bad7a0de
Merge branch 'bugfix/bootloader_factory_reset_with_wake_up_from_deep_sleep_v4.0' into 'release/v4.0'
...
bootloader: Blocking the Factory reset during wake up from deep sleep (v4.0)
See merge request espressif/esp-idf!6020
2019-09-10 06:39:19 +08:00
lly
55f687c763
ble_mesh: update ble mesh examples sdkconfig.defaults
2019-09-09 18:10:52 +08:00
lly
329388fa47
ble_mesh: fix ble mesh btc may caused memory leak
2019-09-09 18:10:47 +08:00
lly
0f36dabcaf
ble_mesh: fix publication period timestamp initialization
2019-09-09 18:10:42 +08:00
lly
0299e22dd0
ble_mesh: remove useless mesh_opcode
2019-09-09 18:10:34 +08:00
lly
f072c5af4e
ble_mesh: fix bt_mesh_net_resend() caused compiling error
2019-09-09 17:47:56 +08:00
lly
6982663380
ble_mesh: fix adhering to the configured Friend Queue size
2019-09-09 17:47:47 +08:00
lly
1d970ad276
ble_mesh: remove useless code bt_mesh_trans_resend()
2019-09-09 17:47:30 +08:00
lly
a73cc70af9
ble_mesh: lpn remove msg from cache on rejection
2019-09-09 17:47:24 +08:00
lly
225ee8e5d1
ble_mesh: introduce a helper for send callback function
2019-09-09 17:47:18 +08:00
lly
fa4cd56d00
ble_mesh: fix heartbeat sending on friendship established/lost
2019-09-09 17:47:07 +08:00
lly
15f8b0fccc
ble_mesh: fix checking for active heartbeat publication
2019-09-09 17:46:49 +08:00
lly
97080afba2
ble_mesh: fix starting iv update when not on primary subnet
2019-09-09 17:46:43 +08:00
lly
612822d8c9
ble_mesh: fix canceling publication retransmit timer
2019-09-09 17:46:35 +08:00
lly
ff6cb921c3
ble_mesh: fix resending segments on correct bearer
2019-09-09 17:46:27 +08:00
lly
6f7b7c552d
ble_mesh: fix not sending all segments through the Friend Queue
2019-09-09 17:46:19 +08:00
lly
e00186e683
ble_mesh: fix canceled buffer memory leak
2019-09-09 17:46:06 +08:00
lly
a734b3b1bc
ble_mesh: remove some useless copy during ecdh calculation
2019-09-09 17:45:59 +08:00
lly
6de637811f
ble_mesh: move heartbeat sending to transport layer
2019-09-09 17:45:52 +08:00
lly
6ec0c6743a
ble_mesh: fix provisioning send error handling
2019-09-09 17:45:44 +08:00
lly
299c86cc84
ble_mesh: fix rejecting invalid remote public key
2019-09-09 17:45:27 +08:00
lly
d123f6c04b
ble_mesh: add error checks for scan start/stop
2019-09-09 17:45:20 +08:00
lly
3c17bf1a6f
ble_mesh: rename reset_link() to reset_adv_link()
2019-09-09 17:45:14 +08:00
lly
8fb20e4529
ble_mesh: fix public key mismatch error handling
2019-09-09 17:45:06 +08:00
lly
e020d1055a
ble_mesh: update protocol error timeout from zephyr
2019-09-09 17:44:17 +08:00
lly
05e4b28a74
ble_mesh: fix segmented message RPL behavior
2019-09-09 17:44:11 +08:00
lly
27bc688ed8
ble_mesh: clear LPN sent_req on failure
2019-09-09 17:43:59 +08:00
lly
a214fb2821
ble_mesh: update proxy sar operation from zephyr
2019-09-09 17:43:46 +08:00
lly
6b7b9d1550
ble_mesh: fix postponing storage deadline indefinitely
2019-09-09 17:43:40 +08:00
lly
18b873b2e3
ble_mesh: fix RPL storage timeout handling
2019-09-09 17:43:29 +08:00
lly
d1755c1484
ble_mesh: fix output MIC with additional data
2019-09-09 17:43:23 +08:00
lly
152ebb104d
ble_mesh: remove non-standard relay opearation
2019-09-09 17:43:13 +08:00
lly
e3b304997f
ble_mesh: fix finding netkey/appkey/devkey for tx/rx msg
2019-09-09 17:43:04 +08:00
lly
1e20ed4849
ble_mesh: fix failed to set device role caused mem leak
2019-09-09 17:42:50 +08:00
lly
59b663c43d
ble_mesh: ble mesh btc miscellaneous modifications
2019-09-09 17:42:43 +08:00