Li Shuai
92ddbcda05
deep sleep: power down wifi and bt during deep sleep
2021-03-10 18:22:41 +00:00
Li Shuai
1595973fe8
light sleep: some default parameters optimization
2021-03-10 18:22:41 +00:00
David Čermák
5b51cc6123
Merge branch 'bugfix/mdns_check_local_postfix' into 'master'
...
mDNS: Updated APIs description and added a warning when hostname
Closes IDFGH-4787
See merge request espressif/esp-idf!12548
2021-03-10 18:06:44 +00:00
Jiang Jiang Jian
a8f6a7a28e
Merge branch 'bugfix/c2h_fc_param_fix_ble' into 'master'
...
Fix for C2H flow control param check when only BLE mode is configured.
See merge request espressif/esp-idf!12672
2021-03-10 17:22:03 +00:00
suren.gabrielyan
9f8d2b944d
mDNS: Updated APIs description and shows the warning when hostname contains domain name during the query
...
Closes https://github.com/espressif/esp-idf/issues/6590
2021-03-10 13:38:13 +00:00
yuanjm
382fe8807d
httpd: Support user_ctx in websocket handler callback request
...
Closes https://github.com/espressif/esp-idf/issues/6538
2021-03-10 12:31:38 +00:00
Jiang Jiang Jian
9e4ba9a4db
Merge branch 'bugfix/fix_err_code_issue' into 'master'
...
esp_wifi: Fix set config return value error
Closes IDFGH-4877, TCI-556, WIFI-3375, and IDFGH-4829
See merge request espressif/esp-idf!12657
2021-03-10 10:12:01 +00:00
Chinmay Chhajed
1d54d9ac13
Fix for C2H flow control param check when only BLE mode is configured.
2021-03-10 15:06:49 +05:30
Angus Gratton
c8ec2edc0f
Merge branch 'feature/skip_validate' into 'master'
...
bootloader: Add config options to skip validation of app for minimum boot time
Closes IDF-2916
See merge request espressif/esp-idf!12659
2021-03-10 08:07:07 +00:00
Mahavir Jain
b8cd8cc2df
Merge branch 'feature/transport_support_dev_bind' into 'master'
...
transport: Support bind socket to specified interface
Closes IDFGH-4232
See merge request espressif/esp-idf!11961
2021-03-10 06:34:39 +00:00
Michael (XIAO Xufeng)
1bfc57b94f
Merge branch 'bugfix/uart_baud_c3_s3' into 'master'
...
uart: fixed incorrect baudrate on C3 and S3 when target is too slow
See merge request espressif/esp-idf!12664
2021-03-10 03:48:12 +00:00
Angus Gratton
6f362b9383
bootloader: Add config options to skip validation of app for minimum boot time
2021-03-10 14:00:46 +11:00
yuanjm
f68e55edb3
esp-tls: Separate timeout_ms conditional judgement from keep alive
2021-03-10 02:19:29 +00:00
yuanjm
a412eb867c
tcp_transport: Add bind device function to unit test
2021-03-10 02:19:29 +00:00
yuanjm
c79a907e4f
components: Remove repeated keep alive function by ssl layer function
...
In esp_http_client and esp_websocket_client components, esp_transport_tcp_set_keep_alive has been called and keep-alive config has been saved in ssl->cfg.keep_alive_cfg,
So no need to call esp_transport_ssl_set_keep_alive again.
2021-03-10 02:19:29 +00:00
yuanjm
bead3599ab
components: Support bind socket to specified interface in esp_http_client and esp_websocket_client component
2021-03-10 02:19:29 +00:00
yuanjm
c62cbd1254
transport: Support bind socket to specified interface in transport and esp-tls
2021-03-10 02:19:29 +00:00
Angus Gratton
e39b475af1
Merge branch 'feature/crypto_reserve_gdma_ch' into 'master'
...
aes/sha: use a shared lazy allocated GDMA channel for AES and SHA
Closes IDF-2856
See merge request espressif/esp-idf!12507
2021-03-09 23:44:26 +00:00
Angus Gratton
39a2d531f0
Merge branch 'feature/ldgen_mapping_extensions' into 'master'
...
ldgen: mapping flags extensions
Closes IDFGH-2524
See merge request espressif/esp-idf!12035
2021-03-09 22:43:08 +00:00
xiehang
0e10c7e198
esp_wifi: Fix some Wi-Fi bugs
...
1, Fixed issue of reason code change from 15 to 204 when provide wrong password
2, Fix set config return value error
3, Fix ampdu age timer memory leak
Closes https://github.com/espressif/esp-idf/issues/6673
2021-03-09 20:14:13 +08:00
aleks
bd7cdf8f7c
driver: esp32s3 fix UART driver
...
Fix set UART2 instance to correct base address (esp32s3 has non standard base periph address)
2021-03-09 20:09:42 +08:00
Michael (XIAO Xufeng)
fc61e60948
uart: fixed incorrect baudrate on C3 and S3 when target is too slow
...
The integer part of the divider is only 12-bit now. We used prescaler to get low frequency instead.
2021-03-09 20:09:42 +08:00
Jiang Jiang Jian
8b75cbf99f
Merge branch 'bugfix/btdm_issues_when_light_sleep_and_dfs' into 'master'
...
Fix issues during light sleep and DFS
Closes BT-1439 and FC3-128
See merge request espressif/esp-idf!12577
2021-03-09 09:51:10 +00:00
Jiang Jiang Jian
b3612b73d6
Merge branch 'bugfix/fix_connected_scan_hidden_ap_issue' into 'master'
...
Fixed issue with hidden AP scans after connecting AP
Closes IDFGH-4827
See merge request espressif/esp-idf!12587
2021-03-09 07:11:18 +00:00
Angus Gratton
4f406d7a35
Merge branch 'bugfix/read_ota_partition_required_output_arg' into 'master'
...
otatool: Fixes read_ota_partition cmd, required output arg
Closes IDFGH-4756
See merge request espressif/esp-idf!12601
2021-03-09 06:29:34 +00:00
Angus Gratton
32ea7dc812
Merge branch 'feature/bootloader_disable_logs_unnecessary_warnings' into 'master'
...
bootloader: Disables unnecessary warning logs when invalid magic byte
Closes IDF-1900
See merge request espressif/esp-idf!12514
2021-03-09 06:28:46 +00:00
baohongde
33df1358ef
Fix issues during light sleep and DFS
2021-03-09 13:49:59 +08:00
Marius Vikhammer
fe71a8e340
aes/sha: use a shared lazy allocated GDMA channel for AES and SHA
...
Removed the old dynamically allocated GDMA channel approach.
It proved too unreliable as we couldn't not ensure consumers of the mbedtls
would properly free the channels after use.
Replaced by a single shared GDMA channel for AES and SHA, which won't be
released unless user specifically calls API for releasing it.
2021-03-09 09:23:05 +08:00
Angus Gratton
d6112c12b7
Merge branch 'bugfix/extern_c_decl' into 'master'
...
[cxx]: bugfixed extern c decl
See merge request espressif/esp-idf!12554
2021-03-09 00:01:56 +00:00
0xFEEDC0DE64
6928db7670
Allow selection of different core for main task
...
Closes https://github.com/espressif/esp-idf/pull/6627
2021-03-09 10:13:28 +11:00
ronghulin
1982f4a2fb
esp_wifi: fix some wifi bugs
...
1.Fixed issue with hidden AP scans after connecting AP.
2.Fix watchdog issue when receiving action frame.
Closes https://github.com/espressif/esp-idf/issues/6626
2021-03-08 21:02:47 +08:00
Seon Rozenblum
dd2a8e330b
Added missing ESP32-S3 target for /rom/gpio.h include
...
I know this is being depreciated in 5, but we need it working for S3 in 4.x :)
Closes https://github.com/espressif/esp-idf/pull/6666
2021-03-08 17:54:16 +08:00
Mahavir Jain
907ea44ee9
Merge branch 'feature/http_server_optimizations' into 'master'
...
esp_http_server optimisations
Closes IDFGH-4484 and IDFGH-4741
See merge request espressif/esp-idf!12240
2021-03-08 09:01:20 +00:00
Angus Gratton
9c03f04769
esptool_py: Add esptool_py as a dependency for any component that uses it
...
Many components uses esptool_py_flash_target function, they all should
explicitly requier the esptool_py component.
Related to https://github.com/espressif/esp-idf/issues/6670
2021-03-08 19:47:38 +11:00
Matt Arcidy
3942b61a1e
partition_table requires esptool_py for esptool_py_flash_target
...
Closes https://github.com/espressif/esp-idf/pull/6672
Closes https://github.com/espressif/esp-idf/issues/6670
2021-03-08 19:47:38 +11:00
Angus Gratton
f7d7954bf4
Merge branch 'bugfix/dport_init_min_stack_size' into 'master'
...
freertos: Increase minimum task stack size when stack smashing checker is enabled
Closes IDFGH-4586 and IDFCI-482
See merge request espressif/esp-idf!12369
2021-03-08 07:33:47 +00:00
Jiang Jiang Jian
ffe5e45c77
Merge branch 'bugfix/btdm_controller_task_watchdog_in_wifi_test' into 'master'
...
Fix controller task watchdog in Wi-Fi test
Closes WIFI-3391
See merge request espressif/esp-idf!12628
2021-03-08 07:02:16 +00:00
Jakob Hasse
d52a21de5c
Random NVS fixes
...
* Checking Lock::init() now
* fixed typos in nvs_flash.h
* Added missing parameter checks in nvs encryption
function
* Closes IDF-1462
* Closes IDF-2900
2021-03-08 14:41:53 +08:00
William Ferguson
13bc5feb0a
[cxx]: fixed extern "C" declarations
...
* Moving #includes above
#ifdef __cplusplus extern "C" { #endif
So that we can compile with CPP.
Signed-off-by: Jakob Hasse <jakob.hasse@espressif.com>
Merges https://github.com/espressif/esp-idf/pull/6634
2021-03-08 14:11:33 +08:00
Jiang Jiang Jian
e895e50098
Merge branch 'bugfix/fix_wifi_storage_flash_or_ram_issue' into 'master'
...
bugfix: fix wifi NVS issue
Closes WIFI-2175 and WIFI-2314
See merge request espressif/esp-idf!9021
2021-03-05 12:13:07 +00:00
Jiang Jiang Jian
b88a156ce5
Merge branch 'bugfix/btdm_crash_when_esp_restart' into 'master'
...
components/bt: Fix crash in Bluetooth when esp_restart
See merge request espressif/esp-idf!12566
2021-03-05 11:53:03 +00:00
ronghulin
338944d981
Updated wifi lib:
...
1. Fix the issue that the parameters obtained from RAM cannot be saved to NVS
2. Modify not to store the default value in NVS
Closes https://github.com/espressif/esp-idf/issues/5129
Closes https://github.com/espressif/esp-idf/issues/5214
2021-03-05 14:47:14 +08:00
baohongde
df146f5cd9
Fix controller task watchdog in Wi-Fi test
2021-03-05 11:25:03 +08:00
Michael (XIAO Xufeng)
a3f5cf2c71
Merge branch 'bugfix/touch_element_callback_para' into 'master'
...
touch_element: fix event callback parameter type, change it into pointer
See merge request espressif/esp-idf!12600
2021-03-05 02:28:04 +00:00
Angus Gratton
70e13752ae
Merge branch 'feature/rtc_time_get' into 'master'
...
rtc: Clean up for S2,S3,C3
Closes IDF-2569
See merge request espressif/esp-idf!12336
2021-03-05 01:16:15 +00:00
Michael (XIAO Xufeng)
ffa93ed9ec
Merge branch 'bugfix/simple_ota_example_test' into 'master'
...
ota: fix ota with flash encryption
Closes IDFGH-4740, IDFCI-442, and IDFCI-448
See merge request espressif/esp-idf!12412
2021-03-04 09:45:58 +00:00
Jiacheng Guo
b14830c5c0
vfs: use sys/dirent.h from newlib
...
The dirent.h shipped with the risc-v compiler lacks `extern "C"`
declartion and causes linkage declartion conflict when included in C++
files. Use the dirent.h from newlib only to avoid this issue.
2021-03-04 14:58:43 +08:00
Angus Gratton
ef0bbc5baa
freertos: Add a small additional stack when optimization set to None
...
Fix for occasional crash on startup when DPORT task overwrites its stack during
context switch, otherwise.
2021-03-04 17:57:55 +11:00
Angus Gratton
9c73b80ee0
freertos: Increase minimum task stack size when stack smashing checker is enabled
...
Fixes issue with DPORT init task, this task uses minimum stack size and may not be
enough if stack smashing detection is set to Overall mode.
Also reworks the way we calculate minimum stack to allow for adding multiple
contributing factors.
Closes https://github.com/espressif/esp-idf/issues/6403
2021-03-04 17:44:36 +11:00
KonstantinKondrashov
b7155a161b
otatool: Fixes read_ota_partition cmd, required output arg
...
Closes: https://github.com/espressif/esp-idf/issues/6559
2021-03-04 06:02:54 +00:00
Mahavir Jain
2bddd67b7d
Merge branch 'bugfix/http_server_client_list' into 'master'
...
httpd_server bugfix
See merge request espressif/esp-idf!12553
2021-03-04 04:18:30 +00:00
Shubham Kulkarni
6a7587d35f
esp_http_server: Run format.sh script to fix code style issues
2021-03-04 04:08:47 +00:00
Jermolinski
282726b619
The httpd_sess_* functions have been re-designed to speed up the httpd server
...
Signed-off-by: Shubham Kulkarni <shubham.kulkarni@espressif.com>
Merges: https://github.com/espressif/esp-idf/pull/6313
2021-03-04 04:08:47 +00:00
Michael (XIAO Xufeng)
e9ecc4a0af
Merge branch 'bugfix/esp32s3_flash_read_write' into 'master'
...
spi_flash: modify nvs reading writing issue on esp32s3
Closes WIFI-3438 and IDF-2866
See merge request espressif/esp-idf!12604
2021-03-04 03:53:35 +00:00
Jiang Jiang Jian
52720c724f
Merge branch 'bugfix/fix_l2cap_repeat_cid' into 'master'
...
Bugfix/Fix L2CAP Repeat Cid
Closes BT-1411, BT-1409, and BT-1410
See merge request espressif/esp-idf!12342
2021-03-04 03:36:31 +00:00
Jiang Jiang Jian
6677cd5498
Merge branch 'component_bt/optimize_spp_stop_server' into 'master'
...
component_bt/Optimize SPP Stop Server API
Closes BT-960
See merge request espressif/esp-idf!11124
2021-03-04 03:34:44 +00:00
Martin Valik
f221b1655d
httpd: remove redundant condition from get_client_list()
...
Premature return from httpd_uri() was also removed to call uri handler after establishing websocket.
2021-03-04 03:23:57 +00:00
Cao Sen Miao
0b7caf96a9
spi_flash:modify nvs reading writing issue on esp32s3
2021-03-03 22:02:32 +08:00
Angus Gratton
3ddfe1e8ac
Merge branch 'bugfix/asserts_disabled' into 'master'
...
core: Fix assert path embedding, warnings when asserts are disabled
Closes IDFGH-4477
See merge request espressif/esp-idf!12371
2021-03-03 08:20:54 +00:00
Kang Zuo Ling
022bf82e01
touch_element: fix event callback parameter type, change it into pointer
2021-03-03 15:53:12 +08:00
liqigan
408a1490a9
add API esp_spp_stop_srv_scn
to stop a specific server
2021-03-03 15:02:23 +08:00
Angus Gratton
a13be9f40c
Merge branch 'feature/mbedtls_bignum' into 'master'
...
mbedtls: Fix rsa test
See merge request espressif/esp-idf!12578
2021-03-03 06:50:42 +00:00
liqigan
825c2024d0
fix l2cap repeat cid
2021-03-03 14:50:05 +08:00
Mahavir Jain
7dd81949db
Merge branch 'fix/coap_pointer_check_for_dynamic_memory' into 'master'
...
coap: Fixed NULL checks for dymanic memory allocation in coap_mbedtls.c
Closes IDF-2794
See merge request espressif/esp-idf!12585
2021-03-03 04:14:00 +00:00
Angus Gratton
c786ba9186
Merge branch 'feature/re-enable_suspend_test_esp32c3' into 'master'
...
freertos: Workaround delay between interrupt request and trigger on RISC-V
Closes IDF-2588 and IDF-2226
See merge request espressif/esp-idf!12350
2021-03-03 03:41:05 +00:00
Angus Gratton
74fa52668c
esp-mqtt: Remove __FILE__ macro from error logs
2021-03-03 10:26:57 +11:00
Angus Gratton
c68f869411
driver: Remove some stray __FILE__ macros
...
Related to https://github.com/espressif/esp-idf/issues/6306
2021-03-03 10:26:57 +11:00
Angus Gratton
61b70c50a4
freertos: Use the standard assert() function for configASSERT
...
Unless the option for "assert and keep running" is enabled.
This means that silent asserts now work for FreeRTOS, and disabling asserts
now also disables them in FreeRTOS without needing a separate config change.
Related to https://github.com/espressif/esp-idf/issues/6306
2021-03-03 10:26:57 +11:00
Angus Gratton
cfde7adb7f
esp_ble_mesh: Use standard ESP-IDF asserts
...
Smaller binary size, means that config options for silent assert or disable
assert will apply
2021-03-03 10:26:57 +11:00
Angus Gratton
0d26c89b6b
btc_common: Redefine BTC assert macro to use standard assert
...
Allows assert to be disabled, made silent, etc.
Progress towards https://github.com/espressif/esp-idf/issues/6306
2021-03-03 10:26:57 +11:00
Angus Gratton
a0c73c5f92
bt host: Don't redefine the assert macro
...
Required so that bt asserts obey the same configuration settings as other
asserts.
Progress towards https://github.com/espressif/esp-idf/issues/6306
2021-03-03 10:26:57 +11:00
Angus Gratton
10bde42551
esp_websocket_client: Don't log the filename when logging "Websocket already stop"
...
Progress towards https://jira.espressif.com:8443/browse/IDFGH-4477
2021-03-03 10:26:57 +11:00
Angus Gratton
9c6d4de1e6
lwip: Support silent assertion configuration
...
If silent assert configuration is enabled, LWIP asserts are now 'silent' also.
Also updates KConfig to note that LWIP asserts are also disabled when asserts
are disabled globally (this was already the behaviour, but the config item
suggested otherwise.)
Progress towards https://github.com/espressif/esp-idf/issues/5873
2021-03-03 10:26:57 +11:00
Angus Gratton
90ec0b0327
bootloader: Allow 'silent assert' config to work in bootloader
...
Requires adding the 'newlib' component to the bootloader project, for
platform_include header.
2021-03-03 10:26:57 +11:00
Angus Gratton
d6f4d99d93
core system: Fix warnings in compilation when assertions are disabled
...
Adds a CI config for hello world that sets this, to catch future regressions
2021-03-03 10:26:57 +11:00
Aditya Patwardhan
3e533be8be
coap: Fixed NULL checks for dymanic memory allocation in coap_mbedtls.c
...
Fixes one part of - https://github.com/espressif/esp-idf/issues/6440
2021-03-02 22:34:19 +05:30
Krzysztof Budzynski
ac776657c9
Merge branch 'docs/provide_link_to_pcb_layout_for_ethernet_board_v1.2' into 'master'
...
docs: provide the link to pcb layout for ethernet board v1.2 and fix a typo in freetos/task
See merge request espressif/esp-idf!12522
2021-03-02 11:42:59 +00:00
Michael (XIAO Xufeng)
2e0e583ad1
Merge branch 'bugfix/clear_interrupt_in_touch_sensor_initialization' into 'master'
...
fix: clear interrupt in touch sensor initialization
See merge request espressif/esp-idf!12201
2021-03-02 08:09:23 +00:00
Mahavir Jain
7ef6c5855b
Merge branch 'feature/partial_image_download' into 'master'
...
esp_https_ota: Add support for partial image download
Closes IDF-1669, IDFGH-4573, IDFGH-4574, and IDFGH-4824
See merge request espressif/esp-idf!12141
2021-03-02 04:11:41 +00:00
KonstantinKondrashov
f3dd0a37c7
mbedtls: Fix rsa test
2021-03-02 03:18:58 +08:00
Jiang Jiang Jian
dcb8857e72
Merge branch 'bugfix/fix_coex_reset_last_wait_lose_iram_attr_m' into 'master'
...
Fix IRAM_ATTR missing
See merge request espressif/esp-idf!12546
2021-03-01 15:11:12 +00:00
Itay Perl
807bf9688c
ESP HTTPS OTA: send POST request body if set
...
Signed-off-by: Shubham Kulkarni <shubham.kulkarni@espressif.com>
Closes: https://github.com/espressif/esp-idf/issues/6390
Merges: https://github.com/espressif/esp-idf/pull/6391
2021-03-01 14:00:27 +00:00
Shubham Kulkarni
7f8541ff47
esp_https_ota: Add support for partial image download
...
Fix issue where binary_file_length field is greater than original image length
2021-03-01 14:00:27 +00:00
xiongweichao
d39756d8e7
components/bt: Fix crash in btc_hf_arg_deep_copy when name or number is NULL
2021-03-01 12:54:21 +00:00
KonstantinKondrashov
87aeef65a8
bootloader: Disables unnecessary warning logs when invalid magic byte
2021-03-01 20:34:54 +08:00
Michael (XIAO Xufeng)
94118efe64
Merge branch 'feature/usb_hcd' into 'master'
...
USB Host Controller Driver
Closes IDF-2634
See merge request espressif/esp-idf!12034
2021-03-01 11:30:50 +00:00
KonstantinKondrashov
b31bf01484
rtc: Clean up for S2,S3,C3
2021-03-01 16:51:15 +08:00
Marius Vikhammer
6334b5e56f
docs: update api-reference chapters for C3
...
Checked and updated the following chapters:
* api-reference/network
* api-reference/protocols
* api-reference/provisioning
* api-reference/storage
* api-reference/peripherals/ds
* api-reference/peripherals/hmac
* api-reference/peripherals/secure_element
2021-03-01 14:58:08 +08:00
baohongde
2e7405e8aa
components/bt: Fix crash in Bluetooth when esp_restart
2021-03-01 14:39:35 +08:00
Renz Bagaporo
10c5226095
ldgen: use uppercase keywords for flags
2021-03-01 14:19:34 +08:00
Renz Bagaporo
dbdc17cced
ldgen: rename emit to surround
2021-03-01 14:19:34 +08:00
Renz Bagaporo
c6f0d47758
esp32: move bt linker script placements to ldgen
2021-03-01 14:19:34 +08:00
Renz Bagaporo
115b6ac0ac
esp32: transfer coredump linker script blocks to ldgen
2021-03-01 14:19:34 +08:00
Renz Bagaporo
633ead5dcb
esp32: move coredump sections and schemes to espcoredump
2021-03-01 14:19:34 +08:00
Renz Bagaporo
4bf07ae7d9
esp32: move wifi related sections and schemes to esp_wifi
2021-03-01 14:19:34 +08:00
Renz Bagaporo
03fe1d6af2
lwip: fix multiple section mapping
2021-03-01 14:19:34 +08:00
Renz Bagaporo
b99777066f
ldgen: implement flags support
...
Implement support for KEEP, ALIGN, emitting symbols and SORT.
Add appropriate tests
Defines default mapping in linker fragment file
2021-03-01 14:19:34 +08:00
Cao Sen Miao
6fbf61493c
ota: fix ota with flash encryption
2021-03-01 14:11:55 +08:00
fuzhibo
cfe59031a5
fix: clear interrupt in touch sensor initialization
2021-03-01 03:57:01 +00:00
Darian Leung
424e1e1886
Add USB HCD
...
This commit adds the USB HCD (Host Controller Driver) and accompanying unit tests.
2021-02-26 23:13:42 +08:00
Jiang Jiang Jian
bf0c05064c
Merge branch 'bugfix/add_encrypt_option_for_esptouch_v1' into 'master'
...
esp_wifi: Add encrypt option for ESPTouch v1
Closes WIFI-3235 and WIFI-3408
See merge request espressif/esp-idf!12533
2021-02-26 13:33:42 +00:00
gengyuchao
0d1eb8a331
Fix IRAM_ATTR missing
2021-02-26 20:31:47 +08:00
Jiang Jiang Jian
41ffe31cbd
Merge branch 'bugfix/btdm_fix_spp_acceptor_cancle_pair_crash' into 'master'
...
BT: fix crash caused by spp pairing cancel
Closes IDFGH-4685
See merge request espressif/esp-idf!12410
2021-02-26 12:17:55 +00:00
zhangyanjiao
c803b37315
esp_wifi:
...
1. Added encrypt option for ESPTouch v1
2. Fixed issue of reason code change from 15 to 200 when provide wrong password
2021-02-26 20:17:43 +08:00
Renz Bagaporo
d920aa52be
xtensa: simplify build script
2021-02-26 19:45:48 +08:00
Renz Bagaporo
1efdcd69d9
xtensa: move out trax
2021-02-26 19:45:48 +08:00
Renz Bagaporo
b1027005df
arch: move stdatomic
2021-02-26 18:40:00 +08:00
Jiang Jiang Jian
53cd589bcc
Merge branch 'bugfix/wifi_phy_register_backup' into 'master'
...
esp_wifi: store PHY digital registers before disabling PHY and load them after enabling PHY
See merge request espressif/esp-idf!12059
2021-02-26 10:01:52 +00:00
Angus Gratton
56048b8428
Merge branch 'bugfix/ds_invalidate_assert' into 'master'
...
esp32s2 ds: Fix invalidating Digital Signature key from HMAC peripheral if assertions are disabled
See merge request espressif/esp-idf!12459
2021-02-26 08:16:49 +00:00
Michael (XIAO Xufeng)
60dfb09122
Merge branch 'bugfix/freemodbus_fix_zero_based_reg_address_in_iterator' into 'master'
...
freemodbus: fix mb zero based reg address
See merge request espressif/esp-idf!12422
2021-02-26 08:13:59 +00:00
Renz Bagaporo
0f03f450ff
esp_hw_support: create esp_cpu
...
Create a esp_cpu header that contains CPU-related functions and
utilities.
2021-02-26 13:34:29 +08:00
Renz Bagaporo
7e0e91bf76
arch: move debug helpers
2021-02-26 13:34:29 +08:00
Renz Bagaporo
6f7072fc03
arch: move esp_attr.h to esp_common
2021-02-26 13:34:29 +08:00
Renz Bagaporo
91a5770fd2
arch: move shared stack implementation to esp_system
2021-02-26 13:34:29 +08:00
Cao Sen Miao
a8343bc470
esp_system: support gpio wakeup from deep sleep on esp32c3
2021-02-26 12:26:49 +08:00
Xia Xiaotian
ce8b996ca0
esp_wifi: synchronize Wi-Fi adapter between different chips
...
Support preferring to allocate Wi-Fi memory from PSRAM on ESP32-S3
Support Wi-Fi TX cache buffer on ESP32-S3
2021-02-26 11:29:50 +08:00
Xia Xiaotian
f53c0c5b87
esp_wifi: store PHY digital registers before disabling PHY and load
...
them after enabling PHY
2021-02-26 11:29:50 +08:00
Jiang Jiang Jian
e417960838
Merge branch 'feature/support_disable_11b_rate' into 'master'
...
esp_wifi: optimize wifi rate.
See merge request espressif/esp-idf!11782
2021-02-26 03:21:48 +00:00
Angus Gratton
15f48d8a2c
Merge branch 'bugfix/esp_efuse_rtc_calib_inc_fix' into 'master'
...
temp_sensor: fix broken include path
See merge request espressif/esp-idf!12521
2021-02-26 03:13:38 +00:00
Anton Maklakov
3a629afb06
Merge branch 'feature/type_checking_python' into 'master'
...
CI:Type checking of Python scripts
Closes IDF-2413
See merge request espressif/esp-idf!12287
2021-02-26 03:06:37 +00:00
Wang Fang
776684fa84
docs: provide the link to pcb layout for ethernet board v1.2 and fix a typo in freetos/task
2021-02-26 10:35:21 +08:00
Marius Vikhammer
06abe3413f
temp_sensor: fix broken include path
2021-02-26 10:25:05 +08:00
Angus Gratton
b4612a2f14
Merge branch 'feature/coredump_refactor_riscv_support' into 'master'
...
espcoredump: code refactoring and add support for RISC-V implementation
Closes ESP-1758
See merge request espressif/esp-idf!11850
2021-02-25 22:41:27 +00:00
Angus Gratton
ecf2134bc4
Merge branch 'feature/libsodium_ut_enable' into 'master'
...
libsodium: Enables UTs for ESP32-S2 & C3
Closes IDF-1423
See merge request espressif/esp-idf!12497
2021-02-25 22:40:19 +00:00
Angus Gratton
cbc58b85e2
Merge branch 'feature/adds_check_in_app_that_flash_enc_is_on' into 'master'
...
bootloader: Adds a check that app is run under FE
Closes IDF-640
See merge request espressif/esp-idf!12368
2021-02-25 22:39:13 +00:00
Angus Gratton
501af6dfa2
Merge branch 'feature/secure_boot_revoke_check' into 'master'
...
secure_boot: Checks secure boot efuses
Closes IDF-2609
See merge request espressif/esp-idf!12148
2021-02-25 22:38:42 +00:00
aleks
0d3f19beea
freemodbus: fix mb zero based reg address in the iterator
...
Fixes https://github.com/espressif/esp-idf/issues/6571
2021-02-25 15:17:45 +01:00
Michael (XIAO Xufeng)
eb29d8dbda
Merge branch 'feature/support_invert_rmt_signal_in_gpio_matrix' into 'master'
...
rmt: support inverting signal in gpio matrix
Closes IDF-2762
See merge request espressif/esp-idf!12420
2021-02-25 11:14:19 +00:00
KonstantinKondrashov
e29b99f1a5
libsodium: Enables UTs for ESP32-S2 & C3
2021-02-25 10:41:59 +00:00
ChenJianxing
0a8ba88145
esp_wifi: optimization wifi rate
...
1.support disable 11b rate
2.support config espnow rate
3.fix sta negotiate phymode issue
4.update ftm rate
2021-02-25 10:21:46 +00:00
Jiang Jiang Jian
e290d1ff41
Merge branch 'bugfix/fix_eb_lldesc_size_issue_for_esp32c3' into 'master'
...
bugfix/fix_eb_lldesc_size_issue_for_esp32c3
See merge request espressif/esp-idf!12489
2021-02-25 09:33:57 +00:00
Michael (XIAO Xufeng)
268289eade
Merge branch 'docs/spi_flash_auto_suspend' into 'master'
...
spi_flash: update docs after adding CONFIG_SPI_FLASH_AUTO_SUSPEND
See merge request espressif/esp-idf!12290
2021-02-25 09:16:10 +00:00
Tomas Sebestik
a22597a2d6
Add mypy check to pre-commit-config
2021-02-25 07:05:43 +00:00
Omar Chebib
78a94dbb6c
freertos: Fix delay between interrupt request and trigger on RISC-V
...
NOP instructions have been added in order to prevent the code
from executing code it shouldn't execute. This is due to a delay
between the moment an interrupt is requested and the moment it
is fired. It only happens on RISC-V SoC.
2021-02-25 06:57:59 +00:00
morris
efa92cb204
rmt: support invert RMT signal by GPIO matrix
2021-02-25 12:42:23 +08:00
morris
7b37158ede
rmt: distinguish group and channel in HAL layer
2021-02-25 12:42:23 +08:00
Aditya Patwardhan
bf513b6f31
Fix esp_tls: Prevent freeing of global ca store after each connection
...
when dynamic ssl buffers are enabled
2021-02-25 00:26:13 +00:00
Angus Gratton
a0eb455ec3
Merge branch 'refactor/misc_move_from_esp_common' into 'master'
...
Movements from esp_common
Closes IDF-1947
See merge request espressif/esp-idf!9692
2021-02-24 23:16:52 +00:00
David Čermák
a91e2744d5
Merge branch 'feature/support_dynamic_payload_len_for_ws_server' into 'master'
...
esp_http_server: support dynamic payload len for ws server
Closes IDFGH-4619
See merge request espressif/esp-idf!12235
2021-02-24 15:41:42 +00:00
Michael (XIAO Xufeng)
2f78b2e46f
Merge branch 'bugfix/fix_spi_slv_hd_dma_reset_issue' into 'master'
...
spi_slave_hd: fix dma reset issue
See merge request espressif/esp-idf!12275
2021-02-24 12:41:33 +00:00
Michael (XIAO Xufeng)
476fdcba68
spi_flash: update docs after adding CONFIG_SPI_FLASH_AUTO_SUSPEND
2021-02-24 20:20:18 +08:00
yuanjm
cd521d4ae3
esp_http_server: support dynamic payload len for ws server
...
Closes https://github.com/espressif/esp-idf/issues/6433
2021-02-24 11:40:34 +00:00
Mahavir Jain
56ca89f0f5
Merge branch 'bugfix/esp_wifi_deinit' into 'master'
...
esp_wifi_deinit: Return ESP_ERR_WIFI_NOT_STOPPED if wifi is not stopped
See merge request espressif/esp-idf!12292
2021-02-24 11:40:14 +00:00
David Čermák
5f0aa46cbf
Merge branch 'feature/seperate_ipv6_function_from_ipv4' into 'master'
...
Add LWIP_IPV6 macro to strip IPv6 function
See merge request espressif/esp-idf!11977
2021-02-24 11:20:53 +00:00
Angus Gratton
a38b2c2773
Merge branch 'bugfix/ci_ut_esp_timer_isr_dispath_method_is_not_blocked' into 'master'
...
esp_timer: Fix Test ESP_TIMER_ISR dispatch method is not blocked
Closes IDFCI-470
See merge request espressif/esp-idf!12484
2021-02-24 10:07:47 +00:00
dongyou
059ffa6daf
change rom function for esp32c3 to fix eb lldesc size issue
2021-02-24 17:45:07 +08:00
Michael (XIAO Xufeng)
7ef60b8bde
Merge branch 'bugfix/gdma_pair_uninstall_concurrency_issue' into 'master'
...
gdma: fix wrong level of {group,pair} reference count
See merge request espressif/esp-idf!12269
2021-02-24 09:33:33 +00:00
KonstantinKondrashov
7bbf4a3422
esp_timer: Fix Test ESP_TIMER_ISR dispatch method is not blocked
2021-02-24 16:08:17 +08:00
Angus Gratton
f72c296827
Merge branch 'bugfix/deepsleep_disable_brownout_s2' into 'master'
...
deep_sleep: on S2 disable the brown out detector before deep sleeping
Closes IDF-2716 and IDFGH-4341
See merge request espressif/esp-idf!12348
2021-02-24 05:48:19 +00:00
Shubham Kulkarni
cbe281130d
esp_wifi_deinit: Return ESP_ERR_WIFI_NOT_STOPPED if wifi is not stopped
...
Add test case to test this workflow
2021-02-24 10:52:57 +05:30
Angus Gratton
d3bd190528
Merge branch 'feature/riscv_get_tickrate' into 'master'
...
freertos: add API for getting tick rate on C3
Closes IDF-2849
See merge request espressif/esp-idf!12469
2021-02-24 04:37:23 +00:00
Renz Bagaporo
43f6c7a533
esp_common: simplify component build script
2021-02-24 12:16:37 +08:00
Renz Bagaporo
349f0cad3e
esp_common: other movements
2021-02-24 12:16:37 +08:00
Renz Bagaporo
51e66d0f82
esp_common: move configs
2021-02-24 12:16:37 +08:00
Renz Bagaporo
03dce3668c
esp_common: move tests
2021-02-24 12:16:37 +08:00
Renz Bagaporo
5e8799bbfe
esp_common: move some headers
2021-02-24 12:16:37 +08:00
Renz Bagaporo
c16ceafa5c
esp_common: move esp_err
2021-02-24 12:16:37 +08:00
Renz Bagaporo
91287f424b
esp_common: move shared stack
2021-02-24 12:16:37 +08:00
Renz Bagaporo
0e0914476c
esp_common: move freertos hooks
2021-02-24 12:16:37 +08:00
Renz Bagaporo
840e2c0e50
esp_common: move stack check
2021-02-24 12:16:37 +08:00
Renz Bagaporo
883aba20be
esp_common: move stack check
2021-02-24 12:16:37 +08:00
Renz Bagaporo
5a56f794ec
esp_common: move dbg stubs
2021-02-24 12:16:37 +08:00
Renz Bagaporo
1d55e6d6b8
esp_common: move brownout init
2021-02-24 12:16:37 +08:00
Renz Bagaporo
deaad431f4
esp_common: move task, int wdt
2021-02-24 12:16:37 +08:00
Renz Bagaporo
5fce7f4a41
esp_common: move dbg_stubs
2021-02-24 12:16:37 +08:00
Renz Bagaporo
ae15c81dbe
esp_common: move to esp_hw_support
2021-02-24 12:16:37 +08:00
Armando
346dea206e
spi_slv_hd: add hal_trans_finish comments for clarifying risk
2021-02-24 12:01:31 +08:00
Armando
8d90d3072c
spi_slave_hd: refactor the hal append api to remove the spinlock
2021-02-24 12:01:31 +08:00
Michael (XIAO Xufeng)
34b4c88405
Merge branch 'refactor/mcpwm_cleanup_meta_info' into 'master'
...
mcpwm: fix wrong soc information
See merge request espressif/esp-idf!12429
2021-02-24 03:59:23 +00:00
morris
9f1c82d547
gdma: fix wrong level of {group,pair} ref count
2021-02-24 11:38:57 +08:00
morris
e926298160
async_mcp: clean eof flag when prepare rx descriptors
2021-02-24 11:38:57 +08:00
Michael (XIAO Xufeng)
db1c635db4
Merge branch 'feature/esp32c3_rtc_temp_calibration' into 'master'
...
temperature_sensor: calibration for esp32c3
Closes IDF-2502
See merge request espressif/esp-idf!12158
2021-02-24 03:27:49 +00:00
Angus Gratton
c179ece204
Merge branch 'bugfix/c++_usage_esp_core_dump_h' into 'master'
...
Fixed c++ include usage for esp_core_dump.h
Closes IDFGH-4782
See merge request espressif/esp-idf!12432
2021-02-24 03:18:25 +00:00
Mahavir Jain
96b6e37346
Merge branch 'feature/add_provisioning_rest_api' into 'master'
...
wifi_provisioning: add provisioning reset API
Closes IDF-1742
See merge request espressif/esp-idf!12405
2021-02-23 13:26:31 +00:00
Angus Gratton
608f9471cb
Merge branch 'bugfix/test_nvs_host_cleanup' into 'master'
...
nvs_flash: Fix the random data test cleanup stage
Closes IDFCI-241
See merge request espressif/esp-idf!11659
2021-02-23 10:40:17 +00:00
yuanjm
31a20088af
lwip: Fix spelling issues in lwip_debug.c
2021-02-23 18:26:03 +08:00
yuanjm
da58235a0e
components: Use CONFIG_LWIP_IPV6 to strip IPv6 function in components
2021-02-23 18:26:03 +08:00
yuanjm
d80db218da
lwip: Add LWIP_IPV6 macro to strip IPv6 function in LWIP component
2021-02-23 18:26:03 +08:00
Mahavir Jain
d8f2a57154
Merge branch 'bugfix/fix_truncated_headers_for_esp_http_client' into 'master'
...
esp_http_client: Fix header truncated when responded header length over buffer_size
Closes IDFGH-4315
See merge request espressif/esp-idf!12327
2021-02-23 10:24:18 +00:00
Angus Gratton
47de421a0a
esp32s2 ds: Fix invalidating Digital Signature key from HMAC peripheral if assertions are disabled
2021-02-23 18:18:40 +11:00
xiehang
7cca13640e
esp_wifi: some small fixes for ftm
2021-02-23 06:36:02 +00:00
Angus Gratton
fb1488abba
Merge branch 'feature/esp_timer_isr_dispatch_method_restore' into 'master'
...
esp timer: Add ISR dispatch method
Closes IDF-1172 and IDF-1173
See merge request espressif/esp-idf!11572
2021-02-23 06:21:14 +00:00
yuanjm
49f3fba14d
wifi_provisioning: Add an API for resetting provisioning config
2021-02-23 14:21:06 +08:00
yuanjm
e309a0ea6f
esp_http_client: Optimize code structure
2021-02-23 14:09:40 +08:00
Marius Vikhammer
311a0fa5e8
freertos: add API for getting tick rate on C3
2021-02-23 12:05:52 +08:00
Cao Sen Miao
85855ad8a6
temp_sensor: add calibration for esp32c3
2021-02-23 10:48:17 +08:00
Clickau
308c31e2f1
esp_http_client: fix truncated headers
...
Signed-off-by: yuanjm <yuanjianmin@espressif.com>
Merges https://github.com/espressif/esp-idf/pull/6370
2021-02-23 09:59:23 +08:00
Angus Gratton
c553430b0c
nvs_flash: Fix host test regressions
...
Regression in 09d2c5daa6
- in some
cases the test fixture was out of scope by the time
nvs_flash_deinit_partition() was called in this test.
2021-02-23 10:30:24 +11:00
KonstantinKondrashov
90f2d3199a
secure_boot: Checks secure boot efuses
...
ESP32 V1 and V2 - protection bits.
ESP32xx V2: revoke bits, protection bits
- refactor efuse component
- adds some APIs for esp32 chips as well as for esp32xx chips
2021-02-23 03:56:21 +08:00
morris
bf2480f62d
efuse: can disable boot ROM log from Kconfig
2021-02-22 20:56:43 +08:00
morris
0f5d1c1c46
rtc: supported disable rom log temporarily
2021-02-22 20:56:43 +08:00
morris
6dc7f95342
mcpwm: fix wrong meta information
2021-02-22 20:23:35 +08:00
Omar Chebib
727481d71c
gpio: enable GPIO19 on ESP32C3 boards
2021-02-22 08:44:55 +00:00
Armando
889de9ebd9
spi: add enum for spi dma channels
2021-02-22 07:06:05 +00:00
Armando
d0415bd8f6
spi: remove hard-coded DMA chan in soc_caps.h
2021-02-22 07:06:05 +00:00
Armando
db3bf8b544
spi: refactor spi_common dma allocator
2021-02-22 07:06:05 +00:00
Armando
c8d9ed1f3d
spi: update unit tests to spi gdma allocator
2021-02-22 07:06:05 +00:00
Armando
c438ad5d72
spi: apply gdma allocator to SPI
2021-02-22 07:06:05 +00:00
Armando
2e670bf6af
spi: add dma channel auto-alloc feature on esp32
2021-02-22 07:06:05 +00:00
0xFEEDC0DE64
5a956f8b5e
Fixed c++ include usage for esp_core_dump.h
2021-02-20 22:27:45 +01:00
Ivan Grokhotkov
a57d5813bf
Merge branch 'bugfix/esp32_rtc_mem_registers_llvm_assembler' into 'master'
...
soc esp32: Removes parentheses from RTC_MEM_xyz macros that expand directly to single numbers
See merge request espressif/esp-idf!12331
2021-02-19 15:58:36 +00:00
Michael (XIAO Xufeng)
f5f6c59e63
Merge branch 'feature/apply_gdma_new_channel_api_to_adc' into 'master'
...
adc: apply gdma new channel api to adc
Closes IDF-2500
See merge request espressif/esp-idf!12008
2021-02-19 13:07:32 +00:00
Angus Gratton
bd0e915c46
Merge branch 'bugfix/esp32s2_disable_bss_extram' into 'master'
...
esp32s2: disable bss extram option, clean up spiram init code a bit
See merge request espressif/esp-idf!11886
2021-02-19 07:01:17 +00:00
Angus Gratton
084c38a011
Merge branch 'bugfix/riscv_stack_alignment' into 'master'
...
core: fix cases where riscv SP were not 16 byte aligned
Closes IDF-2745
See merge request espressif/esp-idf!12413
2021-02-19 05:59:39 +00:00
Marius Vikhammer
c36dd7834f
core: fix cases where riscv SP were not 16 byte aligned
...
RISC-V stack pointer should always be 16 byte aligned, but for some cases where
we were doing manual SP manipulation this was not always the case.
2021-02-19 11:26:21 +08:00
Angus Gratton
8c799e6469
Merge branch 'bugfix/newlib_header_additional_defines' into 'master'
...
newlib: fix possible redefinition of likely/unlikely macros
Closes IDFGH-4631
See merge request espressif/esp-idf!12370
2021-02-19 02:35:28 +00:00
Angus Gratton
9830fcaff9
Merge branch 'bugfix/c3_unit_test_cleanup' into 'master'
...
System: C3 shared stack watchpoint & unit test cleanups
Closes IDF-2458, IDF-2719, and IDF-1422
See merge request espressif/esp-idf!12183
2021-02-18 23:15:53 +00:00
Angus Gratton
c7c43df0da
esp_common: Correctly disable ".bss segment placed in external memory" for ESP32-S2 & ESP32-S3
...
Support for this feature is still pending.
As reported by https://github.com/espressif/esp-idf/issues/6162
2021-02-19 09:13:38 +11:00
zwj
f344a65af5
fix crash caused by spp pairing cancel
2021-02-18 21:10:25 +08:00
Marius Vikhammer
0a4e5c99f9
deep_sleep: on S2 disable the brown out detector before deep sleeping
...
On S2 the brown out detector would occasionally trigger erroneously during deep sleep.
Disable it before sleeping to circumvent this issue.
Closes https://github.com/espressif/esp-idf/issues/6179
2021-02-18 18:39:06 +08:00
Krzysztof Budzynski
9274abf5c9
Merge branch 'doc/nvs_get_used_entry_count__clarify' into 'master'
...
[doc]: NVS documentation updates
Closes IDF-1563, DOC-165, and IDF-859
See merge request espressif/esp-idf!12056
2021-02-18 10:36:16 +00:00
Marius Vikhammer
eec2419390
system: enable shared stack watchpoint
...
Enable shared stack watchpoint for overflow detection
Enable unit tests:
* "test printf using shared buffer stack" for C3
* "Test vTaskDelayUntil" for S2
* "UART can do poll()" for C3
2021-02-18 15:38:30 +08:00
Marius Vikhammer
e52e75f2de
spi_flash: disable mmap into instr space unit test for C3
...
On C3 the cache is programmatically split between Icache and dcache and with the default setup we dont leave a lot pages
available for additional mmaps into instruction space. Disabling this test for now since any hypothetical use case for this
is no longer supported "out of the box"
2021-02-18 15:38:30 +08:00
Angus Gratton
ecdc214466
esp32s2: Simplify the code for adding spiram to heap
2021-02-18 16:27:43 +11:00
Angus Gratton
f5685e6a64
esp32s2: Remove unused option CONFIG_SPIRAM_USE_AHB_DBUS3
2021-02-18 16:27:43 +11:00
Marius Vikhammer
451465ff8c
esp_timer: fix "esp_timer orders timers correctly" headerline handling
...
Discard header lines from esp_timer_dump that comes before the actual timer
info. "esp_timer orders timers correctly" would crash when reading the header lines.
2021-02-18 11:59:42 +08:00
Ivan Grokhotkov
674cfe4fd2
Merge branch 'bugfix/nvs_encryption_keys' into 'master'
...
NVS: fix nvs_flash_generate_keys to generate random keys (Github PR)
See merge request espressif/esp-idf!12205
2021-02-17 09:44:19 +00:00
David Čermák
e615d10b4f
Merge branch 'feature/transport_tcp_connection_errors' into 'master'
...
tcp_transport/esp_tls: Use common TCP transport to reduce code duplication
Closes IDFGH-4405
See merge request espressif/esp-idf!12136
2021-02-16 13:32:47 +00:00
yuanjm
cd01a0ca81
websocket: Add websocket unit tests
2021-02-16 08:29:28 +00:00
David Cermak
1921ae8973
tcp_transport: Reduce lwip dependecy for tcp_transport/http_client
2021-02-16 09:01:35 +01:00
David Cermak
eb772e152c
esp_tls: Fix unresolved lwip symbol when complex dependency tree
2021-02-16 09:01:35 +01:00
David Cermak
5cfa545d08
esp-tls: Added _esp_tls_net_init to init fd for both mbedtls/wolfssl
2021-02-16 09:01:35 +01:00
David Cermak
4375f888fa
esp-tls: Fix wolfssl error codes for WANT_READ/WANT_WRITE
...
wolfSSL error codes are mostly positive numbers, but esp-tls potentially
non-block API (read/write) returns ssize_t, i.e. bytes read/written if
>0, errorcode otherwise. To comply with this API we have to conditionate
the wolfssl return codes to negative numbers, preferably the same codes
as mbedTLS codes.
2021-02-16 09:01:35 +01:00
David Cermak
2d25252746
esp-tls: Rework tcp_connect() to use more subroutines
...
Refactored the esp_tcp_connect() functionality to break it down to
* dns-resolution + socket creation
* set configured socket options
* set/reset non-block mode
* the actual connection in non-blocking mode
2021-02-16 09:01:35 +01:00
David Cermak
1fa0db8d44
tcp_transport: Allow for using transport independently from list
...
For compatibility reasons, support also transports separately if the transport is used
before attaching to parent list. In this case we create an internal context which is
independent on the foundation transport and used preferably
2021-02-16 09:01:35 +01:00
David Cermak
99805d880f
websockets: Set keepalive options after adding transport to the list
...
To be in line with other code and mainly to support base/foundation transport used by both tcp and ssl transport layers
2021-02-16 09:00:43 +01:00
David Cermak
0e97517a1c
tcp_transport: Add unit test to exercise tcp/ssl transport init
2021-02-16 09:00:43 +01:00
David Cermak
4e394bcbce
esp-tls: Extend error types with TCP clean close error
2021-02-16 09:00:43 +01:00
David Cermak
6b318fe583
esp_tls: Updated connection method to use non-blocking connect
...
For better control over connection timeouts
To be in line with former tcp_transport, as esp-tls is not used for
plain tcp transports
2021-02-16 09:00:43 +01:00
David Cermak
2c28ffffee
tcp_transport/esp_tls: Use common TCP transport to reduce code duplication
...
For high level review of the changes.
2021-02-16 09:00:43 +01:00
David Cermak
391d7bf271
tcp_transport: Add TCP transport connection errors
...
Transport's error_handle is used to capture different types of errors
including esp_err_t from esp-tls and socket/system errors.
This change adds the following error codes for TCP transport:
* connection closed by a FIN flag (clean closure from server)
* DNS resolution problem
* connection timeout
These errors are already defined in esp-tls component and since this
component will be used in the future for both TCP and SSL transport, we
currently report these issues in transport::error_handle::esp_tls_last_error
of standard esp error type (esp_err_t)
Closes https://github.com/espressif/esp-mqtt/issues/182
2021-02-16 09:00:43 +01:00
Angus Gratton
fc945be7f8
Merge branch 'bugfix/freemodbus_fix_parity_propagation_issue' into 'master'
...
freemodbus: fix mb controller parity propagation issues
Closes IDFGH-4560
See merge request espressif/esp-idf!11951
2021-02-15 22:55:38 +00:00
KonstantinKondrashov
11a2f2acd3
bootloader: Adds a check that app is run under FE
2021-02-15 20:33:50 +08:00
Angus Gratton
7d27ddc502
Merge branch 'bugfix/aes_dma_completion' into 'master'
...
mbedtls: Fix AES dma completion race condition
See merge request espressif/esp-idf!12257
2021-02-15 08:23:07 +00:00
aleks
b554d4d34d
freemodbus: fix mb controller parity propagation issues
...
Closes https://github.com/espressif/esp-idf/issues/6377
2021-02-15 08:39:18 +01:00
suren.gabrielyan
2b9d2c06f5
mdns: add bound check when setting interface as duplicate
...
Closes IDF-2787
Partially addresses https://github.com/espressif/esp-idf/issues/6440
2021-02-15 06:43:51 +00:00
Angus Gratton
e3b7337f03
esp_common: Don't redefine likely/unlikely if already defined
...
As these macros aren't namespaced, they may have been defined by another header.
Also reported in https://github.com/espressif/esp-idf/issues/6445
2021-02-12 15:30:24 +11:00
Angus Gratton
7778779489
newlib: Avoid introducing ESP-IDF macros from newlib platform headers
...
Also, rewrite the assert.h header to be clearer
Closes https://github.com/espressif/esp-idf/issues/6445
2021-02-12 15:18:05 +11:00
Angus Gratton
89b6baf2b8
mbedtls tests: Add optional debug log output to AES stream tests
2021-02-12 04:08:12 +00:00
Angus Gratton
e7563fe704
mbedtls aes dma: Fix bug where DMA would complete when the first output descriptor was done, not the last
2021-02-12 04:08:12 +00:00
Sachin Parekh
e6ccb812b2
esp_pm: Label each column of lock dump
2021-02-11 18:44:51 +05:30
Sachin Parekh
296d10e675
esp_timer: Label each column of timer dump
2021-02-11 18:40:51 +05:30
Angus Gratton
1544f64166
Merge branch 'bugfix/pvs_studio_freertos' into 'master'
...
freertos: fix errors reported by PVS-Studio
Closes IDF-2784
See merge request espressif/esp-idf!12337
2021-02-11 15:32:18 +08:00
David Čermák
c665bcf733
Merge branch 'bugfix/doc_wifi_default_init' into 'master'
...
esp_netif: Update documentation on deinitialization of wifi default netif
Closes IDFGH-4692
See merge request espressif/esp-idf!12300
2021-02-11 14:15:51 +08:00
David Čermák
61f3af0ae7
Merge branch 'test/modbus_lwip_issue' into 'master'
...
modbus: Exit server task gracefully to correctly cleanup lwip internals
Closes IDFGH-4432
See merge request espressif/esp-idf!12075
2021-02-11 14:15:10 +08:00
Angus Gratton
4eb9cc68a6
esp_event test: Disable linker relaxations in this component, to temporarily workaround a linker bug
2021-02-11 17:00:55 +11:00
Marius Vikhammer
d294ac381f
freertos: fix errors reported by PVS-Studio
...
Removed leftover code-paths that were never taken. Upstream freertos uses
vTaskSuspendAll() and xTaskResumeAll(), and therefor check if the task already
yielded.
In the IDF port of freertos we use critcal sections instead, so xAlreadyYielded
will never be set.
Partially addresses https://github.com/espressif/esp-idf/issues/6440
2021-02-11 03:15:04 +00:00
Renz Bagaporo
2eb563406f
esp_hw_support: fix esp_restart crash
...
Closes https://github.com/espressif/esp-idf/issues/6297
2021-02-10 23:38:17 +00:00
Angus Gratton
807c8549e1
Merge branch 'bugfix/esp32s2_wakeup_from_light_sleep_fix' into 'master'
...
esp32s2 light sleep fix
Closes IDFCI-122
See merge request espressif/esp-idf!10269
2021-02-11 07:34:57 +08:00
David Cermak
cab1b3507a
esp_netif: Add unit test to exercise default wifi setup/teardown cycle
2021-02-10 13:28:36 +00:00
David Cermak
898cac0061
modbus: Exit server task gracefully to correctly cleanup lwip internals
...
Current lwip implementation does not support deleting a task which is
actively waiting on `select()` or `poll()` API.
Therefore we have to make sure that `select()` exits to deallocate its internal
callback before deleting the task. This is achieved by a shutdown
semaphore which informs the client once the `select()` exitted.
fix slave
2021-02-10 13:12:54 +00:00
Angus Gratton
73db142403
Merge branch 'update/v4.4-dev' into 'master'
...
version: Update to v4.4-dev
See merge request espressif/esp-idf!12339
2021-02-10 14:44:57 +08:00
Mahavir Jain
e3d50e009a
Merge branch 'fix/esp_tls_typo' into 'master'
...
Fix/esp_tls_mispaced_paranthesis
Closes IDF-2750 and IDF-2751
See merge request espressif/esp-idf!12295
2021-02-10 13:57:13 +08:00
Angus Gratton
c8315e0110
version: Update to v4.4-dev
2021-02-10 16:07:24 +11:00
Angus Gratton
4ce47b0394
Merge branch 'feature/master_build_c3_example' into 'master'
...
CI: enable example builds for C3
Closes IDF-2364
See merge request espressif/esp-idf!11968
2021-02-10 11:54:26 +08:00
Aditya Patwardhan
d36479728c
protocomm: Fixed NULL check of allocated memory
...
Fixes one part of - https://github.com/espressif/esp-idf/issues/6440
2021-02-10 02:07:58 +00:00
Aditya Patwardhan
0175c68400
esp_tls: Fix misplaced paranthesis in esp_tls_mbedtls.c
...
Fixes one part of - https://github.com/espressif/esp-idf/issues/6440
2021-02-10 02:07:58 +00:00
Michael (XIAO Xufeng)
2c0962f727
Merge branch 'feature/spi_flash_auto_suspend_default_on_c3' into 'master'
...
spi_flash: make the auto_suspend default y on C3
See merge request espressif/esp-idf!12233
2021-02-09 19:50:48 +08:00
Island
b88ec36635
Merge branch 'bugfix/ignore_null_valued_comb_key' into 'master'
...
component/bt: Added check for NULL valued combination key.
See merge request espressif/esp-idf!12239
2021-02-09 19:49:25 +08:00
Island
3f821b1d65
Merge branch 'bugfix/ble_mesh_server_model_deinit' into 'master'
...
ble_mesh: stack: Fix deinit server models with no matching id
See merge request espressif/esp-idf!12312
2021-02-09 16:26:38 +08:00
Chinmay Chhajed
368ba6b077
component/bt: Added check for NULL valued combination key.
2021-02-09 12:09:32 +05:30
Chinmay Chhajed
fb3a382fe4
Bluedroid: Do not initiate/accept connection with device having same BDADDR.
...
Added BD_ADDR comparison in l2cu_lcp_allocate and removed check from
security connection request handler as it's handled in l2cu_lcp_allocate
for both connection request and create connection.
2021-02-09 12:09:15 +05:30
Chinmay Chhajed
5596f37af1
bt: removed esp_bt_get_mac()
...
There was no need for this function as there is already a way present to
fetch own mac address. Own mac addr can be fetched by calling
controller_get_interface().
2021-02-09 12:09:15 +05:30
Angus Gratton
2c39010b3b
Merge branch 'bugfix/anti_rollback_without_test_app' into 'master'
...
bootloader: Anti-rollback mode doesn't run test_app
See merge request espressif/esp-idf!12225
2021-02-09 14:16:51 +08:00
Marius Vikhammer
04df1f3a42
CI: enable example builds for C3
...
Enables building C3 examples in CI.
Fixes related warnings/errors and disables examples that cannot run.
2021-02-09 12:04:02 +08:00
Angus Gratton
1de3f00012
Merge branch 'bugfix/SECURE_DISABLE_ROM_DL_MODE_does_not_work' into 'master'
...
bootloader: SECURE_ENABLE_SECURE_ROM_DL_MODE cannot be y when SECURE_DISABLE_ROM_DL_MODE=y
See merge request espressif/esp-idf!12288
2021-02-09 11:09:09 +08:00
Angus Gratton
49c442b12f
Merge branch 'feature/efuse_update_description' into 'master'
...
efuse: Updates description of uart_print_control efuse
Closes IDF-2705
See merge request espressif/esp-idf!12236
2021-02-09 11:02:26 +08:00
Xia Xiaotian
b71481093a
esp_wifi: fix some Wi-Fi scan and coexist bugs
...
1. Fix the bug that Wi-Fi performance is impacted by BLE starting scan for a while in some scenarios on ESP32-C3.
2. Fix the bug that Wi-Fi performance is impacted when Bluetooth change state for a while in some scenarios on ESP32-C3.
3. Fix the bug that BLE performance is impacted by Wi-Fi scan on ESP32-C3.
4. Fix the bug that Wi-Fi scan fails when BLE is scanning on ESP32-C3.
5. Fix Wi-Fi ACK and CTS rate when low rate is disabled on ESP32-C3.
2021-02-08 21:20:09 +08:00
wangmengyang
44dd496bea
update esp32c3 btbb lib 21-02-08 and set coexist state when in scan(initiating) mode
2021-02-08 21:19:59 +08:00
KonstantinKondrashov
63d4911cdb
esp_timer: Add ESP_TIMER_ISR dispatch method
...
Using own spinlock for each list (TASK and ISR disp method)
Reduced the dependency of ISR on the TASK dispatch method
2021-02-08 19:10:11 +08:00
KonstantinKondrashov
bcbee89030
esp_timer: Add a Kconfig option to configure the interrupt level
2021-02-08 18:27:10 +08:00
KonstantinKondrashov
43ebb8ea61
efuse: Updates description of uart_print_control efuse
2021-02-08 18:02:55 +08:00
zwj
52909b69b7
fix esp32c3 can't enable adv flow control func
2021-02-08 16:33:20 +08:00
Armando
5427c18781
adc: apply gdma api to adc on esp32c3
2021-02-08 11:41:21 +08:00
Jakob Hasse
916f02164e
[doc]: NVS documentation updates
...
* Move nvs flash README to common doc directory
* correct markup of functions and types in text
from old README
* Better comment of nvs_get_used_entry_count()
* Mention C++ example in API reference
* Used target instead of hard code ESP32
* Note that strings can only span one page
* Reflect that item types have been moved
* Some clarification about nvs_commit()
* Improved reference to the ESP Partition API
* fixed little mistake in documenting-code.rst
* Change of nvs_open_from_part() to
nvs_open_from_partition() reflected in docs
* Corrected documentation of
NVSHandle::get_string(), NVSHandle::get_blob()
and NVSHandle::get_item_size().
* Closes DOC-165
* Closes IDF-1563
* Closes IDF-859
* Closes https://github.com/espressif/esp-idf/issues/6123
2021-02-08 09:31:23 +08:00
Angus Gratton
2ec04b57de
soc esp32: Removes parentheses from RTC_MEM_xyz macros that expand directly to single numbers
...
Not necessary in these cases, and prevents parens from expanding into the
assembly code such as added in 562ab01046
-
a pattern which is accepted by GCC assembler but illegal syntax for LLVM assembler.
As reported https://github.com/espressif/llvm-project/issues/35#issuecomment-726853574
2021-02-08 10:08:01 +11:00
Nachiket Kukade
f9ff3da5d4
wpa_supplicant: Fix error handling in DPP Action Rx
...
1. Fix error handling while receiving DPP Action frames
2. Update wifi lib to avoid forwarding Public action frames
with NULL bss
2021-02-07 23:23:34 +08:00
Omar Chebib
e9996ebd4b
espcoredump: code refactoring and add support for RISC-V implemetation
...
This commit includes the refactoring of the core dump feature. Thanks to
this refactoring, it is easier to integrate the support of RISC-V
architecture for this feature.
Fixes ESP-1758
2021-02-07 19:04:19 +08:00
lly
d3cc004803
ble_mesh: stack: Fix deinit server models with no matching id
2021-02-07 11:12:25 +08:00
Jiang Jiang Jian
d1cc9e98b7
Merge branch 'bugfix/fix_wifi_connect_fail' into 'master'
...
WiFi: fix the bug that wifi connect fail for ESP32C3
See merge request espressif/esp-idf!12308
2021-02-06 02:35:43 +08:00
Jack
2859c7ebd1
fix the bug that wifi connect fail
2021-02-06 00:12:37 +08:00
Michael (XIAO Xufeng)
747ac00f9b
Merge branch 'bugfix/flash_encyption_80Mflash_40Mram' into 'master'
...
flash_encryption/psram: fixed the issue that block when flash_encryption_write
See merge request espressif/esp-idf!12177
2021-02-05 22:00:26 +08:00
Cao Sen Miao
c1b41ece32
flash_encryption: Quick fixed the issue that block when flash_encryption_write, Related https://github.com/espressif/esp-idf/issues/6322 , Related https://github.com/espressif/esp-idf/issues/6254
2021-02-05 20:10:42 +08:00
Michael (XIAO Xufeng)
423a5458dc
Merge branch 'bugfix/support_new_BYflash_chip_boot' into 'master'
...
spi_flash: add external flash support on esp32c3
Closes IDF-2650, IDF-2651, and IDF-2399
See merge request espressif/esp-idf!12121
2021-02-05 20:03:24 +08:00
Jiang Jiang Jian
17257b63ed
Merge branch 'bugfix/modify_coexist_options' into 'master'
...
modify Bluetooth coexistence options on ESP32C3
See merge request espressif/esp-idf!12244
2021-02-05 19:45:40 +08:00
Yann Pomarède
ee400f8b68
bootloader: SECURE_ENABLE_SECURE_ROM_DL_MODE cannot be y when SECURE_DISABLE_ROM_DL_MODE=y
...
Closes: https://github.com/espressif/esp-idf/pull/6442
2021-02-05 18:38:17 +08:00
wangmengyang
2dd730d35c
component/bt: [esp32c3] modify Bluetooth coexistence options
2021-02-05 09:16:29 +00:00
Kapil Gupta
00b1738197
esp_wifi: Fixed crash issue in presence of WEP AP
2021-02-05 09:13:24 +00:00
Jiang Jiang Jian
919e674f6e
Merge branch 'bugfix/bcn_timeout_with_power_down' into 'master'
...
components/coex: Fix bcn timeout with MAC BB power down
See merge request espressif/esp-idf!12285
2021-02-05 17:10:26 +08:00
Michael (XIAO Xufeng)
822a40a6cf
Merge branch 'fix/adc_xpd_calibration' into 'master'
...
adc: fixed the issue that ADC power is left on after the calibration is done
See merge request espressif/esp-idf!12207
2021-02-05 16:28:53 +08:00
baohongde
f8d85768b0
components/coex: Fix bcn timeout with MAC BB power down
2021-02-05 14:30:04 +08:00
Michael (XIAO Xufeng)
351ba5ff9e
adc: fixed the issue that ADC power is left on after the calibration is done
...
Also refactor the locks in the adc_common.c file.
2021-02-05 14:17:52 +08:00
Angus Gratton
fe44643808
Merge branch 'bugfix/doc_freertos_smp_macros' into 'master'
...
docs: Update SMP descriptions for taskENTER_CRITICAL/taskEXIT_CRITICAL
Closes IDFGH-4428
See merge request espressif/esp-idf!12219
2021-02-05 08:14:50 +08:00
Angus Gratton
bc09dda0f4
docs: Update SMP descriptions for taskENTER_CRITICAL/taskEXIT_CRITICAL
...
Closes https://github.com/espressif/esp-idf/issues/6259
2021-02-05 10:18:23 +11:00
Michael (XIAO Xufeng)
09b827b2c8
Merge branch 'feature/spi_slave_double_board_test_for_slave_transaction' into 'master'
...
spi slave: add a double board test for esp32c3 relating to sending/receiving unaligned data
See merge request espressif/esp-idf!11153
2021-02-05 00:51:24 +08:00
Jiang Jiang Jian
3554981c8a
Merge branch 'bugfix/support_esp32c3_rom_eco3' into 'master'
...
esp_wifi: support esp32c3 rom eco3
See merge request espressif/esp-idf!12223
2021-02-04 23:43:04 +08:00
Michael (XIAO Xufeng)
67779e8e25
Merge branch 'docs/spi_mode' into 'master'
...
spi: add explaination to the modes
See merge request espressif/esp-idf!12251
2021-02-04 23:00:28 +08:00
David Čermák
6992084ca7
Merge branch 'feature/ws_client_ping_interval' into 'master'
...
websocket: Add configurable ping interval
Closes IDFGH-4582
See merge request espressif/esp-idf!12101
2021-02-04 21:07:41 +08:00
David Čermák
a2005adf32
Merge branch 'bugfix/disable_software_flow_control_with_small_buffers' into 'master'
...
esp_eth: added option to disable soft flow control when rx buffer is few
Closes WIFI-3362
See merge request espressif/esp-idf!12186
2021-02-04 20:36:04 +08:00
Jiang Jiang Jian
6a7781b92a
Merge branch 'bugfix/fix_a2dp_underun' into 'master'
...
bugfix/component_bt: Fix A2DP Underrun Issue
Closes AUD-2681
See merge request espressif/esp-idf!12093
2021-02-04 19:28:07 +08:00