Mahavir Jain
70936f4c92
mbedtls: remove wrap from component.mk as well
...
Note: This was not required in original MR, as master branch does
not support GNU Make.
2021-12-02 17:15:42 +05:30
Aditya Patwardhan
9fb61791fe
secure_boot: Fix warning when UART ROM DL mode is disabled
...
*Additionally use updated calls to enable rom secure download mode
2021-12-02 15:17:56 +05:30
Mahavir Jain
7a8c8f8576
esp_bignum: move check for supported MPI bits at start of API
...
This can allow hardware MPI API to return as soon as it identifies
that it can handle require bitlength operation.
2021-12-02 15:08:42 +05:30
Mahavir Jain
1cae1fc18e
mbedtls: update mbedtls submodule pointer for MPI API change
2021-12-02 15:08:41 +05:30
Mahavir Jain
0befb28237
mbedtls: fix hardware MPI (bignum) related regression
...
In commit de22f3a4e5cdb9d7d40c74a191f5f0061a7d7d94, combination of
hardware and software MPI (bignum) related approach was used to
work around chip (e.g. ESP32-C3) limitation of max 3072 bits support.
This was done using linker "--wrap" flag but since the relevant API is
being used in same translation (compilation unit), hardware mode was not
getting used in some cases (e.g., RSA key generation).
This commit modified internal mbedTLS API and makes software+hardware
combination deterministic.
2021-12-02 15:08:37 +05:30
Mahavir Jain
f864e1ddbb
mbedtls: update kconfig help to correct on supported MPI bits
2021-12-02 15:07:37 +05:30
radim.karnis
4f19ef06fb
esptool: Bump version, fix esp32r0/1 connection
...
Closes https://github.com/espressif/esptool/issues/698
2021-12-01 12:43:50 +01:00
Armando
c38215cb2c
spi_master: correctly reset spi afifos before DMA transaction starts
2021-12-01 11:48:05 +08:00
Gustavo Henrique Nihei
f34a85dc31
bootloader_support: Fix and re-enable bootloader_debug_buffer function
...
The body of the bootloader_debug_buffer function was conditioned to
macros that were never defined, resulting in deactivated code.
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-11-30 21:01:55 +08:00
Yang Zhao
f2d6cb7298
Add the feature that switch random address to origin mac addr in the ADV
...
report data.
2021-11-30 14:27:32 +08:00
Omar Chebib
2ccf84cedf
VFS: select
function's timeout is now POSIX compliant
...
`select` function will now round up the timeout passed as a parameter (if any).
It makes it POSIX compliant.
* Closes https://github.com/espressif/esp-idf/issues/7514
2021-11-30 12:05:34 +08:00
Mahavir Jain
0855521014
bootloader: add anti-FI checks around secure version in anti-rollback scheme
2021-11-29 18:49:36 +05:30
aleks
9204605d98
freemodbus: fix port contains lgpl licensed files
...
Initial version of freemodbus master port files have been added to ESP-IDF based on https://github.com/armink/FreeModbus_Slave-Master-RTT-STM32 .
The overall repository license, at the time of adding these files, has been BSD 3-clause. However at that time, several port files carried LGPL license headers. As the author of these files confirmed in https://github.com/armink/FreeModbus_Slave-Master-RTT-STM32/issues/61#issuecomment-977828450 , this wasn't intentional. ESP-IDF version of modbus master port has been rewritten to target FreeRTOS instead of RT-Thread, but the license headers remained from the original version. This commit corrects this, replacing the license of these files with BSD 3-clause.
2021-11-29 14:15:23 +01:00
Mahavir Jain
a8260c9c77
freertos: fix thread safety for checking scheduler state
...
This issue was earlier fixed in commit 79e74e5d5f948e585bec586db7f482a2f2df50dc
but during migration to newer FreeRTOS release, it got introduced again.
This commit fixes thread safety issues with configASSERT() calls
regarding the value of uxSchedulerSuspended. A false negative
occurs if a context switch to the opposite core occurs in between
the getting the core ID and the assesment.
Relevant https://github.com/espressif/esp-idf/issues/4230
Closes https://github.com/espressif/esp-idf/issues/7726
Closes IDFGH-6041
2021-11-25 19:32:19 +05:30
Jiang Jiang Jian
d95accbda9
Merge branch 'bugfix/multi_heap_get_info_impl_backport_v4.3' into 'release/v4.3'
...
heap: fix multi_heap_get_info_impl (backport v4.3)
See merge request espressif/esp-idf!16118
2021-11-25 11:45:31 +00:00
Michael (XIAO Xufeng)
d16584c313
Merge branch 'bugfix/spi_slave_wrong_miso_mosi_v4.3' into 'release/v4.3'
...
spi_slave: Fix MOSI/MISO inconsistent references on the SPI Slave drivers. (v4.3)
See merge request espressif/esp-idf!14405
2021-11-25 09:36:55 +00:00
Jiang Jiang Jian
0c77b89e13
Merge branch 'feature/add_coex_hci_command_v4.3' into 'release/v4.3'
...
Add hci command to set coexistence status (4.3)
See merge request espressif/esp-idf!16054
2021-11-25 08:02:14 +00:00
Michael (XIAO Xufeng)
8892b4c008
Merge branch 'bugfix/i2c_cmd_not_initailized' into 'release/v4.3'
...
i2c: fixed i2c_cmd_t not initialized properly issue (v4.3)
See merge request espressif/esp-idf!16096
2021-11-25 04:16:52 +00:00
Michael (XIAO Xufeng)
f055fbb713
i2c: fixed i2c_cmd_t not initialized properly issue
2021-11-25 04:16:51 +00:00
Michael (XIAO Xufeng)
b1ca6be111
Merge branch 'bugfix/modbus_fix_invalid_error_handling_for_duplicate_param_key_v43' into 'release/v4.3'
...
freemodbus: fix invalid error handling for duplicate param key (backport v4.3)
See merge request espressif/esp-idf!14788
2021-11-25 04:15:33 +00:00
Gustavo Henrique Nihei
de7d86b8a1
driver: Refactor and clean up SPI Slave test
2021-11-25 12:03:55 +08:00
Gustavo Henrique Nihei
7b587bf1d7
driver: Create TX/RX-only test cases for SPI Slave
2021-11-25 12:03:55 +08:00
Gustavo Henrique Nihei
880e96d7bb
spi: Ensure DMA In-Link EOF is generated by trans_done on SPI Slave
2021-11-25 12:03:55 +08:00
Gustavo Henrique Nihei
2bc4a0836f
spi: Remove Slave TX/RX set bitlen not effective for ESP32-S2/C3/S3
...
Furthermore, RX_EOF_EN should only be set when SPI Slave is configured
for segment transfer mode and the "ms_data_bitlen" field is configured
to control the "IN_SUC_EOF" interrupt. Since "ms_data_bitlen" is not
set anymore for S2, C3 and S3, "RX_EOF_EN" should be cleared.
2021-11-25 12:03:54 +08:00
Gustavo Henrique Nihei
6fb126657a
spi: Fix SPI Slave TX/RX bitlen configuring wrong registers
...
The maximum input length for the SPI Slave should be applied to the read
buffer configuration, not for the write buffer. Similarly, the output
configuration should also target the write buffer.
2021-11-25 12:03:54 +08:00
Gustavo Henrique Nihei
74f010ddfd
spi_slave: Fix MOSI/MISO enable on transaction preparation
...
MOSI and MISO enablement were conditioned to the existence of TX
and RX buffers, respectively. This is valid for the SPI Master,
but for the SPI Slave the opposite is expected.
2021-11-25 12:03:54 +08:00
gaoxiaojie
61d300f055
heap: fix multi_heap_get_info_impl
2021-11-25 10:22:41 +08:00
Zim Kalinowski
28792cdfea
Merge branch 'bugfix/gdbstub_includes' into 'release/v4.3'
...
[gdbstub]: fixed includes of component.mk (v4.3)
See merge request espressif/esp-idf!15870
2021-11-25 01:51:12 +00:00
aleks
158384043d
freemodbus: fix invalid error handling for duplicate param_key
2021-11-25 01:16:10 +08:00
Michael (XIAO Xufeng)
ab5c956bdf
Merge branch 'bugfix/esp_timer_before_init_v4.3' into 'release/v4.3'
...
esp_timer: allow querying the timer before esp_timer_init is called (backport v4.3)
See merge request espressif/esp-idf!15772
2021-11-24 16:44:56 +00:00
Jiang Jiang Jian
23d6e460d9
Merge branch 'bugfix/backport_wifi_fix_1123_v4.3' into 'release/v4.3'
...
esp_wifi: backport some wifi fix(v4.3)
See merge request espressif/esp-idf!16070
2021-11-24 15:26:43 +00:00
Michael (XIAO Xufeng)
48997e82c0
Merge branch 'bugfix/modbus_fix_compiler_err_when_tcp_is_disabled_v43' into 'release/v4.3'
...
freemodbus: fix compiler err when tcp is disabled (backport v4.3)
See merge request espressif/esp-idf!14789
2021-11-24 14:13:04 +00:00
Alex Lisitsyn
de7f5305a7
freemodbus: fix compiler err when tcp is disabled (backport v4.3)
2021-11-24 14:13:03 +00:00
Jiang Jiang Jian
daf9cbbb01
Merge branch 'doc/make_classic_bt_API_ref_only_for_esp32_4.3' into 'release/v4.3'
...
Doc/make classic bt api ref only for esp32 [backport v4.3]
See merge request espressif/esp-idf!15726
2021-11-24 02:54:02 +00:00
Jiang Jiang Jian
050fd07486
Merge branch 'bugfix/fix_crash_when_shutdown_bt_v4.3' into 'release/v4.3'
...
component/bt: fix crash when shutdown bt(backport v4.3)
See merge request espressif/esp-idf!15709
2021-11-24 02:53:21 +00:00
Angus Gratton
9d72bdda58
asio coap: If LWIP IPV6 is disabled, automatically don't build asio & coap
...
- Removes need to manually exclude these components as shown at
https://github.com/espressif/esp-idf/issues/3781#issuecomment-825742378
- Hide the config for these components if IPV6 is disabled
- The components are still included in the build, but with no source
files
Backport of e305f2938278c2a39e75c21a3ed59d8f4d4e62fa
Closes https://github.com/espressif/esp-idf/issues/7816
2021-11-23 22:39:58 +08:00
Jiang Jiang Jian
76ddca045e
Merge branch 'bugfix/sleep_wrong_log_lvl_v4.3' into 'release/v4.3'
...
Sleep: fix wrong debug level (backport v4.3)
See merge request espressif/esp-idf!16037
2021-11-23 14:31:30 +00:00
Jiang Jiang Jian
4cb5d9a5c8
Merge branch 'bugfix/protocomm_nimble_allocation_v4.3' into 'release/v4.3'
...
Fix for potential allocation bug in protocomm_nimble.c (v4.3)
See merge request espressif/esp-idf!15997
2021-11-23 13:17:12 +00:00
ChenJianxing
5788bd02c6
esp_wifi: Modify Mexico channel refer to FCC
...
esp_coex: fix wrong alloctation for coex_funcs_t
2021-11-23 21:13:26 +08:00
Jiang Jiang Jian
793b814789
Merge branch 'mesh/bugfix_fix_layer2_node_connection_issue_v4.3' into 'release/v4.3'
...
mesh: fix the issue that layer2 node connect to lower-layer node when FIXED-ROOT root disappeared(backport_v4.3)
See merge request espressif/esp-idf!15660
2021-11-23 12:40:52 +00:00
xiewenxiang
1fbf3bcfef
component/bt: fix crash when shutdown bt
2021-11-23 20:01:16 +08:00
yuanjm
a8fd3ef48e
lwip: Add macro to disable vendor class option
2021-11-23 19:42:47 +08:00
David Cermak
12509dd0c1
mdns: Fix parsing non-standard queries
...
Fix for packets containing unexpected domains, such as openthread.thread.home.arpa.
If we find this packet we set the name entry as invalid, but continue with parsing as the packet might contain related queries for us.
Closes https://github.com/espressif/esp-idf/issues/7694
2021-11-23 09:10:27 +01:00
Jiang Jiang Jian
b1290591df
Merge branch 'bugfix/register_non_32bit_access_v4.3' into 'release/v4.3'
...
hal: avoid non-32bit access to registers (v4.3)
See merge request espressif/esp-idf!15616
2021-11-23 07:09:41 +00:00
Jiang Jiang Jian
9e37f39441
Merge branch 'bugfix/fix_ble_prefered_ext_conn_parameter_detection_v4.3' into 'release/v4.3'
...
component/bt: check the ble ext conn parameter(backport v4.3)
See merge request espressif/esp-idf!15769
2021-11-23 06:53:16 +00:00
Jiang Jiang Jian
96b284bcd3
Merge branch 'bugfix/fix_static_check_error_mr_4.3' into 'release/v4.3'
...
Fix the high-impact issues from the code analysis report from customer.
See merge request espressif/esp-idf!16045
2021-11-23 06:36:23 +00:00
Jiang Jiang Jian
254b78d449
Merge branch 'bugfix/leedarson_v4.3' into 'release/v4.3'
...
component_bt: Fix some code logic errors (v4.3)
See merge request espressif/esp-idf!16026
2021-11-23 06:34:33 +00:00
Jiang Jiang Jian
e8153a3cd5
Merge branch 'bugfix/sig_ble_mesh_errata_e16350_v4.3' into 'release/v4.3'
...
ble_mesh: stack: Apply the errata E16350 from Bluetooth SIG (v4.3)
See merge request espressif/esp-idf!15784
2021-11-23 06:30:46 +00:00
Jiang Jiang Jian
07daa951b6
Merge branch 'bugfix/ble_mesh_host_init_v4.3' into 'release/v4.3'
...
ble_mesh: nimble: return error if init host twice (v4.3)
See merge request espressif/esp-idf!15788
2021-11-23 06:30:28 +00:00
Jiang Jiang Jian
a657543989
Merge branch 'bugfix/nimble_dirty_timer_handle_after_deinit_v4.3' into 'release/v4.3'
...
[NimBLE]: clear timer handler during de-initialization(backport v4.3)
See merge request espressif/esp-idf!16029
2021-11-23 06:24:11 +00:00