Commit Graph

11857 Commits

Author SHA1 Message Date
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
Krzysztof Budzynski
1953af4fb2 Merge branch 'doc/c3_system_api' into 'master'
docs: update system api reference chapters for C3

Closes IDF-2327 and IDF-2320

See merge request espressif/esp-idf!12730
2021-03-24 10:28:19 +00:00
Omar Chebib
56fe28fb23 build: fix cache issue when .flash.text section alignment is uncommon
rodata dummy section has now the same alignment as flash text section,
and at least the same size. For these reasons, the cache will map
correctly the following rodata section.
2021-03-24 16:00:48 +08:00
ronghulin
fddaaef06e fix phy init memory leak 2021-03-24 15:44:48 +08:00
0xFEEDC0DE64
63a7a8489b Init phy data to default if invalid in flash partition to avoid bootloops
Signed-off-by: ronghulin <ronghulin@espressif.com>

Merges https://github.com/espressif/esp-idf/pull/6610
2021-03-24 15:44:48 +08:00
zwj
dc3a5a9335 fix multi-connection pair failed 2021-03-24 14:58:21 +08:00
Angus Gratton
c676c94445 Merge branch 'bugfix/fix_coredump_fake_stack_bug' into 'master'
espcoredump: Fix bugs related to (fake) stacks

See merge request espressif/esp-idf!12581
2021-03-24 06:55:42 +00:00
zwj
6e343bead2 add option to enable/disable esp32 controller RPA 2021-03-24 14:42:35 +08:00
Omar Chebib
49f5fb5112 esp_system: add VDD_SDIO power domain configuration to documentation
Add a warning in `sleep_modes` doc page to explain how to keep
VDD_SDIO power domain ON.
2021-03-24 12:04:57 +08:00
Omar Chebib
87325fa964 esp_system: add VDD_SDIO power domain configuration for light sleep
VDD_SDIO power domain can now be configured for light sleep
by the application. It is now possible to keep the power domain
ON during light sleep, keeping the GPIOs connected to it powered.
The power domain will, by default be:
- Kept ON if CONFIG_ESP_SYSTEM_PD_FLASH is not set
- Turned OFF if not set

The application can still force it to be ON by calling
`esp_sleep_pd_config(ESP_PD_DOMAIN_VDDSDIO, ESP_PD_OPTION_ON);`
2021-03-24 12:04:57 +08:00
“YangZhao”
8e282c7fe5 Fix the bug of modem sleep which may lead to the crash issue "assert(-218959118,0)" 2021-03-24 11:39:00 +08:00
Mahavir Jain
b603a0bea0 Merge branch 'feature/multiple_prs_from_github' into 'master'
Feature/multiple PRs from github

Closes IDFGH-3877, IDFGH-4090, IDFGH-4641, IDFGH-4666, and IDFGH-4854

See merge request espressif/esp-idf!12858
2021-03-24 03:29:28 +00:00
ronghulin
1e7b43733c bugfix: keep wakeup state during csa 2021-03-24 10:30:55 +08:00
Angus Gratton
04652619aa Merge branch 'bugfix/timer_divider_overflow' into 'master'
timer: removed downcasting when setting divider

Closes IDFCI-515

See merge request espressif/esp-idf!12840
2021-03-24 02:04:20 +00:00
Jiang Jiang Jian
6acebbeebd Merge branch 'bugfix/fix_wdt_timeout_when_enable_rf' into 'master'
esp_wifi: fix wdt timeout when enable rf

Closes WIFI-3541

See merge request espressif/esp-idf!12834
2021-03-23 16:10:07 +00:00
XieWenxiang
f9cdd1d6c9 component/bt: Modify some ambiguous descriptions 2021-03-23 23:08:05 +08:00
Valeri
77922a24c3 esp_hid: add missing static qualifier
Closes https://github.com/espressif/esp-idf/pull/5778
Closes IDFGH-3877
2021-03-23 17:38:56 +05:30
Jon Sailor
8f064dabcd tinyusb: add 'extern C' bit to tusb_console.h
Public headers need the "if __cplusplus, extern C" boilerplate. Otherwise, C++
sources which include the header will look for a name-mangled symbol and fail
at link time.

