Commit Graph

11853 Commits

Author SHA1 Message Date
David Čermák
c2bab4be95 Merge branch 'bugfix/mdns_configure_strict_mode' into 'master'
mdns: Fix mdns to correctly answer non-strict queries (+ additional fixes)

Closes IDF-2928, WIFI-3107, and IDFGH-4797

See merge request espressif/esp-idf!12645
2021-04-13 08:04:43 +00:00
Michael (XIAO Xufeng)
f5f3c7143c Merge branch 'feat/c3_driver_api_cleanup_gpio' into 'master'
gpio, rtcio: removed unsupported features on different targets

See merge request espressif/esp-idf!13103
2021-04-13 06:51:33 +00:00
Michael (XIAO Xufeng)
54fdaa5986 Merge branch 'docs/spi_max_transfer_sz_limit' into 'master'
spi_docs: Fixed the default value of max_transfer_sz.

See merge request espressif/esp-idf!13000
2021-04-13 06:51:11 +00:00
David Čermák
10cdfab8c8 Merge branch 'bugfix/fix_lwip_debug_define' into 'master'
lw-ip: Fix LWIP_DEBUG define which is always defined

Closes IDF-3043

See merge request espressif/esp-idf!13004
2021-04-13 06:13:34 +00:00
Michael (XIAO Xufeng)
6ab5b9cbf9 gpio, rtcio: removed unsupported features on different targets 2021-04-13 13:21:08 +08:00
Jiang Jiang Jian
d6a2a67006 Merge branch 'bugfix/fix_some_pm_issue' into 'master'
esp_pm: fix an issue and add an interface

Closes IDF-2984 and IDF-2944

See merge request espressif/esp-idf!12787
2021-04-13 03:42:46 +00:00
Angus Gratton
7ec02161db Merge branch 'bugfix/cmake_ulp_reserved_size' into 'master'
ulp: Fix bug where ULP linker script not regenerated for new config

See merge request espressif/esp-idf!12979
2021-04-13 03:40:21 +00:00
Angus Gratton
191e649257 freertos: Add some comments about deleting tasks when using SMP
Some cases are not immediately obvious, so document them in comments.
2021-04-13 03:40:10 +00:00
Angus Gratton
f7b859ac84 freertos: Fix race condition using vTaskDelete() cross-core causing resource leak
Causes test added in parent commit to pass.

This race happens if the deleted task is running on the other CPU,
and is already spinning in a critical section waiting for xTaskQueueMutex
because it's about to be blocked for a resource.

The "deleted" task would end up blocked, possibly indefinitely, and
never actually deleted or its resources cleaned up by the idle tasks.

Details:

vTaskDelete() adds the target task to the xTasksWaitingTermination list,
expecting it to be yielded off CPU and then cleaned up later. However as soon as
vTaskDelete() releases xTaskQueueMutex, the target task runs and moves itself to the
xDelayedTaskList1. Because interrupts are already disabled on that CPU,
the "yield" to the other CPU sent by the vTaskDelete() comes afterward so
doesn't help.
2021-04-13 03:40:10 +00:00
Angus Gratton
db7d272873 freertos: Add unit test for deleting task which may be blocking 2021-04-13 03:40:10 +00:00
Michael (XIAO Xufeng)
93712eae49 Merge branch 'bugfix/fix_flash_ci' into 'master'
esp_flash: fix host number for passing ci

See merge request espressif/esp-idf!13090
2021-04-13 03:23:02 +00:00
morris
ef344d89ae esp_eth: apply generic error check macros 2021-04-13 10:54:33 +08:00
yuanjm
ef7583517d lwip: Fix LWIP_DEBUG define which is always defined 2021-04-12 14:41:46 +00:00
David Čermák
1b6b05f1ab Merge branch 'bugfix/pppos_configs' into 'master'
esp-modem: Add options to support LCP ECHO and UART_ISR_RAM in the example

Closes IDFGH-2470 and IDFGH-4759

See merge request espressif/esp-idf!12962
2021-04-12 14:30:38 +00:00
David Čermák
0f36a2dd16 Merge branch 'bugfix/eth_w5500_4byte_corruption' into 'master'
esp_eth: Fix w5500 read register operations

Closes IDFGH-4776 and IDFGH-4400

See merge request espressif/esp-idf!13060
2021-04-12 14:26:30 +00:00
David Cermak
5cce919cbe mdns: Fixed the ip header TTL to be correctly set to 255
Defined in https://tools.ietf.org/html/rfc6762#section-11: All Multicast DNS responses (including responses sent via unicast)
   SHOULD be sent with IP TTL set to 255
2021-04-12 13:24:19 +00:00
David Cermak
34049454df mdns: Fix parsing answers with questions when instance name not set
mdns resolver didn't correctly resolved queries when host name wasn't
assigned. Fixed by allowing processing also if some answer present
(non-strict mode)

Closes https://github.com/espressif/esp-idf/issues/6598
2021-04-12 13:24:19 +00:00
David Cermak
b649603a0d mdns: Fix the resolver to correctly parse it's own non-strict answers
The resolver was able to respond correctly, but would also resolve its
own queries and cause issues with BCT 1.5.2, specifically
* MULTIPLE QUESTIONS - DUPLICATE SUPPRESSION
* MULTIPLE QUESTIONS - DISTRIBUTED DUPLICATE SUPPRESSION
tests failed.
2021-04-12 13:24:19 +00:00
suren.gabrielyan
0eee31546d mdns: Add MDNS_STRICT_MODE config option
Strict mode was hardcoded in private header file, but it's useful for
users to enable/disable it depending on the mdns library they are using.
e.g. Avahi might not resolve the non-strict answers.
2021-04-12 13:24:19 +00:00
Michael (XIAO Xufeng)
7e06a60c0d Merge branch 'refactor/no_dac_on_esp32s3' into 'master'
dac: added DAC support macro

