lly
97f11600e3
ble_mesh: net_key_status only pull one key idx [Zephyr]
...
Fixes bug where the config client's net_key_status handler would attempt
to pull two key indexes from a message which only holds one.
2020-05-11 02:29:18 +00:00
lly
9d7adc3e1b
ble_mesh: Update client message timeout calculation
...
Since the behavior of sending segmented messages has been
changed properly, the calculation of timeout value which
will be used when sending an acknowledged message by a
client model also needs to be updated.
2020-05-11 02:29:18 +00:00
lly
5e59233cc0
ble_mesh: Add lock for segmented msg operations
...
Add mutex to protect some variables of the mesh segmented
messages.
Currently the timeout handler of mesh will be executed in
the btc task, while the received mesh messages will be
handled in the btu task. In case some variables are set to
NULL when handled in the btu task, meanwhile these variables
are also accessed in the timeout handler, so we add mutex to
protect these variables and related operations.
2020-05-11 02:29:18 +00:00
lly
9e5fec73f8
ble_mesh: Fix dereferencing pointer before checking for NULL [Zephyr]
...
The publication context is checked for NULL in bt_mesh_model_publish()
however it was dereferenced before that. Move the assignment to
ctx.send_rel to the same place where other ctx members are set.
2020-05-11 02:29:18 +00:00
lly
d7a671ab7a
ble_mesh: Optimize some mesh log output
2020-05-11 02:29:18 +00:00
lly
52493a1644
ble_mesh: Fix restore when revoke keys [Zephyr]
...
Store keys (NetKey and AppKey) again after revoking.
2020-05-11 02:29:18 +00:00
lly
8ea6714a96
ble_mesh: Spit mesh_util.h into different header files
...
Split mesh_util.h into mesh_byteorder.h, mesh_compiler.h,
mesh_ffs.h and mesh_util.h based on the classification of
Zephyr, which will make further porting more clear.
2020-05-11 02:29:18 +00:00
lly
52a30c8f4a
ble_mesh: Split mesh os related into a separate file
2020-05-11 02:29:18 +00:00
lly
01a8a6c150
ble_mesh: Split mesh mutex into a separate file
2020-05-11 02:29:18 +00:00
lly
c493be489f
ble_mesh: Rename mesh_kernel.* to mesh_timer.*
2020-05-11 02:29:18 +00:00
lly
25dfee4bdd
ble_mesh: Add and use transport macro definitions [Zephyr]
2020-05-11 02:29:18 +00:00
lly
df525bf0b3
ble_mesh: Friend SeqAuth cleanup [Zephyr]
...
The Friend queue uses the message SeqAuth to determine whether the
message is already in the queue. To facilitate this, the SeqAuth is
passed around as a pointer throughout the transport modules. In the
bt_mesh_ctl_send functions, this parameter is also exposed in the API,
but the internal usage is inconsistent and buggy. Also, no one actually
uses this parameter.
- Removes seq_auth param from bt_mesh_ctl_send, instead passing NULL
directly to the friend module, to enforce its addition to the queue.
- Makes the seq_auth pointer const throughout the friend module.
2020-05-11 02:29:18 +00:00
lly
cd58874a9b
ble_mesh: Rework msg_cache [Zephyr]
...
Changes the behavior of the message cache to optimize for cache
capacity. Previously, the message cache's primary function was to avoid
decrypting messages multiple times, although the cache's main function
in the spec is to avoid message rebroadcasting. Optimizing for minimal
decryption causes us to fill the network cache faster, which in turn
causes more cache misses, potentially outweighing the advantage.
Now stores src + seq in message cache instead of field hash value. This
cuts cache size in two, while including more of the sequence number than
before.
Adds messages to the cache only after the packet is successfully
decrypted. This reduces noise in the cache, and ensures that no
invalid deobfuscations are added.
Additionally, this fixes a bug where multiple calls to net_decrypt with
the same packet failed, as the message cache found its own entry from
the previous call.
2020-05-11 02:29:18 +00:00
lly
ef8206cdc6
ble_mesh: Segmented TX to groups [Zephyr]
...
Implements several changes to the transport layer segmented tx to
improve group message performance:
- Moves retransmit counter to tx context instead of per packet. As every
unacked packet is sent every retransmit, the retransmit counters would
be the same in each segment. This makes it easier to control progress.
- Delays the scheduling of the retransmit until the completion of the
last segment by adding a seg_pending counter. This is essentially the
same as the old behavior, except that the old behavior might retrigger
the sending before all segments are finished if the advertising is
slow.
- Allows the group transmits to stop as soon as all retransmits have
been exhausted, instead of timing out waiting for acks that won't
come. This allows group tx to finish without error.
- Fixes a bug where a failed TX would block IV update.
- Cancels any pending transmissions of acked segments.
- Reduces log level for several common group tx scenarios that aren't
erronous.
2020-05-11 02:29:18 +00:00
lly
fd9a16805a
ble_mesh: Add comment explaining use of byte order [Zephyr]
...
Add comment that explains why a different byte order is used for the
3-byte opcode on the CID part of the opcode.
2020-05-11 02:29:18 +00:00
lly
4d1d5261cc
ble_mesh: Use 24-bit functions [Zephyr]
...
Use 24-bit functions for byteorder and net_buf in order to make the
byteorder used more readable.
2020-05-11 02:29:18 +00:00
lly
da99734ba8
ble_mesh: Optimize net_buf_simple routines [Zephyr]
...
Use sys_put_xyz() helpers instead of memcpy() whenever possible. This
brings in straight-line inline code for pushes and adds of known,
small sizes.
2020-05-11 02:29:18 +00:00
lly
4fd1b2db0e
ble_mesh: Add PRIu64 & PRIx64 in mesh_types.h
2020-05-11 02:29:18 +00:00
lly
fb84166cbd
ble_mesh: Add push functions for supported bit-variants [Zephyr]
...
Add push functions for bit-widths supported by add and pull functions.
2020-05-11 02:29:18 +00:00
lly
ee1eb994b7
ble_mesh: Add support for 64 bit data type [Zephyr]
...
This enables pulling and pushing values in 64 bit format.
2020-05-11 02:29:18 +00:00
lly
b186be52f0
ble_mesh: Add support for 48 bit data type [Zephyr]
...
This enables pulling and pushing values in 48 bit format.
2020-05-11 02:29:18 +00:00
lly
23c8bbcbf5
ble_mesh: Add 48 bit variants [Zephyr]
...
This adds sys_*_*48 functions that operation on a 48 bits values.
2020-05-11 02:29:18 +00:00
lly
4e1d3974fb
ble_mesh: Add support for 24 bit data type [Zephyr]
...
This enables pulling and pushing values in 24 bit format.
2020-05-11 02:29:18 +00:00
lly
26dbfdcb9d
ble_mesh: Add 24 bit variants [Zephyr]
...
This adds sys_*_*24 functions that operation on a 24 bits values.
2020-05-11 02:29:18 +00:00
lly
95440c4d28
ble_mesh: Group resends in proxy nodes [Zephyr]
...
Resend transport segments for groups on the advertiser interface, even
if a connected proxy node holds the group.
2020-05-11 02:29:18 +00:00
lly
1f47cfff7f
ble_mesh: Typo in condition in comp_add_elem of cfg_srv [Zephyr]
...
Vendor model IDs take up four (not two) bytes in the composition
2020-05-11 02:29:18 +00:00
lly
31b175e372
ble_mesh: GATT Proxy Spec 1.0.1 changes [Zephyr]
...
Backport of https://github.com/apache/mynewt-nimble/pull/724
Mesh spec 1.0.1 changes proxy disabling behavior to only affect the
relaying from proxy nodes. Previously, disabling proxy would shut down
all proxy and node activity.
Tweaks from the original commit:
- Removed redundant call to bt_mesh_adv_update() in gatt_proxy_set()
- Removed invalid ref to 4.2.11.1 in node_identity_set()
---
According to Mesh Profile Spec 1.0.1, Section 4.2.11:
"If the Proxy feature is disabled, a GATT client device can connect
over GATT to that node for configuration and control. Messages from
the GATT bearer are not relayed to the advertising bearer."
Moreover some notes have been removed from the spec compared to
version 1.0:
Mesh Profile Spec 1.0, Section 4.2.11:
"Upon transition from GATT Proxy state 0x01 to GATT Proxy state 0x00
the GATT Bearer Server shall disconnect all GATT Bearer Clients."
"The Configuration Client should turn off the Proxy state as the last
step in the configuration process."
Mesh Profile Spec 1.0, Section 4.2.11.1:
"When the GATT Proxy state is set to 0x00, the Node Identity state
for all subnets shall be set to 0x00 and shall not be changed."
2020-05-11 02:29:18 +00:00
lly
e385197c27
ble_mesh: Support reliable sending when publishing [Zephyr]
...
Until now the choice of reliable sending (segmented messages with
acks) was implicitly dependent on the size of the payload. Add a new
member to the bt_mesh_model_pub to force using segment acks even when
the payload would fit a single unsegmented message.
2020-05-11 02:29:18 +00:00
lly
cc549897d5
ble_mesh: Check device uuid when init provisioning
2020-05-11 02:29:18 +00:00
lly
ca3d1637ca
ble_mesh: Fix provisioning buffer initialization [Zephyr]
...
When PB-GATT support has been enabled the provisioning code "borrows"
the buffer from the proxy code. However, the way that initialization
was happening the proxy buffers were initialized only after
provisioning initialization, resulting in a corrupted buffer with
buf->data pointing to NULL. Reorder the initialization calls so that
proxy is done first and provisioning only after it.
2020-05-11 02:29:18 +00:00
lly
6c868a070b
ble_mesh: Skip publish if update fails [Zephyr]
...
Allow models to skip a periodic publish interval by returning an error
from the publish update callback.
Previously, an error return from publish update would cancel periodic
publishing. This can't be recovered from, and as such, no valid model
implementation could return an error from this callback, and there was
no way to skip a periodic publish.
2020-05-11 02:29:18 +00:00
lly
aad8908d9c
ble_mesh: Enable Segmented Control Messages [Zephyr]
...
The function bt_mesh_ctl_send() used to support maximum length of
11 bytes. The segmentation complies with the BLE Mesh Standard.
The ack is disabled in case of non unicast address.
2020-05-11 02:29:18 +00:00
Michael (XIAO Xufeng)
f7ec57b615
Merge branch 'feature/usb_wrap_headers' into 'master'
...
usb: add usb_wrap headers, move some code from LL to HAL
See merge request espressif/esp-idf!8395
2020-05-10 19:19:14 +08:00
David Čermák
e86f530e42
Merge branch 'bugfix/mdns_config_stacksize' into 'master'
...
mdns: Allow config mDNS task stack size (GitHub PR)
Closes IDFGH-3219
See merge request espressif/esp-idf!8635
2020-05-09 19:49:15 +08:00
xiehang
0c7cac6ee3
esp_wifi: Fix AP switch to adjacent channel without disconnect
2020-05-09 17:26:51 +08:00
Jiang Jiang Jian
27d0ca52b2
Merge branch 'bugfix/fix_memleak_in_wpa3_feature' into 'master'
...
fix(wpa_supplicant): fix memleak in wpa3 feature
See merge request espressif/esp-idf!8643
2020-05-08 22:34:01 +08:00
Mahavir Jain
5425ef85ce
Merge branch 'bugfix/pthread_tcb_cleanup_wrapper' into 'master'
...
Fix linking for vPortCleanUpTCB wrapper
See merge request espressif/esp-idf!8652
2020-05-08 21:31:35 +08:00
Sachin Parekh
c0a33487b1
gdbstub_xtensa.c: Replace with cpu_ll_pc_to_ptr macro
...
Signed-off-by: Sachin Parekh <sachin.parekh@espressif.com>
2020-05-08 18:35:48 +05:30
Sachin Parekh
46d914ff45
gdb: Modify PC in case of invalid PC
...
Signed-off-by: Sachin Parekh <sachin.parekh@espressif.com>
2020-05-08 18:34:52 +05:30
Krzysztof Budzynski
fc4a5609ac
Merge branch 'bugfix/docs_esp_https_ota' into 'master'
...
Resolve documentation issue reported by boarchuz in...
See merge request espressif/esp-idf!8648
2020-05-08 16:30:42 +08:00
Hrishikesh Dhayagude
f67902a5dd
Add NimBLE config options in sdkconfig.rename
2020-05-08 12:04:46 +05:30
Shubham Kulkarni
4a83b488a8
pthread: Use INTERFACE in target_link_libraries for vPortCleanUpTCB wrapper
2020-05-08 11:55:23 +05:30
Michael (XIAO Xufeng)
178c7c2e82
Merge branch 'bugfix/spi_lock_suppress_alter_log' into 'master'
...
spi: suppress spi_bus_lock_touch log level
Closes IDFGH-3030
See merge request espressif/esp-idf!8634
2020-05-08 11:26:11 +08:00
Alexey Gerenkov
16726e9980
gcov: Fixes APP CPU syscall table
2020-05-08 03:13:18 +03:00
Krzysztof
f1c7b0ba6f
Resolve documentation issue reported by boarchuz in https://esp32.com/viewtopic.php?f=5&t=14148#p59419
2020-05-07 22:00:27 +02:00
Axel Lin
cf7e48c779
mdns: Allow config mDNS task stack size
...
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Merges https://github.com/espressif/esp-idf/pull/5216
2020-05-07 21:49:02 +02:00
David Čermák
3a2f059f11
Merge branch 'bugfix/pppos_connect_dhcpc_failed' into 'master'
...
esp_netif: fix default connect handler to check dhcpc return value
Closes IDFGH-3173
See merge request espressif/esp-idf!8581
2020-05-08 03:25:09 +08:00
David Cermak
65b993234d
esp_hid: fix memory leak if getting dev reports fails
2020-05-07 12:56:54 +00:00
Mahavir Jain
d7fb9d54ba
Merge branch 'feature/get_url' into 'master'
...
Add API to get URL from HTTP client
Closes IDFGH-3094
See merge request espressif/esp-idf!8637
2020-05-07 17:57:16 +08:00
Zhang Jun Hao
e9b3feb85d
fix(wpa_supplicant): fix memleak in wpa3 feature
2020-05-07 17:28:07 +08:00
Shubham Kulkarni
890f541edf
esp_http_client: Add API to get URL from client
...
Closes: https://github.com/espressif/esp-idf/issues/5115
2020-05-07 14:20:28 +05:30
Angus Gratton
b2fe7f681e
Merge branch 'bugfix/esp32_eco3_init_syscall_table' into 'master'
...
newlib: initialize syscall_table_ptr_app in single core mode
Closes IDFGH-3254
See merge request espressif/esp-idf!8596
2020-05-07 15:17:13 +08:00
Mahavir Jain
a2263571b5
Merge branch 'feature/mbedtls_chacha_poly' into 'master'
...
mbedtls: Add config options for chacha20, poly1305 and chachapoly
See merge request espressif/esp-idf!8605
2020-05-07 03:44:23 +08:00
Alexey Gerenkov
c91ed2b917
coredump: Increases FreeRTOS ISR stack for ELF data format
2020-05-06 20:07:30 +03:00
Michael (XIAO Xufeng)
e04bb43b9f
spi: suppress spi_bus_lock_touch log level
...
The log in the spi_bus_lock_touch may be annoying. This commit suppress
the log level, and make the log visible only when the device altered.
Resolves https://github.com/espressif/esp-idf/issues/5056
2020-05-07 00:32:24 +08:00
David Čermák
a064e0c4de
Merge branch 'bugfix/tcp_connect_tout' into 'master'
...
tcp_transport: Implement connect timeout
Closes IDFGH-2971, IDFGH-2810, and IDFGH-1541
See merge request espressif/esp-idf!8428
2020-05-06 20:07:05 +08:00
Alexey Gerenkov
ef1b3330c2
coredump: Fixes coredump data overwriting due to 'TaskSnapshot_t' and 'core_dump_task_header_t' difference
2020-05-06 15:04:58 +03:00
kapil.gupta
3b5fcbe06f
wpa_supplicant: Fix some memleaks and invalid memory access
...
Add changes to fix issues reported in clang analyzer
2020-05-06 10:31:59 +00:00
Ivan Grokhotkov
d5195d19ae
Merge branch 'feature/endian_h_compat_header' into 'master'
...
newlib: add endian.h header file for compatibility (Github PR)
See merge request espressif/esp-idf!8236
2020-05-06 16:54:41 +08:00
Jiang Jiang Jian
09d4767947
Merge branch 'mesh/power_save_function' into 'master'
...
mesh/ps: add duty control and support only transmit/receive on active duty
See merge request espressif/esp-idf!8152
2020-05-06 15:53:49 +08:00
David Cermak
c2053a8e65
esp_netif: fix default connect handler to check dhcpc return value
...
Closes https://github.com/espressif/esp-idf/issues/5184
2020-05-06 07:26:50 +02:00
Ivan Grokhotkov
a97cd645ad
Merge branch 'bugfix/linenoise_stack_alloc' into 'master'
...
console: linenoise: move allocations from stack to heap, fix calloc result checking (Github PR)
Merges https://github.com/espressif/esp-idf/pull/5161
Closes IDFGH-3144
See merge request espressif/esp-idf!8612
2020-05-06 13:21:56 +08:00
Ivan Grokhotkov
30a6a8f932
Update linenoise.c: calloc returning NULL is not handled
...
Calloc function tries to allocate 4096 bytes.
If such memory is not available, it returns NULL pointer.
This exception was not handled in the code, causing a dirty crash.
2020-05-06 13:21:56 +08:00
Jiang Jiang Jian
62c36a0372
Merge branch 'feature/enable_wpa3_pmf_by_default' into 'master'
...
esp_wifi: Enable WPA3 & PMF by default
See merge request espressif/esp-idf!8600
2020-05-06 10:53:13 +08:00
Piyush Shah
62e1d6712b
mbedtls: Add config options for chacha20, poly1305 and chachapoly
2020-05-05 16:41:31 +00:00
David Cermak
a8e370eced
tcp_transport: unit test for tcp connection timeout
2020-05-05 15:53:09 +02:00
David Cermak
6182e6f303
tcp_transport: close to return error only for socket error or invalid args
...
Closes https://github.com/espressif/esp-idf/issues/4872
2020-05-05 15:53:09 +02:00
boarchuz
0c7204e934
tcp_transport: Implement connect timeout
...
Merges https://github.com/espressif/esp-idf/pull/3791
Closes https://github.com/espressif/esp-idf/issues/5004
2020-05-05 15:53:09 +02:00
chenyudong
bdb6565757
mesh/ci: fix MESH_EST_0216
2020-05-05 18:07:31 +08:00
qiyuexia
4522ef8798
mesh: add duty cycle control and support only transmit/receive in actve duty cycle
2020-05-05 18:06:47 +08:00
Ivan Grokhotkov
d73470a8a6
Merge branch 'bugfix/loadable_elf_fixes' into 'master'
...
cmake: loadable elf fixes
See merge request espressif/esp-idf!8603
2020-05-05 17:02:48 +08:00
David Čermák
35386ba24c
Merge branch 'bugfix/ppp_netif_up_after_new' into 'master'
...
esp-netif: ppp netif to use netif_is_link_up() to update interface state
Closes IDFGH-3044
See merge request espressif/esp-idf!8423
2020-05-05 16:37:47 +08:00
Ivan Grokhotkov
b0f448a972
Merge branch 'feature/console_no_empty_lines' into 'master'
...
console: allow not returning empty lines (Github PR)
Closes IDFGH-2869
See merge request espressif/esp-idf!8232
2020-05-05 16:12:50 +08:00
Angus Gratton
a0a7051af3
Merge branch 'bugfix/panic_fixes' into 'master'
...
panic handling fixes
See merge request espressif/esp-idf!8597
2020-05-05 12:16:09 +08:00
Angus Gratton
cecf4622bc
Merge branch 'bugfix/secure_boot_v2_fixes' into 'master'
...
Small secure boot v2 fixes
See merge request espressif/esp-idf!8462
2020-05-05 11:13:30 +08:00
Ivan Grokhotkov
b09ed2d2aa
esptool: fix malformed json when no files are flashed
2020-05-04 19:11:26 +02:00
Ivan Grokhotkov
dafd50934d
esptool: don't generate flashing metadata in loadable elf build
2020-05-04 19:11:00 +02:00
Felipe Neves
6f5e43e26a
heap: added alloc failed hook and configuration options
...
heap/test: added alloc failed hook tests
docs: added alloc failed hook documentation
heap: add function to register allocation failed hook
docs: allocation failed hook docs improvements
2020-05-04 10:58:38 -03:00
Ivan Grokhotkov
aac3e56a9a
newlib: initialize syscall_table_ptr_app in single core mode
...
ESP32 ECO3 ROM uses syscall_table_ptr_app on both CPUs, so the pointer
needs to be set if running in single core mode.
2020-05-04 10:55:34 +00:00
Nachiket Kukade
107cf56e20
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 16:02:14 +05:30
Ivan Grokhotkov
66889a7a58
esp32s2: return correct CPU number in esp_cache_err_get_cpuid
2020-05-04 10:13:14 +00:00
Ivan Grokhotkov
c5f664d4ac
esp_system: remove duplicated esp_digital_reset function
...
esp_digital_reset was defined both in system_api.c and panic_handler.c
2020-05-04 10:13:14 +00:00
Ivan Grokhotkov
8bdfb265a4
panic handler: fix cache error handling
2020-05-04 10:13:14 +00:00
Ivan Grokhotkov
0a389b1764
esp_system: restore weak esp_reset_reason functions
2020-05-04 10:13:14 +00:00
Shubham Kulkarni
34d41645d3
touch_sensor.c: Fix datatype of argument for timer callback function
2020-05-04 13:26:58 +05:30
Shubham Kulkarni
f2cdebd906
esp_wps.c: Fix datatype for wps task handle
2020-05-04 13:26:58 +05:30
Ivan Grokhotkov
17d60faf17
Merge branch 'bugfix/ci_missed_deprecated_options' into 'master'
...
Fix missed deprecated Kconfig option caused by tabs in sdkconfig.rename
See merge request espressif/esp-idf!8585
2020-05-04 15:55:24 +08:00
Angus Gratton
d013105256
Merge branch 'feature/twdt_prints_backtrace' into 'master'
...
Add Task Watchdog backtrace printing
Closes IDF-1072
See merge request espressif/esp-idf!8136
2020-05-04 14:58:53 +08:00
Angus Gratton
bf23e66f2b
Merge branch 'bugfix/flash_enc_rom_basic' into 'master'
...
flash encryption: Fix unncessary efuse burn, remove ROM BASIC efuse on S2
See merge request espressif/esp-idf!8587
2020-05-04 14:56:27 +08:00
Ivan Grokhotkov
dfbf8ce518
Merge branch 'bugfix/display_partition_table' into 'master'
...
partition_table: do not always display partition table contents on build
See merge request espressif/esp-idf!8289
2020-05-04 14:51:32 +08:00
David Cermak
acdadebfff
esp-netif: ppp netif to use netif_is_link_up() to update interface state
...
Closes https://github.com/espressif/esp-idf/issues/5069
2020-05-04 06:46:35 +00:00
David Čermák
2e06e9c15b
Merge branch 'feature/dhcps_config_mask' into 'master'
...
dhcp sever: Make option netmask configurable
Closes IDFGH-2955
See merge request espressif/esp-idf!8238
2020-05-04 14:22:55 +08:00
David Čermák
6f4ea99f83
Merge branch 'bugfix/mqtt_ref_update' into 'master'
...
mqtt: cleanup logs and docs
Closes IDFGH-3052
See merge request espressif/esp-idf!8547
2020-05-04 13:41:08 +08:00
Angus Gratton
b2417819fd
Merge branch 'bugfix/erase_with_vtaskdelay' into 'master'
...
spi_flash: Add vTaskDelay while a long erasing
Closes IDF-1561 and IDFGH-261
See merge request espressif/esp-idf!8211
2020-05-04 08:46:08 +08:00
Angus Gratton
158ab5a9b9
Remove "disable ROM BASIC boot mode" from ESP32-S2
...
Feature removed from ESP32-S2 ROM (was present in S2 Beta ROM)
2020-05-01 16:16:47 +10:00
Angus Gratton
d4d4d7324a
efuse: Don't need to burn WR_CRYPT_CNT if CRYPT_CNT is already max
...
Reduces write cycles, and useful on ESP32 ECO3 as UART_DIS_DL is protected by
the same efuse.
Also fixes accidental macro definition introduced in 7635dce502
2020-05-01 16:16:47 +10:00
Roland Dobai
58bbd99b9c
Fix missed deprecated Kconfig option caused by tabs in sdkconfig.rename
2020-04-30 18:23:21 +02:00
David Cermak
78ea8a9ed5
mqtt: clenaup logs and docs
...
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
Closes https://github.com/espressif/esp-idf/issues/5077
(by means of referencing commit 615aeae0c2
)
2020-04-30 14:05:36 +00:00
David Cermak
2fce539d1e
esp-netif: use dhcp server netmask
...
Use the configured esp-netif netmask to update the dhcp struct when
starting the server or starting the netif itself.
Use the netmask in dhcps setters and getters.
2020-04-30 14:04:22 +00:00
David Cermak
fa57bdbdbe
dhcpserver: make subnet mask configurable
...
Closes https://github.com/espressif/esp-idf/issues/4988
2020-04-30 14:04:22 +00:00
Island
2ad2d0a701
Merge branch 'bugfix/ble_mesh_node_reset_erase' into 'master'
...
ble_mesh: Fix node not erase info completely
Closes BLEMESH-195
See merge request espressif/esp-idf!8561
2020-04-30 16:39:57 +08:00
Jiang Jiang Jian
4eec0ea4bb
Merge branch 'bugfix/optimization_API_esp_wifi_deauth_sta' into 'master'
...
bugfix: optimization API esp_wifi_deauth_sta
Closes WIFI-1699
See merge request espressif/esp-idf!8363
2020-04-30 16:20:32 +08:00
lly
eaeb465767
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-04-30 06:42:54 +00:00
Angus Gratton
d041512022
Merge branch 'feature/mesh_ip_network_example' into 'master'
...
ESP-MESH: IP internal network example
See merge request espressif/esp-idf!7724
2020-04-30 14:33:16 +08:00
KonstantinKondrashov
bc50bd2806
spi_flash(new driver): Add a Kconfig option - Bypass a block erase and always do sector erase
...
Closes: IDF-1561
2020-04-30 13:58:13 +08:00
KonstantinKondrashov
304f67e42a
spi_flash(LEGACY_IMPL): Add a Kconfig option - Bypass a block erase and always do sector erase
...
Closes: IDF-1561
2020-04-30 13:58:13 +08:00
KonstantinKondrashov
0f6fe0c8e9
spi_flash: Add into sim/stubs the esp_timer
2020-04-30 13:58:13 +08:00
KonstantinKondrashov
ae89f98d59
spi_flash(new driver): Add vTaskDelay while a long erasing
2020-04-30 13:58:13 +08:00
KonstantinKondrashov
3cb655eaab
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-04-30 13:58:13 +08:00
Angus Gratton
fdd6bfe3c4
Merge branch 'bugfix/sleep_comments' into 'master'
...
doc: Specify that sleep wakeup source restrictions apply to all current ESP32 revisions
See merge request espressif/esp-idf!8351
2020-04-30 13:36:58 +08:00
Francesco Giancane
1173ce32f6
endian.h: define non-standard symbols for endian handling
...
BSDs and Unices defined some non standardised functions and symbols used
for endianness handling: converting from Little Endian to Big Endian,
converting from Host to a specific representation, converting from a
specific representation to Host.
With this commit, a modified version of those symbols provided by
FreeBSD is imported.
The license of the imported code is still 2-Clause BSD.
Signed-off-by: Francesco Giancane <francesco.giancane@accenture.com>
Closes https://github.com/espressif/esp-idf/pull/4784
2020-04-29 23:47:51 +02:00
Francesco Giancane
6f8ce38f99
Introduce <endian.h> compatibility header
...
Programs and libraries using compiler and system information about
endianness often include the system header `<endian.h>`.
In `xtensa-gcc` compiler with `newlib` distribution, that file is located in
`<machine/endian.h>`; this means that `#include <endian.h>` would fail
at compile time.
This commit fixes the issue by adding a compatibility `<endian.h>`
header which in turn just includes `<machine/endian.h>`.
Signed-off-by: Francesco Giancane <francesco.giancane@accenture.com>
Merges https://github.com/espressif/esp-idf/pull/4784
2020-04-29 23:47:51 +02:00
Ivan Grokhotkov
ece41b04e3
console: make empty line behavior run-time configurable
2020-04-29 23:44:46 +02:00
Michael 'ASAP' Weinrich
c34352549a
Added Kconfig for enabling 0 length returns from linenoise
2020-04-29 23:44:46 +02:00
MadnessASAP
dfd4227e7a
Don't return NULL on 0 length input
...
A 0 length string is still a valid input and should be treated as such, a NULL return should be reserved for when errors occur during line editing or EOF is reached.
Merges https://github.com/espressif/esp-idf/pull/4926
2020-04-29 23:44:46 +02:00
Island
18950d5780
Merge branch 'bugfix/ble_mesh_provisioner_check_key' into 'master'
...
ble_mesh: Check if appkey exist before deleting it
See merge request espressif/esp-idf!8332
2020-04-29 21:12:14 +08:00
Jiang Jiang Jian
922a0fa485
Merge branch 'feature/esp-hid-component' into 'master'
...
ESP-HID Component
See merge request espressif/esp-idf!6908
2020-04-29 17:24:02 +08:00
Hristo Gochkov
25281ef4de
Add HID Support to IDF
...
- Adds HID Host support in Buedroid
- Adds BLE HID Host and Device support
- Adds some general HID utilities and definitions to help integrate with other stacks and native USB
2020-04-29 17:24:01 +08:00
Ivan Grokhotkov
d311144a00
soc/usb: use new headers in LL, move some code out of LL
...
* Keep only USB related register operations in the LL.
* Move pad-related logic into the driver.
* Driver is now responsible for enabling the peripheral.
2020-04-29 10:04:13 +02:00
Ivan Grokhotkov
897e69cc9d
soc, esp32s2: add usb_wrap peripheral
2020-04-29 10:04:13 +02:00
ronghulin
3c8ed7b8c9
bugfix: optimization API esp_wifi_deauth_sta
2020-04-29 14:31:16 +08:00
David Čermák
570bc3dbbc
Merge branch 'bugfix/mdns_remove_mbedtls_dep' into 'master'
...
mdns: Remove mbedtls dependency
Closes IDFGH-3177
See merge request espressif/esp-idf!8538
2020-04-29 13:47:47 +08:00
Angus Gratton
c41a0c1907
Merge branch 'feature/gdb_stub_task_state' into 'master'
...
feature/gdb_stub: make task state available on info thread command when in gdb stub.
Closes IDF-720
See merge request espressif/esp-idf!8371
2020-04-29 13:21:31 +08:00
Angus Gratton
5c1d317766
Merge branch 'bugfix/scheduling_time_test_overflow' into 'master'
...
bugfix/freertos: Fix accumulator overflow on scheduling time test
See merge request espressif/esp-idf!8261
2020-04-29 13:18:44 +08:00
zhangyanjiao
b96652c257
wifi changes:
...
1. fix the bug for softAP update second channel wrong
2. query country code wrong when policy change from manual to auto
3. change wifi_scan_time_t from union to struct
2020-04-28 20:02:25 +08:00
Jiang Jiang Jian
aad3b0e3a2
Merge branch 'bugfix/coex_fix_wifi_performance_when_ble_conn' into 'master'
...
Coexistence: Add coexist API to enable BLE connection dynamic priority
See merge request espressif/esp-idf!8466
2020-04-28 19:55:31 +08:00
Island
8ef0b66a3b
Merge branch 'bugfix/ble_mesh_compile_error_o2' into 'master'
...
ble_mesh: Fix compile error when -O2 (performance) is chosen
Closes BLEMESH-187
See merge request espressif/esp-idf!8217
2020-04-28 17:29:09 +08:00
Jiang Jiang Jian
1b5c42b9b0
Merge branch 'bugfix/supplicant_log_enable_issue' into 'master'
...
wpa_supplicant: Minor bugfix with wpa_supplicant debug logs.
See merge request espressif/esp-idf!8397
2020-04-28 16:29:19 +08:00
baohongde
95f47a2d4d
Coexistence: Add coexist API to enable BLE connection dynamic priority
2020-04-28 16:16:27 +08:00
Jiang Jiang Jian
528edf85cd
Merge branch 'bugfix/pmf_cert_fixes' into 'master'
...
esp_wifi: Update wifi lib
Closes WIFI-2251
See merge request espressif/esp-idf!8468
2020-04-28 14:41:12 +08:00
Nachiket Kukade
59e8e407a0
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:05:35 +05:30
Jiang Jiang Jian
df5cead7e6
Merge branch 'fixbug/tcp_kill_state_assert' into 'master'
...
lw-ip:fixbug for tcp kill state assert
Closes WIFI-2195
See merge request espressif/esp-idf!8449
2020-04-28 11:43:29 +08:00
Mahavir Jain
4a558131ea
Merge branch 'bugfix/http_client_read' into 'master'
...
Fix error handling in esp_http_client_read and esp_https_ota_perform
Closes IDFGH-2916 and IDF-1516
See merge request espressif/esp-idf!8166
2020-04-28 06:07:15 +08:00
Darian Leung
b097dd0a79
Add Task Watchdog backtrace printing
...
This commit makes the Task Watchdog print the backtrace of both
cores when it times out.
2020-04-27 18:11:29 +00:00
Felipe Neves
c78ddb770a
docs: added information of task states on fatal errors documentation.
2020-04-27 14:41:55 +00:00
Felipe Neves
c296d01737
gdbstub: added cpu id of running tasks to the output
2020-04-27 14:41:55 +00:00
Felipe Neves
5279e68146
gdbstub: improve format of info thread command output
...
gdbstub: simplify the state handling on extra thread info
2020-04-27 14:41:55 +00:00
Felipe Neves
9a54a0af13
gdbstub: added task state information on qThreadExtraInfo command
2020-04-27 14:41:55 +00:00
Felipe Neves
140c5e0677
freertos: added task state field inside of TaskSnapshot_t to capture it.
2020-04-27 14:41:55 +00:00
Felipe Neves
5847e0afd2
freertos/test: fix overflow on accumulator used on scheduling time test
2020-04-27 14:20:13 +00:00
Nachiket Kukade
f9970b8e29
esp_wifi: Update wifi lib
...
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-27 13:32:09 +00:00
Krzysztof Budzynski
c5c026557e
Merge branch 'doc/hmac_S2' into 'master'
...
Doc: Documentation for HMAC module
See merge request espressif/esp-idf!8383
2020-04-27 19:03:01 +08:00
Jiang Jiang Jian
17d7f3cb17
Merge branch 'fixbug/set_dhcp_time_fail' into 'master'
...
lw-ip:fixbug for set dhcp time fail
Closes WIFI-2152
See merge request espressif/esp-idf!8374
2020-04-27 16:48:34 +08:00
Jiang Jiang Jian
a559bf51ff
Merge branch 'bugfix/ble_mesh_time_scene_wrong_name' into 'master'
...
ble_mesh: Fix time scene wrong macro name
See merge request espressif/esp-idf!8331
2020-04-27 16:19:49 +08:00
lly
c8a7d20946
ble_mesh: Check if appkey exist before deleting it
2020-04-27 06:27:35 +00:00
lly
fab9b944a4
ble_mesh: Add length check for some mesh operations
2020-04-27 14:24:07 +08:00
lly
c77b7394ed
ble_mesh: Fix compile error when -O2 (performance) is chosen
2020-04-27 14:24:07 +08:00
Angus Gratton
9300615a13
Merge branch 'bugfix/heap_psram_fill' into 'master'
...
heap: Only fill new heaps with FREE_FILL_PATTERN if Comprehensive poisoning is on
See merge request espressif/esp-idf!8210
2020-04-27 14:20:41 +08:00
Shubham Kulkarni
21c2019973
esp_https_ota.c: Add fix to return failure if (-1) is returned from esp_http_client_read
...
Closes https://github.com/espressif/esp-idf/issues/4960
2020-04-27 05:17:04 +00:00
Shubham Kulkarni
4c166085fb
esp_http_client.c: In esp_http_client_read, add fix to return (-1) if esp_transport_read fails
2020-04-27 05:17:04 +00:00
Michael (XIAO Xufeng)
9d98111652
Merge branch 'bugfix/spi_bus_lock_missing_semphrstatic' into 'master'
...
spi: fix config break and reduce overhead of the bus lock on SPI1
Closes IDFGH-3017
See merge request espressif/esp-idf!8221
2020-04-27 12:57:19 +08:00
Jakob Hasse
2da7e65646
Doc: S2 HMAC documentation
2020-04-27 12:25:46 +08:00
lly
75cf2d7a17
ble_mesh: Fix time scene wrong macro name
2020-04-27 04:17:04 +00:00
Island
feb7f9683c
Merge branch 'bugfix/ble_mesh_add_missing_cpp' into 'master'
...
ble_mesh: Add missing #ifdef __cplusplus
Closes BLEMESH-194
See merge request espressif/esp-idf!8310
2020-04-27 11:47:44 +08:00
Island
1e12673b3c
Merge branch 'feat/ble_mesh_sensor_model_example' into 'master'
...
ble_mesh: Add ble mesh sensor model examples
Closes BLEMESH-190
See merge request espressif/esp-idf!8253
2020-04-27 11:47:06 +08:00
Island
71dc5eb276
Merge branch 'doc/ble_mesh_fixes' into 'master'
...
doc: Fix some ble mesh description
Closes BLEMESH-189
See merge request espressif/esp-idf!8240
2020-04-27 11:43:48 +08:00
lly
91d70cd128
ble_mesh: Add missing #ifdef __cplusplus
2020-04-26 06:50:35 +00:00
lly
77bb7806a0
ble_mesh: Fix client local parameters not initialized
2020-04-26 06:25:08 +00:00
lly
713581ae87
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-26 06:25:08 +00:00
lly
73804ef4d3
ble_mesh: Remove some redundant functions
2020-04-26 06:25:08 +00:00
lly
f37bc1a515
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-26 06:25:08 +00:00
lly
88b0cd918a
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-26 06:25:08 +00:00
lly
7486616382
ble_mesh: Update next alloc address when node info is added
2020-04-26 06:25:08 +00:00
lly
a4d9259912
ble_mesh: Fix Provisioner provisioning deadlock
2020-04-26 06:25:08 +00:00
lly
8d57ebf57d
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-26 06:25:08 +00:00
lly
ec2324edbe
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-26 06:25:08 +00:00
lly
2f6a4140fa
doc: Fix some ble mesh description
2020-04-26 06:22:33 +00:00
lly
e8c5f5dc03
ble_mesh: Add some common macros for sensor model
2020-04-26 06:08:44 +00:00
lly
361dd8b29c
ble_mesh: Allow empty sensor series column value
2020-04-26 06:08:44 +00:00
lly
561191d50f
ble_mesh: Check if same sensor (settings) property id exists
2020-04-26 06:08:44 +00:00
lly
3862f0e784
ble_mesh: Allow empty sensor settings exist
2020-04-26 06:08:44 +00:00
Axel Lin
f4a4549a34
mdns: Remove mbedtls dependency
...
mdns does not use mbedtls, so remove mbedtls dependency.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
2020-04-26 12:07:28 +08:00
Angus Gratton
bb0a95b17c
spi_flash s2: Fix encrypted writes when legacy implementation disabled
...
ROM function didn't use correct Addr bitlen if legacy was disabled on ESP32-S2
2020-04-24 12:43:47 -03:00
Angus Gratton
dbdce93d23
spi_flash: Use per-chip flash_ops files for legacy API
...
Looks like when ESP32-S2 Beta support was merged, the separate files
were dropped by accident.
2020-04-24 12:43:47 -03:00
Felipe Neves
95bc186846
flash_encryption: Fix next spi boot crypt counter value after a plaintext flash
2020-04-24 12:43:47 -03:00
Felipe Neves
f7ccc081a5
flash_encryption: replace spi crypt count efuse burning function by a esp_efuse_API
...
flash_encryption: modify additional efuses burning method to fix them are not being written
flass_encryption: burn efuse to disable boot from RAM space
flash_encryption: added better checking for key generation state plus set read and write protect for them
soc esp32s2: Add register-level bit definitions for read & wrote protect bits
esp32s2: Fixes for flash encryption
- Write efuses in a batch
- Fix some detection of whether existing efuse blocks are read/write protected
2020-04-24 12:43:47 -03:00
Felipe Neves
6f27992430
flash_encryption: return more clear error codes when bootloader encryption fails
2020-04-24 12:43:47 -03:00
Felipe Neves
b3d8847406
flash_encryption: added wdt feed during encryption process to avoid undesired reset.
2020-04-24 12:43:47 -03:00
Felipe Neves
7635dce502
bootloader/flash_encrypt: added esp32s2 flash encryption code on build system and enabled example
...
flash_enctryption: enabled flash encryption example on esp32s2
bootloader: raise WDT overflow value providing sufficient interval to encrypt app partition
flash_ encrypt: Fixed the TODOs on flash encryption key generation for esp32s2
flash_encryption: added secure boot features to flash enctryption for esp32s2
bootloader: leave only esp32s2 compatible potentially insecure options on menuconfig.
flash_encryption: removed secure boot version 1 from esp32s2 encryption code
flash_encryption: added CONFIG_SECURE_FLASH_REQUIRE_ALREADY_ENABLED option for esp32s2
flash_encryption: fixed the count of left plaintext flash
flash_encryption: disable dcache and icache download when using encryption in release mode
flash_encryption: add cache potentally insecure options for s2 chips
flash_encryption: fixed bug which bricked some chips in relase mode
2020-04-24 12:43:47 -03:00
Ivan Grokhotkov
cd1aba595e
Merge branch 'bugfix/mpu_panic' into 'master'
...
Fix issue with mpu illegal access test
See merge request espressif/esp-idf!8418
2020-04-24 20:54:08 +08:00
Michael (XIAO Xufeng)
77d5e4b4e2
Merge branch 'bugfix/timer_group_intr_enable' into 'master'
...
Bugfix/timer group intr enable
Closes IDFGH-3082
See merge request espressif/esp-idf!8340
2020-04-24 18:28:36 +08:00
Renz Bagaporo
5abb4f6455
esp_system, esp_common: fixes to some panic handler refactor issues
2020-04-24 16:34:15 +08:00
Renz Bagaporo
4571fb219f
soc: change region in mpu test
...
Previously, the test uses region 3 for the illegal access test
(0x60000000 - 0x7fffffff). This caused issues with there being
peripherals located in that memory range. Change to use region 4
(0x8000000 - 0x9fffffff) instead).
2020-04-24 16:34:15 +08:00
David Cermak
9e58d94a42
esp-mesh: Added example showing internal IP capable mesh network
2020-04-24 07:32:58 +02:00
David Cermak
bcee69ae06
esp-netif: Enable easier configuration of custom DHCP server address
2020-04-24 07:32:58 +02:00
Angus Gratton
b26f93415e
secure boot v2: Add anti-FI check that secure boot not enabled yet
...
Prevent a fault from causing bootloader to trust the provided signature incorrectly.
2020-04-24 15:03:31 +10:00
Angus Gratton
fc4b653729
secure boot v2: Don't check efuse BLK2 if only boot-time signature verification is enabled
2020-04-24 15:03:03 +10:00
Angus Gratton
fc0d6a99f8
secure boot v2: Don't log warnings when BLK2 is empty as expected
...
If BLK2 is empty then it's OK to continue with a warning (otherwise it may spook users into thinking
something this is wrong, but this is the expected workflow.)
If BLK2 is not empty and doesn't match then we need to fail because it won't be possible to
trust the signature.
2020-04-24 14:43:55 +10:00
Jiang Jiang Jian
79288f25e4
Merge branch 'bugfix/fix_esp32s2_package_recv_issue' into 'master'
...
esp_wifi: Update esp32s2 phy lib v303
Closes WIFI-2141 and WIFI-2142
See merge request espressif/esp-idf!8321
2020-04-24 11:19:48 +08:00
Ivan Grokhotkov
275ed32a11
Merge branch 'feature/esp32s2_iram_dram_protection' into 'master'
...
esp32s2: IRAM/DRAM memory protection
See merge request espressif/esp-idf!8156
2020-04-23 21:52:54 +08:00
morris
91e62f4e37
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-23 19:29:15 +08:00
morris
e0b9f7be6d
periph_clk_gating: add reference counter
2020-04-23 19:29:15 +08:00
morris
99f0dc78c8
soc: remove mcpwm description file from esp32s2
2020-04-23 19:26:55 +08:00
xueyunfei
4e2989e40c
fixbug for tcp kill state assert
2020-04-23 15:38:49 +08:00
Michael (XIAO Xufeng)
7ec4d64b80
spi: Update documents about the bus lock and how to use SPI Master on SPI1 bus
2020-04-23 12:27:25 +08:00
Ivan Grokhotkov
28efe511f4
Merge branch 'bugfix/semihosting_write' into 'master'
...
Semihosting fixes for write and the semihost example
See merge request espressif/esp-idf!8290
2020-04-23 06:26:41 +08:00
Mahavir Jain
44939a6b1e
Merge branch 'feature/iram_data_bss' into 'master'
...
esp32: IRAM_DATA_ATTR and IRAM_BSS_ATTR introduced
See merge request espressif/esp-idf!8377
2020-04-22 21:44:44 +08:00
michael
1ca25688a8
freertos: place xQueueGenericCreateStatic
into flash
...
`xQueueGenericCreateStatic` is placed into flash by the linker script to
reduce IRAM usage. This will also cause the `xRingbufferCreate` not
not callable when cache is disabled.
2020-04-22 16:06:13 +08:00
michael
fdf983e0c4
spi: fix config break and reduce overhead of the bus lock on SPI1
...
The SPI bus lock on SPI1 introduces two side effects:
1. The device lock for the main flash requires the
`CONFIG_FREERTOS_SUPPORT_STATIC_ALLOCATION` to be selected, however this
option is disabled by default in earlier IDF versions. Some developers
may find their project cannot be built by their old sdkconfig files.
2. Usually we don't need the lock on the SPI1 bus, due to it's
restrictions. However the overhead still exists in this case, the IRAM
cost for static version of semaphore functions, and the time cost when
getting and releasing the lock.
This commit:
1. Add a CONFIG_SPI_FLASH_BYPASS_MAIN_LOCK option, which will forbid the
space cost, as well as the initialization of the main bus lock.
2. When the option is not selected, the bus lock is used, the
`CONFIG_FREERTOS_SUPPORT_STATIC_ALLOCATION` will be selected explicitly.
3. Revert default value of `CONFIG_FREERTOS_SUPPORT_STATIC_ALLOCATION`
to `n`.
introduced in 49a48644e4
.
Closes https://github.com/espressif/esp-idf/issues/5046
2020-04-22 16:06:13 +08:00
Wang Jia Lin
e3f85faee5
Merge branch 'bugfix/fix_spi_flash_clock_config_error' into 'master'
...
flash: fix spi flash clock config error
Closes IDFGH-3077
See merge request espressif/esp-idf!8384
2020-04-22 12:44:17 +08:00
Martin Vychodil
7491ea677a
esp32s2: IRAM/DRAM memory protection
...
* new mem_prot API
* mem_prot on & locked by default (see Kconfig)
* feature activated in start_cpu0_default()
JIRA IDF-1355
2020-04-21 15:10:58 +02:00
Michael (XIAO Xufeng)
e2fc591a20
Merge branch 'bugfix/esp_flash_revert_qe_clear' into 'master'
...
esp_flash: fix the regression of non-quad mode by default chip driver, bugs in add_device and deprecate cs_id
See merge request espressif/esp-idf!8260
2020-04-21 17:52:42 +08:00
xueyunfei
b2a3b2a4f4
fixbug for set dhcp time fail
2020-04-21 14:28:39 +08:00
Ivan Grokhotkov
1a7dbe22da
Merge branch 'bugfix/wrong_cpp_guard' into 'master'
...
Bugfix/wrong cpp guard
Closes IDFGH-3129 and IDF-1219
See merge request espressif/esp-idf!8403
2020-04-20 18:47:28 +08:00
Jiang Jiang Jian
80e5eb896c
Merge branch 'optimization/DNS_get_function' into 'master'
...
lw-ip:optimization DNS get function
Closes WIFI-1566
See merge request espressif/esp-idf!8244
2020-04-20 16:52:22 +08:00
morris
5d0860f2e8
fix broken CONFIG_LEGACY_INCLUDE_COMMON_HEADERS
2020-04-20 14:01:09 +08:00
Hrudaynath Dhabe
d8a7cfdde4
wpa_supplicant: Minor bugfix with wpa_supplicant debug logs.
2020-04-19 16:40:06 +05:30
dowster
7b02fdf45a
Fix typo with sigmadelta.h #ifdef
2020-04-17 22:52:00 -05:00
Sachin Parekh
1e6c25992e
esp32: IRAM_DATA_ATTR and IRAM_BSS_ATTR introduced
...
Using these attributes, .data and .bss can be placed in IRAM
Signed-off-by: Sachin Parekh <sachin.parekh@espressif.com>
2020-04-17 19:35:23 +05:30
Michael (XIAO Xufeng)
9d9d22c920
esp_flash: deprecate the cs_id member, which is no longer used.
...
We used to manually specify the CS id. However after the SPI bus lock is
introduced, the lock is responsible to assign the CS lines and provide
the CS id. The esp_flash driver now depends on the ID assigned by the
SPI bus lock, the configuration field is deprecated.
2020-04-17 18:15:33 +08:00
Michael (XIAO Xufeng)
5404e3d434
esp_flash: fix cache exception when CS pin is through IOMUX
2020-04-17 18:15:33 +08:00
Michael (XIAO Xufeng)
11501dbaa9
esp_flash: fix the cleanup when add device fails
2020-04-17 18:15:32 +08:00
Michael (XIAO Xufeng)
dc26065a72
esp_flash: fix the regression of non-quad mode by default chip driver
...
The issue is introduced in 571864e8ae
. The
esp_flash API tries to clear the QE bit when the flash is not working in
quad modes.
However this introduces a regression, compared to earlier versions and
the legacy API. When the chip is not detected, the generic chip driver
is used, which cannot 100% handle the QE bit properly for all flash
vendors. There may be some flash chips (e.g. MXIC) that can be used in
dual modes by legacy API, but output wrong data when the esp_flash API
clears the QE bit in a wrong way.
This commit reverts the QE force clearing behavior, so that it's safer
for the generic chip driver to work under dual modes.
2020-04-17 18:15:31 +08:00
Ivan Grokhotkov
b732abec7f
Merge branch 'bugfix/freemodbus_add_cpp_extern' into 'master'
...
freemodbus: add extern c block into common header for cpp
Closes IDFGH-3046
See merge request espressif/esp-idf!8281
2020-04-17 17:56:51 +08:00
Alex Lisitsyn
b1fe4c4cc6
freemodbus: add extern c block into common header for cpp
2020-04-17 17:56:50 +08:00
Ivan Grokhotkov
9003c01b4b
Merge branch 'init_priority_fix' into 'master'
...
CXX: make __attribute__((init_priority(n))) work
See merge request espressif/esp-idf!8276
2020-04-17 17:56:10 +08:00
chenjianqiang
ec9cc27e08
flash: fix spi flash clock config error
...
Closes https://github.com/espressif/esp-idf/issues/5099
2020-04-17 16:26:26 +08:00
Mahavir Jain
4e71cb3e68
Merge branch 'bugfix/transport_ssl_reset_state_on_closure' into 'master'
...
transport_ssl: reset state on connection closure
See merge request espressif/esp-idf!8355
2020-04-16 12:38:58 +08:00
David Čermák
d043674b2b
Merge branch 'feature/lwip_napt_forward' into 'master'
...
lw-IP: NAT support
Closes WIFI-931
See merge request espressif/esp-idf!7681
2020-04-16 03:03:00 +08:00
Andrei Gramakov
283026a761
vfs: semihost driver bugfix
2020-04-15 15:46:47 +02:00
Ivan Grokhotkov
882fd1b880
Merge branch 'bugfix/make_quoting_esptool_port' into 'master'
...
make: Fix quoting when flashing port is set via sdkconfig file
Closes IDFGH-3103 and IDFGH-3083
See merge request espressif/esp-idf!8352
2020-04-15 20:37:20 +08:00
xiehang
5d20610874
esp_wifi: Update esp32s2 phy lib v303
2020-04-15 20:18:42 +08:00
Mahavir Jain
49ce8d3fe5
transport_ssl: reset state on connection closure
...
For url redirection cases (HTTP status 301/302), internal
transport ssl connection state must be reinitialized for
successful (new) connection on updated url.
Closes https://github.com/espressif/esp-idf/issues/4598
2020-04-15 15:22:32 +05:30
Angus Gratton
100578a9e9
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-15 07:16:08 +00:00
Angus Gratton
433c1c9ee1
Merge branch 'bugfix/ds_mpi_lock' into 'master'
...
crypto: DS uses RSA peripheral, added shared lock
See merge request espressif/esp-idf!8274
2020-04-15 15:15:25 +08:00
David Čermák
7993d5c1f7
Merge branch 'bugfix/mqtt_aborts' into 'master'
...
esp_mqtt_abort_connection: Fixed an issue which could result in a race condition
Closes IDF-1521
See merge request espressif/esp-idf!8205
2020-04-15 14:37:01 +08:00
David Čermák
5e51b5dd09
Merge branch 'bugfix/ws_client_fragmented_send' into 'master'
...
ws_client: fix fragmented send setting proper opcodes
Closes IDFGH-2938
See merge request espressif/esp-idf!8112
2020-04-15 14:06:42 +08:00
Jiang Jiang Jian
80cee782a6
Merge branch 'bugfix/make_compile_phy_multiple_bin_error' into 'master'
...
bugfix: fix make compile phy multiple bin error
See merge request espressif/esp-idf!8299
2020-04-15 14:03:27 +08:00
David Čermák
e7b80f2b71
Merge branch 'feature/pppos_client_test' into 'master'
...
PPPoS client test
Closes IDF-310, WIFI-1652, IDFGH-2844, and IDFGH-2732
See merge request espressif/esp-idf!7794
2020-04-15 13:57:36 +08:00
Angus Gratton
90b3676280
make: Fix quoting when flashing port is set via sdkconfig file
...
Regression in 862fa815ff
Closes https://github.com/espressif/esp-idf/issues/5124
Closes https://github.com/espressif/esp-idf/issues/5104
2020-04-15 15:43:36 +10:00
Jiang Jiang Jian
0f1680c752
Merge branch 'feature/dpp_porting' into 'master'
...
wpa_supplicant: Port DPP crypto functionality from mainline supplicant repository.
See merge request espressif/esp-idf!7513
2020-04-15 13:37:30 +08:00
xueyunfei
8b036a8405
optimization DNS get function
2020-04-15 03:06:28 +00:00
ronghulin
f5f2cbcb50
bugfix: fix make compile phy multiple bin error
2020-04-15 10:19:54 +08:00
Angus Gratton
552bf7be4a
doc: Specify that sleep wakeup source restrictions apply to all current ESP32 revisions
...
Closes https://github.com/espressif/esp-idf/issues/4681
Discussion https://esp32.com/viewtopic.php?f=13&t=15145
2020-04-15 09:39:10 +10:00
David Cermak
6aabfd50d5
pppos_client: support for PPPAUTHTYPE_NONE
...
Closes https://github.com/espressif/esp-idf/issues/4616
Closes WIFI-1652
2020-04-14 21:46:07 +02:00
Piyush Shah
6c09993e20
esp_mqtt_abort_connection: Fixed an issue which could result in a race condition and subsequent crash
2020-04-14 16:18:20 +02:00
David Cermak
14992e62c5
ws_client: fix fragmented send setting proper opcodes
...
Previous implementation violated the RFC by having both the actual opcode and WS_FIN flag set for all fragments of a message.
Fixed by setting the opcode only for the first fragment and WS_FIN for the last one
Closes IDFGH-2938
Closes https://github.com/espressif/esp-idf/issues/4974
2020-04-14 16:11:32 +02:00
David Cermak
94d320473c
LwIP: NAPT functionality
...
Adds Kconfig option to enable experimental NAPT feature for IP packet
forwarding across interfaces.
Closes https://github.com/espressif/esp-idf/issues/1527
2020-04-14 16:04:37 +02:00
kapil.gupta
ab784bb53a
wpa_supplicant: Port dpp feature from supplicant
...
Add files required for DPP feature from upstream.
These file expose the functionality to create DPP packets.
Ported crypto layer from openssl to mbedtls.
Interfacing to use these API will be added in seperate commit
2020-04-14 18:53:35 +05:30
kangping
4883010f40
mbedtls: add configuration options for EC-JPAKE
...
Closes https://github.com/espressif/esp-idf/pull/5106
2020-04-14 12:22:16 +00:00
Mahavir Jain
4f8a88b145
Merge branch 'bugfix/esp_tls_conn_write_doc' into 'master'
...
Fixed `esp_tls_conn_write` documentation.
See merge request espressif/esp-idf!7999
2020-04-14 14:34:08 +08:00
Jiang Jiang Jian
8a7db8f513
Merge branch 'bugfix/fix_errors_with_mbedtls_disabled' into 'master'
...
wpa_supplicant: Fix compilation errors when USE_MBEDTLS is disabled.
See merge request espressif/esp-idf!8305
2020-04-10 21:17:03 +08:00
Marius Vikhammer
71ab83cdfb
aes: increase timeout for "mbedtls AES performance" test
...
Timeout increased to 60 sec from default 30 sec.
Test would occasionally timeout on S2 due to cache misses.
2020-04-10 15:49:40 +08:00
Michael (XIAO Xufeng)
69b6ca6a70
Merge branch 'bugfix/mcpwm_period_error_MR' into 'master'
...
bugfix(mcpwm_period_error): fix the issue of wrong period
See merge request espressif/esp-idf!7734
2020-04-10 15:26:12 +08:00
Jiang Jiang Jian
3feffdfe03
Merge branch 'bugfix/psram_single_bit_error' into 'master'
...
bugfix(psram): support psram 2T mode to fix single bit error
See merge request espressif/esp-idf!6936
2020-04-10 15:04:15 +08:00
Wang Jia Lin
b3d8b6a250
Merge branch 'bugfix/fix_esp32s2_soc_bug' into 'master'
...
RTC regulator & voltage calibration fixes
See merge request espressif/esp-idf!8137
2020-04-10 14:25:41 +08:00
Chai Ji’e
dac17709ec
RTC regulator & voltage calibration fixes
2020-04-10 14:25:40 +08:00
Sagar Bijwe
665b0b4b3b
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-09 16:53:41 +05:30
Marius Vikhammer
a2a204c2b9
crypto: DS uses RSA peripheral, added shared lock
2020-04-09 11:11:04 +00:00
Anton Maklakov
445e847274
Merge branch 'bugfix/ci_app_test_dependency' into 'master'
...
CI: correct example vs. custom tests dependency
See merge request espressif/esp-idf!8258
2020-04-09 14:02:13 +08:00
Angus Gratton
766d8844e6
Merge branch 'bugfix/test_sha_ccomp_timer' into 'master'
...
esp32s2 sha test: update "Test esp_sha" to use cache compensated timer for performance measuring
See merge request espressif/esp-idf!8237
2020-04-09 12:25:58 +08:00
Ivan Grokhotkov
2e14149bff
Merge branch 'feat/monitor_remake_with_serial_arg' into 'master'
...
idf_monitor: support to re-flash with the using port
Closes IDFGH-2479 and IDF-836
See merge request espressif/esp-idf!6373
2020-04-09 05:43:32 +08:00
Ivan Grokhotkov
8bf18d868a
Merge branch 'bugfix/crt_bundle_mem_leak' into 'master'
...
cert bundle: Fix memory leak during cert verification
Closes IDFGH-2950
See merge request espressif/esp-idf!8117
2020-04-09 05:41:41 +08:00
Ivan Grokhotkov
7a972c7191
Merge branch 'bugfix/nvs_erase_more_graceful' into 'master'
...
NVS: more graceful behavior for erasing partitions
See merge request espressif/esp-idf!7885
2020-04-09 05:41:17 +08:00
David Cermak
6d07bcd611
mqtt-tests: rename tests to match the actual group
2020-04-08 14:41:05 +02:00
Ivan Grokhotkov
651dbe48e7
Merge branch 'feature/gcovr' into 'master'
...
app_trace: Add coverage generations by gcovr
Closes IDF-780
See merge request espressif/esp-idf!8168
2020-04-08 15:57:08 +08:00
Angus Gratton
9300f0e7b0
Merge branch 'bugfix/logging_compilation_fix_anti_rollback' into 'master'
...
Minor fix logging issue hindering compilation on anti rollback.
See merge request espressif/esp-idf!8105
2020-04-08 15:53:48 +08:00
Angus Gratton
2bdf22b25d
Merge branch 'bugfix/sha_alloc_fallback' into 'master'
...
sha: add fallback for when memory alloc fails
See merge request espressif/esp-idf!8177
2020-04-08 14:15:52 +08:00
Angus Gratton
573d5f4eb0
Merge branch 'bugfix/flash_target_deps_on_spiffs_gen_images' into 'master'
...
spiffs: restore dependency of flash targets on spiffs images
See merge request espressif/esp-idf!8277
2020-04-08 12:43:11 +08:00
Angus Gratton
73825cfd8a
Merge branch 'bugfix/elf_dir' into 'master'
...
cmake: add elf dir information
See merge request espressif/esp-idf!8264
2020-04-08 12:41:23 +08:00
Angus Gratton
5d3591c037
Merge branch 'bugfix/mpu_hal' into 'master'
...
soc: mpu hal fixes
See merge request espressif/esp-idf!7895
2020-04-08 12:40:53 +08:00
Renz Bagaporo
acb7a211dd
partition_table: do not always display partition table contents on build
2020-04-08 11:38:43 +08:00
Jakob Hasse
4943b1cbf0
CXX: make __attribute__((init_priority(n))) work
...
* Added corresponding test case
* Moved all C++ init tests to separate file
Closes https://github.com/espressif/esp-idf/issues/5038
2020-04-08 09:11:54 +08:00
Marius Vikhammer
832599718d
cert bundle: add server_root.pem incase bundle needs to be regenerated
2020-04-07 18:51:26 +08:00
Marius Vikhammer
9ccc5e6d84
cert bundle: Fix memory leak during cert verification
...
Also refactors the unit tests and fixes the test case, as it was giving false positives.
Closes IDFGH-2950
Closes https://github.com/espressif/esp-idf/issues/4983
2020-04-07 18:50:30 +08:00
Renz Bagaporo
07f9978df7
cmake: add elf dir information
...
Solves https://www.esp32.com/viewtopic.php?f=13&t=14784&p=57557&hilit=assumes#p57557
2020-04-07 17:19:33 +08:00
Renz Bagaporo
9a020cbb40
spiffs: restore dependency of flash targets on spiffs images
...
Closes https://github.com/espressif/esp-idf/issues/5066
2020-04-07 17:01:58 +08:00
Renz Bagaporo
d2ad5d937e
soc: add test for setting mpu illegal access
2020-04-07 11:38:26 +08:00
Renz Bagaporo
ece80dbc8e
soc: mpu hal fixes
2020-04-07 11:38:26 +08:00
ronghulin
c65c30c60a
bugfix: fix esp_wifi_stop crash issue
2020-04-07 11:12:43 +08:00
Angus Gratton
604360b98c
Merge branch 'feature/efuse_purpose_api' into 'master'
...
efuse: Add an API to return the efuse descriptor for a key block's purpose field
See merge request espressif/esp-idf!8269
2020-04-07 08:26:45 +08:00
michael
862fa815ff
esptool: add quotes to allow complicated serial port path
...
Especially for Windows COM format: \\\.\COMx, introduced in
b00cea250f
2020-04-07 01:31:39 +08:00
Ivan Grokhotkov
f7ca36513e
Merge branch 'feature/semihosting_refactoring' into 'master'
...
Feature/semihosting refactoring
See merge request espressif/esp-idf!7475
2020-04-06 23:44:52 +08:00
Mahavir Jain
9d67c1548e
Merge branch 'bugfix/esp_http_client_add_warning' into 'master'
...
Add error print in http_header_generate_string if buffer size
Closes IDFGH-2996
See merge request espressif/esp-idf!8265
2020-04-06 18:02:41 +08:00
Anton Maklakov
fa3131b870
Merge branch 'bugfix/bash_bin_env' into 'master'
...
global: use '/usr/bin/env bash' instead of '/usr/bin/bash' in shebangs
Closes IDFGH-708
See merge request espressif/esp-idf!8235
2020-04-06 17:51:43 +08:00
Angus Gratton
16ad24dd00
efuse: Add an API to return the efuse descriptor for a key block's purpose field
2020-04-06 18:33:11 +10:00
Shubham Kulkarni
471b40b0f0
http_header.c: Add error print in http_header_generate_string if buffer size is less than required size
...
Closes: https://github.com/espressif/esp-idf/issues/5028
2020-04-06 13:22:08 +05:30
Marius Vikhammer
0a41bd3833
esp32s2 sha test: update "Test esp_sha" to use cache compensated timer for performance measuring
2020-04-06 06:37:28 +00:00
Jiang Jiang Jian
7d0f1536e4
Merge branch 'bugfix/fix_adc_init_code_setting_for_esp32s2' into 'master'
...
driver(adc): fix adc calibration for esp32s2
See merge request espressif/esp-idf!8209
2020-04-04 16:06:16 +08:00
fuzhibo
406b8f423d
driver(adc): add adc initial code before app_main for esp32s2.
...
update phy v301
2020-04-04 10:15:30 +08:00
Andrei Gramakov
305592f1aa
vfs: semihosting driver update supporting semihosting_common handler from OpenOCD
...
- implemented SYS_DRVINFO syscall and version handling for the semihosting driver
- removed a support of old oocd versions
renamed kconfig options:
- CONFIG_SEMIHOSTFS_HOST_PATH_MAX_LEN to CONFIG_VFS_SEMIHOSTFS_HOST_PATH_MAX_LEN
- CONFIG_SEMIHOSTFS_MAX_MOUNT_POINTS to CONFIG_VFS_SEMIHOSTFS_MAX_MOUNT_POINTS
2020-04-03 16:19:06 +02:00
Michael (XIAO Xufeng)
a0e66fef08
spi: fix the memory accessed while cache disabled issue in the bus lock when log level is verbose
...
When CONFIG_LOG_DEFAULT_LEVEL is verbose, the ESP_(EARLY_)LOGx will try
to print with format string and tag out of the DRAM while the cache is
disabled. This commit puts the TAG into DRAM, and uses the
'ESP_DRAM_LOGx` to fix the cache miss bug.
Also fixes a LoadProhibited issue when last_dev is NULL.
2020-04-03 15:04:52 +02:00
Ivan Grokhotkov
60086d1bd0
Merge branch 'refactor/systimer_hal' into 'master'
...
systimer: add HAL layer
See merge request espressif/esp-idf!8115
2020-04-03 18:17:18 +08:00
Michael (XIAO Xufeng)
61ce037fc1
Merge branch 'feat/esp_flash_support_mxic' into 'master'
...
esp_flash: support MXIC flash chips
See merge request espressif/esp-idf!8037
2020-04-03 16:04:49 +08:00
Michael (XIAO Xufeng)
2f8a13c89b
Merge branch 'feat/esp_dram_log' into 'master'
...
log: new macros to log when the cache is disabled
See merge request espressif/esp-idf!8135
2020-04-03 14:51:02 +08:00
Angus Gratton
a7c2e86f87
Merge branch 'feature/ds_peripheral' into 'master'
...
Security: ESP32S2 Digital Signature HW support
See merge request espressif/esp-idf!8080
2020-04-03 12:10:13 +08:00
Jakob Hasse
98b1da9e60
NVS: more graceful behavior for erasing partitions
2020-04-03 11:48:07 +08:00
Ivan Grokhotkov
e94288da31
global: use '/usr/bin/env bash' instead of '/usr/bin/bash' in shebangs
...
Using the method from @cemeyer
(https://github.com/espressif/esp-idf/pull/3166 ):
find . -name \*.sh -exec sed -i "" -e 's|^#!.*bin/bash|#!/usr/bin/env bash|' {} +
Closes https://github.com/espressif/esp-idf/pull/3166 .
2020-04-03 01:10:02 +02:00
Jiang Jiang Jian
79eb0d7a7d
Merge branch 'bugfix/fix_ble_hci_desync_deadlock' into 'master'
...
components/bt: Fix for HCI desync deadlock issue in BLE controller
See merge request espressif/esp-idf!8106
2020-04-02 22:22:17 +08:00
Krzysztof Budzynski
7a92dd431f
Merge branch 'bugfix/partition_types_cxx' into 'master'
...
docs: Explain custom partition types/subtypes in more detail
Closes IDFGH-2882
See merge request espressif/esp-idf!8192
2020-04-02 21:52:52 +08:00
Jiang Jiang Jian
59660c67cd
Merge branch 'mesh/power_save_function_with_local_duty' into 'master'
...
mesh/ps: add mesh network power save function
See merge request espressif/esp-idf!8203
2020-04-02 19:43:12 +08:00
Angus Gratton
dcaa9e385a
Merge branch 'bugfix/restore_rtc_wdt_driver' into 'master'
...
Restore rtc_wdt driver
Closes IDF-1514
See merge request espressif/esp-idf!8148
2020-04-02 19:11:49 +08:00
sushant.chougule
4cd6f09427
components/bt: Fix for HCI desync deadlock issue in BLE controller
2020-04-02 09:54:16 +00:00
Michael (XIAO Xufeng)
188240d5c7
log: new macros to log when the cache is disabled
2020-04-02 15:35:13 +08:00
David Čermák
3de8b7922f
Merge branch 'bugfix/reenable_esp32s2_ut' into 'master'
...
Re-enable mqtt/esp-netif unit tests for esp32s2
Closes IDF-1398 and IDF-1396
See merge request espressif/esp-idf!8038
2020-04-02 14:43:21 +08:00
Jiang Jiang Jian
037ad6f64e
Merge branch 'bugfix/fix_supplicant_tlsv12' into 'master'
...
wpa_supplicant: Fix wpa_supplicant TLS 1.2 issues
Closes WIFI-2003
See merge request espressif/esp-idf!8147
2020-04-02 12:17:59 +08:00
Jiang Jiang Jian
20a972d91e
Merge branch 'feat/ble_mesh_ble_adv_simultaneously' into 'master'
...
ble_mesh: Support BLE advertising simultaneously
Closes BLEMESH-125
See merge request espressif/esp-idf!7802
2020-04-02 12:17:42 +08:00
Jiang Jiang Jian
881cdbd743
Merge branch 'nimble/fix_ble_hs_reset' into 'master'
...
NimBLE: Reset master and slave states on host reset
Closes IDFGH-2743
See merge request espressif/esp-idf!8139
2020-04-02 12:16:49 +08:00
Michael (XIAO Xufeng)
15026d1b84
Merge branch 'bugfix/fix_adc_driver_for_esp32s2' into 'master'
...
Bugfix/fix adc driver for esp32s2
Closes IDF-1448, IDF-1449, IDF-1450, IDF-1451, and IDF-1458
See merge request espressif/esp-idf!7776
2020-04-02 11:02:21 +08:00
lly
a919e20c1a
ble_mesh: Support BLE advertising simultaneously
2020-04-02 01:03:25 +00:00
Angus Gratton
d76bf19ffd
docs: Explain custom partition types/subtypes in more detail
...
Including how to use with C++ (closes https://github.com/espressif/esp-idf/pull/1832 )
2020-04-02 10:00:17 +11:00
qiyuexia
6d01dc4cfa
mesh/ps: add mesh network power save function
2020-04-01 22:09:23 +08:00
Michael (XIAO Xufeng)
3b429766bc
esp_flash: support MXIC flash chips
...
The default chip driver (chip_generic) use command 01H + 2 bytes to
clear the QE bit. However this will accidently change the configuration
register value of the MXIC chip.
MXIC chip driver is added to fix that.
2020-04-01 20:54:23 +08:00
Vikram Dattu
60dc4285f4
Fixed esp_tls_conn_write
documentation.
...
Return value `0` in actual is case of partial write and not error as per `mbedtls_ssl_write`
Modified documentation of `esp_tls_conn_write` accordingly.
Even `esp_wolfssl_write` API considers just negative returns as errors.
Signed-off-by: Vikram Dattu <vikram.dattu@espressif.com>
2020-04-01 11:04:09 +00:00
Ivan Grokhotkov
168660aebf
Merge branch 'feature/toolchain_2020r1-RC1' into 'master'
...
Toolchain 2020r1 support bringing (esp32, esp32s2)
See merge request espressif/esp-idf!7509
2020-04-01 18:17:28 +08:00
Prasad Alatkar
be8c847b06
NimBLE: Reset master and slave states on host reset
...
Closes IDFGH-2743 & IDFGH-2956
2020-04-01 10:09:26 +00:00
morris
890fc0fe67
esp_timer: alias esp_timer_get_time
...
alias esp_timer_get_time to improve performance
2020-04-01 16:51:43 +08:00
morris
2d1885b906
systimer: add HAL layer
2020-04-01 16:51:43 +08:00
Darian Leung
53928ab98b
Restore rtc_wdt driver
...
This commit restores rtc_wdt.c and rtc_wdt.h that were removed
in commit 91841a53
.
2020-04-01 16:13:35 +08:00
David Cermak
4fad90b0b1
esp-netif: reenabled dhcp unit tests for esp32s2
2020-04-01 07:06:13 +00:00
David Cermak
db677e6898
mqtt: reenable outbox unit tests for esp32s2
2020-04-01 07:06:13 +00:00
Jakob Hasse
0b02e5358e
Digital Signature HW: adding S2 support
2020-04-01 13:47:13 +08:00
fuzhibo
baa7898e35
driver(adc/dac): fix adc dac driver for esp32s2
...
1. update register file about adc; 2. fix adc driver; 3. add UT for adc/dac;
See merge request espressif/esp-idf!7776
2020-04-01 12:41:51 +08:00
fuzhibo
dfbb108ab4
Driver(touch): fix touch sensor driver for esp32s2.
...
1.update touch sensor driver for esp32s2;
2.update unit test for touch sensor;
3.update register files about touch sensor;
2020-04-01 12:41:51 +08:00
espressif
c0d752c3b9
mcpwm: fix the issue of wrong period
2020-04-01 10:59:00 +08:00
Marius Vikhammer
1863a8ce82
sha: add fallback for when memory alloc fails
2020-04-01 02:07:44 +00:00
Shubham Kulkarni
c82a4d59ee
esp_ota_ops.c: Fix size calculation to erase partition range for OTA image
...
Closes https://github.com/espressif/esp-idf/issues/4953
2020-03-31 14:58:32 +00:00
Sagar Bijwe
a830ddd9ba
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-03-31 17:16:10 +05:30
Jiang Jiang Jian
dcc2963d43
Merge branch 'bugfix/btdm_dont_dequeue_the_command_queue' into 'master'
...
component/bt: fix don't dequeue the command queue after process the read_by_type_req
See merge request espressif/esp-idf!8161
2020-03-31 19:03:37 +08:00
Jiang Jiang Jian
c08bb08d2d
Merge branch 'bugfix/crypto_test_mem_align' into 'master'
...
crypto tests: fix mallocs that were missing MALLOC_CAP_8BIT
See merge request espressif/esp-idf!8132
2020-03-31 18:11:38 +08:00
Angus Gratton
9a5e4f9acb
Merge branch 'bugfix/secure_boot_v2_wrdis' into 'master'
...
secure boot v2: esp32: Prevent read disabling additional efuses
Closes IDF-1502
See merge request espressif/esp-idf!8045
2020-03-31 16:08:01 +08:00
xiewenxiang
5d0b6da6a0
component/bt: fix don't dequeue the command queue after process the read_by_type_req
2020-03-31 15:10:01 +08:00
Supreet Deshpande
0a52f2db50
Fixes logging issue hindering compilation on anti rollback.
2020-03-31 11:19:27 +05:30
Angus Gratton
92a646aa4e
Merge branch 'feature/add_rtc_xtal_cal_retry_option' into 'master'
...
esp32: Add a Kconfig option - Number of attempts to repeat 32k XTAL calibration
Closes IDF-1479
See merge request espressif/esp-idf!7930
2020-03-31 06:03:19 +08:00
Jiang Jiang Jian
1a4f894c7d
Merge branch 'bugfix/coex_sleep_opt' into 'master'
...
esp_wifi: optimize coexistence sleep
See merge request espressif/esp-idf!8078
2020-03-30 23:58:13 +08:00
Michael (XIAO Xufeng)
1cdbaf5b50
Merge branch 'bugfix/freemodbus_fix_long_frame_buffer_issue' into 'master'
...
freemodbus: fix long buffer failure (no temp frame buffer)
Closes IDFGH-2371
See merge request espressif/esp-idf!7418
2020-03-30 22:05:49 +08:00
Alex Lisitsyn
3abdd2207d
freemodbus: fix long buffer failure
...
check master read write functions with array of registers)
fix master serial processing code and modbus controller to work with register array
modbus_master: add reading and writing of test value array (58 registers) to check failure is gone
remove parameter temporary buffer from modbus controller to allow more than 24 byte writes
driver: fix issue with TOUT feature
driver: fix uart_rx_timeout issue
driver: fix issue with rxfifo_tout_int_raw not triggered when received fifo_len = 120 byte and all bytes read out of fifo as result of rxfifo_full_int_raw
driver: add function uart_internal_set_always_rx_timeout() to always handle tout interrupt
examples: call uart_internal_set_always_rx_timeout() to handle tout interrupt correctly
examples: update examples to use tout feature
driver: reflect changes of uart_set_always_rx_timeout() function, change uart.c
driver: change conditions to trigger workaround for tout feature in uart.c
driver: change uart_set_always_rx_timeout()
freemodbus: fix tabs, remove commented code
driver: remove uart_ll_is_rx_idle()
2020-03-30 22:05:48 +08:00
Roland Dobai
26695df5c8
app_trace: Add coverage generation by gcovr
2020-03-30 13:34:06 +02:00
Anton Maklakov
1441b671d6
Merge branch 'bugfix/ci_static_analysis_fail_on_new_issue' into 'master'
...
ci: update static analysis rules to fail on any new issue
Closes IDF-686 and IDF-973
See merge request espressif/esp-idf!6424
2020-03-30 15:36:42 +08:00
Angus Gratton
25aa5b0e28
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-30 18:13:42 +11:00
Angus Gratton
142f69448f
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-30 18:00:40 +11:00
Marius Vikhammer
d1d91ec3dd
crypto tests: fix mallocs that were missing MALLOC_CAP_8BIT
...
Tests had the potential to fail they got non byte-accessible memory allocated.
2020-03-30 10:40:59 +07:00
Xia Xiaotian
3488603002
esp_wifi: optimize coexistence sleep
...
1. Increase delay time before sending NULL1 to enter sleep to
fix compatible problem of some APs.
2. Do not force sending NULL0 if no data tx/rx in previous Wi-Fi
slice.
2020-03-30 11:18:08 +08:00
Marius Vikhammer
32f16e8c30
crypto tests: fix mallocs that were missing MALLOC_CAP_8BIT
...
Tests had the potential to fail they got non byte-accessible memory allocated.
2020-03-30 11:12:20 +08:00
Michael (XIAO Xufeng)
16d6604ab4
Merge branch 'feature/spi_unit_test_slave_byte_length' into 'master'
...
spi: add unit test for slave receiving length
See merge request espressif/esp-idf!6357
2020-03-30 10:41:45 +08:00
Ivan Grokhotkov
f822e81617
Merge branch 'feature/trax_parsing_script' into 'master'
...
xtensa: add a script for parsing CPU traces (TRAX)
See merge request espressif/esp-idf!7729
2020-03-30 05:21:02 +08:00
Ivan Grokhotkov
cb766fb3d6
Merge branch 'bugfix/IDFGH-2910' into 'master'
...
NVS: bugfix - iterator skipping version 1 blobs
Closes IDFGH-2910
See merge request espressif/esp-idf!8049
2020-03-30 05:18:38 +08:00
Jiang Jiang Jian
bc3b95f68b
Merge branch 'bugfix/fix_log_printf_level_err' into 'master'
...
esp_wifi: Fix wifi log print level error
See merge request espressif/esp-idf!8120
2020-03-28 18:52:23 +08:00
David Cermak
585633b254
console: ignore static analysis warnings
2020-03-27 19:19:20 +01:00
David Cermak
06c46837ce
panic: ignore deliberate null dereference to pass static analysis
2020-03-27 19:18:40 +01:00
David Cermak
62f9f42b54
wpa_supplicant: ignore static analysis violations
2020-03-27 19:17:36 +01:00
David Cermak
2e28ab29c7
freertos: silence the static analysis warning referencing the workitem
2020-03-27 18:46:39 +01:00
David Cermak
9b821ddd6b
sdmmc: fix possible null dereference in output parameter assignement, whilst it was null checked as an input parameter
2020-03-27 18:46:39 +01:00
David Cermak
72d54b68a6
lwip: dhcp-server fix static analysis warnings
...
1) kill_oldest_dhcps_pool() is only called when list has at least two members (assured with kconfig value limit), added assertion to ensure this function is used only when prerequisities are met
2) use after free reported in two places, since the analyzer checks also the scenario when the linked list has loops, added ignore tags
2020-03-27 18:46:39 +01:00
Ivan Grokhotkov
b07b29f5bf
Merge branch 'bugfix/xtensa_sign_conversion' into 'master'
...
xtensa: fix sign-conversion warning (Github PR)
See merge request espressif/esp-idf!8131
2020-03-28 00:42:26 +08:00
Aditya Patwardhan
22b1607405
esp_https_server: fix HTTPD_SSL_CONFIG_DEFAULT
...
This macro doesn't compile on C++. Order is fixed now.
Signed-off-by: Jean Pierre Dudey <jeandudey@hotmail.com>
Co-Authored-By: xkevin190 <kevinvelasco193@gmail.com>
Merges https://github.com/espressif/esp-idf/pull/4981
2020-03-27 23:12:57 +08:00
Ivan Grokhotkov
455dbf28f4
esp32: use ccomp_timer in SHA test
2020-03-27 20:07:02 +07:00
Ivan Grokhotkov
cc1d287133
newlib: use --specs=nano.specs to enable "nano" version of C library
...
esp2020r1 toolchain includes a nano.specs file, which instructs GCC to
substitute libc.a with libc_nano.a.
In the build system, this simplifies handling of the nano formatting
option, eliminating LIBC and LIBM global variables.
2020-03-27 20:04:47 +07:00
Jeroen Domburg
419848549e
Add fixes for gcc8 psram fix improvement
2020-03-27 20:04:47 +07:00
Michael (XIAO Xufeng)
a304421124
Merge branch 'feat/spi_bus_lock' into 'master'
...
SPI: support running SPI master and esp_flash on the same bus
See merge request espressif/esp-idf!6520
2020-03-27 19:59:43 +08:00
Jiang Jiang Jian
79e92b0e6a
Merge branch 'bugfix/ble_mesh_add_test_function' into 'master'
...
ble_mesh: Add ble mesh white list test function
See merge request espressif/esp-idf!8046
2020-03-27 19:53:54 +08:00
Alex Lisitsyn
16e6e63694
driver: fix driver set rx timeout feature of uart
...
tout_thr - move calculation and masking into hal layer update driver and uart_ll (add uart_ll_set_rx_tout)
move tout calculation into uart_ll
move calculation of time out in bit time for esp32s2 into low level uart_ll.h file
move uart_hal_get_symb_len() into hal
update set_rx_timeout() to warn user about incorrect value
update HAL, LL 1
fix uart_xx_set_rx_tout() to convert symbol time into bit time
update param description
update tout calculation in LL
update uart_hal_get_max_rx_timeout_thrd() and uart_ll_get_max_rx_timeout_thrd()
2020-03-27 16:20:21 +08:00
Michael (XIAO Xufeng)
c91b53377b
Merge branch 'bugfix/fix_uart_driver_missing_txfifo_reset_issue' into 'master'
...
bugfix(UART): fix uart driver missing txfifo reset issue.
Closes IDFGH-2848
See merge request espressif/esp-idf!7992
2020-03-27 15:55:02 +08:00
Angus Gratton
f68dbd77e9
Merge branch 'bugfix/make_system_using_rom_time_funcs' into 'master'
...
esp_rom: Fix esp32.rom.newlib-time.ld should includes all time ROM functions/data
Closes IDFGH-2868
See merge request espressif/esp-idf!8008
2020-03-27 15:43:38 +08:00
Prasad Alatkar
38fc242914
NimBLE: Fix build failures due to non static declarations in RPA feature
...
CLoses IDFGH-2891
2020-03-27 14:06:55 +08:00
Prasad Alatkar
2bc28bbd5a
NimBLE: Fix NIMBLE_HS_FLOW_CTRL_TX_ON_DISCONNECT
in esp_nimble_cfg
and bleprph
README
2020-03-27 14:05:32 +08:00
Angus Gratton
88bf21b21e
Merge branch 'nimble/iram_allocation_strategy' into 'master'
...
NimBLE: Add support to IRAM allocation strategy
See merge request espressif/esp-idf!8015
2020-03-27 13:54:25 +08:00
Mahavir Jain
0b834d1a9f
Merge branch 'feature/add_psk_support_for_wolfSSL' into 'master'
...
esp_tls_wolfSSL: Add support for PSK
See merge request espressif/esp-idf!7942
2020-03-27 13:25:42 +08:00
KonstantinKondrashov
9aeac7f6cb
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-03-27 04:57:42 +00:00
KonstantinKondrashov
df2ea2527f
esp32s2: Add a Kconfig option- Number of attempts to repeat 32k XTAL calibration
2020-03-27 04:56:44 +00:00
KonstantinKondrashov
a259746016
esp32: Add a Kconfig option- Number of attempts to repeat 32k XTAL calibration
...
Closes: IDF-1479
2020-03-27 04:56:44 +00:00
xiehang
8bcf5cbfed
esp_wifi: Fix wifi log print level error
2020-03-27 12:37:56 +08:00
Jiang Jiang Jian
4fe04f1151
Merge branch 'bugfix/fix_esp32s2_receive_pkts_err' into 'master'
...
esp_wifi: fix esp32s2 sometimes receive ack/cts pkts err.
See merge request espressif/esp-idf!8100
2020-03-27 12:21:52 +08:00
Angus Gratton
cf6dca29f2
Merge branch 'feature/hmac_upstream' into 'master'
...
HMAC: adding upstream message support
Closes IDF-800
See merge request espressif/esp-idf!7689
2020-03-27 11:27:23 +08:00
Angus Gratton
02fe8fb1eb
Merge branch 'bugfix/monitor_encrypted_target' into 'master'
...
tools: Fix flashing encrypted binaries from IDF Monitor
Closes IDF-822
See merge request espressif/esp-idf!8090
2020-03-27 08:11:38 +08:00
Michael (XIAO Xufeng)
49a48644e4
spi: allow using esp_flash and spi_master driver on the same bus
2020-03-26 22:08:26 +08:00
Michael (XIAO Xufeng)
f3bf9c5ae0
hal: put rodata into dram for hal functions
2020-03-26 22:08:25 +08:00
Aditya Patwardhan
d712453114
esp_tls_wolfssl: Added mutex to allow only one TLS conn using PSK at a time
2020-03-26 17:30:05 +05:30
Jakob Hasse
ea47bbb118
HMAC: adding upstream message support
2020-03-26 19:00:27 +08:00
Aditya Patwardhan
46643ab40f
esp_tls_wolfssl: Add support for PSK using wolfSSL,
...
enable SNI and ALPN
2020-03-26 16:02:57 +05:30
Michael (XIAO Xufeng)
296d095e53
Merge branch 'bugfix/remove_dependency_in_timergroup_caps' into 'master'
...
remove dependency of timer_group_caps.h on soc.h
See merge request espressif/esp-idf!8116
2020-03-26 18:18:45 +08:00
Ivan Grokhotkov
7f18576e23
Merge branch 'bugfix/inline_get_cpu_id_hal_func' into 'master'
...
soc: put hal function to get core id in IRAM
See merge request espressif/esp-idf!8107
2020-03-26 18:14:51 +08:00
morris
0c6e1b9482
remove dependency of timer_group_caps.h on soc.h
2020-03-26 17:15:19 +08:00
Angus Gratton
dd8d1deacb
Merge branch 'bugfix/malloc_zero_return_null' into 'master'
...
bugfix/multi_heap: fix malloc(0) returning valid pointer in some poisoning configurations
Closes IDF-1482
See merge request espressif/esp-idf!8012
2020-03-26 16:19:39 +08:00
Roland Dobai
9b16594444
tools: Fix flashing encrypted binaries from IDF Monitor
2020-03-26 07:51:59 +01:00
Angus Gratton
928fc0016c
Merge branch 'bugfix/doc_soc_caps_file_path' into 'master'
...
doc: correct soc caps file path
See merge request espressif/esp-idf!8097
2020-03-26 10:32:12 +08:00
Michael (XIAO Xufeng)
826cc7ecb6
Merge branch 'feature/bringup_723_cmake_rmt_driver_update' into 'master'
...
RMT new features in ESP32S2
Closes IDF-1286
See merge request espressif/esp-idf!7401
2020-03-26 10:24:18 +08:00
Michael (XIAO Xufeng)
661f4c430d
Merge branch 'feature/esp32s2_i2c_driver' into 'master'
...
Feature: Add esp32-s2 I2C driver.
Closes IDF-1278 and IDF-1026
See merge request espressif/esp-idf!7680
2020-03-26 10:20:40 +08:00
Michael (XIAO Xufeng)
42c552242b
Merge branch 'feature/fix_touch_driver_for_esp32s2' into 'master'
...
driver(touch): fix touch sensor driver for esp32s2
See merge request espressif/esp-idf!7664
2020-03-26 09:50:42 +08:00
Darian Leung
91841a53ff
WDT: Add LL and HAL for watchdog timers
...
This commit updates the watchdog timers (MWDT and RWDT)
in the following ways:
- Add seprate LL for MWDT and RWDT.
- Add a combined WDT HAL for all Watchdog Timers
- Update int_wdt.c and task_wdt.c to use WDT HAL
- Remove most dependencies on LL or direct register access
in other components. They will now use the WDT HAL
- Update use of watchdogs (including RTC WDT) in bootloader and
startup code to use the HAL layer.
2020-03-26 02:14:02 +08:00
fuzhibo
340563f479
Driver(touch): fix touch sensor driver for esp32s2.
...
1.update touch sensor driver for esp32s2;
2.update unit test for touch sensor;
3.update register files about touch sensor;
2020-03-25 22:45:57 +08:00
Ivan Grokhotkov
462fda201a
Merge branch 'bugfix/tusb_missing_licence' into 'master'
...
tinyusb: updated the license header in the driver
See merge request espressif/esp-idf!8083
2020-03-25 21:20:49 +08:00
Ivan Grokhotkov
8aad738f02
Merge branch 'bugfix/ota_get_sha256_test_fail' into 'master'
...
app_update: fix test failure for get_app_elf_sha256 test
See merge request espressif/esp-idf!8096
2020-03-25 21:20:25 +08:00
chenjianqiang
04781fb009
psram: improve 2T mode enable
...
1. recover psram bankswitch config
2. set 2T mode enable default config as n
3. remove PSRAM ID check
2020-03-25 18:39:50 +08:00
chenjianqiang
55a20033e7
bugfix(psram): support psram 2T mode to fix single bit error
...
1. add enable PSRAM 2T mode function
2. enable PSRAM 2T mode base on PSRAM ID
3. abort when himem and 2T mode are enabled meanwhile
4. set SPIRAM_2T_MODE as "y" by default and modify SPIRAM_BANKSWITCH_ENABLE as "n" by default
2020-03-25 18:29:32 +08:00
morris
4fc16e2374
rmt: prefix caps name with SOC_
2020-03-25 17:14:00 +08:00
morris
0c17af3ea4
rmt: support tx loop count
2020-03-25 17:14:00 +08:00
morris
dc91aa9786
rmt: support tx in a group
2020-03-25 17:13:59 +08:00
morris
fa167eb0c5
rmt: test tx/rx ping-pong mode
2020-03-25 17:13:47 +08:00
morris
855b316045
rmt: better support rx demodulation
2020-03-25 13:19:03 +08:00
morris
c91565d538
rmt: update rmt ll APIs
2020-03-25 13:19:03 +08:00
chenjianqiang
ecbe0dad1b
driver/rmt: new features on esp32s2
...
1. add receive carrier remove function
2. add pingpong receive function
2020-03-25 13:19:03 +08:00
lly
45d43f005a
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-03-25 11:30:08 +08:00
Jiang Jiang Jian
c71445a9b9
Merge branch 'bugfix/coex_wakeup_delay_with_dfs' into 'master'
...
components/coex: Fix wakeup delay with DFS
See merge request espressif/esp-idf!8053
2020-03-25 11:29:18 +08:00
Angus Gratton
62426a6c90
Merge branch 'refactor/use_new_component_registration_functions' into 'master'
...
CMake: Use new component registration function
See merge request espressif/esp-idf!8068
2020-03-25 08:02:42 +08:00
houwenxiang
886745326e
driver(UART): fix uart driver missing txfifo reset issue.
...
closes https://github.com/espressif/esp-idf/issues/4908
2020-03-25 01:48:46 +08:00
Ivan Grokhotkov
6c0a1aab50
Merge branch 'bugfix/crypto_perf_fail' into 'master'
...
s2 crypto: update perf test to use cache comp timer
Closes IDF-1174
See merge request espressif/esp-idf!8075
2020-03-24 22:54:38 +08:00
Renz Bagaporo
d5085010c8
soc: put hal function to get core id in IRAM
2020-03-24 22:50:51 +08:00
Ivan Grokhotkov
55c3c2b73d
Merge branch 'feature/vfs_optional' into 'master'
...
vfs: add option to disable VFS layer, saving some RAM and code size
See merge request espressif/esp-idf!7950
2020-03-24 21:11:28 +08:00
Ivan Grokhotkov
349dc125e8
Merge branch 'feature/espcoredump_resilient_stack_decoding' into 'master'
...
espcoredump: fix espcoredump to make it more resilient when decoding erroneous thread stack
Closes IDFGH-2802
See merge request espressif/esp-idf!7892
2020-03-24 21:08:57 +08:00
David Čermák
2bf3276900
Merge branch 'feature/config_mqtt_task_prio' into 'master'
...
esp_mqtt: add option to configure mqtt task priority.
Closes IDFGH-2902 and IDFGH-2903
See merge request espressif/esp-idf!8036
2020-03-24 19:43:20 +08:00
David Čermák
e50a7a97da
Merge branch 'bugfix/ipv6_examples' into 'master'
...
IPv6 related updates: esp-netif, common-connect, socket-examples
See merge request espressif/esp-idf!7500
2020-03-24 19:32:33 +08:00
morris
3cf8479017
doc: always adopt latest chip revision
2020-03-24 19:11:28 +08:00
Jiang Jiang Jian
2c06733e10
Merge branch 'optimization/TCPv6_connect_for_master' into 'master'
...
lw-ip:optimization TCPv6 connect
Closes WIFI-1963
See merge request espressif/esp-idf!8018
2020-03-24 15:25:03 +08:00
ChenJianxing
79be253020
esp_wifi: fix esp32s2 sometimes receive ack/cts pkts err.
2020-03-24 15:16:21 +08:00
Marius Vikhammer
694c332cb2
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-03-24 12:34:49 +08:00
aleks
b3eff24458
espcoredump: update expected test output
2020-03-23 14:40:56 +00:00
Andreas Motl
dde4d2e9eb
Make espcoredump more resilient when decoding specific thread stack
...
Merges https://github.com/espressif/esp-idf/pull/4865
2020-03-23 14:40:56 +00:00
Mahavir Jain
4e0e15631d
Merge branch 'feature/esp_http_client_add_example' into 'master'
...
Add example to demonstrate use of low level APIs in http client
Closes IDFGH-2773
See merge request espressif/esp-idf!7832
2020-03-23 21:14:13 +08:00
Simon Brélivet
456d4d4a20
esp_mqtt: add option to configure mqtt task priority.
...
Merges https://github.com/espressif/esp-idf/pull/4947
2020-03-23 12:28:29 +00:00
David Cermak
56725fa678
esp-netif: support for ipv6 addr types and indices
2020-03-23 12:19:38 +00:00
Andrei Gramakov
337fff703a
tinyusb: updated the license header in the driver
2020-03-23 13:11:49 +01:00
Angus Gratton
62b40284a1
Merge branch 'bufgix/esp_ota_get_app_elf_sha256' into 'master'
...
app_update: Fix case when elf file SHA256 should be printed by panic handler while cache is disabled
Closes IDF-1342
See merge request espressif/esp-idf!7529
2020-03-23 14:24:12 +08:00
Jiang Jiang Jian
464e16cef4
Merge branch 'bugfix/Add_lwip_assert_control' into 'master'
...
lw-ip: Add lw-ip assert control
See merge request espressif/esp-idf!8027
2020-03-23 14:06:22 +08:00
Shubham Kulkarni
4858184e19
esp_http_client: Add helper API to read larger data chunks from HTTP Stream
2020-03-23 10:45:39 +05:30
Mahavir Jain
6af3456ca3
Merge branch 'bugfix/wifi_prov_not_stopping' into 'master'
...
wifi_provisioning: Catch the Wi-Fi events even after Connection errors
See merge request espressif/esp-idf!8019
2020-03-23 12:20:04 +08:00
Anton Maklakov
5b57ddf046
Merge branch 'bugfix/ci_build_logs_per_config' into 'master'
...
ci: generate separate log files for each {example, test app} config
See merge request espressif/esp-idf!8039
2020-03-23 11:45:32 +08:00
Marius Vikhammer
32fd9d6c63
s2 crypto: update perf test to use cache comp timer
...
Updated S2 hardware accelerated crypto to use the cache compensated timer.
Re-enabled RSA performance test and set lower targets now that results are more stable
Closes: IDF-1174
2020-03-23 11:30:55 +08:00
Renz Bagaporo
3d0967a58a
test: declare requirements and include dirs private
2020-03-23 10:58:50 +08:00
Renz Bagaporo
4d9c573fb6
test, examples: use new component registration function
2020-03-23 10:58:48 +08:00
Jakob Hasse
255ae1d32f
NVS: bugfix - iterator skipping version 1 blobs
...
Closes https://github.com/espressif/esp-idf/issues/4954
2020-03-23 09:55:40 +08:00
Piyush Shah
4b030420a1
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-03-21 06:02:55 +00:00
Mahavir Jain
409b3db22f
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-20 20:48:22 +05:30
Felipe Neves
481379f14d
multi_heap: ensure that malloc(0) return NULL pointer in any poisoning configuration
2020-03-20 14:33:49 +00:00
Ivan Grokhotkov
dc77ccb24e
spiffs: handle CONFIG_VFS_SUPPORT_DIR
2020-03-20 14:03:45 +01:00
Ivan Grokhotkov
8a47f43cef
fatfs: handle CONFIG_VFS_FAT_SUPPORT_DIR
2020-03-20 14:03:45 +01:00
Ivan Grokhotkov
18bc25b3a6
cpu_start: handle CONFIG_VFS_SUPPORT_IO
2020-03-20 14:03:45 +01:00
Ivan Grokhotkov
33d3bff196
newlib: don't require VFS
2020-03-20 14:03:45 +01:00
Ivan Grokhotkov
4cb10ea7c2
newlib: provide default implementations for more syscalls
2020-03-20 14:03:45 +01:00
Ivan Grokhotkov
1f1ce38e5f
newlib: don't depend on VFS names when populating the syscall table
2020-03-20 14:03:44 +01:00
Ivan Grokhotkov
b203ac7b02
lwip: handle CONFIG_VFS_SUPPORT_IO=n and CONFIG_VFS_SUPPORT_SELECT=n
...
* If CONFIG_VFS_SUPPORT_IO=y, keep everything as it is now
* If CONFIG_VFS_SUPPORT_IO=n, defined syscalls which LwIP can
implement, such as read/write/close
* Make LWIP-only select implementation dependent on
CONFIG_VFS_SUPPORT_SELECT, deprecate CONFIG_LWIP_USE_ONLY_LWIP_SELECT
2020-03-20 14:03:44 +01:00
Ivan Grokhotkov
cadab2cbcf
vfs: define all implementations as esp_vfs_, create aliases
...
This change allows (in the future) to test VFS on host, without having
it conflict with the host C library. On host, all aliases would be
disabled.
2020-03-20 13:43:42 +01:00
Ivan Grokhotkov
a3c0bcb0a0
vfs: introduce options to turn off some features
...
CONFIG_VFS_SUPPORT_IO: for basic I/O functions support
CONFIG_VFS_SUPPORT_DIR: for file/directory functions support
CONFIG_VFS_SUPPORT_SELECT: for select support
2020-03-20 13:43:42 +01:00
Ivan Grokhotkov
45e50f1f2a
newlib: move dirent.h, ioctl.h headers from VFS
2020-03-20 13:43:42 +01:00
Ivan Grokhotkov
b427b23ae0
newlib: remove direct dependencies on VFS functions
...
poll: use "select" not "esp_vfs_select" move to newlib
pread, pwrite, select, utime: remove from newlib. VFS and/or LWIP will
provide aliases for these functions.
2020-03-20 13:43:42 +01:00
Ivan Grokhotkov
a5bf40b495
efuse: don't include esp_efuse_utility_debug_dump_blocks in bootloader
2020-03-20 12:31:10 +01:00
sU8U7SfkcwTJVH7PjaVmej7D
c3065c00ff
xtensa: fix sign-conversion warning
2020-03-20 11:10:43 +01:00
baohongde
1bcce4e7db
components/coex: Fix wakeup delay with DFS
2020-03-20 17:58:05 +08:00
xueyunfei
b539e54eed
optimization TCPv6 connect
2020-03-20 07:19:23 +00:00
Ivan Grokhotkov
6330b3345e
Merge branch 'bugfix/disable_rsa_perf_test' into 'master'
...
rsa: ignore performance test in CI
See merge request espressif/esp-idf!8026
2020-03-20 15:09:15 +08:00
David Čermák
e7cd3b592e
Merge branch 'bugfix/esp_netif_ppp_setdefault_fix' into 'master'
...
ESP-NETIF: Set default interface for ppp netif must be called from lw_ip context
Closes IDFGH-2672
See merge request espressif/esp-idf!7555
2020-03-20 14:50:41 +08:00
Jiang Jiang Jian
e432217a16
Merge branch 'bugfix/send_ok_when_sta_disconnect' into 'master'
...
lw-ip:bugfix for TCPv6 send ok when sta disconnect
Closes WIFI-198
See merge request espressif/esp-idf!8017
2020-03-20 13:50:55 +08:00
Jiang Jiang Jian
8ee9fbb01a
Merge branch 'bugfix/update_esp32s2_phy_lib_v300' into 'master'
...
esp_wifi: update esp32s2 phy lib v300
Closes WIFI-1087
See merge request espressif/esp-idf!8034
2020-03-20 13:48:08 +08:00
xueyunfei
b1ca95ff22
bugfix for TCPv6 send ok when sta disconnect
2020-03-20 03:10:56 +00:00
Wang Jia Lin
47253a827a
Merge branch 'bugfix/esp32s2_support_16Mbit_psram' into 'master'
...
bugfix(psram): add 16Mbit psram support for esp32s2
See merge request espressif/esp-idf!8011
2020-03-20 00:22:49 +08:00
David Cermak
fffdc1d789
esp-netif-ppp: support for setting ppp netif up and down
...
calling esp_netif_up() and esp_netif_down() was not supported if the
underlying netif wos of ppp type. Updated the code to enable setting
these interfaces up/down and registered actions in moden_netif glue for
connection/disconnection events to set the netif up/down.
2020-03-19 13:16:24 +00:00
David Cermak
e8ff22b5fb
esp-netif: set default interface for ppp netif must be called from lwip context
...
On update of any interface (set up/down) a routing preference is updated calling esp_netif_update_default_netif() that is called from
lwip context. But if the related netif was ppp type, the set_default api used user-mode, thus causing a dead lock.
Closes https://github.com/espressif/esp-idf/issues/4746
2020-03-19 13:16:24 +00:00
ChenJianxing
9dd7b17deb
esp_wifi: update esp32s2 phy lib v300
2020-03-19 20:56:46 +08:00
xiehang
a133dbd848
LWIP: Add lwip assert control
2020-03-19 19:00:19 +08:00
Ivan Grokhotkov
9b20b76ae6
Merge branch 'bugfix/s2_gcm_hw' into 'master'
...
aes: Fixed tag sometime being wrong for HW GCM
See merge request espressif/esp-idf!8009
2020-03-19 18:06:25 +08:00
David Čermák
1d3dbb239a
Merge branch 'feature/ws_server' into 'master'
...
http_server: adds WebSocket support
Closes IDFGH-2151 and IDFGH-2752
See merge request espressif/esp-idf!7893
2020-03-19 17:20:56 +08:00
Marius Vikhammer
2f5e4601ef
rsa: ignore performance test in CI
...
Even with a static key the performance vary a lot between different builds.
2020-03-19 14:16:39 +08:00
Hrishikesh Dhayagude
67a6fd6f3b
NimBLE: Add support to IRAM allocation strategy
...
Added IRAM allocation provision under nimble_platform_mem_malloc()
2020-03-19 04:47:39 +00:00
Angus Gratton
207914a13a
Merge branch 'refactor/common_code_panic_handler' into 'master'
...
Panic handling common code refactor
See merge request espressif/esp-idf!7489
2020-03-19 11:23:57 +08:00
Angus Gratton
aec558eea4
Merge branch 'bugfix/efuse_get_coding_scheme_and_ut' into 'master'
...
efuse: Fix get_coding_scheme() using ESP_EARLY_LOG* instead of ESP_LOG*
Closes IDFGH-2799
See merge request espressif/esp-idf!7946
2020-03-19 11:18:09 +08:00
chenjianqiang
140e0390cc
psram: add psram size auto detect for esp32s2
2020-03-19 10:53:47 +08:00
David Cermak
1b842ce1a8
http_server: websocket server to support async send
2020-03-18 20:24:46 +00:00
Jackson Ming Hu
e983042af2
http_server: adds WebSocket support
...
This commit adds the WebSocket support for esp_http_server
library. It mainly does:
- Handling WebSocket handshake
- Parsing HTTP upgrade request
- Reply the upgrade request
- Receive WebSocket packets
- Parse header, decode to a struct
- Unmask payload (if required)
- Send WebSocket frames
- Receive WebSocket frame
- Automatic control frame handling
Merges https://github.com/espressif/esp-idf/pull/4306
Closes https://github.com/espressif/esp-idf/issues/4819
2020-03-18 20:24:46 +00:00
Jiang Jiang Jian
cd08917622
Merge branch 'feature/add_certification_version_number' into 'master'
...
esp_wifi: add certification version number.
See merge request espressif/esp-idf!7965
2020-03-18 16:17:43 +08:00
Angus Gratton
99a7581974
Merge branch 'bugfix/uecc_antifault' into 'master'
...
secure boot: Fix anti-fault value if hash is shorter than curve
See merge request espressif/esp-idf!7940
2020-03-18 15:51:09 +08:00
ChenJianxing
efd3505e51
esp_wifi: add certification version number.
2020-03-18 14:38:48 +08:00
Island
961f461f72
Merge branch 'bugfix/ble_mesh_nimble_adapt_deinit' into 'master'
...
ble_mesh: Fix ble mesh nimble host deinit
Closes BLEMESH-177 and IDFGH-2898
See merge request espressif/esp-idf!7985
2020-03-18 12:32:48 +08:00
Jiang Jiang Jian
d579c8a13e
Merge branch 'bugfix/fix_the_bugs_for_country_code' into 'master'
...
fix the bugs for country code
Closes WIFI-1569 and WIFI-1586
See merge request espressif/esp-idf!7238
2020-03-18 11:49:32 +08:00
chenjianqiang
42154848cc
psram: add 16Mbit psram support for esp32s2
2020-03-18 11:15:00 +08:00
Marius Vikhammer
ffb9010cbe
aes: Fixed tag sometime being wrong for HW GCM
...
The GCM hardware accelerated algorithm for S2 would sometimes output
the wrong tag.
Added additional tests for AES and GCM
Re-enable HW GCM as default option
2020-03-18 08:44:38 +08:00
ChenJianxing
af8d90dbc1
esp_wifi: fix esp32s2 ap mac address can not find.
2020-03-17 21:33:59 +08:00
Jiang Jiang Jian
2e7ae75011
Merge branch 'bugfix/wep40_key_parsing_bug' into 'master'
...
wpa_supplicant: Add parsing support for WEP40 key
See merge request espressif/esp-idf!7968
2020-03-17 15:42:02 +08:00
Angus Gratton
9c430a17aa
Merge branch 'feature/mpi_accel_s2' into 'master'
...
MPI/RSA accelerator bringup for S2 and bignum refactor
Closes IDF-803 and IDF-1174
See merge request espressif/esp-idf!7915
2020-03-17 13:16:05 +08:00
Mahavir Jain
6795fc194f
Merge branch 'fix/wifi_provisioning_uuid' into 'master'
...
Wifi_provisioning: Change service_uuid to non standard 128 bit UUID and add retries in test script
See merge request espressif/esp-idf!7939
2020-03-17 12:00:32 +08:00
Angus Gratton
998eba699e
Merge branch 'bug/hw_sha_fail_alloc' into 'master'
...
s2 sha hw: Fix bug where alloc would fail if input were of len 0
See merge request espressif/esp-idf!7991
2020-03-17 09:33:14 +08:00
Ivan Grokhotkov
2a630cb8d8
Merge branch 'feature/nvs_test_erase_cycles' into 'master'
...
nvs: add a test for sector erase cycles
See merge request espressif/esp-idf!7948
2020-03-17 00:32:59 +08:00
Marius Vikhammer
7e824508a9
mpi: refactor bignum into common and hw specific components
...
Closes IDF-1174
2020-03-16 19:44:30 +08:00
Marius Vikhammer
16b6a7a903
s2 sha hw: Fix bug where alloc would fail if input were of len 0
2020-03-16 19:29:59 +08:00
zhangyanjiao
a11673ebe4
wifi: return fail when setting softAP's channnel is out of range
2020-03-16 17:34:48 +08:00
Jiang Jiang Jian
493cdf53b9
Merge branch 'bugfix/fix_scan_get_rssi_err' into 'master'
...
esp_wifi: Fix scan get rssi err
Closes WIFI-1805
See merge request espressif/esp-idf!7961
2020-03-16 17:10:13 +08:00
Prasad Alatkar
8419aa85a9
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-16 08:20:37 +00:00
kapil.gupta
0ae58fc59f
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-16 06:14:19 +00:00
lly
ac2ef797fe
ble_mesh: Fix ble mesh nimble host deinit
2020-03-16 12:45:58 +08:00
Ivan Grokhotkov
a3e236291f
xtensa: add a script for parsing CPU traces (TRAX)
2020-03-13 17:30:29 +01:00
David Cermak
ecb419da2f
soc: minor header fix typo and include of sdkconfig
2020-03-13 12:53:52 +01:00
Jiang Jiang Jian
0ae960f2fe
Merge branch 'feature/support_esp32s2_mac_addr_offset' into 'master'
...
Add mac address offset for some esp32s2.
See merge request espressif/esp-idf!7855
2020-03-13 19:47:33 +08:00
Jiang Jiang Jian
57ad4afe7d
Merge branch 'bugfix/fix_esp32s2_enable_multi_phy_init_data_bin_err' into 'master'
...
esp32s2: fix when enable multi phy init data bin compile err.
Closes IDF-1459
See merge request espressif/esp-idf!7936
2020-03-13 19:47:00 +08:00
Jiang Jiang Jian
df56535b7a
Merge branch 'bugfix/compiler_err_when_performance_optimization_enabled' into 'master'
...
Bugfix/compiler err when performance optimization enabled
Closes BT-688
See merge request espressif/esp-idf!7958
2020-03-13 19:41:59 +08:00
Marius Vikhammer
e21bef3f28
mpi: active hw accel for S2
...
Actives MPI/RSA hardware acceleratio for ESP32 S2.
Closes IDF-803
2020-03-13 18:33:18 +08:00
Ivan Grokhotkov
6afc116036
nvs: enable address sanitizer in host tests when building with clang
2020-03-13 11:29:39 +01:00
Ivan Grokhotkov
d2526e6dda
nvs: fix out of bounds array access in host test
2020-03-13 11:29:39 +01:00
Ivan Grokhotkov
db34a4d031
nvs: add test for erase cycles distribution
2020-03-13 11:29:39 +01:00
Ivan Grokhotkov
0cbbd948c0
nvs: clean coverage files on rebuild
...
Fixes errors reported by libgcov related to merging debug information.
2020-03-13 11:28:04 +01:00
Ivan Grokhotkov
64ceab0069
Merge branch 'feature/aes_sha_accel_s2' into 'master'
...
crypto: SHA and AES accelerator bring up for S2
Closes IDF-1443, IDF-714, and IDF-716
See merge request espressif/esp-idf!7825
2020-03-13 18:21:09 +08:00
Jiang Jiang Jian
0367fe461e
Merge branch 'bugfix/ble_mesh_miscellaneous_fix' into 'master'
...
Bugfix/ble mesh miscellaneous fix
Closes BLEMESH-174
See merge request espressif/esp-idf!7881
2020-03-13 17:50:26 +08:00
xiehang
afa4dbae16
esp_wifi: Fix ESP32S2 wifi log not printing
2020-03-13 14:48:18 +08:00
xiehang
e4698f8473
esp_wifi: Fix scan get rssi err
...
Remove software modify rssi
2020-03-13 12:35:49 +08:00
Jiang Jiang Jian
ad7dfb77c4
Merge branch 'bugfix/reduce_wifi_bin_size' into 'master'
...
esp_wifi: Reduce Bin size
Closes WIFI-9
See merge request espressif/esp-idf!7781
2020-03-13 12:20:50 +08:00
Michael (XIAO Xufeng)
a3c9a864ab
Merge branch 'feat/spi_caps_control_dummy' into 'master'
...
spi_flash: add caps for dummy output control
See merge request espressif/esp-idf!7534
2020-03-12 22:23:49 +08:00
Mahavir Jain
453b65a608
Merge branch 'feature/upgrade_mbedtls_to_v2.16.4' into 'master'
...
mbedtls: upgrade to release v2.16.5
Closes IDFGH-2638
See merge request espressif/esp-idf!7607
2020-03-12 18:08:33 +08:00
lly
2ed1724fc2
ble_mesh: Move dev_role to the end of model_pub
2020-03-12 17:48:09 +08:00
lly
5a90ea3048
ble_mesh: Use the right netkey during iv update
2020-03-12 17:43:19 +08:00
lly
37466d957d
ble_mesh: Use the right net_idx & app_idx for publish
2020-03-12 17:43:19 +08:00
lly
1795107533
ble_mesh: Check buf->ref before unref the buffer
2020-03-12 17:43:19 +08:00
lly
2b80649a79
ble_mesh: Fix mesh memory use-after-free issue
2020-03-12 17:43:19 +08:00
lly
08080edb1b
ble_mesh: Add ble mesh deinit in btc task
2020-03-12 17:43:19 +08:00
lly
9d3ad04667
ble_mesh: Free beacon timer when deinit mesh
2020-03-12 17:43:19 +08:00
lly
13ab2f4015
ble_mesh: Use lock for mesh timer operations
2020-03-12 17:43:19 +08:00
weitianhua
0d2790a429
Remove (x2) variable in BCM_STRNCPY_S and BCM_STRCPY_S when performance optimization enabled
2020-03-12 16:20:58 +08:00
weitianhua
b86f4d4f00
Fix mem_start uninitialized error when compiler optimization performance enabled
2020-03-12 15:07:03 +08:00
Marius Vikhammer
3351376a11
AES: optimize AES-GCM
...
HW acceleration for GCM is now enabled by default
Closes IDF-1443
2020-03-12 10:20:24 +08:00
michael
3b1fa7b8f0
spi_flash: add caps for dummy output control
2020-03-11 16:13:39 +00:00
Jiang Jiang Jian
640c7c5107
Merge branch 'bugfix/select_waiting_assert' into 'master'
...
lw-ip:fix bug for after udp close select_waiting assert
Closes WIFI-1622
See merge request espressif/esp-idf!7400
2020-03-11 21:15:57 +08:00
Mahavir Jain
1cde594460
Merge branch 'bugfix/change_function_pointer_esp_crt_bundle_attach' into 'master'
...
esp_tls: change argument pointer type to (void *) for esp_crt_bundle_attach
See merge request espressif/esp-idf!7947
2020-03-11 19:39:47 +08:00
Ivan Grokhotkov
dbdcd26902
Merge branch 'bugfix/fix_default_console_gpio_on_esp32s2' into 'master'
...
esp32s2: fix default console GPIO
See merge request espressif/esp-idf!7938
2020-03-11 18:39:17 +08:00
Aditya Patwardhan
874e987a3b
esp_tls: change argument pointer type to (void *) for esp_crt_bundle_attach
2020-03-11 15:54:05 +05:30
KonstantinKondrashov
912028273d
efuse: Using IDF_ENV_FPGA in UTs
2020-03-11 18:22:07 +08:00
KonstantinKondrashov
4c5d26085f
efuse/esp32s2: Fix get_coding_scheme() when CONFIG_SECURE_FLASH_ENC_ENABLED and LOG_LEVEL is Debug
2020-03-11 18:22:07 +08:00
KonstantinKondrashov
ae90d5f39f
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-03-11 18:22:07 +08:00
xueyunfei
e3ff1efe65
fix bug for after udp close select_waiting assert
2020-03-11 10:03:40 +00:00
ChenJianxing
5019419496
esp32s2: fix when enable multi phy init data bin compile err.
2020-03-11 18:03:21 +08:00
Marius Vikhammer
37369a8a57
crypto: SHA and AES accelerator bring up for S2
...
Brings up, fixes and enables AES and SHA hardware acceleration.
Closes IDF-714
Closes IDF-716
2020-03-11 15:09:45 +08:00
Angus Gratton
59381b60c0
Merge branch 'refactor/hal_function_set_exception_vector_table' into 'master'
...
soc: add hal api to set exception vector table base address
See merge request espressif/esp-idf!7905
2020-03-11 14:44:42 +08:00
Angus Gratton
694e22b41a
Merge branch 'feature/multi_target_performance_test' into 'master'
...
Add multi-target support for performance tests
Closes IDF-1137 and IDF-1113
See merge request espressif/esp-idf!7831
2020-03-11 14:38:51 +08:00
Angus Gratton
f2d310fea7
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-11 17:17:20 +11:00
Andrew
3bb41fd67e
spi: add unit test for slave receiving length
2020-03-11 13:24:30 +08:00
Mahavir Jain
02d2903e39
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-11 05:17:33 +00:00
ChenJianxing
a6c27619f2
add mac address offset for some esp32s2.
2020-03-11 13:17:23 +08:00
morris
6cb7d82120
esp32s2: fix default console GPIO
...
on ESP32-S2, the default GPIO used for UART0 is: TX-43, RX-44
2020-03-11 12:30:29 +08:00
KonstantinKondrashov
fc03161f70
app_update: Fix case when elf file SHA256 should be printed by panic handler while cache is disabled
...
Closes: IDF-1342
2020-03-10 20:26:03 +08:00
Renz Bagaporo
ee519634a5
esp_system: retain backtrace no space
2020-03-10 19:56:24 +08:00
Renz Bagaporo
7cc8cb68bd
esp_system: suppress reason display on software abort panic
2020-03-10 19:56:24 +08:00
Renz Bagaporo
890510aecd
esp32, esp32s2: move reset reason source to esp_system
2020-03-10 19:56:24 +08:00
Renz Christian Bagaporo
84e80a3e50
soc: remove sdio slave hal source file duplicate
2020-03-10 19:56:24 +08:00
Renz Christian Bagaporo
29ebfc3f46
esp_system: let panic handler break on debug mode on software abort
2020-03-10 19:56:24 +08:00
Renz Christian Bagaporo
af9b1131a3
esp_system: share abort panic with port layer
2020-03-10 19:56:24 +08:00
Renz Christian Bagaporo
2855bb6f0a
newlib: move abort to newlib
2020-03-10 19:56:24 +08:00
Renz Christian Bagaporo
2b100789b7
esp32, esp32s2: move panic handling code to new component
2020-03-10 19:56:24 +08:00
Jiang Jiang Jian
06fa9476a5
Merge branch 'bugfix/fix_controller_disable_re_enable_crash' into 'master'
...
bugfix: fix the crash bug after controller disable and re-enable in ble bt
Closes BCI-91 and BCI-28
See merge request espressif/esp-idf!7775
2020-03-10 18:13:17 +08:00
xiehang
7569e34e89
esp_wifi: Reduce Bin size
...
1. Disable WiFi API parameter checking log
2. Optimize wifi log
2020-03-10 17:45:06 +08:00
Jiang Jiang Jian
a30557ca31
Merge branch 'mesh/feature_chain_topology' into 'master'
...
Mesh/feature chain topology
Closes WIFI-1726
See merge request espressif/esp-idf!7215
2020-03-10 17:41:11 +08:00
Andrei Gramakov
08543533d8
tinyusb: switch to esp-develop branch
2020-03-09 14:49:29 +01:00
Roland Dobai
15884eccf2
Add multi-target support for performance tests
2020-03-09 13:41:56 +01:00
Ivan Grokhotkov
95c275109b
Merge branch 'refactor/add_target_name_for_parttool' into 'master'
...
parttool: don't print target name
See merge request espressif/esp-idf!7904
2020-03-09 18:57:44 +08:00
gengyuchao
df3f2f4cb0
bugfix/fix_controller_disable_re_enable_crash
2020-03-09 17:40:06 +08:00
Michael (XIAO Xufeng)
81daaff050
Merge branch 'feature/usb_component' into 'master'
...
Feature/usb component
See merge request espressif/esp-idf!6897
2020-03-09 16:53:55 +08:00
morris
46ea7d815d
parttool: don't print target name
2020-03-09 15:05:04 +08:00
Andrei Gramakov
9d059be165
usb: added a tinyusb component; ci; soc.
...
ci: ignore s2-only projects from the cmake-make test
soc: refactored the usb part
2020-03-09 07:55:06 +01:00
xueyunfei
f7d2aa96bd
fix bug for netconn marked close crash
2020-03-09 06:32:41 +00:00
Angus Gratton
c1871437c8
Merge branch 'bugfix/console_repl_build_failure' into 'master'
...
bugfix reported on GitHub (ethernet, console, i2ctool)
Closes IDFGH-2780, IDFGH-2361, and IDFGH-2829
See merge request espressif/esp-idf!7886
2020-03-09 14:26:39 +08:00
Angus Gratton
df9d3c6e43
Merge branch 'refactor/print_app_description_on_startup' into 'master'
...
esp32s2: print app description on startup
See merge request espressif/esp-idf!7899
2020-03-09 14:05:04 +08:00
qiyuexia
7bd03faa4b
mesh: add chain topology
2020-03-09 06:00:42 +00:00
Jiang Jiang Jian
c2f2b0e490
Merge branch 'bugfix/Add_tx_packets_size_check' into 'master'
...
esp_wifi: Add TX packets size check
See merge request espressif/esp-idf!7859
2020-03-09 13:51:57 +08:00
Angus Gratton
f21079a06d
Merge branch 'bugfix/duplicate_sdio_slave_hal' into 'master'
...
soc: remove duplicate sdio_slave_hal.c
See merge request espressif/esp-idf!7874
2020-03-09 13:35:58 +08:00
Ivan Grokhotkov
80f50471bf
Merge branch 'bugfix/coredump_no_ext_stacks' into 'master'
...
core dump: don't allow core dumps to Flash if PSRAM is used for stacks
See merge request espressif/esp-idf!7835
2020-03-07 18:07:10 +08:00
Ivan Grokhotkov
8caeb6adfa
Merge branch 'bugfix/bootloader_O0_align_error' into 'master'
...
bootloader_support: force alignment of flash_read argument
See merge request espressif/esp-idf!7860
2020-03-07 18:06:30 +08:00
morris
46a3f3e516
console: make uart param configurable
...
Closes https://github.com/espressif/esp-idf/issues/4845
2020-03-07 13:23:23 +08:00
morris
0a7ccb8095
ethernet: fix potential null pointer dereference
...
Closes https://github.com/espressif/esp-idf/issues/4890
2020-03-07 12:12:29 +08:00
morris
8b6c0947c7
soc: add hal api to set exception vector table base address
2020-03-06 20:23:30 +08:00
morris
ddcba3d574
bootloader_support: read random from register
2020-03-06 15:32:01 +08:00
xiehang
91bcd5eb63
esp_wifi: Add TX packets size check
2020-03-06 15:27:24 +08:00
morris
f735b8891e
esp32s2: print app description on startup
2020-03-06 15:24:28 +08:00
Angus Gratton
a9854f7085
Merge branch 'feature/rmt_clock_support_ref_tick' into 'master'
...
rmt: support ref tick && refactor unit test && re-enable unit test on ESP32-S2
Closes IDFGH-1715
See merge request espressif/esp-idf!7614
2020-03-06 15:03:52 +08:00
Angus Gratton
46e6307e07
Merge branch 'bugfix/fix_passing_argument_to_ulp_cmake_script' into 'master'
...
Fix passing argument to ULP CMake script
See merge request espressif/esp-idf!7845
2020-03-06 14:37:03 +08:00
Angus Gratton
2f1815f74e
Merge branch 'bugfix/cmake_issues' into 'master'
...
CMake bugfixes
See merge request espressif/esp-idf!7605
2020-03-06 14:36:59 +08:00
Angus Gratton
0e0efa28be
Merge branch 'test/stdatomic_ut' into 'master'
...
atomic: support fetch_and, fetch_and and fetch_xor
See merge request espressif/esp-idf!7852
2020-03-06 14:32:02 +08:00
Angus Gratton
f393938c22
Merge branch 'bugfix/remove_esp32s2_esp_intr_header' into 'master'
...
esp32s2: remove esp_intr.h header
See merge request espressif/esp-idf!7883
2020-03-06 14:30:28 +08:00
Angus Gratton
b393203b27
Merge branch 'feature/x509_cert_management' into 'master'
...
X509 certificate management
Closes IDF-296
See merge request espressif/esp-idf!5346
2020-03-06 14:29:53 +08:00
Angus Gratton
86eee73ff0
Merge branch 'bugfix/aligned_alloc_without_poisoning' into 'master'
...
bugfix/heap: Make aligned alloc and aligned free available to all heap poisoning configurations
See merge request espressif/esp-idf!7822
2020-03-06 14:11:20 +08:00
Angus Gratton
02e9e0621e
Merge branch 'bugfix/display_partition_table_info' into 'master'
...
partition_table: output partition table info for partition_table target
See merge request espressif/esp-idf!7638
2020-03-06 14:09:09 +08:00
Jiang Jiang Jian
b184504a84
Merge branch 'feature/support_multiple_phy_init_data_bin' into 'master'
...
feature: support multiple phy init data
Closes WIFI-648
See merge request espressif/esp-idf!6399
2020-03-06 12:20:43 +08:00
Michael (XIAO Xufeng)
8e348dcdcd
Merge branch 'bugfix/fix_driver_ut_i2s' into 'master'
...
bugfix(i2s): fix driver ut i2s
See merge request espressif/esp-idf!6946
2020-03-06 11:55:07 +08:00
Jiang Jiang Jian
b7a14c47e6
Merge branch 'bugfix/customer_baidu_psram_stack_backtrace' into 'master'
...
added psram stack check in backtrace
See merge request espressif/esp-idf!7834
2020-03-06 11:35:54 +08:00
Prasad Alatkar
48bd2d74b4
NimBLE: Add Host based privacy (RPA) feature support
...
- This feature removes dependency on controller to use privacy (RPA)
2020-03-06 11:02:18 +08:00
David Cermak
ab8cab1c55
mdns: limit the GOT_IP6_EVENT to only known network interfaces
2020-03-05 18:46:48 +00:00
David Cermak
eae8eaa55f
esp-netif-ppp: support for posting GOT_IP event for IPv6
2020-03-05 18:46:48 +00:00
Francesco Giancane
872272e23a
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-03-05 18:46:48 +00:00
Felipe Neves
d495f175d5
heap: pushed down all the aligned_alloc / free implementation
2020-03-05 11:02:19 -03:00
Renz Bagaporo
71c02394e5
esp32s2: remove esp_intr.h header
2020-03-05 16:15:59 +08:00
ronghulin
ffd8c26780
feature: support multiple PHY init data
2020-03-05 16:14:00 +08:00
Jiang Jiang Jian
1e95cf3111
Merge branch 'bugfix/btdm_assert_when_create_connection_cancel' into 'master'
...
components/bt: Fix assert when create conntion cancel
See merge request espressif/esp-idf!7816
2020-03-05 14:52:36 +08:00
Prasad Alatkar
ee1ab95b98
NimBLE: Fix check for static random address & add MSYS_1 in menuconfig
...
Closes BT-522 & BT-523
2020-03-05 13:53:04 +08:00
Renz Bagaporo
5f3a689a89
soc: remove duplicate sdio_slave_hal.c
2020-03-05 12:47:54 +08:00
Renz Christian Bagaporo
709d139a25
partition_table: output partition table info for partition_table target
2020-03-05 11:04:09 +08:00
Mahavir Jain
582f5dd697
Merge branch 'feature/https_server_mutual_auth_PR' into 'master'
...
Feature/https_server_mutual_auth
Closes IDFGH-2004
See merge request espressif/esp-idf!7626
2020-03-04 17:41:28 +08:00
Ivan Grokhotkov
22516b256f
bootloader_support: force alignment of flash_read argument
2020-03-04 09:56:01 +01:00
Jiang Jiang Jian
5724083510
Merge branch 'bugfix/coex_adjust_scheme_when_bt_is_in_connected_status' into 'master'
...
coexist: adjust coexist scheme when BT is in connected status
Closes BT-635 and WIFI-1743
See merge request espressif/esp-idf!7752
2020-03-04 15:33:09 +08:00
Michael (XIAO Xufeng)
bd7b2261a7
Merge branch 'bugfix/fix_esp32s2_soc_bug' into 'master'
...
bugfix(soc/rtc): fix soc/rtc code for esp32s2
See merge request espressif/esp-idf!7819
2020-03-04 14:07:41 +08:00
Xia Xiaotian
5aba95a326
coexist: adjust coexist scheme when BT is in connected status
2020-03-04 13:40:11 +08:00
Jiang Jiang Jian
4d0834359f
Merge branch 'feature/wpa3_testcases_support' into 'master'
...
esp_wifi: Support for additional WPA3 testcases
See merge request espressif/esp-idf!7459
2020-03-04 13:33:00 +08:00
Michael (XIAO Xufeng)
9e12586ab7
esp_common: new unit test benchmarking stdatomic operations
2020-03-04 12:20:23 +08:00
Michael (XIAO Xufeng)
8434845050
atomic: support fetch_and, fetch_and and fetch_xor
2020-03-04 11:35:23 +08:00
Mahavir Jain
5f771fb7be
Merge branch 'bugfix/esp_wifi_memory_leak_test_failure' into 'master'
...
esp_wifi: fix occasional test failure due to memory leak indications
See merge request espressif/esp-idf!7823
2020-03-04 11:16:04 +08:00
Marius Vikhammer
947e3e94ed
Add ESP certificate bundle feature
...
Adds the ESP certificate bundle feature that enables users to bundle a
root certificate bundle together with their application.
Default bundle includes all Mozilla root certificates
Closes IDF-296
2020-03-04 10:51:43 +08:00
Alex Lisitsyn
3efa8d7a97
core dump: add ESP32-S2 support
2020-03-03 23:37:45 +08:00
Nachiket Kukade
30d6220394
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-03 19:01:51 +05:30
chaijie
66beaaef7d
soc(rtc): modify rtc code in soc for esp32s2
2020-03-03 13:22:52 +00:00
morris
acd4d4a40b
unit test using internal signal connection
2020-03-03 20:14:46 +08:00
morris
07088c6446
rmt: disable carrier feature by default
2020-03-03 20:14:46 +08:00
morris
0e4d82bc55
rmt: support REF_TICK as channel clock source
...
Closes https://github.com/espressif/esp-idf/pull/3952
2020-03-03 20:14:46 +08:00
morris
3c43264f83
rmt: add RMT_CHANNELS_NUM in rmt_caps.h
2020-03-03 20:14:45 +08:00
Jiang Jiang Jian
ebd35a1657
Merge branch 'bugfix/wep_crash' into 'master'
...
esp-wifi: Fix crash during WEP shared auth
See merge request espressif/esp-idf!7818
2020-03-03 19:18:46 +08:00
kapil.gupta
c634de1532
esp-wifi: Fix crash during WEP shared auth
...
VNC 1181
WIFI Lib: 526
2020-03-03 17:29:03 +08:00
Renz Bagaporo
07a71529de
ulp: fix ulp external project args
...
Closes https://github.com/espressif/esp-idf/issues/4713
2020-03-03 16:56:14 +08:00
David Cermak
7bf1a1db35
MQTT: Reference latest mqtt addressing c++ build and qos1/2 resend
...
Closes https://github.com/espressif/esp-idf/issues/4787
2020-03-03 07:07:57 +00:00
Jiang Jiang Jian
36e292b97d
Merge branch 'bugfix/add_hostname_in_discover_packet' into 'master'
...
lw-ip:add host name in discover packet
Closes WIFI-1702
See merge request espressif/esp-idf!7677
2020-03-03 14:25:19 +08:00
Mahavir Jain
8ae05e6547
esp_wifi: fix occasional test failure due to memory leak indications
...
Ensure that newly spawned task stack (dynamic) is getting freed up before
test completion and thus preventing false memory leak indication failure.
unit-test-app: add an API test_utils_task_delete
This API ensures that dynamic memory of deleted task gets freed up
before return. This helps for preventing false memory leak detections
in test failures.
2020-03-03 11:11:23 +05:30
xiongyu
b3ae9fa978
bugfix(i2s): Updated ESP32-S2 ADC DAC support
...
* Delete the relevant codes of ADC DAC of ESP32-S2.
2020-03-03 12:59:30 +08:00
Jiang Jiang Jian
e8ca5e6f21
Merge branch 'bugfix/Add_wifi_stop_check_in_deinit_entry' into 'master'
...
esp_wifi: Add wifi stop check at wifi deinit entry
Closes WIFI-1671
See merge request espressif/esp-idf!7800
2020-03-03 12:33:05 +08:00
fuzhibo
3ad5138dd8
fix coexist i2s_adc and rtc_adc
2020-03-03 11:58:53 +08:00
xiongyu
faf898b659
bugfix(i2s): fix driver ut i2s
...
* Add test support for ESP32S2
* Add loop back test
* Support chip internal connection, no external wiring required.
* Delete the relevant codes of PDM of ESP32-S2 ll layer.
* fix dac dma mode issue
2020-03-03 11:58:53 +08:00
Li Shuai
c796e14964
added psram stack check in backtrace
2020-03-03 11:52:29 +08:00
Angus Gratton
bfc37ab43f
Merge branch 'bugfix/spiflash_read_psram' into 'master'
...
spi_flash: Fix over-allocation and OOM crash when reading from SPI flash to PSRAM buffers
Closes IDFGH-2698
See merge request espressif/esp-idf!7768
2020-03-03 10:20:15 +08:00
Angus Gratton
95f7b1985b
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-03 00:17:27 +00:00
Angus Gratton
fb340940d3
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-03 00:17:27 +00:00
Ivan Grokhotkov
4f32a06f87
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-03-02 14:43:05 +01:00
morris
580ce8fa4a
driver: clean pcnt.h i2s.h
2020-03-02 19:31:29 +08:00
xueyunfei
1dfd4d7c42
add host name in discover packet
2020-03-02 08:18:28 +00:00
Aditya Patwardhan
cc0eec52ff
esp_https_server: Fixed a PR which adds support for mutual auth in
...
https_server
Closes https://github.com/espressif/esp-idf/pull/4184
Closes IDFGH-2004
2020-03-02 12:36:36 +05:30
Maximilian Schmidt
559cd57ea6
Support MutualAuthentication in HTTPsServer
2020-03-02 12:28:30 +05:30
xiehang
299ab1360c
eps_wifi: Add wifi stop check at wifi deinit entry
2020-03-02 14:20:28 +08:00
zhangyanjiao
36c726de99
esp_wifi: fix bugs related to espnow and channel set
...
1. Fix the bug for setting channel when Wi-Fi in NULL mode
2. Fix the espnow crash issue
2020-03-02 11:32:05 +08:00
Renz Christian Bagaporo
eb865008d5
cmake: show error message on encrypted flash targets without proper config
2020-03-02 07:18:22 +05:00
Jiang Jiang Jian
6fd855ab8d
Merge branch 'bugfix/IPV6_multicast_adress_error' into 'master'
...
lw-ip:fix ipv6 bug when input the wrong broadcast
Closes IDF-1226
See merge request espressif/esp-idf!7771
2020-02-29 16:24:19 +08:00
Felipe Neves
98e561b79a
heap: added aligned alloc implementation on multi_heap layer
2020-02-28 13:17:34 -03:00
liu zhifu
6fa0ef50d1
esp_wifi: fix S2 WiFi RX filter issue
2020-02-28 21:37:30 +08:00
Jiang Jiang Jian
520ae6543d
Merge branch 'bugfix/add_ant_field_for_esp32s2' into 'master'
...
(S2) WiFi: add ant field for esp32s2 and update phy lib v102 to v202
Closes WIFI-1787 and WIFI-1788
See merge request espressif/esp-idf!7676
2020-02-28 21:17:40 +08:00
baohongde
d2aa4a1e50
components/bt: Fix assert when create conntion cancel
2020-02-28 20:13:41 +08:00
ChenJianxing
a182c0682e
(S2) WiFi: add ant field for esp32s2 and update phy lib from v102 to v202
2020-02-28 17:44:21 +08:00
Jiang Jiang Jian
40baff19f8
Merge branch 'bugfix/btdm_div_by_zero_in_slp_clk_conversion' into 'master'
...
bugfix/btdm_div_by_zero_in_slp_clk_conversion
See merge request espressif/esp-idf!7785
2020-02-28 17:19:40 +08:00
liu zhifu
940b4786c5
esp_wifi: fix the bug that WiFi stop leads to memory leak
2020-02-28 12:06:26 +08:00
xueyunfei
74e690402c
fix ipv6 bug when input the wrong broadcast
2020-02-28 12:00:45 +08:00
Angus Gratton
04ccb84b83
Merge branch 'feature/cpu_abstraction' into 'master'
...
CPU related operations abstraction
See merge request espressif/esp-idf!7301
2020-02-28 11:54:29 +08:00
wangmengyang
3428a1ad0b
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 11:36:48 +08:00
Mahavir Jain
2187948cf0
Merge branch 'bugfix/use_less_ram_for_esp_event_performance_test' into 'master'
...
esp_event: reduce event bases registered in performance test
See merge request espressif/esp-idf!7807
2020-02-28 11:25:24 +08:00
Michael (XIAO Xufeng)
ce3ab0b8df
Merge branch 'bugfix/nec_example' into 'master'
...
bugfix in NEC example and low level function
Closes IDFGH-2676 and IDFGH-2689
See merge request espressif/esp-idf!7562
2020-02-28 11:00:50 +08:00
Mahavir Jain
371b3d26ee
Merge branch 'feature/https_server_using_wolfssl' into 'master'
...
Feature/https server using wolfssl
See merge request espressif/esp-idf!7422
2020-02-27 18:57:12 +08:00
Renz Christian Bagaporo
c643f743ce
esp_event: halve the events registered in performance test
2020-02-27 15:54:54 +05:00
Mahavir Jain
5f897fd33c
Merge branch 'feat/secure_boot_v2_v41' into 'master'
...
feat/secure_boot_v2: Adding secure boot v2 support to ESP32-ECO3
Closes IDF-799
See merge request espressif/esp-idf!6778
2020-02-27 18:54:08 +08:00
Aditya Patwardhan
c6ad650796
esp_tls_wolfssl: Add support for DER formatted certificates
2020-02-27 15:20:22 +05:30
Aditya Patwardhan
0a25922043
esp_tls_wolfssl: 1) Fix SNI for wolfSSL
...
2) Fix error captures
3) Add error flags specific wolfSSL
4) make respective changes to esp_err_to_name.c
2020-02-27 15:20:22 +05:30
Aditya Patwardhan
d35862b662
esp-tls: Add support for https_server using wolfSSL
2020-02-27 15:20:22 +05:30
Angus Gratton
26efc5a6d0
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-02-27 14:38:52 +05:30
Angus Gratton
d40c69375c
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-02-27 14:37:19 +05:30
Angus Gratton
0dacff4df4
secure boot: Encrypt the bootloader signature when enabling flash encryption + secure boot v2
2020-02-27 14:32:42 +05:30
Jiang Jiang Jian
4bd9c2ff64
Merge branch 'bugfix/fix_beacon_frame_vendor_ie_issue' into 'master'
...
bugfix: Place the Vendor Specific element at the end according to the protocol
Closes WIFI-705
See merge request espressif/esp-idf!7669
2020-02-27 14:31:45 +08:00
Jiang Jiang Jian
5ab8250bde
Merge branch 'feat/ble_mesh_update' into 'master'
...
ble_mesh: Miscellaneous modifications
Closes BLEMESH-139 and BLEMESH-38
See merge request espressif/esp-idf!7385
2020-02-27 11:34:58 +08:00
Michael (XIAO Xufeng)
7f8c827326
Merge branch 'bugfix/fix_driver_ut_pcnt' into 'master'
...
bugfix(pcnt): fix driver ut pcnt
See merge request espressif/esp-idf!6891
2020-02-27 11:29:28 +08:00
Renz Christian Bagaporo
d46989efa3
soc: remove param checking in cpu related abstractions
2020-02-27 07:15:15 +05:00
Renz Christian Bagaporo
f75cb2ef00
soc: change cpu stall, unstall, and reset core to not return values
2020-02-27 07:15:15 +05:00
Renz Christian Bagaporo
d5c123c1f5
soc: use own macro to assert proper args for cpu abstractions
2020-02-27 07:15:15 +05:00
Renz Christian Bagaporo
7386ac6d15
esp32s2: remove calls to stall/unstall other core
2020-02-27 07:15:15 +05:00
Renz Christian Bagaporo
7f864d24ad
soc: prefer assertions, disabling functions for cpu abstractions
...
Prefer assertions, making available functions only when caps support it
for cpu-related abstractions.
Changes cpu hal functions to stall, unstall, reset to not accept -1;
instead prefering macros that provide the same functionality.
2020-02-27 07:15:14 +05:00
Renz Christian Bagaporo
cefc71cdcd
bootloader_support: mem-related initializations using cpu abstractions
2020-02-27 07:14:21 +05:00
Renz Christian Bagaporo
db608736fb
freertos: implement get core id with cpu abstraction
2020-02-27 07:14:21 +05:00
Renz Christian Bagaporo
f3c6320ff6
soc: implement cpu utils in terms of cpu abstractions
2020-02-27 07:14:21 +05:00
Renz Christian Bagaporo
c9a51bfbb2
soc: create abstraction for cpu related operations
2020-02-27 07:14:19 +05:00
Jiang Jiang Jian
ac55328efd
Merge branch 'bugfix/fix_sae_test_failure' into 'master'
...
wpa_supplicant: Fix SAE test-case failure on mbedtls version udpate
See merge request espressif/esp-idf!7792
2020-02-26 22:38:06 +08:00
Sachin Parekh
301dacfb33
Exception handlers for LoadStoreError and LoadStoreAlignmentError
...
Configurable option to use IRAM as byte accessible memory (in single core mode) using
load-store (non-word aligned and non-word size IRAM access specific) exception handlers.
This allows to use IRAM for use-cases where certain performance penalty
(upto 170 cpu cycles per load or store operation) is acceptable. Additional configuration
option has been provided to redirect mbedTLS specific in-out content length buffers to
IRAM (in single core mode), allows to save 20KB per TLS connection.
2020-02-26 20:21:59 +08:00
Sagar Bijwe
0f1710d878
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-02-26 17:50:08 +05:30
Michael (XIAO Xufeng)
c53192d521
Merge branch 'bugfix/fix_uart_set_line_inverse_breaking_change_issue' into 'master'
...
Bugfix(uart): fix uart_set_line_inverse breaking change issue
Closes IDFGH-2469
See merge request espressif/esp-idf!7345
2020-02-26 18:34:52 +08:00
Michael (XIAO Xufeng)
9d8e590d86
Merge branch 'fix/spi_flash_legacy_on_esp32s2' into 'master'
...
spi_flash: fix the reading issue using the ROM functions on ESP32-S2
See merge request espressif/esp-idf!7767
2020-02-26 18:04:51 +08:00
lly
134f57b8e0
ble_mesh: Calc incomplete timeout based on msg info
2020-02-26 17:42:04 +08:00
lly
087bafe5b9
ble_mesh: Start the timer when starting to send the client message
2020-02-26 17:41:46 +08:00
lly
90f8a54a71
ble_mesh: No timeout for client message to non-unicast address
2020-02-26 17:41:30 +08:00
lly
97eca35805
ble_mesh: Unify client application and lower transport layer timeout
2020-02-26 17:41:11 +08:00
lly
e24645c791
ble_mesh: Allow maximum 377 octets payload
2020-02-26 17:40:46 +08:00
lly
828bfeac88
ble_mesh: Reset transport info when node is removed
2020-02-26 17:40:23 +08:00
lly
48343a8a8f
ble_mesh: Provisioner ignores msg from removed node
2020-02-26 17:39:55 +08:00
lly
7cd08b5824
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-02-26 17:37:44 +08:00
xiongyu
4d5c950770
bugfix(pcnt): fix driver ut pcnt
...
* Let `[ignore] case` return to freedom
1) Because this test uses its own ISR, we need to release it with `esp_intr_free` instead of `pcnt_isr_service_uninstall`.
2) `pcnt_evt_queue` needs to be created before the interrupt is registered and needs to be released at the end of each case.
* Add test support for ESP32S2
* Support chip internal connection, no external wiring required.
2020-02-26 16:52:53 +08:00
Michael (XIAO Xufeng)
160d3bd416
Merge branch 'refactor/i2c_const_and_param_check' into 'master'
...
I2C: const correctness and better param check
See merge request espressif/esp-idf!7582
2020-02-26 16:06:57 +08:00
Jakob Hasse
3bcc6b48af
I2C: i2c.h/i2c.c applied new code formatting
2020-02-26 15:12:03 +08:00
Mahavir Jain
6cc4859d02
Merge branch 'feature/enable_protocomm_tests_for_s2' into 'master'
...
protocomm: enable test cases for esp32s2 with software AES
Closes IDF-1399
See merge request espressif/esp-idf!7675
2020-02-26 11:23:02 +08:00
michael
f1a4c84e57
GPIO: fix unit test issue on ESP32-S2
...
Also rename some test variables.
2020-02-26 11:12:09 +08:00
michael
7a3f21636f
spi_flash: fix the reading issue using the ROM functions in the ROM
2020-02-26 11:12:09 +08:00
michael
f8fae4c80c
spi_flash: resume unit tests for ESP32-S2
2020-02-26 11:12:08 +08:00
houwenxiang
4883733472
driver(I2C): support esp32-s2 I2C driver.
2020-02-25 21:56:00 +08:00
Jiang Jiang Jian
02e2c30ba2
Merge branch 'bugfix/hfp_github_issues' into 'master'
...
Bugfix/hfp github issues
Closes BT-614, BT-639, and BT-633
See merge request espressif/esp-idf!7753
2020-02-25 21:05:56 +08:00
Mahavir Jain
b3e7e61f23
protocomm: enable test cases for esp32s2 with software AES
2020-02-25 18:05:35 +05:30
weitianhua
477e584f7d
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-02-25 18:03:54 +08:00
Michael (XIAO Xufeng)
8f496a0f96
Merge branch 'refactor/add_ll_for_clock_gate_operation' into 'master'
...
periph_ctrl: move target specific into ll files
See merge request espressif/esp-idf!7733
2020-02-25 16:56:30 +08:00
Jiang Jiang Jian
cc7b5ed6d2
Merge branch 'feature/resume_several_tests_on_esp32s2' into 'master'
...
Resume several tests on esp32s2
Closes IDF-1013, IDF-1025, and IDF-1030
See merge request espressif/esp-idf!7751
2020-02-25 14:28:14 +08:00
ronghulin
9afdcb2c70
bugfix: Place the Vendor Specific element at the end according to the protocol
2020-02-25 14:18:50 +08:00
Mahavir Jain
33cdd09385
Merge branch 'bugfix/ota_with_redirection' into 'master'
...
Fix OTA in case of a redirection
See merge request espressif/esp-idf!7596
2020-02-25 13:08:00 +08:00
Supreet Deshpande
a9ccc5e5c8
feat/secure_boot_v2: Adding secure boot v2 support for ESP32-ECO3
2020-02-25 01:28:22 +05:30
Shubham Kulkarni
63cd95d236
esp_https_ota.c: Add errno check for WiFi disconnection while performing OTA
2020-02-24 16:53:40 +05:30
Shubham Kulkarni
4d40f94168
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-02-24 16:53:27 +05:30
morris
e9717fc07b
periph_ctrl: move target specific into ll files
2020-02-24 14:50:26 +08:00
Jakob Hasse
d230d44e2d
I2C: const correctness, checking SDA/SCL GPIOs
...
* const correctness in i2c_slave_write_buffer()
* i2c_set_pin() additionally checks whether
SDA and SCL pins are the same number
2020-02-24 14:30:28 +08:00
morris
2227e2505b
resume wifi init test on esp32s2
2020-02-24 14:03:25 +08:00
morris
ea8d6318af
add SOC_EMAC_SUPPORTED in soc_caps.h
2020-02-24 11:57:58 +08:00
Jiang Jiang Jian
c65b67115a
Merge branch 'bugfix/wifi_run_modem_sleep_on_esp32s2' into 'master'
...
esp_wifi: run modem sleep on ESP32S2
Closes WIFI-1767
See merge request espressif/esp-idf!7682
2020-02-24 11:44:37 +08:00
houwenxiang
c07e4c775d
driver(uart): fix uart_set_line_inverse breaking change issue
...
closes https://github.com/espressif/esp-idf/issues/4581
2020-02-24 11:36:31 +08:00
Jiang Jiang Jian
7092613eea
Merge branch 'bugfix/btdm_check_EXT_CRYS_state_for_sleep_clk' into 'master'
...
bugfix/btdm_check_EXT_CRYS_state_for_sleep_clk
Closes BT-582
See merge request espressif/esp-idf!7439
2020-02-21 21:21:54 +08:00
Xia Xiaotian
6faaa0ea6b
esp_wifi: run modem sleep on ESP32S2
2020-02-21 19:58:41 +08:00
Ivan Grokhotkov
5ccfc332ea
Merge branch 'feature/nvs_erase_check_init' into 'master'
...
NVS Flash: prevent erasing initialized partition
See merge request espressif/esp-idf!7615
2020-02-21 17:47:45 +08:00
Jiang Jiang Jian
e2d8f81ef5
Merge branch 'bugfix/fix_esp32s2_chip_version_name' into 'master'
...
wifi: Change esp32s2beta dirname to esp32s2 in wifi-lib
See merge request espressif/esp-idf!7654
2020-02-21 17:45:08 +08:00
Jiang Jiang Jian
d3d4746bb7
Merge branch 'bugfix/add_option_to_ipv6_stateless_address_configuration' into 'master'
...
lw-ip: Add option to ipv6 stateless address configuration
See merge request espressif/esp-idf!7697
2020-02-21 14:53:03 +08:00
Ivan Grokhotkov
b90a68f89b
Merge branch 'bugfix/esp32s2_trax' into 'master'
...
xtensa: add TRAX support for esp32s2
Closes IDF-1408
See merge request espressif/esp-idf!7683
2020-02-21 09:58:15 +08:00
Fu Zhi Bo
7a5b67b8de
rtcio: fix rtcio unhold function
...
Solve problems caused by code refactoring.
Closes https://github.com/espressif/esp-idf/issues/4600
2020-02-20 15:42:28 +08:00
Sagar Bijwe
bbd0ff5347
wifi: Change esp32s2beta dirname to esp32s2 in wifi-lib
2020-02-20 06:57:10 +00:00
wangmengyang
d6e672ed51
component/bt: fall back to main XTAL as Bluetooth sleep clock when EXT 32K CRYS is configured but not detected
2020-02-20 14:34:28 +08:00
xiehang
a4b16213ad
lw-ip: Add option to ipv6 stateless address configuration
2020-02-20 14:30:21 +08:00
Jiang Jiang Jian
959b0295f3
Merge branch 'bugfix/coex_a2dp_stuck_after_creating_anther_connection' into 'master'
...
components/coex: Fix a2dp stuck after creating another connection
See merge request espressif/esp-idf!7651
2020-02-20 14:15:22 +08:00
Jiang Jiang Jian
a512d6e15a
Merge branch 'bugfix/coex_fix_misspell_in_kconfig' into 'master'
...
components/coex: Fix misspell in Kconfig
See merge request espressif/esp-idf!7670
2020-02-20 14:15:04 +08:00
Jiang Jiang Jian
adf10e4469
Merge branch 'bugfix/btdm_role_switch' into 'master'
...
Fix bugs about role switch
Closes BT-458 and BT-482
See merge request espressif/esp-idf!6878
2020-02-20 13:39:25 +08:00
Jakob Hasse
c6deffb8a2
NVS Flash: prevent erasing initialized partition
...
Closes https://github.com/espressif/esp-idf/issues/4755
Closes https://github.com/espressif/esp-idf/issues/2777
* nvs_flash_erase_partition() checks whether
the parition in question is initialized
already and will return an error if so
* reflect changes in the documentation
2020-02-19 18:16:04 +01:00
Michael (XIAO Xufeng)
fa4eba2e34
Merge branch 'bugfix/add_missing_ledc_set_pin_declaration' into 'master'
...
Bugfix (LEDC): Add missing ledc_set_pin declaration
Closes IDFGH-2546
See merge request espressif/esp-idf!7344
2020-02-20 00:22:43 +08:00
Ivan Grokhotkov
8fec484d2b
xtensa: add TRAX support for esp32s2
2020-02-19 14:02:14 +01:00
baohongde
d11a86076f
Fix bugs about role switch
...
Jitter in FHS
Jitter in first PULL
Receive EDR packet fail after role switch
2020-02-19 20:14:47 +08:00
Ivan Grokhotkov
40cff27053
Merge branch 'feature/esp32s2_pm' into 'master'
...
esp32s2: power management (DFS and auto light sleep)
Closes IDF-670, IDF-527, and IDFGH-231
See merge request espressif/esp-idf!7578
2020-02-19 18:26:33 +08:00
Ivan Grokhotkov
32ea031b19
Merge branch 'bugfix/bootloader_custom_console_pins' into 'master'
...
Fix bootloader build if custom UART pins are used (Github PR + ESP32-S2 + test)
See merge request espressif/esp-idf!7665
2020-02-19 16:56:15 +08:00
Paul Abbott
b75e3de447
Bugfix(LEDC): Add missing ledc_set_pin declaration in led.h
...
Merges https://github.com/espressif/esp-idf/pull/4632
2020-02-19 16:02:33 +08:00
baohongde
6ca361fd2b
components/coex: Fix a2dp stuck after creating anther connection
2020-02-19 07:14:26 +00:00
Ivan Grokhotkov
f69f05ecd7
bootloader: esp32s2: fix enabling custom console pins
2020-02-19 08:13:23 +01:00
baohongde
364a9dece0
components/coex: Fix misspell in Kconfig
2020-02-19 11:41:03 +08:00
Ivan Grokhotkov
fe0df01b12
Merge branch 'bugfix/from_github' into 'master'
...
Fixes from Github
Closes IDFGH-2679, IDFGH-2632, IDFGH-2716, IDFGH-2439, and IDFGH-2509
See merge request espressif/esp-idf!7659
2020-02-18 23:53:38 +08:00
Nebojsa Cvetkovic
d649ea96ce
soc: Add missing gpio_periph.h header
2020-02-18 13:10:37 +00:00
Jiang Jiang Jian
a06f025e61
Merge branch 'bugfix/coex_watchdog_timeout_with_sleep_enabled' into 'master'
...
components/coex: Fix watchdog timeout when sleep enabled
See merge request espressif/esp-idf!7419
2020-02-18 20:55:30 +08:00
Jiang Jiang Jian
6d03758ac4
Merge branch 'bugfix/ble_mesh_fix_compile_error_with_cpp' into 'master'
...
ble_mesh: Fix compile error with c++ files
Closes BMCI-52
See merge request espressif/esp-idf!7579
2020-02-18 20:43:55 +08:00
Alexander Borsuk
e489e48dfa
Fixes compilation error on verbose level (IDFGH-2439)
...
Closes #4552
Merges https://github.com/espressif/esp-idf/pull/4786
2020-02-18 12:30:47 +01:00
Jiang Jiang Jian
1a7d0b3b6f
Merge branch 'bugfix/esp32s2_rng' into 'master'
...
soc: esp32s2: fix address of WDEV_RND_REG
Closes IDF-1390
See merge request espressif/esp-idf!7640
2020-02-18 19:07:51 +08:00
Wang Jia Lin
f02399948d
Merge branch 'bugfix/i2s_adc_output_invert' into 'master'
...
bugfix(i2s): fix adc output invert issue
See merge request espressif/esp-idf!7180
2020-02-18 18:29:23 +08:00
Ivan Grokhotkov
e94cf2f807
Merge branch 'bugfix/make_monitor' into 'master'
...
make: fix 'make monitor' target when core dump is not enabled
See merge request espressif/esp-idf!7641
2020-02-18 16:22:20 +08:00
Ivan Grokhotkov
f31fc368bf
make: fix 'make monitor' target when core dump is not enabled
2020-02-18 08:34:16 +01:00
Ivan Grokhotkov
19c2337168
soc: esp32s2: fix address of WDEV_RND_REG
...
Ref. ESP32-S2 TRM.
Closes IDF-1390
2020-02-18 08:24:33 +01:00
Hrishikesh Dhayagude
3080cad4da
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 14:42:07 +08:00
baohongde
66a01ef490
components/coex: Fix watchdog timeout when sleep enabled
...
Fix crash without enabling sw coex
2020-02-18 03:35:24 +00:00
blueMoods
6a922ea07c
components/bt: change HCI task size back
2020-02-18 03:06:09 +00:00
Angus Gratton
a0644bf8ae
Merge branch 'test/resume_ut_esp32s2' into 'master'
...
ci: resume esp32s2 unit tests
See merge request espressif/esp-idf!7436
2020-02-18 10:58:14 +08:00
Angus Gratton
a6066c801d
Merge branch 'feature/efuse_using_rom_set_timing_func' into 'master'
...
(S2) efuse: Using a ROM function for set_timing
Closes IDF-990
See merge request espressif/esp-idf!7594
2020-02-18 10:29:16 +08:00
Angus Gratton
e95ba301d8
Merge branch 'bugfix/use_quotes_in_embedding_ulp_apps' into 'master'
...
ulp: use quotes when specifying files for embedding ulp binaries
See merge request espressif/esp-idf!7606
2020-02-18 09:15:50 +08:00
KonstantinKondrashov
146c788bd4
(S2) efuse: Using a ROM function for set_timing
...
Closes: IDF-990
2020-02-18 01:10:57 +00:00
Renz Christian Bagaporo
bb639bb91d
ulp: use quotes when specifying files for embedding ulp binaries
2020-02-18 00:12:56 +00:00
Angus Gratton
99cdddeb63
docs: Fix broken or incorrect link roles to IDF files & directories
2020-02-18 10:34:11 +11:00
Ivan Grokhotkov
cee7377e3c
esp32s2: hide “FPGA” as an option for CPU frequency
...
unless IDF_ENV_FPGA is set.
2020-02-17 17:33:56 +01:00
Ivan Grokhotkov
a8ad9d6b43
esp32s2: use smaller RTC_CLK_CAL_CYCLES by default
...
Reduce the number proportionally to the frequency (160k on ESP32,
90k on ESP32-S2).
2020-02-17 17:33:56 +01:00
Ivan Grokhotkov
383ace9443
rtc_clk_cal: make compatible with the ESP32
2020-02-17 17:33:56 +01:00
Ivan Grokhotkov
490bf29767
esp32s2: fix enabling 32k XTAL clock
...
On the ESP32S2, rtc_clk_cal(RTC_CAL_RTC_MUX) measures the frequency
of the 90kHz RTC clock regardless of the selected slow clock
frequency. Keep track which clock is selected and pass the argument
to rtc_clk_cal accordingly.
fix clock choices
update rtc 32k xtal code for s2
missed api in rtc.h
bootloader_clock: update for S2
2020-02-17 17:33:56 +01:00
Ivan Grokhotkov
74ac618287
soc/rtc: update frequency switching APIs to match the master branch
...
esp32s2 code was based in IDF v3.1, and used outdated APIs.
Closes IDF-670
2020-02-17 17:23:32 +01:00
Ivan Grokhotkov
d2d3269159
esp32s2: sync esp_pm code from esp32
2020-02-17 16:03:47 +01:00
Ivan Grokhotkov
d37a419dfc
esp_pm: esp_pm_dump_locks: don't print from a critical section
2020-02-17 16:03:47 +01:00
xiongyu
61778d5b7c
bugfix(i2s): fix adc output invert issue
2020-02-17 17:15:01 +08:00
morris
0d521e8f9d
rmt: fix missing 0x in rmt_ll.h
...
Closes https://github.com/espressif/esp-idf/issues/4760
2020-02-17 15:20:41 +08:00
Jiang Jiang Jian
23c62a4225
Merge branch 'bugfix/update_docs_for_wifi_header' into 'master'
...
esp_wifi: Update docs for wifi headers
See merge request espressif/esp-idf!7604
2020-02-17 15:17:28 +08:00
Krzysztof Budzynski
41bc06b9b9
Merge branch 'bugfix/docs_ledc' into 'master'
...
drivers: Remove high speed mode from LEDC docs for ESP32-S2, update headers to match
See merge request espressif/esp-idf!7532
2020-02-17 05:00:36 +08:00
michael
2529eda907
ci: disable failed cases for s2 temporarily
2020-02-15 18:28:25 +08:00
michael
1c7ffbaa19
app_update: rename ut name
2020-02-15 18:28:25 +08:00
michael
d16ad4a67a
ci: disable case witout runners
2020-02-15 18:28:25 +08:00
michael
24b16b0b19
ci: resume esp32s2 unit tests
2020-02-15 18:28:24 +08:00
Jiang Jiang Jian
4c48208e2c
Merge branch 'bugfix/sock_lock_crash' into 'master'
...
lw-ip:fix bug for crash when socket lock not initialized
Closes WIFI-1713
See merge request espressif/esp-idf!7597
2020-02-15 13:41:49 +08:00
Konstantin Kondrashov
565eee12a0
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-15 13:14:08 +08:00
Jiang Jiang Jian
7d39f435a3
Merge branch 'bugfix/ble_crash_irq_miss' into 'master'
...
Fix ble crash issue triggered by ble event irq miss(0x20000) (819979b9)
See merge request espressif/esp-idf!7490
2020-02-14 19:53:49 +08:00
Jiang Jiang Jian
928438056d
Merge branch 'bugfix/btdm_hfp_ag_crash_in_unknown_at_cmd' into 'master'
...
components/bt: Fix connection fail and crash when receive unknown AT cmd
Closes BT-565
See merge request espressif/esp-idf!7389
2020-02-14 19:46:46 +08:00
Jiang Jiang Jian
d058be6720
Merge branch 'bugfix/btdm_error_type_in_config_eir_evt' into 'master'
...
components/bt: Fix error EIR type in config eir event
Closes BT-593
See merge request espressif/esp-idf!7404
2020-02-14 16:38:08 +08:00
Nachiket Kukade
883071fe8c
esp_wifi: Update docs for wifi headers
2020-02-14 12:23:27 +05:30
Jiang Jiang Jian
54a50f4532
Merge branch 'feature/support_esp32s2_wifi_v2' into 'master'
...
WiFi: Add support for ESP32S2
See merge request espressif/esp-idf!7505
2020-02-14 11:54:13 +08:00
Ivan Grokhotkov
25041ba583
tools/idf_monitor: automatically decode UART core dumps
...
This adds detection of UART core dumps to IDF monitor. By default,
core dumps are not printed to the console, but are processed by
espcoredump.py using 'info_corefile' command. The result is printed
to stdout.
This feature can be disabled in menuconfig.
In the future this can be extended to allow running espcoredump.py
with 'dbg_corefile' argument, which is similar to the current GDB Stub
behavior.
Related to IDF-52.
2020-02-13 18:46:26 +01:00
Ivan Grokhotkov
cdb947113e
Merge branch 'feature/esp_event_multiple_register' into 'master'
...
ESP-Event: Feature/esp event multiple register
See merge request espressif/esp-idf!7384
2020-02-13 19:02:09 +08:00
Ivan Grokhotkov
a70a6f8974
Merge branch 'feature/nvs_support_data_encodings' into 'master'
...
Feature/nvs support data encodings
See merge request espressif/esp-idf!7557
2020-02-13 19:00:25 +08:00
sushant.chougule
74c7db3f49
Fix ble crash issue triggered by ble event irq miss(0x20000) (d2a1d18d)
2020-02-13 16:16:21 +05:30
xueyunfei
5f904c5b4e
fix bug for crash when socket lock not initialized
2020-02-13 18:00:46 +08:00
ChenJianxing
3e3753faf4
update WiFi libs for both esp32 and esp32s2.
2020-02-13 16:58:36 +08:00
Ivan Grokhotkov
8d8337e80c
Merge branch 'feat/sdspi_polling_spi' into 'master'
...
sdspi: allow using sdspi with other devices on the same bus
See merge request espressif/esp-idf!3177
2020-02-13 15:18:59 +08:00
Jiang Jiang Jian
b42fc77e11
Merge branch 'bugfix/ble_mesh_utf_8_comma' into 'master'
...
ble_mesh: Kconfig included a UTF-8 comma
See merge request espressif/esp-idf!7574
2020-02-13 11:10:43 +08:00
lly
326ccfca88
ble_mesh: Fix compile error with c++ files
2020-02-12 21:24:32 +08:00
Jiang Jiang Jian
dbe1164ecc
Merge branch 'bugfix/fix_airkiss_bug' into 'master'
...
fix the bug for Airkiss
Closes WIFI-1670
See merge request espressif/esp-idf!7347
2020-02-12 20:12:19 +08:00
Chinmay Chhajed
6d96217204
Future events scheduling error in case of wifi and bluetooth.
...
After this commit, global interrupts will be disabled before taking
current time for scheduling further bluetooth events. Earlier disabling
interrupts was taking some time because of which WiFi events were
interrupting in current bluetooth scheduling.
Signed-off-by: Chinmay Chhajed <chinmay.chhajed@espressif.com>
2020-02-12 20:04:21 +08:00
lly
bfb27addda
ble_mesh: Kconfig included a UTF-8 comma
2020-02-12 18:21:09 +08:00
Ivan Grokhotkov
b942327a25
Merge branch 'bugfix/esp_netif_hostname' into 'master'
...
esp_netif: fix get/set hostname API to reflect user settings
See merge request espressif/esp-idf!7547
2020-02-12 17:53:58 +08:00
zhangyanjiao
50b9ccf8b4
fix the bug for Airkiss
...
Closes https://github.com/espressif/esp-idf/issues/3362
2020-02-12 08:27:09 +00:00
Jiang Jiang Jian
cedea18acb
Merge branch 'bugfix/wifi_clear_phy_status_when_cpu_start' into 'master'
...
soc: clear PHY status when cpu start
Closes AUD-1125
See merge request espressif/esp-idf!7493
2020-02-12 15:34:46 +08:00
Michael (XIAO Xufeng)
48a62b3490
sdspi: use polling transactions to increase reading speed.
2020-02-12 15:16:19 +08:00
Michael (XIAO Xufeng)
067f3d21c9
sdspi, vfs_fat: allow sharing SPI bus among devices, and mounting multiple SD cards
2020-02-12 15:16:08 +08:00
Michael (XIAO Xufeng)
278634dcbd
sdspi: support crc16_be for esp32s2
2020-02-12 15:15:46 +08:00
Angus Gratton
c1d0daf36d
Merge branch 'refactor/restructure_soc_component' into 'master'
...
soc: separate abstraction, description and implementation
See merge request espressif/esp-idf!7261
2020-02-12 07:50:10 +08:00
Ivan Grokhotkov
f9bc4fc08b
Merge branch 'bugfix/watchpoint_on_shared_stacl' into 'master'
...
shared_stack: fixed watchpoint placement on shared stack
See merge request espressif/esp-idf!7522
2020-02-12 06:32:49 +08:00
Bruno Binet
7084015884
Update NVS Partition Generator Utility documentation
...
to add support for i16, u64, i64 types
2020-02-11 11:18:19 +00:00
Bruno Binet
cab895f459
NVS: add support for i16, u64, i64 types to NVS partition generation tool
2020-02-11 11:18:19 +00:00
Jakob Hasse
9b4815e3c8
ESP Event: multiple registrations to one event
...
* It's possible now to register the same handler
several times to one specific event, using
a dynamic handle object.
2020-02-11 10:52:05 +01:00
Renz Christian Bagaporo
16e0c93e40
ci: solve public headers errors
2020-02-11 14:30:42 +05:00
Renz Christian Bagaporo
b675df4b08
soc: use include_next for including common touch sensor hal header
2020-02-11 14:30:42 +05:00
Renz Christian Bagaporo
1f2e2fe8af
soc: separate abstraction, description and implementation
2020-02-11 14:30:42 +05:00
Jiang Jiang Jian
7f4309d0f1
Merge branch 'feature/esp32_5p0_code_optimize' into 'master'
...
controller flash code optimize
See merge request espressif/esp-idf!7409
2020-02-11 17:29:08 +08:00
Jiang Jiang Jian
7647b5c668
Merge branch 'bugfix/eapol_log_verbosity' into 'master'
...
wpa_supplicant: Add wpa_supllicant debug logging as a configurable option
Closes WIFI-976
See merge request espressif/esp-idf!7289
2020-02-11 16:10:07 +08:00
David Cermak
3904be6b0f
ESP-NETIF: add unit test for get/set hostname API
2020-02-11 07:36:32 +01:00
David Cermak
7c8cbe02e4
ESP-NETIF: fix get/set hostname API to reflect user settings
...
On startup of the common interface (ethernet, wifi), the lwip netif hostname was assigned to confg value .
Fixed to assign to esp-netif hostname if it exists
Closes https://github.com/espressif/esp-idf/issues/4737
2020-02-11 07:35:12 +01:00
Angus Gratton
c1eef95ec1
Merge branch 'bugfix/test_fp_switch' into 'master'
...
esp32: use semaphore in FP switch test, raise worker task priority
See merge request espressif/esp-idf!7526
2020-02-11 12:05:04 +08:00
Angus Gratton
ea34f3bb27
drivers: Remove high speed mode from LEDC docs for ESP32-S2, update headers to match
2020-02-11 14:36:47 +11:00
David Cermak
50588ff3f7
esp-compiler: add designated init macros to make esp configuration pattern viable under C++
2020-02-10 19:40:28 +01:00
David Cermak
d8da662dec
ESP-NETIF: Add unit test for additional API
2020-02-10 19:40:23 +01:00
Felipe Neves
9c8289b0d9
shared_stack: using watchpoint 1 to monitor the shared_stack instead of watchpoint 0
2020-02-10 12:03:30 -03:00
Felipe Neves
33c9826372
shared_stack: fixed watchpoint placement on shared_stack
2020-02-10 12:03:30 -03:00
David Cermak
02cdef086f
ESP-NETIF: easier creation for WiFi interfaces with custom parameters
...
Closes https://github.com/espressif/esp-idf/issues/4611
Closes IDFGH-2523
2020-02-10 14:22:07 +01:00
Ivan Grokhotkov
7304651320
esp32: use semaphore in FP switch test, raise worker task priority
2020-02-10 13:36:43 +01:00
Angus Gratton
c5d05b5c4f
Merge branch 'feature/usb_support4soc' into 'master'
...
Added usb registers structures
See merge request espressif/esp-idf!6811
2020-02-10 18:00:39 +08:00
Ivan Grokhotkov
f11b8f14c7
Merge branch 'feature/support_enc28j60' into 'master'
...
Added ENC28J60 Example
Closes IDFGH-2295
See merge request espressif/esp-idf!6877
2020-02-10 17:18:38 +08:00
Ivan Grokhotkov
70d99fa986
Merge branch 'bugfix/stage_two_bootloader_linking' into 'master'
...
Fixes accessing some files from 2nd part of the bootloader.
See merge request espressif/esp-idf!7531
2020-02-10 17:13:12 +08:00
Andrei Gramakov
4e8b4b9e49
soc: add USB peripheral register definitions, hal level, reg map, etc
2020-02-10 08:33:39 +00:00
Angus Gratton
59c39173f2
Merge branch 'feature/mqtt_unit_test' into 'master'
...
mqtt: basic set of unit tests, modify example tests to check ssl connect
See merge request espressif/esp-idf!7393
2020-02-10 15:10:56 +08:00
Supreet Deshpande
2bf329eb2c
Fixes accessing some files from 2nd part of the bootloader.
2020-02-10 12:34:18 +05:30
morris
9e59be1aab
ethernet: add enc28j60 example
2020-02-10 12:56:14 +08:00
Henry Gilbert
eda07acc81
Add ENC28J60 Ethernet Driver
...
Merges https://github.com/espressif/esp-idf/pull/4435
2020-02-10 12:56:14 +08:00
Ivan Grokhotkov
966f4227ad
Merge branch 'refactor/simplify_console_examples' into 'master'
...
console: simplify console examples
Closes IDF-1110
See merge request espressif/esp-idf!7040
2020-02-10 04:18:58 +08:00
Konstantin Kondrashov
daa9c30c8e
rmt/esp32s2: Update RMT: reg, struct, LL and test_utils/ref_clock.c
2020-02-09 20:03:31 +08:00
Ivan Grokhotkov
4bfd0b961b
Merge branch 'fix/spi_on_esp32s2' into 'master'
...
spi: support esp32s2
See merge request espressif/esp-idf!7432
2020-02-09 19:45:16 +08:00
Ivan Grokhotkov
e5cb972c3a
Merge branch 'bugfix/fix_esp32s2_flash_rw' into 'master'
...
flash(esp32s2): fix setting address field in spi user mode.
See merge request espressif/esp-idf!7380
2020-02-09 18:05:22 +08:00
Mahavir Jain
577abc4472
Merge branch 'bugfix/newlib_nano_lib_linking' into 'master'
...
esp_rom: link newlib nano from ROM only if SPIRAM cache workaround is disabled
See merge request espressif/esp-idf!7527
2020-02-08 12:48:12 +08:00
Ivan Grokhotkov
98bb3772e0
soc: spi_flash LL fixes
2020-02-07 16:18:31 +01:00
Wangjialin
aaf119e930
flash(esp32s2): fix setting address field in spi user mode.
2020-02-07 16:10:51 +01:00
suda-morris
75cadc2e41
console: simplify examples
...
1. simplify console examples
2. add "quit" command
3. support console command overwrite
4. add API reference
2020-02-07 20:15:06 +08:00
Mahavir Jain
3803b17048
esp_rom: link newlib nano from ROM only if SPIRAM cache workaround is disabled
2020-02-07 16:17:25 +05:30
David Cermak
3ecb731c23
mqtt: example test to check connection with different ssl parameters
2020-02-07 10:35:40 +01:00
David Cermak
b8e47eb56f
mqtt: add basic set of unit tests
2020-02-07 10:35:40 +01:00
Ivan Grokhotkov
13623ef430
Merge branch 'feature/esp32s2_image_version' into 'master'
...
bootloader_support: add esp_chip_id_t value for ESP32-S2
See merge request espressif/esp-idf!7521
2020-02-07 16:43:21 +08:00
Angus Gratton
613c4e985f
Merge branch 'doc/multi_target' into 'master'
...
docs: Multi target build support
Closes IDF-523
See merge request espressif/esp-idf!6791
2020-02-07 15:20:53 +08:00
Angus Gratton
f91080637c
Merge branch 'bugfix/part_gen_subtype_fix' into 'master'
...
partition_table: Fix subtype in gen_esp32part.py
Closes IDFGH-2646
See merge request espressif/esp-idf!7508
2020-02-07 14:31:02 +08:00
Angus Gratton
eb85cfb9f6
docs: Temporarily mark RF calibration chapter as ESP32 only
...
Can be re-enabled once ESP32-S2 calibration support is added
2020-02-07 16:37:45 +11:00
Angus Gratton
11fac8637a
docs: Resolve doxygen & Sphinx warnings
2020-02-07 16:37:45 +11:00
Shubham Kulkarni
e1c0fb0c62
log: Check for ISR context and use proper API to get Tick Count
2020-02-07 04:49:53 +00:00
Ivan Grokhotkov
0d69ed8620
bootloader_support: add esp_chip_id_t value for ESP32-S2
2020-02-06 19:50:14 +01:00
Sagar Bijwe
4f93a707f8
WiFi: Add support for ESP32S2
...
1) Update WiFi and PHY libs for ESP32S2.
2) Remove KConfig options ESP32S2 PHY lib selection.
3) Change target macros from ESP32S2BETA to ESP32S2
2020-02-06 14:19:30 +05:30
boarchuz
d0eb6c9701
Fix subtype in PartitionTable.find_by_type
...
Fix ptype->subtype
Closes https://github.com/espressif/esp-idf/pull/4723
2020-02-06 08:48:35 +01:00
Angus Gratton
fec005ec15
Merge branch 'bugfix/nvs_missing_get' into 'master'
...
NVS: Fixed missing implementations for string/blob
See merge request espressif/esp-idf!7492
2020-02-06 14:31:16 +08:00
Angus Gratton
fda4efa300
Merge branch 'bugfix/rtc_wdt_timeout' into 'master'
...
soc/esp32s2: Fix setting timeout for RTC_WDT. ESP32-S2 uses 90KHz instead of 150kHz
See merge request espressif/esp-idf!7499
2020-02-06 14:27:35 +08:00
Angus Gratton
bd9cb9a307
Merge branch 'bugfix/spiffs_case_when_use_mtime_is_not_set' into 'master'
...
spiffs: Fix for case when CONFIG_SPIFFS_USE_MTIME is not defined
See merge request espressif/esp-idf!7496
2020-02-06 14:26:42 +08:00
Angus Gratton
34b1ea9b3d
Merge branch 'feature/netif_ppp_authtype_none' into 'master'
...
esp-netif: PPPoS fixes
Closes IDFGH-2553 and IDFGH-2548
See merge request espressif/esp-idf!7488
2020-02-06 14:14:43 +08:00
Angus Gratton
98618333a1
Merge branch 'bugfix/wps_config_init' into 'master'
...
WPS_CONFIG_INIT_DEFAULT(type) error
See merge request espressif/esp-idf!7311
2020-02-06 14:04:31 +08:00
Konstantin Kondrashov
739eb05bb9
esp32: add implementation of esp_timer based on TG0 LAC timer
...
Closes: IDF-979
2020-02-06 14:00:18 +08:00
Mahavir Jain
f515db1a3e
Merge branch 'bugfix/fix_ota_with_chunked_servers' into 'master'
...
Fixed OTA with chunked servers
See merge request espressif/esp-idf!7457
2020-02-05 16:54:01 +08:00
Mahavir Jain
229b599494
Merge branch 'bugfix/remove_cjson_test_file_from_cmake_build' into 'master'
...
cJSON: include only source file objects for cmake build
See merge request espressif/esp-idf!7498
2020-02-05 16:46:29 +08:00
KonstantinKondrashov
47a5d14e59
soc/esp32s2: Fix setting timeout for RTC_WDT. ESP32-S2 uses 90KHz instead of 150kHz
2020-02-05 15:16:28 +08:00
Shubham Kulkarni
ba31458347
OTA: Fixed OTA with chunked servers and added example_test with chunked server
2020-02-05 11:56:37 +05:30
Mahavir Jain
e366b6ac21
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-05 11:14:23 +05:30
KonstantinKondrashov
e85e99189f
spiffs: Fix for case when CONFIG_SPIFFS_USE_MTIME is not defined
...
Closes: 2c793cef06
2020-02-05 03:00:22 +08:00
Ivan Grokhotkov
50466a5e4f
Merge branch 'bugfix/esp32s2_ldscripts' into 'master'
...
esp32s2: LD script fixes/improvements and re-enable SystemView examples
Closes IDF-1357, IDF-1354, and IDF-1346
See merge request espressif/esp-idf!7431
2020-02-05 02:09:29 +08:00
Mahavir Jain
0b8f17e618
Merge branch 'nimble/bugfix_ble_hs_hci_rx_evt' into 'master'
...
NimBLE: Update submodule to fix bug in `ble_hs_hci_rx_evt`
See merge request espressif/esp-idf!7494
2020-02-04 19:35:50 +08:00
Ivan Grokhotkov
41631587f8
Merge branch 'feature/esp32s2_brownout' into 'master'
...
esp32s2: add brownout detector support
Closes IDF-751
See merge request espressif/esp-idf!7428
2020-02-04 17:00:46 +08:00
Prasad Alatkar
bc7ce8e584
Update NimBLE submodule to fix bug in ble_hs_hci_rx_evt
2020-02-04 12:27:47 +05:30
Xia Xiaotian
1833b8aeab
soc: clear PHY status when cpu start
2020-02-04 14:37:16 +08:00
Jakob Hasse
e228a2102d
Fixed missing implementations
2020-02-03 17:18:21 +01:00
Angus Gratton
6d2fa2e0f1
Merge branch 'feature/support_app_update_ut_for_s2_chip' into 'master'
...
app_update(s2): Enable app_update UTs
Closes IDF-1007
See merge request espressif/esp-idf!7415
2020-02-03 14:56:23 +08:00
Mahavir Jain
9ee50266cc
Merge branch 'nimble/misc_host_flow_ctrl_changes' into 'master'
...
NimBLE: Misc fixes in NimBLE host flow control and `blecent` example
See merge request espressif/esp-idf!7042
2020-02-03 13:59:45 +08:00
David Cermak
7d45bfda21
esp_netif_lwip_ppp: fix posting ip-event data
...
Closes https://github.com/espressif/esp-idf/issues/4634
2020-01-31 15:21:30 +01:00
Axel Lin
3f5d19016a
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-01-31 15:19:09 +01:00
Axel Lin
57a56b55c0
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-01-31 13:41:50 +01:00
KonstantinKondrashov
aa42177e19
app_update(s2): Enable app_update UTs
...
Closes: IDF-1007
2020-01-31 10:34:08 +00:00
June
4f9c3e977e
controller flash code optimize
...
fix ld file to link 3 bt rom functions
2020-01-31 06:29:46 +00:00
Hrudaynath Dhabe
9ebd2cc0f6
Fix wps config for support with gnu++11 as well as c99.
2020-01-31 05:36:41 +00:00
Hrudaynath Dhabe
ec50c5344b
wpa_supplicant: Fix configurable debug log feature's warning issue
2020-01-31 05:34:07 +00:00
GOPTIONS\pfrost
851658109c
Reduce log level of hexdumps to verbose
...
Revert "Reduce log level of hexdumps to verbose"
Add a menuconfig option to enable or disable the logging in wpa_supplicant
Clarify help message
2020-01-31 05:34:07 +00:00
Prasad Alatkar
4047f7e180
NimBLE: Misc changes in host flow control, ble_gap_unpair, ble_hs_hci_rx_evt & example
...
- 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-01-31 10:46:55 +05:30
Roland Dobai
5454c268f7
Docs: Omit kconfig configurations not available for the target
2020-01-30 10:30:06 +01:00
Angus Gratton
86034ad049
Merge branch 'feature/freertos_fpu_isr' into 'master'
...
feature/fpu: Enable usage of FPU inside of a ISR
Closes IDF-100
See merge request espressif/esp-idf!7348
2020-01-30 13:38:37 +08:00
Ivan Grokhotkov
ac1834e288
Merge branch 'feature/freertos_xtensa_folder' into 'master'
...
freertos: moved all xtensa specific files into a separated folder
See merge request espressif/esp-idf!7377
2020-01-29 17:04:34 +08:00
Angus Gratton
f5b82c5b1f
Merge branch 'bugfix/esptool_elf2image_flashmode' into 'master'
...
esptool_py: pass flash mode/frequency/size to elf2image
See merge request espressif/esp-idf!7440
2020-01-28 14:22:35 +08:00
Felipe Neves
429712c6eb
freertos: moved all xtensa specific files into a separated folder
2020-01-27 16:05:30 -03:00
Felipe Neves
5cbb3f05c0
freertos: Added experimental, optional FPU usage on level 1 ISR
2020-01-27 10:55:03 -03:00
Felipe Neves
670ea56df2
freertos: added fpu in isr test case
2020-01-27 10:55:03 -03:00
Michael (XIAO Xufeng)
7026087dc0
spi: support esp32s2
2020-01-26 17:24:12 +08:00
Michael (XIAO Xufeng)
9d41829e09
spi: update esp32s2 hardware description files
2020-01-26 17:24:11 +08:00
Ivan Grokhotkov
3eb190ce48
esp32s2: fix interrupt names used by SystemView
2020-01-24 10:48:38 +01:00
Ivan Grokhotkov
bb59ca3ab3
esp32s2: add missing ESP32S2_MEMMAP_TRACEMEM_TWOBANKS option
...
It is used when app-trace is enabled, to provide ping-pong buffers.
2020-01-24 10:48:38 +01:00
Ivan Grokhotkov
02a99e84c8
esp32s2: move trace memory reservation to soc_memory_layout.c
2020-01-24 10:48:38 +01:00
Ivan Grokhotkov
110f3c9ff5
esp32s2: put static .data and .bss directly after .iram.text
...
This results in a single large heap section instead of two smaller
ones.
Closes IDF-1354
2020-01-24 10:48:38 +01:00
Ivan Grokhotkov
27bff3517f
esp32s2: fix "loadable ELF" build
...
Closes IDF-1346
2020-01-24 10:48:20 +01:00
Ivan Grokhotkov
fd15acb50f
esp32s2: bootloader: move iram_loader segment higher
...
This gives extra 16kB for the application's static .data/.bss
2020-01-24 10:48:20 +01:00
Ivan Grokhotkov
354ce68dce
soc: move reserved regions out of memory_layout_utils.c
...
These definitions have ended up being chip specific. Moving them into
respective soc_memory_layout.c makes the whole picture of memory
regions easier to see, and also makes adding support for new chips
easier.
2020-01-24 10:48:20 +01:00
Ivan Grokhotkov
81f0e7d90f
Merge branch 'bugfix/esp32s2_freertos_tls' into 'master'
...
esp32s2: fix THREADPTR calculation, re-enable FreeRTOS TLS tests
Closes IDF-1239
See merge request espressif/esp-idf!7403
2020-01-24 17:47:43 +08:00
Ivan Grokhotkov
9fafdb7e6d
Merge branch 'bugfix/esp32s2_newlib_nano' into 'master'
...
esp32s2: esp_rom: separate nano formatting functions, fix newlib tests
See merge request espressif/esp-idf!7447
2020-01-24 17:46:54 +08:00
Ivan Grokhotkov
6e527fb763
mbedtls: temporary disable HW crypto for ESP32S2
...
To be re-enabled once HW crypto accelerators support is merged:
IDF-714, IDF-716, IDF-803.
2020-01-23 18:14:10 +01:00
Ivan Grokhotkov
16e63f6a3f
esp32s2: esp_rom: separate nano formatting functions, fix newlib tests
2020-01-23 18:07:37 +01:00
Ivan Grokhotkov
caef7ad9f2
esp32, esp32s2beta: move brownout.c to esp_common
2020-01-23 13:44:19 +01:00
Ivan Grokhotkov
70752baba4
esp32s2: add brownout detector support
...
1. add brownout detector HAL for esp32 and esp32s2
2. enable brownout reset for esp32 rev. 1 and above
3. add approximate brownout detector levels for esp32s2
2020-01-23 13:44:19 +01:00
Ivan Grokhotkov
09950797cb
esptool_py: pass flash mode/frequency/size to elf2image
...
Otherwise the image gets generated with wrong parameters, and the
binary does not boot unless it has been "fixed" by esptool during the
upload.
2020-01-23 12:19:15 +01:00
Ivan Grokhotkov
46035032cf
esp32s2: fix inconsistency between reg and struct headers
...
test_mux register doesn't exist in RTCCNTL anymore, remove it from
struct header. Also remove adc_ll_vref_output implementation, which
depends on that register.
2020-01-23 11:30:11 +01:00
Ivan Grokhotkov
cbb84e8f5e
esp32s2: fix THREADPTR calculation, re-enable FreeRTOS TLS tests
...
1. Clarify THREADPTR calculation in FreeRTOS code, explaining where
the constant 0x10 offset comes from.
2. On the ESP32-S2, .flash.rodata section had different default
alignment (8 bytes instead of 16), which resulted in different offset
of the TLS sections. Unfortunately I haven’t found a way to query
section alignment from C code, or to use a constant value to define
section alignment in the linker script. The linker scripts are
modified to force a fixed 16 byte alignment for .flash.rodata on the
ESP32 and ESP32-S2beta. Note that the base address of .flash.rodata
was already 16 byte aligned, so this has not changed the actual
memory layout of the application.
Full explanation of the calculation below.
Assume we have the TLS template section base address
(tls_section_vma), the address of a TLS variable in the template
(address), and the final relocation value (offset). The linker
calculates:
offset = address - tls_section_vma + align_up(TCB_SIZE, alignment).
At run time, the TLS section gets copied from _thread_local_start
(in .rodata) to task_thread_local_start. Let’s assume that an address
of a variable in the runtime TLS section is runtime_address.
Access to this address will happen by calculating THREADPTR + offset.
So, by a series of substitutions:
THREADPTR + offset = runtime_address THREADPTR = runtime_address - offset
THREADPTR = runtime_address - (address - tls_section_vma + align_up(TCB_SIZE, alignment)) THREADPTR = (runtime_address - address) + tls_section_vma - align_up(TCB_SIZE, alignment)
The difference between runtime_address and address is same as the
difference between task_thread_local_start and _thread_local_start.
And tls_section_vma is the address of .rodata section, i.e.
_rodata_start. So we arrive to
THREADPTR = task_thread_local_start - _thread_local_start + _rodata_start - align_up(TCB_SIZE, alignment).
The idea with TCB_SIZE being added to the THREADPTR when computing
the relocation was to let the OS save TCB pointer in the TREADPTR
register. The location of the run-time TLS section was assumed to be
immediately after the TCB, aligned to whatever the section alignment
was. However in our case the problem is that the run-time TLS section
is stored not next to the TCB, but at the top of the stack. Plus,
even if it was stored next to the TCB, the size of a FreeRTOS TCB is
not equal to 8 bytes (TCB_SIZE hardcoded in the linker). So we have
to calculate THREADPTR in a slightly obscure way, to compensate for
these differences.
Closes IDF-1239
2020-01-23 11:29:22 +01:00
Angus Gratton
d672809080
Merge branch 'refactor/rename_esp32s2beta_to_esp32s2' into 'master'
...
global: rename esp32s2beta to esp32s2
See merge request espressif/esp-idf!7369
2020-01-23 09:16:30 +08:00
Angus Gratton
fbb5844151
Merge branch 'bugfix/esp_timer_stucks_into_esp_timer_impl_set_alarm' into 'master'
...
esp_timer/esp32: Fix esp_timer_impl_set_alarm() when CPU and APB freqs are changed
Closes WIFI-1576
See merge request espressif/esp-idf!7303
2020-01-23 09:14:53 +08:00
Hrishikesh Dhayagude
91c8f324a9
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-01-23 00:55:51 +08:00
morris
405b0e7f06
esp_rom: splict libgcc and libc outof rom.ld bundle file
2020-01-23 00:27:47 +08:00
KonstantinKondrashov
6061d5d65a
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-22 14:30:34 +08:00
morris
e30cd361a8
global: rename esp32s2beta to esp32s2
2020-01-22 12:14:38 +08:00
morris
95743f4ee6
update rtc_sleep_init for esp32s2
2020-01-22 10:19:05 +08:00
Felipe Neves
73592d9bc4
spin_lock: added new spinlock interface and decoupled it from RTOS
...
spin_lock: cleaned-up port files and removed portmux files
components/soc: decoupled compare and set operations from FreeRTOS
soc/spinlock: filled initial implementation of spinlock refactor
It will decouple the spinlocks into separated components with not depencences of freertos
an similar interface was provided focusing the readabillity and maintenance, also
naming to spinlocks were adopted. On FreeRTOS side the legacy portMUX macros
gained a form of wrapper functions that calls the spinlocks component thus
minimizing the impact on RTOS side.
This feature aims to close IDF-967
soc/spinlock: spinlocks passed on unit test, missing test corner cases
components/compare_set: added better function namings plus minor performance optimization on spinlocks
soc/spinlock: code reordering to remove ISC C90 mix error
freertos/portmacro: gor rid of critical sections multiline macros, placed inline functions instead
soc/spinlock: improved spinlock performance from internal RAM
For cases where the spinlock is executed from IRAM, there is no
need to check where the spinlock object is placed on memory,
removing this checks caused a great improvement on performance.
2020-01-22 06:20:34 +08:00
Ivan Grokhotkov
cc3df01f8f
rom: add header guards in rom/opi_flash.h, fix error in rom/spi_flash.h
2020-01-21 11:58:10 +01:00
Ivan Grokhotkov
2c3e6481bb
Merge branch 'feature/ci_check_cpp_guards' into 'master'
...
ci: add job to check for C++ guards in header files
Closes IDF-288
See merge request espressif/esp-idf!7050
2020-01-21 17:18:23 +08:00
Ivan Grokhotkov
f619a3174b
Merge branch 'bugfix/nvs_new_nothrow' into 'master'
...
NVS: Change all new to new (nothrow)
See merge request espressif/esp-idf!6930
2020-01-21 17:06:19 +08:00
Ivan Grokhotkov
c11f77cb1a
Merge branch 'feature/use_underlying_cmake_targets_for_idf_py' into 'master'
...
CMake: Use underlying flash targets for idf.py
See merge request espressif/esp-idf!7067
2020-01-21 17:05:47 +08:00
Jiang Jiang Jian
95f9db79d2
Merge branch 'feature/lwip_netinet_tcp_pr4637' into 'master'
...
lw_ip: Add netinet compatibility headers (PR 4637)
Closes IDFGH-2551
See merge request espressif/esp-idf!7408
2020-01-21 15:00:03 +08:00
Angus Gratton
e0fe136bf9
Merge branch 'bugfix/select_driver_not_installed' into 'master'
...
VFS: Check in select() if the UART driver is installed or not
Closes IDFGH-2540
See merge request espressif/esp-idf!7331
2020-01-21 11:08:38 +08:00
Angus Gratton
78e219bbe2
Merge branch 'bugfix/eth_int_allocate' into 'master'
...
PSRAM related fix
Closes IDFGH-2263 and IDFGH-2549
See merge request espressif/esp-idf!7310
2020-01-21 07:31:26 +08:00
Francesco Giancane
e48fe540be
include/sys/socket.h: ensure SOMAXCONN symbol is defined
...
SOMAXCONN is expected to be defined in this header, but for the esp32
port is found in net/if.h from newlib.
Avoid the issue by including the net/if.h header in sys/socket.h so that
compatibility is preserved.
Signed-off-by: Francesco Giancane <francesco.giancane@accenture.com>
Merges https://github.com/espressif/esp-idf/pull/4637
2020-01-21 10:11:33 +11:00
Francesco Giancane
64377b54d1
include/netinet/tcp.h: wrap lwip/tcp.h header for compatibility
...
Some applications (i.e. Azure IoT SDK) are expecting this header to
exist and to contain the tcp constants and description.
The esp32 did not wrap the lwip/tcp.h header, thus this commit adds a
compatibility layer.
Signed-off-by: Francesco Giancane <francesco.giancane@accenture.com>
Merges https://github.com/espressif/esp-idf/pull/4637
2020-01-21 10:11:29 +11:00
Jiang Jiang Jian
10c426e5ef
Merge branch 'bugfix/fix_sniffer_bug_caused_by_mode_switch' into 'master'
...
FIx sniffer bug caused by mode switch
Closes WIFI-466
See merge request espressif/esp-idf!5846
2020-01-20 21:08:31 +08:00
baohongde
097777ed66
components/bt: Fix error EIR type in config eir event
2020-01-20 20:46:05 +08:00
Tian Hao
30fbd99ad0
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:44:03 +08:00
Tian Hao
f351effdb2
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 17:43:36 +08:00
xiehang
6cb271c20b
esp_wifi: Small refactor for ic_set_vif
2020-01-20 11:47:02 +08:00
baohongde
5ca4c85497
components/bt: Fix connection fail and crash when receive unknown AT cmd
2020-01-20 11:32:26 +08:00
Angus Gratton
3f532c8895
Merge branch 'bugfix/esp_tls_blocking_timeout' into 'master'
...
esp-tls: add timeout for blocking connection
See merge request espressif/esp-idf!7316
2020-01-20 09:35:23 +08:00
Jiang Jiang Jian
1c8937bf14
Merge branch 'feature/esp32_5p0_new_features' into 'master'
...
esp32 5p0 features support
See merge request espressif/esp-idf!7028
2020-01-19 23:06:45 +08:00
morris
cc0459eea2
ethernet: always put eth_driver handle in SRAM
...
Closes https://github.com/espressif/esp-idf/issues/4635
2020-01-19 16:25:44 +08:00
morris
5ad0bdd8db
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-19 16:25:24 +08:00
morris
4fb879c11e
spi: always put spihost handle in SRAM
...
Closes https://github.com/espressif/esp-idf/issues/4635
2020-01-19 16:08:53 +08:00
June
19730c81f0
esp32 5p0 new features support
2020-01-17 10:34:54 +00:00
xiehang
0d1a20ba18
esp_wifi:Fix double recycle bar crash issue
2020-01-17 14:28:27 +08:00
Ivan Grokhotkov
0c99aef08d
Merge branch 'feature/bringup_723_cmake' into 'master'
...
bringup 723 cmake
See merge request espressif/esp-idf!6578
2020-01-17 09:20:34 +08:00
Mahavir Jain
c7f44a301d
Merge branch 'feature/modify_esp_tls_structure' into 'master'
...
esp-tls: add API to retrieve sockfd for tls connection.
See merge request espressif/esp-idf!7329
2020-01-16 18:12:16 +08:00
Hrudaynath Dhabe
93bc830ac6
esp_wifi: esp_wifi_sta_get_ap_info function returns actual values of group cipher and pairwise cipher
2020-01-16 17:52:59 +08:00
morris
2422c52851
global: hello world on real esp32-s2
2020-01-16 17:43:59 +08:00
duyi
18a05e2ee0
update ld file for esp32-s2
2020-01-16 17:43:59 +08:00
Wangjialin
d4e5980823
flash: fix 80Mhz for new spi flash driver on esp32s2
2020-01-16 17:43:59 +08:00
Wangjialin
fad639f0d4
feature(psram): update psram initialization.
...
1. use spi functions in rom
2. remove unnecessary GPIO configurations.
3. remove unnecessary dummy settings.
4. enable dummy out function
5. flash and psram have independent timing setting registers.
6. no need to set 1.9v for LDO in 80Mhz
7. set IO driver ability to 1 by default.
8. no need to use GPIO matrix on esp32s2, IO MUX is recommended
9. enable spi clock mode and IO mode settings
2020-01-16 17:41:31 +08:00
Du Ya Yuan
0ad7602efe
make spiram work
2020-01-16 17:41:31 +08:00
duyi
30a525aeb1
update cache config
2020-01-16 17:41:31 +08:00
morris
a8d31b0385
rtc: enable super wdt auto feed
2020-01-16 17:41:31 +08:00
morris
1c2cc5430e
global: bring up esp32s2(not beta)
2020-01-16 17:41:31 +08:00
duyi
9c5a981ef1
remove unnecessary function in bootloader_support
...
1. Delete bootloader_clock_get_rated_freq_mhz, esp32s2 do not need it right now
2. Remove bootloader_flash_gpio_config () because it has the same function as bootloader_flash_dummy_config
2020-01-16 17:41:31 +08:00
Angus Gratton
eaafe7f599
Merge branch 'feature/add_setting_project_version_from_kconfig' into 'master'
...
build: Add CONFIG_APP_PROJECT_VER to set the project version from Kconfig
See merge request espressif/esp-idf!7125
2020-01-16 15:54:14 +08:00
David Cermak
98cf3142fa
esp_tls: fail connection if esp_tls_conn_new() timeouts
2020-01-16 07:32:19 +00:00
David Cermak
aa3b1da384
esp_tls: added connection timeout to esp_tls_conn_new_sync()
2020-01-16 07:32:19 +00:00
Aditya Patwardhan
c7418042b4
esp32/esp-tls: provide API to retrieve sockfd value from esp_tls_t
2020-01-16 12:27:44 +05:30
Jiang Jiang Jian
2a6a560eb3
Merge branch 'bugfix/hfp_disconn_bridgera' into 'master'
...
hfp disconn issue for bridgera
See merge request espressif/esp-idf!7336
2020-01-16 11:33:36 +08:00
Ivan Grokhotkov
e9426d4ed1
Merge branch 'feature/improved_cxx_tests' into 'master'
...
Improved C++ tests
Closes IDF-1322
See merge request espressif/esp-idf!7283
2020-01-16 10:11:32 +08:00
KonstantinKondrashov
b49a657448
build: Add CONFIG_APP_PROJECT_VER to set the project version from Kconfig
2020-01-15 11:02:27 +00:00
Jakob Hasse
c75ec644f4
NVS: Changed all new to new (nothrow)
2020-01-15 14:01:35 +08:00
Angus Gratton
c1a1e19c2b
Merge branch 'feature/freertos_optimized_taskselection' into 'master'
...
feature/freertos optimized task selection o S2 Beta or unicore configurations
Closes IDF-1116
See merge request espressif/esp-idf!6616
2020-01-15 13:29:21 +08:00
Angus Gratton
ee899cb2aa
Merge branch 'feature/ver-4.2' into 'master'
...
global: bump version to 4.2
See merge request espressif/esp-idf!7335
2020-01-15 13:07:59 +08:00
weitianhua
8b2919ee2b
hfp disconn issue for bridgera
2020-01-15 12:22:58 +08:00
Ivan Grokhotkov
80d7db9466
Merge branch 'bugfix/esp32s2_mac_addr_allocation' into 'master'
...
esp32s2 mac address allocation
Closes IDF-1191
See merge request espressif/esp-idf!7286
2020-01-15 11:58:14 +08:00
Renz Christian Bagaporo
fd74ec75d7
esptool_py: retain flash targets when building RAM loadable apps
2020-01-15 03:36:47 +00:00
Renz Christian Bagaporo
cc8bff703e
esptool_py: create flash target functions
2020-01-15 03:36:47 +00:00
Jiang Jiang Jian
5f803b8283
Merge branch 'bugfix/enable_ipv6_address_autoconfig' into 'master'
...
lw-ip: Enable IPv6 stateless address autoconfiguration
Closes WIFI-1237
See merge request espressif/esp-idf!6313
2020-01-15 11:27:56 +08:00
Ivan Grokhotkov
5466ff3f4d
global: bump version to 4.2
2020-01-15 10:22:22 +08:00
Felipe Neves
5d7564a039
freertos/Kconfig: make optimized task selection dependent on FREERTOS_UNICORE option
...
freertos: fix decrement loop of high priority task selection
2020-01-14 09:58:14 -03:00
Felipe Neves
2c612ec1dc
components/freertos: using the optimized task selection on esp32s2beta
...
components/freertos: cleaned up multicore option scheduler.
components/freertos: more cleanup and test optimization to present realistic results
components/freertos: remove unused macros of optimized task selection when multicore is used
2020-01-14 09:58:14 -03:00
Felipe Neves
77bf1ff1c0
freertos/tests: added test to evaluate scheduling time
...
freertos/Kconfig: fix trailing space on optimized scheduler option
freertos/tests: moved test context variables inside of test task.
The public variables used on scheduling time test now were packed into a structure allocated on test case task stack and passed to tasks as arguments saving RAM comsumption.
2020-01-14 09:58:14 -03:00
Felipe Neves
d4c82606fb
components/freertos: added and enabled the optimized task selection
...
FreeRTOS have an platform dependent configuration to enable selection task in a optimized way.
Provided the platform dependent functions in order to allow the scheduler to use the optimized algorithms by telling to the port layer where to found bitscan instruction i.e. NSAU.
This closes IDF-1116
components/freertos: added option to disable the optimized scheduler
2020-01-14 09:58:14 -03:00
Roland Dobai
a9c4dab4d3
VFS: Check in select() if the UART driver is installed or not
...
Closes https://github.com/espressif/esp-idf/issues/4627
2020-01-14 13:52:27 +01:00
morris
e1f9b283bc
esp32s2: mac addr allocation
2020-01-14 15:19:38 +08:00
xiehang
c0148ef1e8
lwip: Enable IPv6 stateless address autoconfiguration
2020-01-14 07:15:26 +00: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
Jakob Hasse
c8137c5298
C++: rtti unit tests, corresponding CI config
2020-01-13 16:39:21 +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
David Cermak
ff0128dd02
drivers: fixed c++ guards in driver public headers
2020-01-10 09:44:39 +01: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
Mahavir Jain
c86c1ecc7e
Merge branch 'support/add_uart_fifo_threshold_set_api' into 'master'
...
add simplified API to set UART threshold values for RX FIFO full and TX FIFO empty
See merge request espressif/esp-idf!6749
2019-12-17 11:30:11 +08:00
Angus Gratton
0bc6f2b42c
Merge branch 'bugfix/fix_crash_when_use_one_speed_mode' into 'master'
...
bugfix(ledc): fix crash when use one speed mode
See merge request espressif/esp-idf!6788
2019-12-17 11:16:11 +08:00
Angus Gratton
a0887fcf84
Merge branch 'feature/esp_netif_pppos_client' into 'master'
...
esp-netif: PPP support, update example and modem subcomponent
See merge request espressif/esp-idf!6744
2019-12-17 09:11:12 +08:00
kewal shah
eec8212237
add simplified API to set UART threshold values for RX FIFO full and TX FIFO empty
2019-12-16 20:26:04 +00:00
Alexey Gerenkov
184e1785ff
gcov: Fixes aborted calls to _lock_acquire_recursive from gcov stub
2019-12-16 19:15:37 +00:00
David Cermak
25913af2cc
pppos_client: udated example code to use esp-netif in PPP configuration
2019-12-16 17:34:10 +00:00
David Cermak
52ca3a917d
esp_netif: Support for PPPoS in esp_netif using lwip ppp client
2019-12-16 17:34:10 +00:00
David Cermak
09e36f9f33
mdns: fix preset of esp_netif ptr for local interfaces
...
mdns module store local copy of esp_netif for common interfaces,
but it was correctly initialized only when interface started.
If the event were missed (e.g. mdns_init after interface start)
the local copy wouldn't be initialized. Fixed by restoring the local
copy.
Closes WIFI-1538
2019-12-16 15:39:23 +01:00
Angus Gratton
435dd546cc
driver: Avoid possible accidental mismatch between ledc_clk_src_t & ledc_clk_cfg_t enum
...
ledc_types.h includes two similar enums, ledc_clk_src_t & ledc_clk_cfg_t. Latter was added in
ESP-IDF v4.0.
The two enums do different things but there are two similar names: LEDC_REF_TICK / LEDC_USE_REF_TICK
and LEDC_APB_CLK / LEDC_USE_APB_CLK.
Because C will accept any enum or integer value for an enum argument, there's no easy way to check
the correct enum is passed without using static analysis.
To avoid accidental errors, make the numeric values for the two similarly named enums the same.,
Noticed when looking into https://github.com/espressif/esp-idf/issues/4476
2019-12-16 19:43:11 +11:00
xiehang
a159fc15fc
esp_wifi: Fix wifi block scan crash issue
2019-12-16 07:47:08 +00:00
Angus Gratton
a91de43537
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
2019-12-16 18:24:10 +11:00
Mahavir Jain
2e73c2818b
freertos: re-enable mutext test for esp32s2beta
2019-12-16 11:55:32 +05:30
Mahavir Jain
8b05cf41ad
i2s: enable tests for esp32s2beta
2019-12-16 11:53:33 +05:30
Angus Gratton
f7b51c164d
Merge branch 'bufgix/esp_timer_set_alarm' into 'master'
...
esp_timer: Fix set_alarm. Case when timestamp < now_time
Closes WIFI-1511
See merge request espressif/esp-idf!6960
2019-12-16 13:39:44 +08:00
Ivan Grokhotkov
1f6bb6ef4f
Merge branch 'feat/mmc_check_data_switching_freq' into 'master'
...
sdmmc: add communication check for eMMC after frequency switch
See merge request espressif/esp-idf!6893
2019-12-16 13:05:03 +08:00
chenjianqiang
41fca84064
bugfix(ledc): fix crash when use one speed mode and enable ledc fade test case
2019-12-16 02:49:26 +00:00
Angus Gratton
9dbb7526c5
Merge branch 'bugfix/ulp_supported_version' into 'master'
...
ulp: remove 20190801 version, update supported version for Make
See merge request espressif/esp-idf!7014
2019-12-16 10:47:44 +08:00
Ivan Grokhotkov
917889dfdf
ulp: remove 20190801 version, update supported version for Make
2019-12-15 21:39:42 +01:00
lly
31a4738bd4
ble_mesh: Use mutex to protect client list operations
2019-12-14 17:32:47 +08:00
lly
e4223df60f
ble_mesh: Remove useless parameters of lock/unlock
2019-12-14 16:28:22 +08:00
lly
d2bc597e9f
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-14 15:43:59 +08:00
Michael (XIAO Xufeng)
0ec08ca21b
sdio_slave: support HAL layer
2019-12-13 18:33:15 +08:00
Jiang Jiang Jian
09615245a5
Merge branch 'bugfix/fix_softap_crash_when_assoc_illegal' into 'master'
...
esp_wifi: Fix association request RSN information length too big lead crash.
Closes WIFI-1253
See merge request espressif/esp-idf!6380
2019-12-13 18:12:25 +08:00
Angus Gratton
ecf85555b6
Merge branch 'bugfix/small_unit_test_fixes' into 'master'
...
test: Small unit test fixes
See merge request espressif/esp-idf!6981
2019-12-13 14:00:05 +08:00
KonstantinKondrashov
ada09f8fad
esp_timer: Add Test case when set_alarm needs set timer < now_time
2019-12-13 13:51:47 +08:00
Angus Gratton
4f1d49d8c2
Merge branch 'feature/esp32s2beta_hw_crypto_support' into 'master'
...
hw crypto: activated hardware acceleration for esp32s2beta
Closes IDF-757
See merge request espressif/esp-idf!6615
2019-12-13 13:40:33 +08:00
Ivan Grokhotkov
7bda06f7f4
Merge branch 'bugfix/console_example' into 'master'
...
esp32s2beta: add missing sleep APIs, re-enable console example
Closes IDF-1033
See merge request espressif/esp-idf!6572
2019-12-12 22:44:43 +08:00
Ivan Grokhotkov
792598c04a
esp32s2beta: add APIs added to esp32 target after IDF 3.1
2019-12-12 14:34:15 +01:00
Jiang Jiang Jian
77290ddd07
Merge branch 'demo/hfp-client-demo' into 'master'
...
component_bt/: Add HFP HF Unit Example
Closes BT-459
See merge request espressif/esp-idf!6495
2019-12-12 21:19:04 +08:00
weitianhua
c2e97b1042
Enable mSBC for demo
2019-12-12 17:12:38 +08:00
weitianhua
392eb79704
Format the BTM_WBS_INCLUDED macro
2019-12-12 17:12:38 +08:00
weitianhua
ad4b11a4f1
Fix crash when WBS enabled.
2019-12-12 17:12:38 +08:00
weitianhua
10e5f16974
remove BTM_WBS_INCLUDED for bta_hf_client_version select
2019-12-12 17:12:19 +08:00
weitianhua
742cb8df9e
Update the README.md
...
Fix the m_rb bug in bt_app_hf.c
Change the log level into information.
2019-12-12 17:12:19 +08:00
michael
232d98608a
sdmmc: add communication check for eMMC after frequency switch
2019-12-12 08:11:17 +00:00
lly
1a8199dd41
ble_mesh: Fix using wrong name for PB-GATT
2019-12-12 15:59:37 +08:00
lly
c354b0993d
ble_mesh: Fix adv buf unref and link_id in exceptional list
2019-12-12 15:58:43 +08:00
Geng Yu Chao
6c923cf330
Fix some typo in idf
2019-12-12 15:55:42 +08:00
Jiang Jiang Jian
767917bcf7
Merge branch 'bugfix/btdm_avrc_metadata_length_error' into 'master'
...
components/bt: Fix AVRC metadata length error
See merge request espressif/esp-idf!6879
2019-12-12 15:53:08 +08:00
Angus Gratton
ee7cd4e1d8
driver: test: Ensure UART is fully idle before starting loopback RX/TX test
...
Possible fix for sporadic failures of this test in CI, may be due to a byte already
being queued in one of the FIFOs
2019-12-12 17:21:46 +11:00
Angus Gratton
b79a6c2576
driver: test: Use more detailed macros than TEST_ASSERT() to get better errors
2019-12-12 17:21:40 +11:00
KonstantinKondrashov
e6223440b3
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-12 14:02:26 +08:00
Marius Vikhammer
c63684cf6c
hw crypto: activated hardware acceleration for esp32s2beta
...
Activated AES, RSA and SHA hardware acceleration for esp32s2 and enabled related unit tests.
Updated with changes made for ESP32 from 0a04034
, 961f59f
and caea288
.
Added performance targets for esp32s2beta
Closes IDF-757
2019-12-12 12:37:29 +08:00
Angus Gratton
50aad77f3a
driver: Rename "local" tests to "single board" tests, add some description to the names
2019-12-12 11:05:04 +11:00
Angus Gratton
3b52eddf6b
Merge branch 'bugfix/optimize_some_build_system_tests' into 'master'
...
cmake: some optimizations to build system tests
See merge request espressif/esp-idf!6972
2019-12-12 06:34:54 +08:00
Angus Gratton
b3eb4395c9
Merge branch 'feature/wifi_prov_ext_httpd' into 'master'
...
wifi_provisioning_softap: Allow applications to start webserver externally
See merge request espressif/esp-idf!6860
2019-12-12 06:32:26 +08:00
Ivan Grokhotkov
87a41fabfa
esp-tls: check return value of fcntl
2019-12-11 14:53:27 +01:00
Ivan Grokhotkov
23848fd1b9
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-11 14:53:26 +01:00
Ivan Grokhotkov
08286ac20f
newlib: add definitions of system, raise
...
Closes IDF-1220
Closes IDFGH-1811
Closes https://github.com/espressif/esp-idf/pull/4020
2019-12-11 14:52:51 +01:00
xiehang
3eaf86fbf1
esp_wifi: Fix association req RSN info lengeh too big lead crash
2019-12-11 10:59:18 +00:00
Renz Christian Bagaporo
f766866167
cmake: remove intermediary libraries for some component
2019-12-11 16:43:47 +08:00
Angus Gratton
c03642ff89
Merge branch 'bugfix/mdns_send_sdptr_answer' into 'master'
...
mdns: respond to discovery with the proper pseudo name _services._dns-sd._udp
Closes IDFGH-2219
See merge request espressif/esp-idf!6868
2019-12-11 12:45:30 +08:00
Hrudaynath Dhabe
04e024bfd2
wifi: fix eapol frames encryption during reauth
2019-12-11 11:29:30 +08:00
Jiang Jiang Jian
4100f2e84f
Merge branch 'optimize_tcp_random_close' into 'master'
...
optimize tcp random close
Closes WIFI-1433
See merge request espressif/esp-idf!6907
2019-12-10 16:47:34 +08:00
Angus Gratton
882f5d0b56
Merge branch 'bugfix/fix_s2_cpp_exceptions' into 'master'
...
C++: enable exceptions ESP32S2-beta
Closes IDF-1039
See merge request espressif/esp-idf!6579
2019-12-10 15:13:15 +08:00
Alex Lisitsyn
ba1ee4092a
freemodbus: fix merge issues
2019-12-10 14:30:25 +08:00
Alex Lisitsyn
44444208b7
freemodbus: update poll event processing
...
update modbus poll event loop processing to process multiple events
2019-12-10 14:27:09 +08:00
Angus Gratton
f50df36ebf
Merge branch 'feature/external_github_prs' into 'master'
...
Include external github PRs
Closes IDFGH-2291, IDFGH-2306, IDFGH-2315, and IDFGH-2307
See merge request espressif/esp-idf!6931
2019-12-10 12:33:32 +08:00
xueyunfei
fdea4b54c6
optimize tcp random close
2019-12-10 11:55:07 +08:00
Ryan Kurte
4ee78f8496
added KConfig option to allow loading CA certs with unsupported extensions
...
Close https://github.com/espressif/esp-idf/pull/4445
2019-12-10 08:47:26 +05:30
Jakob Hasse
78e4b0ff96
CXX: enable exceptions ESP32S2-beta
...
Closes IDF-1039
* Enabled test cases for -fno-exceptions to S2-beta again
* Added different reset tag for S2-beta
2019-12-10 10:23:00 +08:00
Ivan Grokhotkov
9859d8867d
Merge branch 'feature/sysview_json_traces' into 'master'
...
Support for converting SystemView traces to JSON format
See merge request espressif/esp-idf!5674
2019-12-09 22:46:13 +08:00
Ivan Grokhotkov
9e73a038a6
Merge branch 'feature/freertos_authentic_includes' into 'master'
...
Added freertos property allowing use "authentic" include path
See merge request espressif/esp-idf!6808
2019-12-09 22:39:27 +08:00
Mahavir Jain
8e28226935
Disable few test cases for ESP32S2BETA
...
These test cases will be fixed in subsequent MR
2019-12-09 16:30:55 +05:30
Mahavir Jain
a737fd4865
Fix issue with timer usage in FreeRTOS tests
2019-12-09 13:33:45 +05:30
Axel Lin
489c815eb8
esp_http_client: add esp_http_client_set_authtype function
...
Since currently there are APIs to set url/username/password, it would be
good to also allow setting authtype.
Link: https://github.com/espressif/esp-idf/issues/4444
Closes https://github.com/espressif/esp-idf/pull/4454
Signed-off-by: Axel Lin <axel.lin@gmail.com>
2019-12-09 13:33:44 +05:30
Axel Lin
6fdc8d7f92
esp_http_client: fix memory leak in esp_http_client_set_username/password
...
Fix memory in case username/password was set before calling
esp_http_client_set_username/password.
Closes https://github.com/espressif/esp-idf/issues/4444
Fixes: 9fd16c6a5f
("fixes : set_url discards username and password")
Signed-off-by: Axel Lin <axel.lin@gmail.com>
2019-12-09 13:33:44 +05:30
Aidan Cyr
5f6fd238b6
fix: esp_http_client and esp_https_ota can follow 307 Redirects
...
Closes https://github.com/espressif/esp-idf/pull/4431
2019-12-09 13:33:44 +05:30
Mathias Bredholt
594cec54bd
Removed relative path for lwip/arpa/inet.h
...
The relative path breaks compatibility with arduino-esp32 as the path doesn't exist in arduino-esp32.
https://github.com/espressif/arduino-esp32/pull/3425
Closes https://github.com/espressif/esp-idf/pull/4308
2019-12-09 13:33:44 +05:30
Geng Yu Chao
46c53ab8c8
btdm:fix the problem that Not getting complete Identity Address (Public Address) of the Privacy-enabled Bonded Device after bonding. beacuse of the wrong memcpy in LE_KEY callback handler.
2019-12-09 15:21:49 +08:00
chenyudong
66f6d8c3ef
esp_netif: store netif before register wifi rxcb
2019-12-09 15:16:00 +08:00
Angus Gratton
58355f7e21
Merge branch 'refactor/update_xtensa_header_file' into 'master'
...
update xtensa header file
Closes IDF-1197
See merge request espressif/esp-idf!6872
2019-12-09 13:08:52 +08:00
Jiang Jiang Jian
f830f66876
Merge branch 'bugfix/mesh_stop_recv_crash' into 'master'
...
mesh: fix mesh stop recv crash
See merge request espressif/esp-idf!6919
2019-12-09 13:05:36 +08:00
chenyudong
e48efd8a4d
mesh: fix mesh stop recv crash
...
Add a mutex.
2019-12-09 03:56:10 +00:00
xueyunfei
2fcdbb74f7
fix bug for improve performance
2019-12-09 03:16:12 +00:00
morris
01ca687caa
esp32s2beta: only support unicore
2019-12-09 09:48:37 +08:00
morris
a86d741fc9
esp_rom: remove esp_rom.c
2019-12-09 09:48:31 +08:00
morris
5efb1140ac
esptool: add chip and stub option
2019-12-09 09:48:16 +08:00
morris
13cb9f8718
xtensa: update header file
2019-12-09 09:44:56 +08:00
Jiang Jiang Jian
3224f24ef6
Merge branch 'Bugfix/add_netif_assert_master' into 'master'
...
fix bug for netif add crash
Closes WIFI-1219
See merge request espressif/esp-idf!6937
2019-12-07 17:33:32 +08:00
Xu Jun Jun
e20e47809d
For BT device restore security info from NV to SRAM, should set the ble_hci_handle to a invalid value, otherwise BLE devices may have pairing problem
2019-12-07 16:19:57 +08:00
xueyunfei
9894691e11
fix bug for netif add crash
2019-12-07 16:11:30 +08:00
Andrei Gramakov
6cd17c1e8c
freertos: added a FreeRTOS property returning "original" include path
2019-12-06 12:16:54 +01:00
Wang Jia Lin
f5e60524ac
Merge branch 'bugfix/fix_i2c_driver_breakingchange_issue' into 'master'
...
bugfix(i2c): fix I2C driver breaking change issue
See merge request espressif/esp-idf!6809
2019-12-06 16:50:16 +08:00
Wang Jia Lin
d0034f5a12
Merge branch 'bugfix/fix_uart_driver_spinlock_misused_bug' into 'master'
...
bugfix(UART): fix uart driver spinlock misused bug
See merge request espressif/esp-idf!6870
2019-12-06 11:12:54 +08:00
Hrishikesh Dhayagude
a2adcea802
Enable characteristic 0x2A04 in GAP service
...
Add support to enable Peripheral Preferred Connection Parameters in GAP service and update it correctly
2019-12-05 12:17:14 +08:00
Angus Gratton
a7aea56977
Merge branch 'feature/interrupt_overhead_improvement' into 'master'
...
feature/interrupt overhead improvement
Closes IDF-248
See merge request espressif/esp-idf!6328
2019-12-05 10:21:46 +08:00
Angus Gratton
02bf3fbfcc
Merge branch 'bugfix/update_libexpat' into 'master'
...
expat: Update library from 2.2.5 to 2.2.9
See merge request espressif/esp-idf!6782
2019-12-05 07:38:23 +08:00
Alexey Gerenkov
884717fb2f
apptrace: Adds support for converting SystemView traces to JSON format
2019-12-04 18:04:07 +03:00
Felipe Neves
57522059aa
freertos/tests: fixed wrong header file on isr latency test
2019-12-04 10:41:00 -03:00
Felipe Neves
0ea6453b1c
freertos: changed isr time test case variables to static
2019-12-04 10:41:00 -03:00
Felipe Neves
3882d986bd
components/unity: reverted the inclusion of test protect based on setjmp
2019-12-04 10:40:27 -03:00
Felipe Neves
8cd2831ec1
components/unity: re-enabled setjmp longjmp block on unity
2019-12-04 10:40:27 -03:00
Felipe Neves
55cbc213f3
components/freertos: create the test task with highest priority to ensure peer-to-peer ISR to task sync
2019-12-04 10:40:27 -03:00
Felipe Neves
64a50f0423
components/freertos: fixed isr test failling when run multiple times
2019-12-04 10:40:27 -03:00
Felipe Neves
f119cc58cf
components/freertos: tuned performance value for ISR exit cycles to pass in test in -Og
2019-12-04 10:39:22 -03:00
Felipe Neves
c64e108a1d
components/freertos: removed CONFIG_FREERTOS_ISR_STATS the ISR test is now self contained
2019-12-04 10:39:22 -03:00
Felipe Neves
bcdc35be59
components/freertos: refactor of isr_latency tests to perform full measurement
2019-12-04 10:39:22 -03:00
Felipe Neves
8b6b97ec57
freertos/xtensa_context: fixed small typo
2019-12-04 10:39:22 -03:00
Felipe Neves
e480435879
components/freertos: removed some dead ifdefs
2019-12-04 10:39:22 -03:00
Felipe Neves
c14fc39b0a
components/freertos: fixed typos and licence placement on external code
2019-12-04 10:39:22 -03:00
Felipe Neves
64f918bd70
freertos/xtensa_context: added conditional compiling option around isr cycle measurement
...
It is possible to enable and disable the isr time measurement on context save and
it related test via menuconfig by the new option: FREERTOS_ISR_STATS
2019-12-04 10:39:22 -03:00
Felipe Neves
346b12e29a
freertos/test: added spill register timer measurement test
2019-12-04 10:39:22 -03:00
Felipe Neves
5ce7a33c87
freertos/xtensa_context.S: fix some dread tabs
2019-12-04 10:39:22 -03:00
Felipe Neves
d7d8b47b89
unity/unity_config.h: changed configuration for setjmp usage
...
For some reason after use modified context save routine, the local unit test
app were crashed, the reason behind this resides on setjmp usage of test_runner,
since this feature seems to not be used for nothing special (just was a default config),
I changed the unity_config to replace the setjmp macros, this sounds less hacky.
2019-12-04 10:39:22 -03:00
Felipe Neves
cd11787153
freertos/xt_asm_utils: added documentation of current windows spill solution
2019-12-04 10:39:22 -03:00
Felipe Neves
768d115e85
freertos/Kconfig: removed isr optimization option from menuconfig
2019-12-04 10:39:22 -03:00
Felipe Neves
eb740ca8e4
freertos/xtensa_context: modification of interrupt handler is workin, needs stabilization
2019-12-04 10:39:22 -03:00
Felipe Neves
d185625162
freertos/xtensa_context: added infrastructure to receive the spill register optimized code
2019-12-04 10:39:22 -03:00
David Cermak
de17a1487f
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
2019-12-04 12:57:09 +00:00
Jiang Jiang Jian
d24fe09356
Merge branch 'feature/reorganise_bluetooth-bluedroid-hci' into 'master'
...
Moved HCI examples from bluetooth/bluedroid/hci to bluetooth/hci.
See merge request espressif/esp-idf!6686
2019-12-04 20:28:20 +08:00
Jiang Jiang Jian
0c0430a169
Merge branch 'bugfix/btdm_allow_start_adv_again' into 'master'
...
component/bt: allow to send stop adv again and fix tx prog crash
See merge request espressif/esp-idf!6573
2019-12-04 20:23:36 +08:00
houwenxiang
aac935ec81
bugfix(i2c): fix I2C driver breaking change issue.
...
1. Fixed I2C driver breaking change issue.
2. Add I2C UT test case.
2019-12-04 15:51:36 +08:00
Angus Gratton
70cfd7e24c
Merge branch 'bugfix/ethernet_pm_lock' into 'master'
...
ethernet: add pm lock
Closes IDF-1053
See merge request espressif/esp-idf!6881
2019-12-04 15:06:12 +08:00
Jiang Jiang Jian
3a54047c66
Merge branch 'bugfix/coex_fix_wifi_scan_and_connect_bugs_master' into 'master'
...
esp_wifi: fix WiFi scan and connect bugs when coexist with Bluetooth
See merge request espressif/esp-idf!6840
2019-12-04 14:56:39 +08:00
Jiang Jiang Jian
71ae2956cd
Merge branch 'bugfix/phy_critical' into 'master'
...
Bugfix/phy critical
See merge request espressif/esp-idf!6890
2019-12-04 11:26:58 +08:00
Michael (XIAO Xufeng)
d158fa3f5c
sdio: add unit test between host and slave
2019-12-03 22:58:42 +08:00
Michael (XIAO Xufeng)
e91c7bcc3a
sdspi: revert pin configs when deinit
2019-12-03 22:58:42 +08:00
Michael (XIAO Xufeng)
e2b20f2e4b
sdio_slave: fix deinit pin and memory leak issues
2019-12-03 22:58:41 +08:00
Michael (XIAO Xufeng)
087c8f6065
essl: new component to communicate with esp serial slave devices
2019-12-03 22:58:41 +08:00
morris
cf161b1c83
ethernet: add start/stop stress test
2019-12-03 17:58:03 +08:00
Roland Dobai
b7f16594de
expat: Update library from 2.2.5 to 2.2.9
2019-12-03 09:57:29 +00:00
morris
ac11545e0a
ethernet: warning when double start/stop
2019-12-03 16:10:20 +08:00
morris
57ef88a91f
ethernet: add pm lock
2019-12-03 16:10:20 +08:00
houwenxiang
e4230d11ca
bugfix(UART): fix uart driver spinlock misused bug
...
1. fix uart driver spinlock misused bug
2. add uart driver ut test case
3. undo the change in light_sleep_example_main.c
2019-12-03 16:06:31 +08:00
Wang Jia Lin
1ffcb54444
Merge branch 'bugfix/fix_esp32-s2_rtc_io_issue' into 'master'
...
bugfix(gpio): fix esp32 s2 rtc io issue and gpio testcase issues
See merge request espressif/esp-idf!6832
2019-12-03 11:17:41 +08:00
baohongde
e94c2a04c1
components/bt: Fix AVRC metadata length error
2019-12-03 02:44:49 +00:00
Angus Gratton
78891a9571
Merge branch 'feature/add_kconfig_for_jsmn' into 'master'
...
jsmn configuration added
Closes IDFGH-2274
See merge request espressif/esp-idf!6873
2019-12-03 10:43:06 +08:00
Jack
134a627ad8
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-02 18:20:40 +08:00
Jiang Jiang Jian
f9335a1785
Merge branch 'bugfix/invalid_mmie_issue' into 'master'
...
esp_wifi: fix invalid mmie issue
See merge request espressif/esp-idf!6887
2019-12-02 16:44:15 +08:00
Tian Hao
bcce4e3052
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-02 14:56:18 +08:00
Jiang Jiang Jian
f696a29664
Merge branch 'bugfix/hfp_hci_sco' into 'master'
...
component bt/ Bugfix for HFP hci audio crash
See merge request espressif/esp-idf!6864
2019-12-02 13:55:57 +08:00
Prasad Alatkar
656005ef3d
NimBLE: Fix erroneous behaviour of NimBLE porting layer when controller is not ready to receive
2019-12-01 15:22:51 +08:00
morris
68dc6b2158
jsmn: define macros in build system
2019-11-29 18:05:24 +08:00
Nachiket Kukade
460b1d6bb5
esp_wifi: Update wifi lib
...
Add fix to "Invalid MMIE" issue.
2019-11-29 14:47:36 +05:30
weitianhua
adf8a96602
fix hci sco crash bug for HFP
2019-11-29 06:51:18 +00:00
Alexey Lapshin
1263a38038
jsmn configuration added
2019-11-28 16:44:16 +03:00
Jiang Jiang Jian
c8f483034d
Merge branch 'bugfix/fix_nullptr_ref_esp_event_possibility' into 'master'
...
esp_event: fix possibility of null ptr dereference
See merge request espressif/esp-idf!6839
2019-11-28 17:22:55 +08:00
Jiang Jiang Jian
e2e2de95b4
Merge branch 'feature/check_wifi_lib_md5_on_host' into 'master'
...
esp_wifi: check header files MD5 on host
See merge request espressif/esp-idf!6656
2019-11-28 16:48:53 +08:00
Jiang Jiang Jian
d6ddae3693
Merge branch 'bugfix/ramdom_tcp_crash' into 'master'
...
fix bug for random tcp crash
Closes WIFI-1433
See merge request espressif/esp-idf!6837
2019-11-28 11:30:02 +08:00
Renz Christian Bagaporo
e6ad330018
ble_mesh_wifi_coexist example: Disable Wi-Fi RX IRAM optimisation
...
Otherwise IRAM usage is too high in this example.
2019-11-28 09:20:00 +08:00
Angus Gratton
ecaf816c0b
Merge branch 'bugfix/freemodbus_fix_clang_warnings' into 'master'
...
freemodbus: fix clang warnings of freemodbus stack
See merge request espressif/esp-idf!5193
2019-11-28 07:06:19 +08:00
Ivan Grokhotkov
a9b7f74f7f
Merge branch 'bugfix/macos_link_toomany_open_files' into 'master'
...
build system: explicitly disable LTO plugin to reduce the number of simultaneously open files
Closes IDF-923 and IDFGH-1764
See merge request espressif/esp-idf!6776
2019-11-28 01:38:53 +08:00
Jack
5d377e5b6e
esp_wifi: update to include MD5 symbols
2019-11-27 23:08:57 +08:00
Ivan Grokhotkov
4872dcea2e
wpa_supplicant: remove header file MD5 unit test
2019-11-27 23:00:11 +08:00
Ivan Grokhotkov
680c48f86f
esp_wifi: remove MD5 related unit tests
2019-11-27 23:00:11 +08:00
Ivan Grokhotkov
568f0af61a
esp_wifi: check header files MD5 on host
2019-11-27 23:00:11 +08:00
Jiang Jiang Jian
1fbeb8c9a4
Merge branch 'bugfix/hfp_ag' into 'master'
...
component bt/ Bugfix for hfp ag
See merge request espressif/esp-idf!6742
2019-11-27 22:48:59 +08:00
xueyunfei
77b23951e7
fix bug for ramdom tcp crash
2019-11-27 13:39:54 +00:00
weitianhua
7c18299571
Add AG component API_REFERENCE
...
Expose esp_hf_indchange_notification to this example.
2019-11-27 13:35:35 +00:00
weitianhua
0c6e1f7ef8
Fix the audio crash bugs
...
Fix voice recognition bugs
Fix audio memory leak bug.
2019-11-27 13:35:35 +00:00
weitianhua
78cbdfa332
HFP AG Example
2019-11-27 13:35:35 +00:00
Piyush Shah
f9ec0a7172
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-11-27 18:42:43 +05:30
Nachiket Kukade
5618cf5100
wpa_supplicant: Fix MD5 mismatch in esp_wifi_driver.h
...
Make cosmetic changes in esp_wifi_driver.h in both IDF
and wifi library to match the md5sum.
2019-11-27 12:43:04 +00:00
Fu Zhi Bo
3a468a1ffd
Refactor the touch sensor driver
2019-11-27 20:08:44 +08:00
zhiweijian
fb369577d9
component/bt: allow adv stop again when adv is already stoped and fix crash when tx prog sometimes
2019-11-27 10:03:06 +00:00
Jiang Jiang Jian
c487df288c
Merge branch 'bugfix/hfp_hci_audio_crash' into 'master'
...
component bt/ Bugfix for HFP hci audio crash
See merge request espressif/esp-idf!6739
2019-11-27 17:48:52 +08:00
xiongyu
af4c455417
bugfix(gpio):fix esp32 s2 rtc io issue
...
* Modify the function implementation of ESP32-S2 RTC GPIO
On ESP32 those PADs which have RTC functions must set pullup/down/capability via RTC register.
On ESP32-S2, Digital IOs have their own registers to control pullup/down/capability, independent with RTC registers.
* Add ESP32-S2 support of unit test
* Modify the pull-up test of unit test
* Modify the interrupt test of unit test
* Modify input and output mode test of unit test
2019-11-27 17:18:20 +08:00
Angus Gratton
89f1786754
Merge branch 'bugfix/eth_remove_dep_on_netif' into 'master'
...
ethernet: remove dependency on esp_netif && add reference counter
Closes IDF-1104
See merge request espressif/esp-idf!6711
2019-11-27 16:08:31 +08:00
Jiang Jiang Jian
3a8b346263
Merge branch 'component_bt/osi_fixed_queue' into 'master'
...
component bt/: Bugfix for pointer type in file fixed_queue.c
Closes BT-492
See merge request espressif/esp-idf!6831
2019-11-27 15:56:49 +08:00
morris
c3ee156df0
ethernet: move netif glue && add ref counter
...
1. move netif glue into single file
2. add reference counter for Ethernet driver
2019-11-27 10:36:32 +08:00
Jiang Jiang Jian
e349f86d18
Merge branch 'bugfix/ble_mesh_device_with_wrong_name_on_ios' into 'master'
...
ble_mesh: fix ble mesh device with wrong name on iOS
Closes BLEMESH-54
See merge request espressif/esp-idf!6516
2019-11-27 10:30:25 +08:00
Angus Gratton
91b7a7beaf
Merge branch 'bugfix/timer_intr_status_get' into 'master'
...
bugfix(timer): fix get intr status function
See merge request espressif/esp-idf!6807
2019-11-27 09:13:16 +08:00
Angus Gratton
64c8b640a1
Merge branch 'feature/log_component_noos' into 'master'
...
log: make compatible with non-OS builds
See merge request espressif/esp-idf!6787
2019-11-27 08:34:22 +08:00
Angus Gratton
fd27c0a113
Merge branch 'bugfix/bootloader_unicore_cache_enable' into 'master'
...
bootloader: revert support for booting dual-core apps on single-core bootloader
See merge request espressif/esp-idf!6609
2019-11-27 08:01:59 +08:00
Angus Gratton
b034c52a93
Merge branch 'feature/uart_hal_support' into 'master'
...
Driver(uart): Uart HAL driver refactor
Closes IDF-608
See merge request espressif/esp-idf!4849
2019-11-27 07:57:02 +08:00
Ivan Grokhotkov
f287f59ae3
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-26 19:12:56 +01:00
weitianhua
f1116be195
bugfix for osi_fixed_queue pointer type
2019-11-26 21:16:47 +08:00
chenjianqiang
bcfe684951
bugfix(timer): add a macro to control making the XTAL related functions
2019-11-26 12:39:46 +00:00
chenjianqiang
856d9f7d89
bugfix(timer): recover get raw interrupt status function
2019-11-26 12:39:46 +00:00
Aditya Patwardhan
320608c85a
bugfix/esp32: add cpp guard headers for app_trace component so that its
...
API's can be can be used in cpp files.
2019-11-26 17:44:15 +05:30
houwenxiang
f27ae9b0e2
feature: Add uart hal support.
2019-11-26 20:01:50 +08:00
Jiang Jiang Jian
899f3decab
Merge branch 'feature/wpa3_SAE_support' into 'master'
...
wpa_supplicant: Add SAE authentication support for WPA3 Personal
Closes IDF-715
See merge request espressif/esp-idf!5903
2019-11-26 18:59:19 +08:00
Wang Jia Lin
7948a9f6f0
Merge branch 'bugfix/fix_i2c_driver_ut_issue_esp32s2' into 'master'
...
bugfix(i2c): fix esp32-s2 i2c driver UT issue
See merge request espressif/esp-idf!6820
2019-11-26 18:52:59 +08:00
aleks
6e14b6265b
freemodbus: fix merge issues
2019-11-26 11:25:12 +01:00
aleks
cf4c95532f
freemodbus: fix clang warnings
2019-11-26 10:37:14 +01:00
Angus Gratton
81c9ca52ed
Merge branch 'feature/ws_config_agent_header' into 'master'
...
ws_client: Add User-Agent and additional headers to esp_websocket_client
See merge request espressif/esp-idf!6777
2019-11-26 14:42:01 +08:00
Nachiket Kukade
f2e37c4ca8
wpa_supplicant: Support WPA3 4-way handshake, add config option
...
1. Add changes in 4-way handshake path to allow SAE key mgmt.
2. Support for configuring WAP3 at init time, added Kconfig option.
3. Handle and propagate error conditions properly.
4. Link changes from WiFi library.
2019-11-26 10:59:55 +05:30
Alex Lisitsyn
67f62a79c1
freemodbus: add modbus master ascii
...
add support of modbus master ascii
rename base dir name of master and slave example to be mb_slave, mb_master to avoid conflict with sdio/slave example test
add Kconfig option to enable ASCII and RTU mode separately
update ASCII options + remove cast for errors
added baudrate for examples into Kconfig
updated magic numbers for timer timeout
put ascii private definitions into one file
2019-11-26 13:16:25 +08:00
Andrew
1669dc40d1
spi_slave.c:fix DMA channel set to zero which might gets conflict with assert
...
close #2740
2019-11-26 13:11:48 +08:00
Nachiket Kukade
da07b2b4a7
wpa_supplicant: Add SAE handshake support for WPA3-PSK
...
Under WPA3-Personal, SAE authentication is used to derive PMK
which is more secure and immune to offline dictionary attacks.
1. Add modules to generate SAE commit/confirm for the handshake
2. Add modules that build and parse SAE data in Auth frames
3. Add WPA3 association and key mgmt definitions
4. Invert y-bit while solving for ECC co-ordinate -
Once an X co-ordinate is obtained, solving for Y co-ordinate
using an elliptical curve equation results in 2 possible values,
Y and (P - Y), where p is the prime number. The co-ordinates are
used for deriving keys in SAE handshake. As par the 802.11 spec
if LSB of X is same as LSB of Y then Y is chosen, (P - Y) otherwise.
This is not what is implemented, so fix this behavior to obtain the
correct Y co-ordinate.
2019-11-26 04:24:57 +00:00
Sagar Bijwe
aceb141d2b
wpa_supplicant: Adding SAE modules with testcase
...
This change ports SAE(Simultaneous Authentication of Equals)
feature from wpa_supplicant and makes it work with mbedtls
crypto APIs. Currently only group 19 is supported. A sample
SAE handshake is included in the testcase. Other minor
changes for DH groups are also included.
2019-11-26 04:24:57 +00:00
Jiang Jiang Jian
54eeb77a56
Merge branch 'feature/support_pmf' into 'master'
...
Feature/support pmf
See merge request espressif/esp-idf!5708
2019-11-26 12:13:43 +08:00
kooho
f0f20e0496
bugfix(i2c): fix esp32-s2 i2c driver UT issue
2019-11-26 12:01:18 +08:00
weitianhua
52c5cc038a
bugfix for HFP hci audio crash
2019-11-26 02:34:09 +00:00
Alexey Gerenkov
e092d6f858
coredump: Makes compatible with legacy binary core dumps
...
Also:
- improves coredump versioning scheme
- Moves some API funtions to respective flash/UART dependent code
2019-11-25 22:44:51 +03:00
kooho
5286c8308c
bugfic(i2c): fix i2c driver ut issue.
2019-11-25 07:03:02 +00:00
Renz Christian Bagaporo
bb139d2b83
esp_event: fix possibility of null ptr dereference
...
Closes https://github.com/espressif/esp-idf/issues/4373
2019-11-25 14:27:10 +08:00
Angus Gratton
f2a1a6105a
Merge branch 'feat/mcpwm_hal'
...
Manual merge of !6626
2019-11-25 17:18:48 +11:00
Angus Gratton
dbae85dde8
Merge branch 'bugfix/timer_driver_ut' into 'master'
...
driver/timer: fix software reset UT (again)
See merge request espressif/esp-idf!6801
2019-11-25 12:54:52 +08:00
Nachiket Kukade
75ea0df916
Add encryption/decryption support for PMF
...
1. Add CCMP, AES crypto modules for unicast protected Mgmt frames
2. Add support for computing SHA256 MIC on Bcast Mgmt frames
3. Add support for storing iGTK during 4-way handshake.
4. Provide APIs to MLME for utilizing the SW crypto modules
5. Link PMF changes from WiFi library submodule
2019-11-25 04:11:09 +00:00
Nachiket Kukade
773e095a65
Add support for PMF configuration and negotiation
...
1. Add APIs for configuring PMF through set config.
2. Map Supplicant and Wifi Cipher types.
3. Add support for PMF negotiation while generating RSN IE.
2019-11-25 04:11:09 +00:00
Jiang Jiang Jian
ddef4f9129
Merge branch 'feature/set_dhcp_timeout' into 'master'
...
Add feature for set dhcp time out
Closes WIFI-797 and IDF-1100
See merge request espressif/esp-idf!6370
2019-11-25 12:04:20 +08:00
Angus Gratton
6dd36fd571
Merge branch 'refactor/hal_gpio_driver'
...
Manual merge of !5597
2019-11-25 10:49:40 +11:00
Angus Gratton
f34edba8f3
Merge branch 'feature/adc_driver_hal_support'
...
Manual merge of !6044
2019-11-25 10:22:06 +11:00
Ivan Grokhotkov
82d89afe1f
driver/timer: fix software reset UT (again)
2019-11-24 21:10:50 +01:00
michael
538540ce21
mcpwm: add HAL layer support
...
Also improved the unit tests a bit.
2019-11-25 00:36:30 +08:00
michael
1fb2fd89de
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.
2019-11-25 00:36:30 +08:00
michael
0f6dd34971
mcpwm: enable some unit tests again
2019-11-25 00:36:30 +08:00
Angus Gratton
b7b4cd3418
Merge branch 'bugfix/timer_group_reset_ut' into 'master'
...
timer: remove check for POWERON_RESET in the test case, add esp_reset_reason API for s2beta
See merge request espressif/esp-idf!6747
2019-11-23 14:04:41 +08:00
Ivan Grokhotkov
719c8eb627
Merge branch 'bugfix/esp_netif_early_fixes' into 'master'
...
esp-netif: fixed early issues on esp-netif
See merge request espressif/esp-idf!6792
2019-11-22 20:19:20 +08:00
Ivan Grokhotkov
676b5e0deb
log: refactoring to make compatible with no-FreeRTOS builds
2019-11-22 11:41:35 +01:00
Ivan Grokhotkov
6fda3df953
Merge branch 'bugfix/gpio_pin_bit_mask_truncation' into 'master'
...
driver: fix gpio pin_bit_mask truncation in sdspi_host and others
See merge request espressif/esp-idf!6746
2019-11-22 17:41:05 +08:00
Jiang Jiang Jian
0deeae38a9
Merge branch 'bugfix/fix_timer_deleted_and_run_broken_callback' into 'master'
...
esp_timer: fix the bug that when timeout of timer happens try to run callback,...
Closes WIFI-1214
See merge request espressif/esp-idf!6765
2019-11-22 17:37:51 +08:00
David Cermak
d9433ef692
mdns: fixed forgotten merge conflicts in debug code
2019-11-22 10:31:06 +01:00
David Cermak
c5a6bc9985
esp_netif: added missing C++ guards
...
Closes https://github.com/espressif/esp-idf/issues/4389
2019-11-22 10:31:06 +01:00
xiongyu
a3b79e9202
refactor(gpio): add hal gpio driver
2019-11-22 17:24:53 +08:00
xueyunfei
2eea2dbeb4
Add feature for set dhcp time out
2019-11-22 17:24:16 +08:00
Ivan Grokhotkov
e4f641f5a9
Merge branch 'bugfix/i2s_driver_apll_test_regression' into 'master'
...
i2s: fix regression in retrieval of chip revision causing apll test to fail
See merge request espressif/esp-idf!6786
2019-11-22 17:06:29 +08:00
Angus Gratton
989825908b
Merge branch 'feature/esp32s2beta_ulp_projbuild' into 'master'
...
Support esp32s2beta ULP in build system
See merge request espressif/esp-idf!5412
2019-11-22 15:59:44 +08:00
fuzhibo
f49b192a5e
refactor the adc driver
2019-11-22 15:42:16 +08:00
Mahavir Jain
25c0752682
i2s: fix regression in retrieval of chip revision causing apll test to fail
2019-11-22 11:46:38 +05:30
Dmitry
b38bc2f8f5
s2 support for make build removed.
2019-11-22 09:03:23 +03:00
Dmitry
1518c410bc
A switch between esp32 and esp32s2betta added to the ULP build process.
...
The new bin utils will have extension esp32s2ulp-elf, and they have to be placed to the bin directory.
2019-11-22 09:03:13 +03:00
Wang Jia Lin
a8d3e3ab4a
Merge branch 'feature/dac_driver_hal_support' into 'master'
...
dac: add hal for dac driver
See merge request espressif/esp-idf!5591
2019-11-22 13:59:32 +08:00
Chinmay Chhajed
6a91c8d440
Changes in menuconfig
options to not compile any host when using hci
...
examples as no host is required there.
2019-11-22 11:14:50 +05:30
Alexey Gerenkov
27ce4d13df
coredump: change data format to ELF
2019-11-22 13:25:43 +08:00
fuzhibo
03ac1aaafd
dac: refactor driver add hal
2019-11-22 11:44:46 +08:00
Angus Gratton
0e0994092e
Merge branch 'feature/esp32s2beta_fix_rtc_peripheral_driver' into 'master'
...
Driver: fix touch driver and deep sleep example
See merge request espressif/esp-idf!6476
2019-11-22 11:39:41 +08:00
Angus Gratton
ea29c101cd
Merge branch 'bugfix/fix_iram_intr_alloc_test' into 'master'
...
ccomp_timer: fix broken unit test
See merge request espressif/esp-idf!6779
2019-11-22 08:41:50 +08:00
Angus Gratton
dc00c360ab
Merge branch 'bugfix/esp32s2beta_crtbegin' into 'master'
...
esp32s2beta: fix crash at startup due to toolchain crtbegin being linked
See merge request espressif/esp-idf!6783
2019-11-22 07:01:32 +08:00
Ivan Grokhotkov
477e66103c
Merge branch 'feature/esp32s2beta_apptrace_port' into 'master'
...
esp32s2: Adds apptrace support
Closes IDF-510 and IDF-1032
See merge request espressif/esp-idf!5610
2019-11-22 05:33:35 +08:00
David N. Junod
9200250f51
Add User-Agent and additional headers to esp_websocket_client
...
Merges https://github.com/espressif/esp-idf/pull/4345
2019-11-21 21:14:29 +01:00
Ivan Grokhotkov
ad986849a6
timer: remove check for POWERON_RESET in the test case
...
The test case may run after an RTC_WDT_RESET (if we are on rev. 0
ESP32), or software reset (when running test cases locally).
Also moving the test case next to the other timer group driver tests.
2019-11-21 20:03:26 +01:00
Ivan Grokhotkov
ea99137e62
esp32s2beta: implement esp_reset_reason API
2019-11-21 20:03:26 +01:00
Ivan Grokhotkov
38520d3b65
Merge branch 'feature/build_apps_script' into 'master'
...
tools: add build_apps.py, script to build multiple apps
Closes IDF-641
See merge request espressif/esp-idf!6101
2019-11-22 02:54:28 +08:00
Ivan Grokhotkov
951ed739f7
soc/cpu: add non-xtensa-specific replacement of xthal_get_ccount
2019-11-21 19:22:35 +01:00
Ivan Grokhotkov
e1452f5d6c
lw-ip: silence a warning related to CONFIG_LWIP_TCP_WND_DEFAULT value
2019-11-21 15:36:06 +01:00
Ivan Grokhotkov
096dc8fc2b
esp32s2beta: rename output linker script
2019-11-21 15:29:00 +01:00
Jack
50fe7e540e
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-21 13:54:50 +00:00
houwenxiang
28286183d1
feature(I2C): Add i2c hal support.
2019-11-21 20:34:07 +08:00
fuzhibo
246242dbd5
driver: fix sens_struct.h
;
...
driver: fix timer wakeup dsleep;
example: fix EXT1 wakeup dsleep;
example: fix touch pad wakeup dsleep;
2019-11-21 20:31:34 +08:00
Mahavir Jain
43411da465
Merge branch 'bugfix/freertos_critical_section_compliance' into 'master'
...
Changes in uart and esp_timer for critical section compliance with vanilla FreeRTOS
See merge request espressif/esp-idf!6733
2019-11-21 19:25:14 +08:00
Ivan Grokhotkov
04324e4c3c
esp32s2beta: re-enable entering the debugger on panic
2019-11-21 11:52:10 +01:00
Ivan Grokhotkov
f21261d39c
esp32s2beta: don't use crtbegin from the toolchain
...
Similar to 22514c1dd9
for esp32
2019-11-21 11:52:10 +01:00
chenjianqiang
857dec108d
feat(ledc): refactor ledc driver
...
1. add hal and low-level layer for ledc driver
2. support esp32s2beta ledc
2019-11-21 16:25:22 +08:00
chenjianqiang
9f9da9ec96
feat(timer): refator timer group driver
...
1. add hal and low-level layer for timer group
2. add callback functions to handle interrupt
3. add timer deinit function
4. add timer spinlock take function
2019-11-21 14:14:19 +08:00
xiongyu
e62b831867
refactor(sigmadelta): add hal sigmadelta driver
2019-11-21 11:53:07 +08:00
fuzhibo
0c2bf7c8bc
rtcio: add hal for driver
2019-11-21 10:40:49 +08:00
Angus Gratton
b30b0e59fa
Merge branch 'feature/add_rmt_hal' into 'master'
...
rmt: add hal layer and new examples
Closes IDF-841, IDF-844, and IDF-857
See merge request espressif/esp-idf!5649
2019-11-21 09:53:54 +08:00
Angus Gratton
bc3233782b
Merge branch 'feature/remove_gcc5_support' into 'master'
...
global: remove gcc 5.2 support
Closes IDF-1131
See merge request espressif/esp-idf!6608
2019-11-21 09:08:41 +08:00
suda-morris
e673817530
ccomp_timer: fix broken unit test
2019-11-21 08:45:11 +08:00
Angus Gratton
e510e1779d
Merge branch 'bugfix/gcov_in_components' into 'master'
...
Fixes libgcov and libapp_trace cross dependency linking issue
Closes IDF-834
See merge request espressif/esp-idf!6250
2019-11-21 07:09:04 +08:00
Angus Gratton
95b9b41258
Merge branch 'bugfix/ethernet_add_reference_counter' into 'master'
...
ethernet: add reference counter for mac and phy && add gpio config outof Kconfig
Closes IDF-1056
See merge request espressif/esp-idf!6682
2019-11-21 06:58:13 +08:00
Ivan Grokhotkov
9a2af7ae33
global: remove gcc 5.2 support
2019-11-20 11:17:27 +01:00
Wang Jia Lin
f9d5b67b81
Merge branch 'refactor/hal_i2s_driver' into 'master'
...
refactor(i2s): add hal i2s driver
Closes IDFGH-2097
See merge request espressif/esp-idf!5601
2019-11-20 17:45:21 +08:00
morris
8fd8695ea1
rmt: add HAL layer
2019-11-20 10:54:21 +08:00
suda-morris
05d71319de
ethernet: add gpio number into config structure
2019-11-20 10:36:45 +08:00
suda-morris
f3d0429a9e
ethernet: add reference counter for mac and phy
2019-11-20 10:36:45 +08:00
Angus Gratton
bc9267aa24
Merge branch 'feature/use_cpu_time_for_tests' into 'master'
...
Cache compensated timer
See merge request espressif/esp-idf!6087
2019-11-20 08:33:27 +08:00
Angus Gratton
412b202741
Merge branch 'bugfix/ws_client_fix_wait_forever_timeout' into 'master'
...
ws_client: fix handling timeouts by websocket client.
Closes IDFGH-2161
See merge request espressif/esp-idf!6683
2019-11-20 07:44:25 +08:00
Anton Maklakov
bd49b3f315
Merge branch 'bugfix/soc_missing_tests' into 'master'
...
soc: fix unit tests not included in the build
See merge request espressif/esp-idf!6723
2019-11-20 00:32:43 +08:00
xiongyu
8c76a3c10d
refactor(i2s): add hal i2s driver
2019-11-19 22:19:19 +08:00
Ivan Grokhotkov
a74988ae3b
Merge branch 'bugfix/cpp_extern' into 'master'
...
Add extern C header guards to some files
Closes IDFGH-2025 and IDFGH-2093
See merge request espressif/esp-idf!6611
2019-11-19 19:01:29 +08:00
Wang Jia Lin
7494877b1c
Merge branch 'refactor/hal_pcnt_driver' into 'master'
...
refactor(pcnt): add hal pcnt driver
See merge request espressif/esp-idf!5600
2019-11-19 17:22:49 +08:00
Jiang Jiang Jian
9e0b9fcf4e
Merge branch 'bugfix/btdm_run_out_of_frame_element' into 'master'
...
components/bt: Fix assert due to no free element from
Closes BT-461
See merge request espressif/esp-idf!6574
2019-11-19 17:01:23 +08:00