Closes https://github.com/espressif/esp-idf/pull/6455
Closes IDFGH-4641
2021-03-23 17:36:34 +05:30
Angus Gratton
2d43e46a2b Merge branch 'fix/dont_disable_uart_dl_mode_by_default' into 'master'
bootloader/ ESP32_ECO3: Do not disable UART download mode by default

Closes IDF-2446

See merge request espressif/esp-idf!12603
2021-03-23 10:57:30 +00:00
Mahavir Jain
1ff4afd9ef Merge branch 'feature/cert_key_length_options' into 'master'
esp_http_client: Add cert and key length options, add config option for HTTP digest auth

Closes IDFGH-4752 and IDF-642

See merge request espressif/esp-idf!12736
2021-03-23 10:54:33 +00:00
Angus Gratton
fa2946d651 Merge branch 'feature/support_esp32s3_beta_3' into 'master'
Support ESP32S3 beta 3 target

Closes IDF-2908

See merge request espressif/esp-idf!12661
2021-03-23 10:17:58 +00:00
Angus Gratton
7ebefe2e2b Merge branch 'bugfix/check_a_time_after_deepsleep' into 'master'
Fix esp32s2 timekeeping on deep sleep issue

See merge request espressif/esp-idf!12623
2021-03-23 08:15:34 +00:00
Aditya Patwardhan
2095148b31 bootloader/ ESP32_ECO3: Do not disable UART download mode by default 2021-03-23 08:15:32 +00:00
Shubham Kulkarni
4f6e0c1d27 esp_http_client: Add config option for HTTP Digest auth 2021-03-23 11:58:35 +05:30
0xFEEDC0DE64
a9c6fbe8d3 Added cert and key length options
Closes https://github.com/espressif/esp-idf/pull/6556

Signed-off-by: Shubham Kulkarni <shubham.kulkarni@espressif.com>
2021-03-23 11:58:35 +05:30
Marius Vikhammer
c24e3aa931 soc: update efuse address 2021-03-23 11:34:18 +08:00
Marius Vikhammer
2711c55dc6 timer: removed downcasting when setting divider
Dividers bigger than 65536 are already handled in ll,
so we shouldnt downcast it.
2021-03-23 11:05:16 +08:00
Jiang Jiang Jian
5978352cf9 Merge branch 'bugfix/ble_tx_power_mapping' into 'master'
Bluetooth: Tx power level for ESP32C3 and IRAM_ATTR fix for ESP32S3 controller

See merge request espressif/esp-idf!12651
2021-03-23 03:04:30 +00:00
ninh
1c9fec8c8a esp_wifi: fix wdt timeout when enable rf 2021-03-23 10:28:01 +08:00
Jiang Jiang Jian
f38871b4b3 Merge branch 'bugfix/crash_on_enabling_verbose_logs' into 'master'
Fixes issue of crashing when verbose logs are enabled.

Closes WIFI-3423

See merge request espressif/esp-idf!12414
2021-03-22 12:52:29 +00:00
Angus Gratton
9122e530be Merge branch 'refactor/freertosconfig_h' into 'master'
freertos: common config header

Closes IDF-2389

See merge request espressif/esp-idf!12485
2021-03-22 09:04:41 +00:00
Michael (XIAO Xufeng)
67ba80f2ec Merge branch 'bugfix/reduce_the_consumption_of_touch_sensor_during_deep_sleep' into 'master'
fix: reduce the consumption of touch sensor during deep sleep