Closes IDF-1777

See merge request espressif/esp-idf!13038
2021-04-12 10:52:33 +00:00
Michael (XIAO Xufeng)
8cfcf6da7a Merge branch 'bugfix/enable_gpio18_gpio19_esp32c3' into 'master'
gpio: Disable USB JTAG when setting pins 18 and 19 as GPIOs on ESP32C3

Closes IDF-2964

See merge request espressif/esp-idf!12753
2021-04-12 09:39:55 +00:00
Martin Gaňo
b77addea2f Decompose idf_monitor.py 2021-04-12 10:47:33 +02:00
David Cermak
7af358ed93 esp_eth: Fix w5500 to break from potentially infinite tx loop
The issue typically happens for link-down during Tx. Added two retry levels, one before checking the sanity of the w5500 phy register and another for the Tx done itself (if the device is in the sane state)

Closes https://github.com/espressif/esp-idf/issues/6233
2021-04-12 07:59:40 +00:00
David Cermak
dfe9580967 esp_eth: Fix w5500 to correctly read registers on -Os
Reading SPI data may come in 4-byte units and thus result in unwanted
overwrites if smaller size registers read, especially if multiple placed
one after another. Fixed by using direct reads to `trans` structure for
sizes smaller or equal to 4.

Closes https://github.com/espressif/esp-idf/issues/6579
2021-04-12 07:59:40 +00:00
Michael (XIAO Xufeng)
67941fc495 i2s: removed unsupported features on different targets 2021-04-12 15:51:54 +08:00
Michael (XIAO Xufeng)
82e4a2431a i2c: removed unsupported features on different targets 2021-04-12 15:51:19 +08:00
fuzhibo
357b64fd2c bugfix: add .rodata section for riscv ulp for esp32s2 2021-04-12 14:29:13 +08:00
morris
75dfd970b4 dac: added DAC support macro
Remove DAC support on ESP32-S3
2021-04-12 12:04:46 +08:00
Martin Vychodil
f27c9c5139 esp32c3: memprot API upgrade and test application
Closes IDF-2641
2021-04-12 13:44:11 +10:00
Angus Gratton
936523b904 Merge branch 'feature/secure_bootv2_c3' into 'master'
secure_boot_v2: Support SB_V2 for ESP32-C3 ECO3

Closes IDF-2647

See merge request espressif/esp-idf!13040
2021-04-12 01:31:25 +00:00
Angus Gratton
1ea54a6496 Merge branch 'bugfix/s2_lightsleep_regression' into 'master'
sleep: disable switch-case jump tables from being placed in flash

See merge request espressif/esp-idf!13083
2021-04-09 13:56:02 +00:00
Shu Chen
264ce1f037 Merge branch 'feature/ot-1.2-radio-api' into 'master'
openthread: add radio mac API implementation

See merge request espressif/esp-idf!13066
2021-04-09 11:34:18 +00:00
Cao Sen Miao
c185a4947f esp_flash: fix host number for passing ci 2021-04-09 17:43:39 +08:00
Mahavir Jain
06c5f623ea Merge branch 'feature/diagnostics_support' into 'master'
espcoredump: Get core dump summary API

See merge request espressif/esp-idf!11462
2021-04-09 08:50:07 +00:00
Mahavir Jain
81c8fcaf8f Merge branch 'bugfix/ota_and_http_client' into 'master'
Fix counters for POST request in OTA and compare auth string in case insensitive fashion

Closes IDFGH-5059, IDFGH-5055, and IDFGH-5056

See merge request espressif/esp-idf!13069
2021-04-09 07:40:59 +00:00
David Čermák
9e8b2d8c66 Merge branch 'feature/sperate_slip_component' into 'master'
esp_netif: Use CONFIG_LWIP_SLIP_SUPPORT to sperate slip component

Closes IDF-3042

See merge request espressif/esp-idf!13006
2021-04-09 06:57:41 +00:00
David Cermak
d6f66465ff lwip: Made LCP ECHO bool for better user experience 2021-04-09 06:53:30 +00:00
Marius Vikhammer
38d9251bda sleep: disable switch-case jump tables from being placed in flash
sleep_modes.c contains switch statements that should be placed in flash.
Settings for avoiding this was not updated during sleep_modes refactor.
2021-04-09 14:16:27 +08:00
Jörg Henne
19024671ea esp_http_client: Make http_utils_get_string_between and http_utils_str_starts_with case insensitive
Closes: https://github.com/espressif/esp-idf/pull/6841
Closes: https://github.com/espressif/esp-idf/issues/6840

Signed-off-by: Shubham Kulkarni <shubham.kulkarni@espressif.com>
2021-04-09 06:03:02 +00:00
Shubham Kulkarni
b8b104a8f0 esp_https_ota: Fix counters for sending POST body
Closes: https://github.com/espressif/esp-idf/issues/6844
2021-04-09 06:03:02 +00:00
Aditya Patwardhan
48987ad9df esp_https_ota: Enable option of using global_ca_store and x509_crt_bundle
Closes https://github.com/espressif/esp-idf/issues/5504
2021-04-09 04:33:37 +00:00
Shubham Patil
356e2bbe6d espcoredump: On device core dump parsing to generate summary 2021-04-09 09:43:40 +05:30
Marius Vikhammer
0633ee3e18 docs: fix doxygen compile warnings for doxygen 1.9.1
Newer versions of doxygen will give warnings for comments in
INPUT lists

