Commit Graph

12082 Commits

Author SHA1 Message Date
Darian Leung
787873b86b freertos: Fix CONFIG_SPIRAM_ALLOW_STACK_EXTERNAL_MEMORY description
This commit fixes the ambiguity in the description of the
SPIRAM_ALLOW_STACK_EXTERNAL_MEMORY configuration option.
2021-05-26 21:04:28 +08:00
David Čermák
36e6938920 Merge branch 'feature/lwip_ipv6_automatic_coap_asio' into 'master'
asio coap: If LWIP IPV6 is disabled, automatically don't build asio & coap

Closes IDF-2832

See merge request espressif/esp-idf!13616
2021-05-24 12:39:37 +00:00
David Čermák
5801712caf Merge branch 'bugfix/start_emac_after_phy_reset' into 'master'
esp_eth: speed up Ethernet start up process

Closes WIFI-3563, WIFI-3564, WIFI-3687, and IDFGH-5269

See merge request espressif/esp-idf!13461
2021-05-24 09:30:14 +00:00
Jiang Jiang Jian
da988bed0f Merge branch 'bugfix/btdm_delete_adv_priority_high' into 'master'
components/bt: Delete BLE ADV priority high

Closes BT-1573

See merge request espressif/esp-idf!13054
2021-05-24 03:58:32 +00:00
Angus Gratton
49ab5a61e7 Merge branch 'update_copyright_notice_security' into 'master'
asio, libsodium: update copyright notice

See merge request espressif/esp-idf!13558
2021-05-20 23:33:27 +00:00
Angus Gratton
e305f29382 asio coap: If LWIP IPV6 is disabled, automatically don't build asio & coap
- Removes need to manually exclude these components as shown at
  https://github.com/espressif/esp-idf/issues/3781#issuecomment-825742378

- Hide the config for these components if IPV6 is disabled

- The components are still included in the build, but with no source
  files
2021-05-20 19:53:00 +10:00
Angus Gratton
e928d57663 Merge branch 'doc/include_bootloader_random' into 'master'
docs: Add RNG functions to API reference

See merge request espressif/esp-idf!13519
2021-05-20 09:14:55 +00:00
Angus Gratton
535e9ea594 Merge branch 'bugfix/partition_remove_strlcpy' into 'master'
partition: Replace strlcpy() with strncpy()

See merge request espressif/esp-idf!13603
2021-05-20 07:14:11 +00:00
Angus Gratton
5c812742c6 docs: Add description for Linux getrandom() function 2021-05-20 17:08:17 +10:00
Michael (XIAO Xufeng)
2e4d3ad880 Merge branch 'feature/bringup_esp32s3beta_cmake_sdmmc' into 'master'
esp32s3: add sdmmc support

Closes IDF-1569

See merge request espressif/esp-idf!8304
2021-05-20 04:22:11 +00:00
Angus Gratton
eecf70efd0 partition: Replace strlcpy() with strncpy()
Regression in ede477ea65 for host tests only - ESP-IDF supports
strlcpy() but strlcpy & strlcat are currently no-ops in the host
tests (to avoid libbsd dependency).
2021-05-20 09:51:29 +10:00
Michael (XIAO Xufeng)
d6680b689b Merge branch 'feature/s3beta3_crypto_bringup' into 'master'
crypto: initial S3 Beta 3 bringup and testing for SHA/AES/RSA/flash enc

Closes IDF-3004

See merge request espressif/esp-idf!12960
2021-05-19 11:22:05 +00:00
Angus Gratton
9f149a647d Merge branch 'bugfix/fix_mbedtls_cmake_warning' into 'master'
mbedtls: fixed CMake build warning

Closes IDFGH-4975

See merge request espressif/esp-idf!13568
2021-05-19 00:43:50 +00:00
Angus Gratton
e886aa1da4 Merge branch 'update_copyright_notice_bootloader_support' into 'master'
bootloader: update copyright notice, part 2

See merge request espressif/esp-idf!13495
2021-05-19 00:26:35 +00:00
Ivan Grokhotkov
38d902f544 Merge branch 'feature/gdbstubs_rt' into 'master'
Extension of GDBStub component for handling GDB by serial port at runtime.

See merge request espressif/esp-idf!10312
2021-05-18 17:14:51 +00:00
Angus Gratton
7c11d95af3 Merge branch 'bugfix/partition_table_integrity_check' into 'master'
paritition_table: Verify the partition table md5sum when loading in the app

Closes IDF-2411