See merge request espressif/esp-idf!12248
2021-03-22 07:10:44 +00:00
aditi_lonkar
e478d19b45 esp_wifi: Fixes issue of crashing when verbose logs are enabled. 2021-03-22 06:58:16 +00:00
Michael (XIAO Xufeng)
ed624c48f6 Merge branch 'feature/flash_unique_id' into 'master'
spi_flash: add a new feature to read the unique id of the flash chip

Closes IDFGH-2085

See merge request espressif/esp-idf!11421
2021-03-22 06:51:21 +00:00
Angus Gratton
54edd4fc58 Merge branch 'feature/wdt_c3' into 'master'
wdt: Fix RTC_SLOW_CLK for chips, corrects WDT timeout.

Closes IDF-2118 and IDF-2332

See merge request espressif/esp-idf!12796
2021-03-22 06:48:58 +00:00
Angus Gratton
1581744c10 Merge branch 'feature/main_task_affinity_pr6627' into 'master'
Allow selection of different core for main task

Closes IDFGH-4828

See merge request espressif/esp-idf!12654
2021-03-22 06:46:24 +00:00
Michael (XIAO Xufeng)
3a90d51831 Merge branch 'refactor/using_isr_callback_in_timer_example' into 'master'
TIMG: clean up timer example and add example test

Closes IDF-2722, IDF-2766, and IDF-2347

See merge request espressif/esp-idf!12218
2021-03-22 06:36:32 +00:00
Renz Bagaporo
021cce3f56 freertos: formatting fixes for config file 2021-03-22 13:35:49 +08:00
Renz Bagaporo
39cf818838 freertos: common config header 2021-03-22 12:19:03 +08:00
Omar Chebib
e533431095 espcoredump: Fix bugs related to (fake) stacks
Add support to tasks stacks in RTC DRAM. Before this fix, any stack
in RTC DRAM would have been considered as corrupted, whichi is not
the case.
Fix a bug related to wrong parameters passed to esp_core_dump_get_stack.
Fix a bug reading fake stack memory, triggering a memory violation.

* Closes https://github.com/espressif/esp-idf/issues/6751
* Merges https://github.com/espressif/esp-idf/pull/6750
2021-03-22 11:38:21 +08:00
Jiang Jiang Jian
6978fe58b1 Merge branch 'mesh/ps_duty_signaling_master' into 'master'
mesh/ps: network duty signaling

See merge request espressif/esp-idf!12643
2021-03-19 11:34:47 +00:00
Mahavir Jain
6b1a83b38b Merge branch 'bugfix/fix_rtc_memory_region_name' into 'master'
esp32c3: correct name for RTC memory region in heap

See merge request espressif/esp-idf!12790
2021-03-19 04:53:39 +00:00
Renz Bagaporo
97a2d9552e newlib: persist rtc clk corrections 2021-03-19 12:04:06 +08:00
Renz Bagaporo
02c6ffe5a7 esp_hw_support: add test for rtc clk compensation 2021-03-19 12:04:06 +08:00
shenjun
f9fe524c32 mesh/ps: network duty signaling 2021-03-18 16:22:19 +00:00
KonstantinKondrashov
aa1338bf23 wdt: Fix timeout and RTC_SLOW_CLK
RTC_SLOW_CLK
ESP32:    150kHz
ESP32-S2:  90kHz
ESP32-S3: 150kHz
ESP32-C3: 150kHz
2021-03-19 00:15:18 +08:00
Mahavir Jain
277e277690 esp32c3: correct name for RTC memory region in heap 2021-03-18 17:53:26 +05:30
David Čermák
3bc3407aeb Merge branch 'bugfix/lwip_ppp_echo_interval_config' into 'master'
lw-IP: added configuration values for echo interval

Closes IDFGH-3098

See merge request espressif/esp-idf!12487
2021-03-18 11:59:07 +00:00
Michael (XIAO Xufeng)
4028d4e083 Merge branch 'feature/mcpwm_add_peripheral_signal_list' into 'master'
mcpwm: added peripheral signal description list