Delete all comment lines to fix these warnings, our folder structure
stil gives an OK overview of what we are including
2021-04-09 11:57:03 +08:00
Li Shuai
2c2ae5aa0a deep sleep: fix sleep gpio wakeup fail issue 2021-04-09 11:35:32 +08:00
Angus Gratton
7154866e80 Merge branch 'feature/update_libsodium_submodule' into 'master'
libsodium: Update library to v1.0.18

Closes IDF-2731

See merge request espressif/esp-idf!13026
2021-04-08 22:45:37 +00:00
Mahavir Jain
bc4cb7f67e Merge branch 'bugfix/crashing_after_debug_logs_enabled_esp32c3' into 'master'
esp32c3: Fix issue of crashing if debug logs are enabled.

Closes WIFI-3534

See merge request espressif/esp-idf!12788
2021-04-08 12:59:18 +00:00
Michael (XIAO Xufeng)
57af5acefe Merge branch 'ci/enable_all_test_for_i2c_on_c3' into 'master'
I2C: enable all unit test for i2c on esp32c3

Closes IDF-2494

See merge request espressif/esp-idf!12474
2021-04-08 12:31:51 +00:00
Marius Vikhammer
58d83dda40 rtc: increase CI acceptance range for calc 8M test 2021-04-08 18:50:56 +08:00
Rahul Tank
6395eae955 esp-idf: Added an option in menuconfig to configure maximum gatt services
Currently Max GATT services count cannot be configured externally and
hence user needs to modify code ,everytime the count is to be
modified.

 Added an option in menuconfig to provide a way to user to set the count.

Fixes: https://jira.espressif.com:8443/browse/BT-1508
2021-04-08 10:42:47 +00:00
Angus Gratton
cef3b26a91 Merge branch 'refactor/move_from_esp_system' into 'master'
Movements from esp_system

Closes IDF-2165

See merge request espressif/esp-idf!12695
2021-04-08 10:16:08 +00:00
Jiacheng Guo
3630099d29 openthread: add radio api for Thread 1.2 to work 2021-04-08 17:49:16 +08:00
aditi_lonkar
ed424c5f9f esp32c3: Fix issue of crashing if debug logs are enabled. 2021-04-08 09:43:25 +00:00
Michael (XIAO Xufeng)
925dacd7fb Merge branch 'bugfix/remove_HSPI_macro_on_c3' into 'master'
spi: remove HSPI macros on esp32c3 and esp32s3

Closes IDF-2535

See merge request espressif/esp-idf!12637
2021-04-08 09:33:18 +00:00
KonstantinKondrashov
1d8f885928 esp32c3: Default supported ESP32-C3 Revision ECO3 2021-04-08 15:06:22 +08:00
Omar Chebib
cd79f3907d gpio: Disable USB JTAG when setting pins 18 and 19 as GPIOs on ESP32C3
When `DIS_USB_JTAG` eFuse is NOT burned (`False`), it is not possible
to set pins 18 and 19 as GPIOs. This commit solves this by manually
disabling USB JTAG when using pins 18 or 19.
The functions shall use `gpio_hal_iomux_func_sel` instead of
`PIN_FUNC_SELELECT`.
2021-04-08 14:01:18 +08:00
Angus Gratton
7fe8720c9d Revert "esp_event test: Disable linker relaxations in this component, to temporarily workaround a linker bug"
This reverts commit 4eb9cc68a6.

Alternative fix to be applied in next commit.
2021-04-08 13:33:28 +10:00
Angus Gratton
70cab5bd81 Merge branch 'bugfix/ulp_riscv_unintended_wake' into 'master'
ulp: unintended wakeup in ulp_riscv

See merge request espressif/esp-idf!12894
2021-04-08 01:52:41 +00:00
KonstantinKondrashov
4e23f9f3b7 secure_boot_v2: Adds support SB_V2 for ESP32-C3 ECO3 2021-04-07 19:52:44 +08:00
Renz Bagaporo
586023790e esp_system: move sleep modes to esp_hw_support, power down light sleep to esp_pm 2021-04-07 17:53:37 +08:00
Renz Bagaporo
c112bd8b57 esp_system: move intr_alloc 2021-04-07 17:53:37 +08:00
Renz Bagaporo
8762bfebde esp_system: move asysnc memcpy to esp_hw_support 2021-04-07 17:53:37 +08:00
Mahavir Jain
6d0ac214c4 Merge branch 'feature/enable_crt_bundle_for_esp_http_client' into 'master'
Feature/enable crt bundle for esp http client

Closes IDFGH-3997

See merge request espressif/esp-idf!13018
2021-04-07 09:20:21 +00:00
Mahavir Jain
0df89e492b Merge branch 'bugfix/keepalive_idle_fix' into 'master'
esp-tls: Fix setsockopt for TCP_KEEPIDLE

Closes IDFGH-5043

See merge request espressif/esp-idf!13049
2021-04-07 07:28:43 +00:00
Aditya Patwardhan
f66bdf1233 esp_http_client: Enable support of crt_bundle in esp_http_client 2021-04-07 05:31:21 +00:00
Aditya Patwardhan
d74f7d2d04 tcp_transport: Add option to enable crt_bundle for SSL connection 2021-04-07 05:31:21 +00:00
Aditya Patwardhan
3e82fcd566 esp_http_server: Fix transport_ctx not getting freed
Closes https://github.com/espressif/esp-idf/issues/6813
2021-04-07 05:25:39 +00:00
Angus Gratton
c22eb769e7 Merge branch 'bugfix/panic_instrprohibited' into 'master'
esp_system: fix instrprohibited panic backtrace regression

See merge request espressif/esp-idf!13023
2021-04-07 05:14:19 +00:00
Cao Sen Miao
c3da21a93f I2C: enable all unit test for i2c on esp32c3 2021-04-06 17:37:55 +08:00
Angus Gratton
97ea00f355 Merge branch 'doc/flash_encryption_development' into 'master'
doc: Mention Flash Encryption on the host is possible in Release mode

