Commit Graph

26043 Commits

Author SHA1 Message Date
Frantisek Hrbata
c4fd8a9114 tools: fix idf.py gdb memory access before remote target is connected
Currently loading of esp32s3 ROM ELF symbols fails with
"Cannot access memory at address 0x3ff194ad". Let's perform
add-symbol-file after connection to the target.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2023-01-24 09:58:04 +01:00
KonstantinKondrashov
905f9bf25f examples(efuse): Set CONFIG_SECURE_ENABLE_SECURE_ROM_DL_MODE
For efuse example test, we set CONFIG_SECURE_ENABLE_SECURE_ROM_DL_MODE=y
by default because in the python test we expect secure boot is in RELEASE mode
2023-01-24 16:27:05 +08:00
KonstantinKondrashov
1cb0472520 bootloader_support(esp32c2): Fix WR_DIS_RD_DIS burn for secure boot key
SB key is left readable, the corresponding bit in RD_DIS is unset.
We set write-protection for RD_DIS to ensure that the SB key is always readable.
2023-01-23 21:35:31 +08:00
KonstantinKondrashov
07bf145e06 doc: Update hmac article 2023-01-23 21:03:00 +08:00
KonstantinKondrashov
5d37e26d35 security: Adds new APIs to check that all eFuse security features are enabled correctly 2023-01-23 21:02:55 +08:00
KonstantinKondrashov
7a23bf19be esp_hw_support(esp32): If the MAC_FACTORY CRC check fails, then esp_efuse_mac_get_default returns INVALID_CRC instead of abort
Closes https://github.com/espressif/esp-idf/issues/10401
2023-01-23 20:02:16 +08:00
Tomas Rezucha
80626f17c0 usb: Update TinyUSB version 2023-01-20 09:17:04 +01:00
Alexey Lapshin
fa46e1b491 efuse: fix esp_efuse_utility_write_reg() declaration 2023-01-19 14:29:26 +07:00
Djordje Nedic
69f500c680 bugfix: Fix windows path case sensitivity
This commit fixes an issue where paths on Windows are case insensitive, for instance when setting the build folder its name would be converted to lowercase.

The culprit is our realpath() function, that was calling os.path.normcase() internally, since we are removing that call it makes sense to just remove the function entirely and call os.path.realpath() wherever necessary.

Closes https://github.com/espressif/esp-idf/issues/10282
2023-01-18 11:25:25 +01:00
morris
c41bb46d92 Merge branch 'bugfix/ledc_glb_clk_compiler_warning_v5.0' into 'release/v5.0'
ledc: Fix -Werror=maybe-uninitialized warning on glb_clk variable on ESP32 (v5.0)

See merge request espressif/esp-idf!21941
2023-01-17 10:30:11 +08:00
morris
1884442a80 rmt: no auto light sleep if xtal is working as the clock source 2023-01-16 10:20:40 +08:00
Jiang Jiang Jian
e894e9d68f Merge branch 'bugfix/clear_pmk_cache_for_missing_reason_codes_v5.0' into 'release/v5.0'
Fix missing disconnected callback (Backport v5.0)

See merge request espressif/esp-idf!22042
2023-01-14 10:23:02 +08:00
Vilem Zavodny
4d9d8c5eca examples/spi_lcd_touch: Fixed colors on ILI9341.
(cherry picked from commit 0ea1317983)
2023-01-13 13:42:30 +01:00
Shyamal Khachane
e4f5fe72d0 esp_wifi: Fix missing disconnected callback 2023-01-13 13:27:32 +05:30
Jiang Jiang Jian
fbeedbc238 Merge branch 'bugfix/prevent_open_auth_sae' into 'release/v5.0'
Fix SAE open auth and PMK issues (Backport v5.0)

See merge request espressif/esp-idf!21852
2023-01-13 15:51:56 +08:00
Jiang Jiang Jian
179a2717c0 Merge branch 'bugfix/esp_netif_ip_reconnect_v5.0' into 'release/v5.0'
esp_netif: Post IP event for PPP netifs unconditionally (v5.0)

See merge request espressif/esp-idf!21670
2023-01-12 16:21:26 +08:00
Jiang Jiang Jian
42bf734139 Merge branch 'bugfix/esp32s3_int_wdt_v5.0' into 'release/v5.0'
system: disable interrupts in esp_restart_noos_dig to fix infinite int_wdt on ESP32-S3 (v5.0)