See merge request espressif/esp-idf!12480
2021-03-18 10:07:59 +00:00
Jiang Jiang Jian
d01c951d46 Merge branch 'bufix/ag_deep_copy_crash' into 'master'
components/bt: Fix crash in btc_hf_arg_deep_copy when name or number is NULL

Closes BT-1355

See merge request espressif/esp-idf!12338
2021-03-18 09:49:57 +00:00
Jiang Jiang Jian
e5ffac739f Merge branch 'mesh/support_for_chain_topology' into 'master'
mesh: support for chain topology

See merge request espressif/esp-idf!12759
2021-03-18 07:27:54 +00:00
Marius Vikhammer
e83d213c56 rtc: add rtc related changes from feature/support_7.2.7_soc 2021-03-18 15:23:31 +08:00
suren.gabrielyan
cc78923d23 docs: Update OpenSSL API documents
Closes IDF-2541
2021-03-18 10:42:29 +04:00
Michael (XIAO Xufeng)
d5543c3dae Merge branch 'bugfix/spi_slv_dual_boad_test_slv_fail_issue' into 'master'
spi: update slv dual board test for ci due to no pullup resistor on io10 on c3

See merge request espressif/esp-idf!12332
2021-03-18 06:41:28 +00:00
David Čermák
3323e2e0a8 Merge branch 'bugfix/lwip_add_option_to_enable_lwip_netif_api' into 'master'
lw-IP: added config option to enable LWIP_NETIF_API

Closes IDF-1687

See merge request espressif/esp-idf!12237
2021-03-18 06:24:26 +00:00
Jiang Jiang Jian
d38eabf0c2 Merge branch 'bugfix/spi_flash_compatible_with_rom_c3_and_s3' into 'master'
spi_flash: make spiflash compatible with ESP32C3 and ESP32S3 ROM

See merge request espressif/esp-idf!12713
2021-03-18 04:08:06 +00:00
Marius Vikhammer
2aead8ba57 Support ESP32S3 Beta 3 target
Update ROM API. Port changes from bringup branch.
2021-03-18 10:24:22 +08:00
KonstantinKondrashov
a90f29fced wdt: Updates 2021-03-18 02:31:28 +08:00
Jiri Schiebel
ece7cb4545 lwip: added configuration values for echo interval 2021-03-17 17:54:30 +00:00
Jiri Schiebel
0c58d5fc6a lwip: added config option to enable LWIP_NETIF_API 2021-03-17 17:53:07 +00:00
Marius Vikhammer
e2919eca8e soc: add soc headers from S3 fpga bringup branch 2021-03-17 18:47:51 +08:00
wangmengyang
3df07164c1 components/bt: shorten some log messages for bluedroid 2021-03-17 16:52:34 +08:00
wangmengyang
ab8e488c38 component/bt: [ESP32S3] fix missing IRAM_ATTR for function in libbtdm_app.a 2021-03-17 16:52:34 +08:00
wangmengyang
528964f12c fixed incorrect Tx power mappings for ESP32C3 chip 2021-03-17 16:52:26 +08:00
morris
ff65363ada mcpwm: configure gpio using by lookup table 2021-03-16 21:54:00 +08:00
morris
3b66958b33 mcpwm: added peripheral signal description list 2021-03-16 21:54:00 +08:00
morris
f5ca47c0fc mcpwm: rename macros related to soc capbility 2021-03-16 21:53:59 +08:00
morris
5a520cacf1 timer_group: correct timer_ll_set_divider 2021-03-16 17:56:37 +08:00
Michael (XIAO Xufeng)
be30289364 Merge branch 'feature/c3_example_tests' into 'master'
CI: add Example_GENERIC for C3

Closes IDF-2935

See merge request espressif/esp-idf!12557
2021-03-16 09:43:38 +00:00
Mahavir Jain
d20cb254de Merge branch 'bugfix/sign_app_by_rsa_when_require_signed_app' into 'master'
secure_boot: Secure Boot V2 verify app signature on update (without Secure boot)