Closes IDFGH-4074

See merge request espressif/esp-idf!12721
2021-04-06 08:13:43 +00:00
Axel Lin
52442be9e1 esp-tls: Fix setsockopt for TCP_KEEPIDLE
Current code applies keep_alive_enable setting to TCP_KEEPIDLE, fix it.

Fixes: 2d25252746 ("esp-tls: Rework tcp_connect() to use more subroutines")
Signed-off-by: Axel Lin <axel.lin@gmail.com>
2021-04-06 15:37:16 +08:00
Angus Gratton
e97ae26f48 doc: Mention pre-encrypting on the host is possible in Release mode
Closes https://github.com/espressif/esp-idf/issues/5945
2021-04-06 16:58:58 +10:00
Michael (XIAO Xufeng)
d21ca33e40 Merge branch 'bugfix/fix_bootloader_time_too_long_bug' into 'master'
esp32s2/esp32c3: decrease boot up and cpu start up time

See merge request espressif/esp-idf!12725
2021-04-06 06:34:57 +00:00
Aditya Patwardhan
dfd6c5cb0b libsodium: Update library to v1.0.18 2021-04-06 11:23:50 +05:30
Armando
9b9ea71ff9 spi: remove HSPI macro on esp32c3 and esp32s3 2021-04-06 13:42:49 +08:00
Angus Gratton
1d5828b433 Merge branch 'feature/implement_esp_core_dump_image_erase' into 'master'
coredump: add `esp_core_dump_image_erase` function

See merge request espressif/esp-idf!12609
2021-04-06 04:29:01 +00:00
Jakob Hasse
b23c9142d5 [hal]: cleaned up interrupt mask functions
* Functions for setting and clearing interrupts
  as well as function to read interrupt mask
  should be clearer now.
* Using hal layer interrupt set and clear
  functions in esp_wifi component
2021-04-06 11:54:13 +08:00
Angus Gratton
f13b10a17b Merge branch 'bugfix/call_idf_monitor_with_python_explicitly' into 'master'
esptool_py: call idf.py monitor with python explicitly

Closes IDFGH-3333

See merge request espressif/esp-idf!12981
2021-04-06 03:30:23 +00:00
Angus Gratton
94ac251091 Merge branch 'doc/general_notes' into 'master'
doc: Update docs about startup sequence and memory types

Closes IDF-2321, IDF-2409, and IDFGH-1540

See merge request espressif/esp-idf!12636
2021-04-05 23:51:25 +00:00
Renz Bagaporo
75624c5355 esp_system: fix instrprohibited panic backtrace regression
First PC should have been ignored in the case of InstProhibited panic
when printing backtrace.
2021-04-05 22:05:27 +08:00
Angus Gratton
6b57f33858 Merge branch 'refactor/movements_from_target_components' into 'master'
Movement from target components 1

See merge request espressif/esp-idf!12482
2021-04-05 02:37:21 +00:00
Chen Shu
6be0ed9077 Merge branch 'feature/add-openthread' into 'master'
openthread: add OpenThread and porting

Closes IDF-2911

See merge request espressif/esp-idf!12570
2021-04-02 06:49:55 +00:00
Guo Jia Cheng
7c38989309 OpenThread: add OpenThread and porting
* Adds the OpenThread submodule.
* Adds porting on ESP32.
* Adds the OpenThread cli example.
2021-04-02 14:49:49 +08:00
Angus Gratton
f326b1372a Merge branch 'refactor/duplicate_backtrace_code' into 'master'
esp_system: remove duplicate backtrace

Closes IDF-2783

See merge request espressif/esp-idf!12596
2021-04-02 03:51:09 +00:00
Rahul Tank
105497f861 Add secure connection for just works in provisioning app for bluedroid
This MR adds support of secure connection, encryption flags to characteristics and bonding with Just Work as association model

[BLE Provisioning] Added secure connection pairing support to unified provisioning framework.
2021-04-01 09:29:03 +00:00
Mahavir Jain
b9efd5d8dd Merge branch 'fix/add_nimble_prov_secure_conn' into 'master'
BLE provisioning: Add secure connection pairing with just works for NimBLE

See merge request espressif/esp-idf!12899
2021-04-01 09:26:35 +00:00
Prasad Alatkar
fbd906e05f BLE provisioning: Add secure connection pairing with just works for NimBLE 2021-04-01 17:26:30 +08:00
yuanjm
dd30222c46 esp_netif: Add CONFIG_LWIP_SLIP_SUPPORT to sperate slip component 2021-04-01 17:10:50 +08:00
Renz Bagaporo
301c48b6b2 esp_system: remove duplicate panic backtrace code 2021-04-01 07:22:57 +00:00
Michael (XIAO Xufeng)
e89fabb963 spi_docs: Fixed the default value of max_transfer_sz. 2021-04-01 14:59:29 +08:00
Michael (XIAO Xufeng)
da0b86905f Merge branch 'bugfix/fix_uart_handler_call_inline_func' into 'master'
driver: fix uart handler in iram calls inline uart_ll_is_tx_idle() placed in flash

Closes IDFGH-3775

See merge request espressif/esp-idf!9985
2021-04-01 06:46:33 +00:00
chaijie
f9de69586b esp32s2/esp32s3/esp32c3: Decrease bootloader cost time 2021-04-01 06:19:34 +00:00
Angus Gratton
3c9e9a7704 Merge branch 'bugfix/renable_unit_tests' into 'master'
ci: enable previously disabled unit tests