See merge request espressif/esp-idf!21769
2023-01-12 16:19:27 +08:00
Jiang Jiang Jian
96db537020 Merge branch 'feature/apply_new_version_logic_v5.0' into 'release/v5.0'
all: Apply new version logic (major * 100 + minor) (v5.0)

See merge request espressif/esp-idf!20941
2023-01-12 16:18:23 +08:00
Mahavir Jain
6988e82430 Merge branch 'feature/esp_http_server_esp_events_v5.0' into 'release/v5.0'
esp_http_server: Added support for esp_events (v5.0)

See merge request espressif/esp-idf!21844
2023-01-12 12:40:12 +08:00
Mahavir Jain
00d5130b65 Merge branch 'fix/wifi_prov_scan_method_v5.0' into 'release/v5.0'
Changed wifi provisioning scan method (v5.0)

See merge request espressif/esp-idf!21854
2023-01-12 12:39:20 +08:00
Mahavir Jain
ef5465b3d9 Merge branch 'feature/gcm_operation_using_ctr_based_calculation_v5.0' into 'release/v5.0'
GCM operation optimisation (v5.0)

See merge request espressif/esp-idf!21856
2023-01-12 12:38:42 +08:00
Mahavir Jain
31f239c22f Merge branch 'bugfix/esp_tls_timeout_v5.0' into 'release/v5.0'
esp_tls: Fix issue when timeout is not explicitly given in esp_tls_cfg_t (v5.0)

See merge request espressif/esp-idf!21743
2023-01-12 12:37:58 +08:00
Mahavir Jain
bc918310c2 Merge branch 'esp_local_ctrl/fix_https_server_dep_v5.0' into 'release/v5.0'
esp_local_ctrl: Add support for insecure HTTP server transport (v5.0)

See merge request espressif/esp-idf!21815
2023-01-12 12:37:26 +08:00
Mahavir Jain
e0f215811e Merge branch 'bugfix/remove_s3_dis_boot_remap_efuse_bit_v5.0' into 'release/v5.0'
docs: remove mention of DIS_BOOT_REMAP for chips other than ESP32-S2 (v5.0)

See merge request espressif/esp-idf!21809
2023-01-12 12:36:47 +08:00
Shyamal Khachane
18e6fa945e wpa_supplicant: Set PMK from PMKSA incase of caching 2023-01-11 11:17:02 +05:30
Shyamal Khachane
677c813137 esp_wifi: Fix open auth issue after commit message exchange 2023-01-11 11:16:13 +05:30
Jiang Jiang Jian
13eb2e8dae Merge branch 'bugfix/remove_sha384_hash_for_bigger_certs_v5.0' into 'release/v5.0'
esp_wifi: remove sha384 hash for cert size > 2k (v5.0)

See merge request espressif/esp-idf!21963
2023-01-11 10:35:58 +08:00
Jiang Jiang Jian
72bae2b873 Merge branch 'doc/add_esp_now_change_to_migration_guides_v5.0' into 'release/v5.0'
doc: add esp now changes to migration guides

See merge request espressif/esp-idf!21787
2023-01-11 10:35:20 +08:00
Kapil Gupta
1db1a5f17e Removed sha384 hash for certs > 2k 2023-01-10 13:14:21 +00:00
Jiang Jiang Jian
4d5e324844 Merge branch 'bugfix/avoid_ftm_initiator_mode_on_softap_v5.0' into 'release/v5.0'
Avoid ftm initiator mode on softap (Backport v5.0)

See merge request espressif/esp-idf!21772
2023-01-10 14:26:36 +08:00
Fu Hanxi
9f01d9aa2c build_system: stop looking for sdkconfig file specified by env var SDKCONFIG_DEFAULTS in bootloader subproject 2023-01-10 09:48:59 +08:00
LiPeng
3c1ac62969 mbedtls: GCM implementation is replaced with CTR-based calculation
- GCM operation in mbedtls used ECB, which calculated only 16 bytes of data each time.
	- Therefore, when processing a large amount of data, it is necessary to frequently set hardware acceleration calculations,
	- which could not make good use of the AES DMA function to improve efficiency.
	- Hence, GCM implementation is replaced with CTR-based calculation which utilizes AES DMA to improve efficiency.