Closes IDF-1384

See merge request espressif/esp-idf!12697
2021-03-16 09:31:38 +00:00
Michael (XIAO Xufeng)
053b18cbeb Merge branch 'feature/lcd_ll_driver' into 'master'
lcd: add LL driver for esp32-s3

Closes IDF-2845

See merge request espressif/esp-idf!12644
2021-03-16 08:38:19 +00:00
Armando
dd8076acf4 spi: update slv dual board test for ci due to no pullup resistor on io10 on c3 2021-03-16 15:28:17 +08:00
shenjun
0ce0e4d569 mesh: support for chain topology 2021-03-16 14:17:13 +08:00
Michael (XIAO Xufeng)
7032cedca7 Merge branch 'bugfix/freemodbus_fix_mbm_event_processing' into 'master'
Bugfix/freemodbus fix mbm event processing

Closes IDFGH-3741

See merge request espressif/esp-idf!10568
2021-03-15 17:27:03 +00:00
Michael (XIAO Xufeng)
63f799cd78 Merge branch 'bugfix/check_spi_master_cmd_test_fail' into 'master'
spi_master: fix cmd test ringbufferReturn issue

Closes IDFCI-493

See merge request espressif/esp-idf!12724
2021-03-15 12:32:50 +00:00
Angus Gratton
6a29b45bd4 secure boot v2: Fix issue checking multiple signature blocks on OTA update 2021-03-15 12:30:20 +00:00
Angus Gratton
d709631393 secure boot: Add boot check for SBV2 "check app signature on update"
As this mode uses the public keys attached to the existing app's signatures to
verify the next app, checking that a signature block is found on boot prevents
the possibility of deploying a non-updatable device from the factory.
2021-03-15 12:30:20 +00:00
KonstantinKondrashov
95564b4687 secure_boot: Secure Boot V2 verify app signature on update (without Secure boot)
- ESP32 ECO3, ESP32-S2/C3/S3
2021-03-15 12:30:20 +00:00
Marius Vikhammer
91439e3818 docs: updated system api-reference chapters for C3 2021-03-15 18:51:12 +08:00
Ivan Grokhotkov
1067b28707 Merge branch 'bugfix/dirent-riscv-header' into 'master'
vfs: use sys/dirent.h from newlib

Closes IDF-2913

See merge request espressif/esp-idf!12614
2021-03-15 08:54:46 +00:00
aleks
868e123336 freemodbuss: fix event processing after merge 2021-03-15 09:45:49 +01:00
Ivan Grokhotkov
1a7c1b095d Merge branch 'bugfix/nvs_missing_API_arg_checks' into 'master'
Random NVS fixes

Closes IDF-1462 and IDF-2900

See merge request espressif/esp-idf!12649
2021-03-15 07:13:10 +00:00
fuzhibo
6b361ed70f fix: reduce the consumption of touch sensor during deep sleep 2021-03-15 03:59:54 +00:00
Cao Sen Miao
78a2dbe42a spi_flash: add a new function to support read the unique id
Close https://github.com/espressif/esp-idf/pull/4255
2021-03-15 11:40:33 +08:00
Armando
0fb93c3726 spi_master: fix cmd test ci failure 2021-03-15 11:31:38 +08:00
Marius Vikhammer
c85d949c1f ci: run Example_GENERIC for C3
Add support for running example_GENERIC tests for C3 on label.

Fix examples that fail.
2021-03-15 10:27:07 +08:00
KonstantinKondrashov
63a4dbb8d2 esp32c3: Universal MAC Address strategy for ESP32C3 is the same as for ESP32 (4 reserved MAC-addresses per device) 2021-03-15 10:26:20 +08:00
KonstantinKondrashov
67ba1c8d57 esp32c3: Updates a description in Kconfig about Universal MAC Address strategy 2021-03-15 10:26:20 +08:00
morris
d0be56b8fe lcd: add LL driver for esp32-s3 2021-03-13 22:31:30 +08:00
David Čermák
c49d03b8eb Merge branch 'bugfix/tcp_transport_ws_netif_test' into 'master'
tcp_transport:  Fix misuse of ws-transport in set-interface in Tests