See merge request espressif/esp-idf!12582
2021-04-01 03:23:22 +00:00
ninh
7395e075f8 esp_pm: fix an issue and add an interface 2021-04-01 02:23:42 +00:00
Jiang Jiang Jian
0f115609b1 Merge branch 'bugfix/close_tsen_when_close_phy' into 'master'
esp_wifi: close tsen when close phy

Closes WIFI-3527

See merge request espressif/esp-idf!12949
2021-04-01 02:17:53 +00:00
Jiang Jiang Jian
e50b86ddc8 Merge branch 'bugfix/fix_esp32c3_hardware_bug_before_ECO3' into 'master'
ECP32C3:  fix hardware bug before eco3

Closes WIFI-3415 and WIFI-3474

See merge request espressif/esp-idf!12924
2021-03-31 17:43:50 +00:00
Jiang Jiang Jian
d903dadfc2 Merge branch 'bugfix/assert_when_tcp_send_data' into 'master'
lw-ip:bugfix for assert when tcp send data

Closes WIFI-3483

See merge request espressif/esp-idf!12761
2021-03-31 17:40:30 +00:00
aleks
193f1f9b4e driver: fix uart handler in iram calls inline uart_ll_is_tx_idle 2021-03-31 14:39:59 +00:00
Mahavir Jain
cc7372ab79 Merge branch 'bugfix/chunked_http_request' into 'master'
esp_http_client: Do not override HTTP method in case of chunk encoding

Closes IDFGH-4401

See merge request espressif/esp-idf!12923
2021-03-31 13:13:03 +00:00
chaijie
c101fc3e3d fix c3 hardware bug before ECO3 and optimizate bbpll config:
1. deepsleep poweron reset bug in high temperature before ECO3;
2. brownout reset bug before ECO2;
3. bbpll voltage low bug before ECO3;
4. need xpd iph for xtal before ECO3;
2021-03-31 13:08:56 +00:00
ninh
c80310b1f6 esp_wifi: close tsen when close phy 2021-03-31 21:06:00 +08:00
Jiang Jiang Jian
ada4a8274f Merge branch 'bugfix/add_beacon_timeout_event' into 'master'
esp_wifi: Add beacon timeout event

Closes WIFI-3536

See merge request espressif/esp-idf!12809
2021-03-31 13:01:28 +00:00
Renz Bagaporo
daa13b3f62 esp32: move toolchain check 2021-03-31 19:17:33 +08:00
Renz Bagaporo
a202a604d8 esp32: move system libs 2021-03-31 19:17:33 +08:00
Renz Bagaporo
bbc599493e esp32: move common fragment definitions 2021-03-31 19:17:33 +08:00
Renz Bagaporo
1b4e4c37b7 esp32: remove deprecated esp_intr.h 2021-03-31 19:17:33 +08:00
Renz Bagaporo
9478298aa4 esp32: move mac target specific configs 2021-03-31 19:17:33 +08:00
Renz Bagaporo
e6edf34e82 esp32: move esp_clk functions 2021-03-31 19:17:33 +08:00
Renz Bagaporo
4a08264e7a esp_system: split esp_system.h header 2021-03-31 19:13:03 +08:00
Renz Bagaporo
a7bac58480 esp32: move system api to esp_system 2021-03-31 19:13:03 +08:00
Renz Bagaporo
393bd64a1e esp32: move crosscore int 2021-03-31 19:13:03 +08:00
Renz Bagaporo
7d85c42e52 esp32: move brownout and cache err int setup 2021-03-31 19:13:03 +08:00
Renz Bagaporo
6014e3a198 esp32: move stack check test 2021-03-31 19:13:03 +08:00
Renz Bagaporo
784a02a4ee esp32: move hw random 2021-03-31 19:13:03 +08:00
Shubham Kulkarni
1bacc13628 esp_http_client: Do not overwrite HTTP method in case of chunk request
Closes https://github.com/espressif/esp-idf/issues/6234
2021-03-31 10:53:36 +00:00
David Čermák
aecfbf966c Merge branch 'feature/ethernet_phy_ksz8081' into 'master'
Ethernet phy driver: ksz8081

Closes IDFGH-4775

See merge request espressif/esp-idf!12723
2021-03-31 09:45:32 +00:00
Renz Bagaporo
3639c2322b ulp: clear rtc int at initialization
Closes https://github.com/espressif/esp-idf/issues/6654
2021-03-31 17:15:55 +08:00
xueyunfei
181e87d700 bugfix for assert when tcp send data 2021-03-31 08:59:22 +00:00
callalilychen
d9f687f51a esptool_py: call idf.py monitor with python explicitly
Closes https://github.com/espressif/esp-idf/pull/5314
2021-03-31 16:54:50 +08:00
Angus Gratton
9c2f180049 ulp: Fix bug where ULP linker script not regenerated for new config
ULP linker script relies on value of CONFIG_ESP32S2_ULP_COPROC_RESERVE_MEM,
when this value changes in config then it should be regenerated.
2021-03-31 19:25:35 +11:00
Jiang Jiang Jian
813d9ca420 Merge branch 'bugfix/add_multiple_scan_mode' into 'master'
Bugfix: Connect example to add scan mode config

Closes IDFGH-4793 and IDFGH-4812

See merge request espressif/esp-idf!12525
2021-03-31 08:10:55 +00:00
Angus Gratton
793771e744 Merge branch 'feature/esp_error_check_return' into 'master'
esp_common: add generic check macros

Closes IDF-2271

See merge request espressif/esp-idf!12602
2021-03-31 07:08:27 +00:00
Michael (XIAO Xufeng)
8ec8f61caa Merge branch 'bugfix/twai_esp32_errata_workarounds' into 'master'
TWAI: Add FIFO overrun handling and ESP32 hardware errata workarounds

Closes IDFGH-3307, IDFGH-393, and IDFGH-2114

