Commit Graph

11425 Commits

Author SHA1 Message Date
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
Michael (XIAO Xufeng)
52a76867d1 Merge branch 'bugfix/spi_lose_last_3_bytes' into 'master'
spi_master: fix an issue where master cannot correctly receive data when using DMA in halfduplex mode.

Closes IDFGH-612

See merge request espressif/esp-idf!11354
2021-02-04 18:35:48 +08:00
ChenJianxing
dc350a9c7c esp_wifi: support esp32c3 rom eco3 2021-02-04 18:28:06 +08:00
Jiang Jiang Jian
c1aacb2efc Merge branch 'bugfix/btdm_add_ble_connection_params_check' into 'master'
Bugfix/btdm add ble connection params check

See merge request espressif/esp-idf!12193
2021-02-04 17:32:42 +08:00
Island
8f28993493 Merge branch 'bugfix/ble_mesh_free_mbedtls_aes_ctx' into 'master'
ble_mesh: stack: Fix mbedtls aes ctx not deallocated

See merge request espressif/esp-idf!12253
2021-02-04 17:14:11 +08:00
Cao Sen Miao
b1d3d0ac74 suspend_test: delay more time for erase 2021-02-04 16:47:41 +08:00
Jiang Jiang Jian
27100cc50e Merge branch 'docs/wifi_doc_update' into 'master'
update wifi docs

See merge request espressif/esp-idf!12232
2021-02-04 16:37:31 +08:00
Angus Gratton
018d7c2551 Merge branch 'feature/add_pkg_and_revision_for_c3' into 'master'
efuse(esp32c3): Adds getting chip_revision and chip_pkg

See merge request espressif/esp-idf!12060
2021-02-04 16:04:36 +08:00
David Čermák
7b497138ae Merge branch 'bugfix/netif_add_str_to_ipx' into 'master'
esp_netif: Added methods for conversion IP4/IP6 addresses from their string interpretation

Closes IDFGH-3602

See merge request espressif/esp-idf!12143
2021-02-04 16:02:40 +08:00
Jakob Hasse
897e81f765 [doc]: elaborated nvs encryption comments in nvs 2021-02-04 15:27:37 +08:00
negativekelvin
d625310ef4 Fix nvs_flash_generate_keys
Merges https://github.com/espressif/esp-idf/pull/6478
2021-02-04 15:27:37 +08:00
Cao Sen Miao
e38326d715 spi_flash: fix the issue that ext flash hold is not controlled properly 2021-02-04 14:44:51 +08:00
Cao Sen Miao
cc1c6c30be flash: check boya chip support 2021-02-04 14:44:50 +08:00
Cao Sen Miao
8020c46da7 spi_flash: enable ext flash unit-test on esp32c3 2021-02-04 14:44:50 +08:00
Michael (XIAO Xufeng)
a0573f5b9f spi_flash: make the auto_suspend default y on C3 2021-02-04 14:11:04 +08:00
Michael (XIAO Xufeng)
0700129c5a soc: merge dac_caps.h into soc_caps.h for C3 2021-02-04 13:15:10 +08:00
Michael (XIAO Xufeng)
fe0c81f67c Merge branch 'fix/adc_gpio_init_unit_both' into 'master'
adc: fixed the issue adc_gpio_init doesn't support ADC_UNIT_BOTH

See merge request espressif/esp-idf!11556
2021-02-04 13:10:22 +08:00
Angus Gratton
6252446b7d Merge branch 'bugfix/s3_dma_enable_crypto' into 'master'
sha: dont enable/disable GDMA when enable/disable SHA module

See merge request espressif/esp-idf!12247
2021-02-04 11:30:10 +08:00
lly
0c6e61d258 ble_mesh: stack: Fix mbedtls aes ctx not deallocated 2021-02-04 11:24:54 +08:00
Island
c8aa7cb960 Merge branch 'bugfix/ble_mesh_misc_fix_for_c3' into 'master'
ble_mesh: stack: bugfix for running on esp32c3

See merge request espressif/esp-idf!12245
2021-02-04 10:57:27 +08:00
Michael (XIAO Xufeng)
586dd7d7cd spi: add explaination to the modes 2021-02-03 21:56:53 +08:00
Michael (XIAO Xufeng)
a2aa349dcc adc: fixed the issue adc_gpio_init doesn't support ADC_UNIT_BOTH 2021-02-03 20:55:58 +08:00
Ivan Grokhotkov
4edaf134bb Merge branch 'feature/loadable_elf_c3' into 'master'
build-system: add loadable elf support for ESP32-S2 and C3

Closes IDF-2137

See merge request espressif/esp-idf!12217
2021-02-03 19:40:34 +08:00
lly
0d95760fe4 ble_mesh: stack: Fix hw aes no dma channel for c3 2021-02-03 08:45:06 +00:00
lly
bd2d63ff96 ble_mesh: stack: Enable duplicate scan for c3 2021-02-03 08:45:06 +00:00