2023-01-09 18:37:07 +05:30
harshal.patil
f111ed2d9a mbedtls: fix esp_aes_gcm_update_ad() API implementation
Closes IDFGH-10467
2023-01-09 18:35:25 +05:30
Aleksei Apaseev
065e121451 espcoredump: fix incorrectly defined coredump chip version 2023-01-09 19:54:01 +08:00
Darian Leung
cc159dfc5b usb: Fix incorrect bmRequestType direction flag in USB Host Library
usb_host_transfer_submit_control() uses the incorrect bmRequestType direction
flag. Therefore, when doing a transfer check, all transfers were mistakenly
treated as OUT transfers (only affects transfer check and not actual transfer).
2023-01-09 17:56:06 +08:00
Darian Leung
ff4e4f4c80 hal: Fix USB DWC HAL host channel halt race condition
This commit fixes a race condtion bug with usb_dwc_hal_chan_request_halt()
where a channel the channel is halted if it has just completed a transfer
(i.e., finished processing a QTD with the "HOC" flag set) but the channel is
still pending interrupt handling. In this case...

- usb_dwc_hal_chan_request_halt() would simply read the channel's underlying
register, determine it is not active, not set the "halt_requested" flag, and
simply return true.
- The caller assumes of usb_dwc_hal_chan_request_halt() will assume that the
channel has halted, and may proceed to reconfigure the pipe/port
- When usb_dwc_hal_chan_decode_intr() comes to process the pending interrupt
it will simply return USB_DWC_HAL_CHAN_EVENT_CPLT not knowing a halt has been
requested.

This commit updates the implementation of usb_dwc_hal_chan_request_halt() so
that a halt is properly requested even if the underlying channel has already
physically halted.
2023-01-09 17:55:48 +08:00
Tomas Rezucha
05f30c1052 usb: Refactor USB Host tests
* USB tests migrated to pytest
* Error messages improved
* Configurable for different mock devices
2023-01-09 17:55:20 +08:00
Tomas Rezucha
b4f281f523 tinyusb: Add TinyUSB example tests 2023-01-09 17:55:02 +08:00
Darian Leung
8d85a76a74 usb_host: Rename struct/ll/hal symbols to use "usb_dwc" prefix
Following the file renaming to use the "usb_dwc" prefix, this commit
updates the symbol names of those files to use the "usb_dwc" as well.

Some LL functions were also renamed so that the register name is
mentioned.
2023-01-09 17:48:09 +08:00
Darian Leung
da91dbccfa usb_host: Rename struct/ll/hal files to use "usb_dwc" prefix
This commit updates the DWC_OTG based struct/ll/hal file names to
use the prefix "usb_dwc". This naming scheme reduces ambiguity if
another USB controller implementation is added.

As a result, "hcd.c" has been renamed to "hcd_dwc.c"
2023-01-09 17:47:42 +08:00
Song Ruo Jing
e8386ed732 ledc: Fix -Werror=maybe-uninitialized warning on glb_clk variable on specific kconfig options selected
Closes https://github.com/espressif/esp-idf/pull/9025
Closes https://github.com/espressif/esp-idf/issues/10322
2023-01-07 17:29:45 +08:00
KonstantinKondrashov
d2ddb4b5e1 test_apps(gdb): Updates the chip version format (vX.Y) 2023-01-06 02:00:52 +08:00
Michael (XIAO Xufeng)
ac068eed34 esp32c2: fixed chip revision of ECO2 2023-01-06 02:00:52 +08:00
KonstantinKondrashov
0c0049b5e4 tools: Update check_copyright_ignore.txt 2023-01-06 02:00:52 +08:00
KonstantinKondrashov
9538f9c5ff ci: Fix environment variable IDF_CI_BUILD is not set 2023-01-06 02:00:52 +08:00
KonstantinKondrashov
d130b5b6ba esp_hw_support: Removes esp32c2 eco2 support 2023-01-06 02:00:52 +08:00
KonstantinKondrashov
df9e24a8ca bootloader_support: Fix iram_loader_seg overflow for ESP32-S2 when -O0 2023-01-06 02:00:52 +08:00
Shang Zhou
ada85449f1 docs: update CN translation for system.rst 2023-01-06 02:00:52 +08:00
Michael (XIAO Xufeng)
bb0c26c233 esp32c2: put v2.0 back to development stage 2023-01-06 02:00:52 +08:00
KonstantinKondrashov
823024c10c all: Apply new version logic (major * 100 + minor) 2023-01-06 02:00:52 +08:00