See merge request espressif/esp-idf!10041
2021-03-31 05:13:58 +00:00
xiehang
37567dcf2a esp_wifi: Add beacon timeout event
Update TBTT when rx probe respones after beacon timeout.
2021-03-31 11:29:56 +08:00
Jiang Jiang Jian
80d0f6c860 Merge branch 'nimble/add_error_prints_acl_buf' into 'master'
NimBLE: Add error prints for ACL buffer exhaustion in NPL

See merge request espressif/esp-idf!12665
2021-03-31 03:20:16 +00:00
Angus Gratton
fda565a5bf Merge branch 'bugfix/partition_table_depends_esptoolpy' into 'master'
esptool_py: Fix issue where build with limited components doesn't include esptool_py

Closes IDFGH-4876 and IDFGH-4874

See merge request espressif/esp-idf!12653
2021-03-31 01:30:33 +00:00
Angus Gratton
d44034c54d Merge branch 'bugfix/dual_core_app_on_single_core_esp32' into 'master'
esp_system: fix dual core app issue on single core esp32

Closes IDF-2154

See merge request espressif/esp-idf!10728
2021-03-31 01:06:52 +00:00
Angus Gratton
771718d07a Merge branch 'bugfix/prefetch_invalid' into 'master'
soc: add dummy bytes to ensure instr prefetch always valid

Closes IDFCI-533

See merge request espressif/esp-idf!12940
2021-03-31 00:44:10 +00:00
Angus Gratton
37acd13cdd doc: Add notes that vTaskStartScheduler() is called during startup
Closes https://github.com/espressif/esp-idf/issues/1457
2021-03-31 09:37:28 +11:00
Angus Gratton
492b061cbc doc: update the memory types and startup docs 2021-03-31 09:37:28 +11:00
Jiang Jiang Jian
af132f651f Merge branch 'bugfix/fix_esptouch_v2_issues' into 'master'
esp_wifi: fix ESPTouch v2 issues

Closes WIFI-3325

See merge request espressif/esp-idf!12770
2021-03-30 15:01:19 +00:00
yuanjm
06ae78b531 provisioning: Fix WiFi credentials not saved to NVS due to wifi_prov_mgr_start_provisioning change the WiFi storage to RAM
Closes https://github.com/espressif/esp-idf/issues/5178
2021-03-30 11:15:05 +00:00
0xFEEDC0DE64
45de6f9c59 espcoredump erase review comments 2021-03-30 08:59:39 +00:00
0xFEEDC0DE64
a72f2e2257 coredump: Implemented esp_core_dump_image_erase() and esp_core_dump_image_get() now returns ESP_ERR_NOT_FOUND when partition is blank
Closes https://github.com/espressif/esp-idf/pull/6631
2021-03-30 08:59:39 +00:00
morris
2a34b0496c esp_eth: refactor ksz8041 driver into ksz80xx 2021-03-30 08:53:15 +00:00
Patrick Wieder
98a4c70af9 Added support for Ethernet PHY KSZ8081
Merges https://github.com/espressif/esp-idf/pull/6578
2021-03-30 08:53:15 +00:00
morris
9d7ba4c49a eth_phy: fix wrong register bit order in ksz8041 2021-03-30 08:53:15 +00:00
zhangyanjiao
8ff8222519 esp_wifi: fix ESPTouch v2 issues 2021-03-30 14:29:33 +08:00
Darian Leung
2f58060921 TWAI: FIFO overrun handling and errata workarounds
This commit adds handling for FIFO overruns and
adds workarounds for HW errats on the ESP32.

Closes https://github.com/espressif/esp-idf/issues/2519
Closes https://github.com/espressif/esp-idf/issues/4276
2021-03-30 14:17:31 +08:00
Marius Vikhammer
b4d2fb56a0 ci: enable previously disabled unit tests 2021-03-29 18:36:41 +08:00
Angus Gratton
a2740be080 Merge branch 'refactor/systimer_reset_alternative' into 'master'
Systimer reset alternative on S2 (and others)

See merge request espressif/esp-idf!12694
2021-03-29 09:27:41 +00:00
Michael (XIAO Xufeng)
99aaebb5e4 Merge branch 'bugfix/adc_power_issue' into 'master'
adc: fix adc power issue

Closes IDF-2954, WIFI-3453, WIFI-3462, IDFGH-4439, and IDFGH-4887

See merge request espressif/esp-idf!12757
2021-03-29 07:31:43 +00:00
Renz Bagaporo
8d32232899 esp_system: check early for single core variant 2021-03-29 06:50:47 +00:00
Michael (XIAO Xufeng)
bdaac823e3 Merge branch 'feature/spi_slave_hd_dual_test_for_segment_mode' into 'master'
spi slave hd: add a dual test for segment mode when master's transactions are too long

See merge request espressif/esp-idf!11176
2021-03-29 06:16:10 +00:00
Marius Vikhammer
8ac74082f1 soc: add dummy bytes to ensure instr prefetch always valid
The CPU might prefetch instructions, which means it in some cases
will try to fetch instruction located after the last instruction in
flash.text.

Add dummy bytes to ensure fetching these wont result in an error,
 e.g. MMU exceptions
2021-03-29 13:50:03 +08:00
Jiang Jiang Jian
bd4e34b15a Merge branch 'bugfix/btdm_incorrectly_spelled' into 'master'
component/bt: fix Spelling mistakes

Closes IDFGH-4886, IDFGH-4910, and IDFGH-4635

See merge request espressif/esp-idf!12814
2021-03-29 05:07:54 +00:00
Jiang Jiang Jian
72ddc6ee40 Merge branch 'bugfix/esp32c3_light_sleep_gpio_reset_issue' into 'master'
light sleep: add software workaround for esp32c3 gpio reset issue