See merge request espressif/esp-idf!12252
2021-05-18 08:40:32 +00:00
Angus Gratton
8d7599cc3d Merge branch 'bugfix/pthread_destructor_sequencing' into 'master'
pthread: Fix behaviour when pthread destructor calls pthread_getspecific/pthread_setspecific

Closes IDFGH-4842

See merge request espressif/esp-idf!13567
2021-05-18 08:26:38 +00:00
Angus Gratton
0fc9253ed9 lwip: Update public port-layer headers with c++ guards, sdkconfig include
This doesn't fix any particular bug, just to meet best practices. Although
including some LWIP headers from C++ files may have caused linker issues.
2021-05-18 16:09:17 +10:00
Angus Gratton
e14edecf5f docs: Add random number generation to the API Reference System section 2021-05-18 16:05:42 +10:00
Marius Vikhammer
9b4ba3d707 crypto: initial S3 Beta 3 bringup and testing for SHA/AES/RSA/flash enc 2021-05-18 11:25:41 +08:00
morris
0c25793b06 esp_eth: restart negotiation in esp_eth_start 2021-05-18 11:16:32 +08:00
morris
83f2d802ce esp_eth: fix default PHY reset gpio
Closes https://github.com/espressif/esp-idf/issues/7034
2021-05-18 11:16:05 +08:00
Angus Gratton
9235754d4c esp_rom: Allow passing any type of data pointer to md5, remove unchecked size on digest pointer 2021-05-18 01:32:59 +00:00
Angus Gratton
ede477ea65 paritition_table: Verify the partition table md5sum when loading the app
Additionally, always enable the partition MD5 check if flash encryption is on in
Release mode. This ensures the partition table ciphertext has not been modified
(CVE-2021-27926).

The exception is pre-V3.1 ESP-IDF bootloaders and partition tables, which
don't have support for the MD5 entry.
2021-05-18 01:32:59 +00:00
Angus Gratton
6713291dad pthread: Fix behaviour when pthread destructor calls pthread_getspecific/pthread_setspecific
Update as per specification at https://pubs.opengroup.org/onlinepubs/009695399/functions/pthread_key_create.html

Specifically:

- Before a destructor is called then the value for the corresponding key is
  already set to NULL.

- If a destructor calls pthread_setspecific() to assign a non-NULL value then
  this destructor is called again, after all existing non-NULL values have been
  called.

Adds a test for this relatively complex behaviour.

Closes https://github.com/espressif/esp-idf/issues/6643
2021-05-18 10:21:34 +10:00
Mahavir Jain
f1caa2971d Merge branch 'feature/extmem_alloc_for_s2' into 'master'
External memory allocation policy support  for ESP32-S2 (GitHub PR)

Closes IDFGH-5226

See merge request espressif/esp-idf!13492
2021-05-17 16:39:25 +00:00
Ivan Grokhotkov
8e66e554cb Merge branch 'feature/partition_type_any' into 'master'
esp_partition: add ESP_PARTITION_TYPE_ANY for iterating over all partition types (Github PR)

Closes IDFGH-4783

See merge request espressif/esp-idf!13434
2021-05-17 16:19:41 +00:00
Michael (XIAO Xufeng)
6265759ca3 Merge branch 'bugfix/usb_serial_write_failed' into 'master'
usb_serial_jtag: fix the bug that cannot write with usb_jtag

See merge request espressif/esp-idf!13540
2021-05-17 12:10:59 +00:00
Mahavir Jain
f339506324 bt: use generic SPIRAM config option for memory alloc policy 2021-05-17 10:43:42 +00:00
Marcel Kottmann
cf4b9ef854 mbedtls: Allow external mem alloc for ESP32-S2
Closes https://github.com/espressif/esp-idf/pull/6998
Closes IDFGH-5226
2021-05-17 10:43:42 +00:00
Marius Vikhammer
01664923f6 mbedtls: fixed CMake build warning
Building mbedtls with CMake would warn that:

"A private source from a directory other than that of target "mbedcrypto
 has a relative path"

This happened due to some of the CMake variables listing sources could be empty.

Changed to only use target_sources in the code-path where we set the sources,
so we only call target_sources will non-empty variables.

Closes https://github.com/espressif/esp-idf/issues/6767
2021-05-17 17:15:38 +08:00
baohongde
721a0c3415 components/bt: Delete BLE ADV priority high 2021-05-17 17:07:14 +08:00
Angus Gratton
262ab9f4c2 Merge branch 'feature/esp32_pico_v3' into 'master'
esp32/psram: ESP32-PICO-V3 does not have PSRAM and does not support external PSRAM