Closes IDFCI-492

See merge request espressif/esp-idf!12707
2021-03-12 13:13:40 +00:00
Angus Gratton
ac8d5fb552 Merge branch 'bugfix/fix_ld_relinking_on_modification' into 'master'
build: fix linker scripts edition not triggering a rebuild

Closes IDF-1562

See merge request espressif/esp-idf!12561
2021-03-12 11:16:58 +00:00
jiangguangming
ae04518a32 spi_flash: make spiflash compatible with ESP32C3 and ESP32S3 ROM 2021-03-12 17:31:13 +08:00
Michael (XIAO Xufeng)
23eff08638 Merge branch 'feature/gpio_esp32c3_add_deprecated_header' into 'master'
Added missing ESP32-S3 target for /rom/gpio.h include

Closes IDFGH-4870

See merge request espressif/esp-idf!12648
2021-03-12 07:49:30 +00:00
Omar Chebib
5371231935 build: fix linker scripts edition not triggering a rebuild
Fix the dependencies in CMakeLists files for triggering a relink
when linker script file is modified.
2021-03-12 07:48:32 +00:00
Jiang Jiang Jian
c4fa75e62c Merge branch 'feature/wifi_support_sta_sleep_at_disconnected' into 'master'
esp_wifi: support to sleep for station at disconnected status

Closes WIFI-3022, FC-82, and FC3-119

See merge request espressif/esp-idf!12693
2021-03-12 07:35:13 +00:00
zwj
b3a2fedfde fix ble connection event report remote address error 2021-03-12 11:49:52 +08:00
David Cermak
70361fc35d tcp_transport/test: Fix wrong use of transport in set-interface 2021-03-11 19:21:00 +00:00
ninh
deb94f4768 esp_wifi: support sta to sleep at disconnected status 2021-03-12 00:20:09 +08:00
David Čermák
bcb5e72552 Merge branch 'fix/fuzzer_host_test_eth' into 'master'
mdns: removed freeRTOS headers dependencies from fuzzer tests

See merge request espressif/esp-idf!12284
2021-03-11 16:14:22 +00:00
Shu Chen
6792024add esp_common: add generic check macros
Add four check maros:
* ESP_RETURN_ON_ERROR()
* ESP_GOTO_ON_ERROR()
* ESP_RETURN_ON_FALSE()
* ESP_GOTO_ON_FALSE()

Also add a `xx_ISR` version for each of them, which can be used in ISR.
2021-03-11 17:38:22 +08:00
suren.gabrielyan
55716945a9 mdns: Removed freeRTOS dependancies from fuzzer tests 2021-03-11 08:57:36 +00:00
xiehang
4d8a1aefbd esp_wifi: Fix the second distribution network failure of ESPTouch v2
Closes https://github.com/espressif/esp-idf/issues/6679
2021-03-11 07:49:06 +00:00
Mahavir Jain
636c4ec158 Merge branch 'feature/support_ws_user_ctx' into 'master'
httpd: Support user_ctx in websocket handler callback request

Closes IDFGH-4732

See merge request espressif/esp-idf!12635
2021-03-11 04:55:29 +00:00
Jiang Jiang Jian
ae65cffff0 Merge branch 'bugfix/esp32c3_light_sleep_default_params_optimize' into 'master'
light sleep: some default parameters optimization

See merge request espressif/esp-idf!12461
2021-03-11 03:33:46 +00:00
Angus Gratton
fd164b82b6 Merge branch 'refactor/move_from_xtensa' into 'master'
Movements from xtensa

Closes IDF-2164

See merge request espressif/esp-idf!10556
2021-03-11 00:24:25 +00:00
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