See merge request espressif/esp-idf!12715
2021-03-29 04:55:55 +00:00
Jiang Jiang Jian
28c17feaaa Merge branch 'bugfix/enable_esp32c3_glitchdet_eco3_wifi' into 'master'
Add ECO3 Wi-Fi Functions addr.

Closes ESPTOOL-218 and WIFI-3244

See merge request espressif/esp-idf!12627
2021-03-29 04:54:13 +00:00
Michael (XIAO Xufeng)
78090d24e4 Merge branch 'bugfix/flash_suspend_restriction' into 'master'
spi_flash: make suspend off by default and add more information for using suspend

See merge request espressif/esp-idf!12812
2021-03-29 04:47:34 +00:00
Angus Gratton
38af9dffe1 esp_system: Mark the startup array as 'const' to save RAM 2021-03-29 15:11:49 +11:00
alex.li
55cbb541fc Support new section addr and wifi lib for ESP32C3-ECO3. 2021-03-29 10:27:10 +08:00
Angus Gratton
c4b5974cd0 Merge branch 'bugfix/doc_freertos_task_stack_bytes' into 'master'
freertos docs: Specify that uxTaskGetStackHighWaterMark() returns bytes not words

See merge request espressif/esp-idf!12866
2021-03-28 22:40:20 +00:00
David Čermák
b2a60e0d7c Merge branch 'bugfix/tcp_transport_tls_no_mem' into 'master'
tcp_transport: Fix error handling of esp_tls_init()

Closes IDFGH-4952