Closes IDF-1845

See merge request espressif/esp-idf!13419
2021-05-17 09:01:45 +00:00
Angus Gratton
190063a6b3 Merge branch 'bugfix/revert_freertos_min_stack_size' into 'master'
freertos: revert default stack size of idle tasks (from 2304 to 1536)

Closes IDF-2540

See merge request espressif/esp-idf!13553
2021-05-17 08:42:26 +00:00
Ivan Grokhotkov
1ca2afd982 Merge branch 'bugfix/add-MAXNAMLEN-definition' into 'master'
[newlib]add the definition of MAXNAMLEN in sys/dirent.h

Closes IDF-3219

See merge request espressif/esp-idf!13535
2021-05-17 08:03:35 +00:00
Mahavir Jain
fe02ef0fed Merge branch 'feature/ota_image_size' into 'master'
esp_https_ota: Added esp_https_ota_get_image_size() to retrieve total size of OTA update

Closes IDFGH-5096

See merge request espressif/esp-idf!13496
2021-05-17 05:31:58 +00:00
Michael (XIAO Xufeng)
12f42f84e7 Merge branch 'bugfix/s3_i2c_fifo_access' into 'master'
bugfix ll_hal: Access ESP32-S3 I2C FIFO using 32bits

See merge request espressif/esp-idf!13538
2021-05-17 02:49:43 +00:00
Jan Brudný
e20826cc7f libsodium: update copyright notice 2021-05-17 02:58:32 +02:00
Jan Brudný
2d0895e9a9 asio: update copyright notice 2021-05-17 02:56:33 +02:00
Michael (XIAO Xufeng)
8409485b22 Merge branch 'doc/fix_misleading_of_mcpwm_capture_enable_doc' into 'master'
driver/mcpwm: fix the misleading of mcpwm_capture_enable parameters

Closes IDFGH-3000

See merge request espressif/esp-idf!13497
2021-05-16 15:15:26 +00:00
Michael (XIAO Xufeng)
2c1cc506bf Merge branch 'feature/tinyusb_error_check' into 'master'
tinyusb: use the generic error check macros

Closes IDF-3033

See merge request espressif/esp-idf!13015
2021-05-16 14:11:21 +00:00
Michael (XIAO Xufeng)
050b1660b5 Merge branch 'feature/regi2c_add_lock' into 'master'
regi2c: add a spinlock for accessing (reg)I2C devices

Closes IDF-2978

See merge request espressif/esp-idf!12957
2021-05-16 14:04:55 +00:00
Omar Chebib
dda7001c25 freertos: revert minimum stack size from 2304 to 1536 2021-05-14 11:12:28 +08:00
Angus Gratton
b7ad39f694 Merge branch 'bugfix/pthread_docs' into 'master'
Fix and improve pthread docs, create pthread example

Closes IDF-731 and IDFGH-5085

See merge request espressif/esp-idf!13314
2021-05-14 01:19:02 +00:00
Angus Gratton
c6b2191643 pthread: Cleanups for attr init/destroy
* Zero all fields of the attr structure when initializing
* Can implement pthread_attr_destroy() by calling pthread_attr_init()
2021-05-14 10:03:11 +10:00
Angus Gratton
a6dea64106 pthread: Add support for PTHREAD_COND_INITIALIZER
Includes unit test for condition variables in C (previous test was C++ only)
2021-05-14 10:03:11 +10:00
Jiang Jiang Jian
73b95248b4 Merge branch 'bugfix/addba_pmf_issue_fix' into 'master'
Fix aggregation issue in PMF connection and validate FTM config params

Closes WIFI-3205

See merge request espressif/esp-idf!13242
2021-05-13 16:30:06 +00:00
Nachiket Kukade
701484667a esp_wifi: Update wifi lib
Update wifi library with below fixes -
1. Fix Block Ack setup issue in PMF scenario
2. Validate FTM Initiator config parameters and propagate status
2021-05-13 20:56:54 +05:30
Prasad Alatkar
03634ea64b NimBLE: Update NimBLE submodule to reattempt conn and to fix vulnerability
* Add workaround to overcome connection establishment failure error.

* Fix vulnerability during public key exchange in secure connection
2021-05-13 19:10:19 +05:30
Jiang Jiang Jian
fb872f68ec Merge branch 'bugfix/wifi_modem_sleep_percentage_optimize' into 'master'
optimize wifi station modem sleep percentage

Closes WIFI-3056

See merge request espressif/esp-idf!13534
2021-05-13 12:21:50 +00:00