See merge request espressif/esp-idf!12822
2021-03-26 18:44:35 +00:00
Krzysztof Budzynski
c140e8b547 Merge branch 'doc/update_openssl_docs' into 'master'
docs: Migrated OpenSSL APIs from components/openssl/* to the API reference

Closes IDF-2541

See merge request espressif/esp-idf!12515
2021-03-26 11:49:57 +00:00
Armando
cc6bfcd9ac adc: apply adc power API to adc driver
Closes https://github.com/espressif/esp-idf/issues/6269
Closes https://github.com/espressif/esp-idf/issues/6682
2021-03-26 17:58:00 +08:00
Angus Gratton
1dfa0e0aa1 Merge branch 'feature/vdd_sdio_pd_configurable' into 'master'
system: add VDD_SDIO power domain configuration for light sleep

Closes IDFGH-2893

See merge request espressif/esp-idf!12481
2021-03-26 08:23:41 +00:00
Michael (XIAO Xufeng)
96e3ba881c Merge branch 'feature/esp32c3_adc_driver_cleanup' into 'master'
adc: esp32c3 adc driver cleanup

Closes IDF-2528, IDF-2695, and IDF-2765

See merge request espressif/esp-idf!12477
2021-03-26 08:03:29 +00:00
Angus Gratton
b73b6eb5b4 Merge branch 'bugfix/otatool_imported_as_lib' into 'master'
otatool: Fix a crash when imported as external python lib

Closes IDFGH-4942

See merge request espressif/esp-idf!12862
2021-03-26 07:22:07 +00:00
Cao Sen Miao
c54ea54d98 spi_flash: make suspend off by default and add more information for using suspend 2021-03-26 13:57:14 +08:00
Mahavir Jain
531f14aa31 Merge branch 'feature/secure_boot_v1_add_tip_msg' into 'master'
secure_boot_v1: Adds a help message in case when sig_block.version is not valid

Closes IDFGH-4982

See merge request espressif/esp-idf!12916
2021-03-26 04:24:13 +00:00
Jiang Jiang Jian
bcbf1d2c3c Merge branch 'bugfix/btdm_add_controller_support_RPA' into 'master'
add option to enable/disable esp32 controller RPA

See merge request espressif/esp-idf!12832
2021-03-26 04:19:50 +00:00
Jiang Jiang Jian
6c070f49a8 Merge branch 'bugfix/btdm_fix_multi-con_pair_failed' into 'master'
fix multi-connection pair failed

Closes BT-1490

See merge request espressif/esp-idf!12877
2021-03-26 04:18:56 +00:00
Jiang Jiang Jian
e5f8e12db1 Merge branch 'bugfix/btdm_synchronize_multiple_branch_of_bt_lib' into 'master'
Bugfix/btdm synchronize multiple branch of bt lib

Closes BT-1535

See merge request espressif/esp-idf!12868
2021-03-26 04:15:42 +00:00
Armando
0e0baee25a adc: add implementation of missed public API
Added ``adc1_pad_get_io_num``, ``adc2_pad_get_io_num`` and
``adc_vref_to_gpio``.
2021-03-26 12:04:46 +08:00
Armando
6f4d992ac7 adc: update lock scope on esp32c3 2021-03-26 12:04:46 +08:00
Armando
e9995fe165 adc: add pm_lock to adc driver on esp32c3 2021-03-26 12:04:46 +08:00
Armando
a5295af829 adc: update adc header files on c3 2021-03-26 12:04:46 +08:00
Armando
00a3f48bd8 adc: refactor adc single read api on esp32c3 2021-03-26 12:04:46 +08:00
Armando
69a0f8b9bb adc: seperate hal layer and driver layer 2021-03-26 12:04:46 +08:00
Armando
bee90f57f1 adc: remove unused functions on esp32c3 2021-03-26 12:04:45 +08:00
Angus Gratton
36655bd63d Merge branch 'feature/on_update_no_secure_boot_verify_only_one_sign' into 'master'
secure_boot: Only the first position of signature blocks is used to verify any update

Closes IDF-3002

See merge request espressif/esp-idf!12856
2021-03-26 03:18:15 +00:00
Marius Vikhammer
2edf9b103d esptool: update to support flashing esp32c3 eco 3 2021-03-26 10:59:40 +08:00
Angus Gratton
10d1e4ab1b esp32c3: Add support for building image with a minimum target revision 2021-03-26 10:59:03 +08:00
Mahavir Jain
d6a6c3b46d Merge branch 'prov/protocomm_nimble_strdup_remove' into 'master'
Provisioning: Remove unnecessary strdup/free from protocomm_nimble

Closes IDFGH-4980

See merge request espressif/esp-idf!12889
2021-03-25 15:04:14 +00:00
Jiang Jiang Jian
a24ae68d48 Merge branch 'nimble/mbedtls_aes_free_dma' into 'master'
NimBLE: Free AES context after use by calling `mbedtls_free_aes` (Needed for C3)

Closes BT-1435

See merge request espressif/esp-idf!12363
2021-03-25 12:42:32 +00:00
KonstantinKondrashov
7f40717eb2 secure_boot/SIGNED_ON_UPDATE_NO_SECURE_BOOT: Only the first position of signature blocks is used to verify any update 2021-03-25 12:27:05 +00:00
KonstantinKondrashov
cbbd1e88a5 secure_boot_v1: Adds a help message in case when sig_block.version is not valid
if sig_block.version is not valid then probably the image without a signature.
2021-03-25 20:01:52 +08:00
KonstantinKondrashov
b72ace60a5 otatool: Fix a crash when imported as external python lib
Closes: https://github.com/espressif/esp-idf/issues/6733
2021-03-25 11:52:56 +00:00
Prasad Alatkar
bf6ff41a9e BLE Provisioning: Remove unnecessary strdup/free from protocomm_nimble
Closes IDFGH-4980
2021-03-25 16:55:57 +05:30
Renz Bagaporo
32aa5f7e25 esp_system: add notes on timekeeping 2021-03-25 16:09:33 +08:00
Renz Bagaporo
44a8dc9342 ci: change assertions rtc clk compenstation test 2021-03-25 15:47:19 +08:00
Renz Bagaporo
50745fa61b newlib: use system time in test 2021-03-25 15:47:19 +08:00
Renz Bagaporo
d7e9567c00 esp_system, esp_timer: fix time function description 2021-03-25 15:47:19 +08:00
Renz Bagaporo
131bbbd5c4 esp_system: test system time for rtc compensation 2021-03-25 15:47:19 +08:00
Renz Bagaporo
74de5a7c58 esp_timer: correct startup time 2021-03-25 15:38:27 +08:00
Renz Bagaporo
5a90113136 newlib: change microseconds offset type 2021-03-25 15:37:48 +08:00
Renz Bagaporo
cb5a8342d4 esp_system: revert reset of systimer clk at startup 2021-03-25 15:37:48 +08:00
Li Shuai
b3bc27972e light sleep: add software workaround for esp32c3 gpio reset issue 2021-03-25 15:03:09 +08:00
baohongde
77fc60ede1 components/bt: Synchronize multiple branch of bt lib 2021-03-25 14:39:28 +08:00
baohongde
36b89a9f0b components/bt: Fix assert without sw coexist enabled 2021-03-25 14:39:07 +08:00
baohongde
7c2ff2ad3f component/coex: Decouple Wi-Fi and bluetooth with coexist to reduce binary file size 2021-03-25 14:39:07 +08:00
Jiang Jiang Jian
aff0235e47 Merge branch 'bugfix/fix-modem-sleep-mr' into 'master'
Fix the bug of modem sleep

See merge request espressif/esp-idf!12871
2021-03-25 06:33:02 +00:00
Angus Gratton
f9d807d7c4 Merge branch 'bugfix/flash_text_alignment_cache_issue' into 'master'
build: fix cache issue when .flash.text section alignment is uncommon

Closes IDF-2992

See merge request espressif/esp-idf!12841
2021-03-25 04:49:32 +00:00
Armando
026545b71e spi_slave_hd: add a dual-board test when master sends too long on
ESP32C3

This test can also be used between ESP32/S2/S3/C3.
2021-03-25 10:31:29 +08:00
Angus Gratton
11e2620acc freertos docs: Specify that uxTaskGetStackHighWaterMark() returns bytes not words
As reported https://esp32.com/viewtopic.php?f=13&t=20043&p=73732
2021-03-25 00:08:24 +00:00
Mahavir Jain
9926f5bb5a Merge branch 'bugfix/revert_esp_log_issue' into 'master'
efuse: revert ESP_LOG to ESP_EARLY_LOG in src/esp_efuse_utility.c

Closes IDFGH-4863

See merge request espressif/esp-idf!12792
2021-03-24 16:30:59 +00:00
Jiang Jiang Jian
080ef27556 Merge branch 'bugfix/fix_csa_beacon_timeout' into 'master'
bugfix: keep wakeup state during csa

Closes WIFI-3259

See merge request espressif/esp-idf!12867
2021-03-24 15:53:17 +00:00
Prasad Alatkar
b4861a11e6 NimBLE: Free AES context after use by calling mbedtls_free_aes
- Update NimBLE submodule to resolve issue observed while using mbedTLS as
  crypto stack during security exchanges.

Closes BT-1435, BT-1434
2021-03-24 13:26:36 +00:00
Prasad Alatkar
5d80d551cf NimBLE: Add error prints for ACL buffer exhaustion in NPL 2021-03-24 13:25:38 +00:00
David Cermak
86bcd9fc21 tcp_transport: Fix error handling of esp_tls_init() 2021-03-24 12:24:23 +00:00
Armando
c05fde2cbf efuse: revert ESP_LOG to ESP_EARLY_LOG in src/esp_efuse_utility.c
Closes https://github.com/espressif/esp-idf/issues/6660
2021-03-24 11:28:45 +00:00