Commit Graph

22574 Commits

Author SHA1 Message Date
Saurabh Kumar Bansal
f90ccf9613 usb_host: Hub driver skips fetching string descriptors if their index is 0
When a USB does not support a particular string dsecriptor (e.g.,
manufacturer, product, and serial number), the string descriptors corresponding
index will be set to 0 in the device descriptor (e.g., iManufacturer, iProduct,
iString).

Previously, the Hub driver would always attempt to fetch the all three string
descriptors, thus leading an error in CHECK_SHORT_SER_STR_DESC if the device
did not support the descriptor.

This commit fixes the Hub drvier by skipping the enumeration stages of a
particular descriptor if its index is 0 (i.e., not supported by the device).
2023-02-13 18:15:36 +05:30
Darian Leung
fd663b4ab1 usb_host: Fix error when fetching LANGID table
USB devices may support string descriptors in multiple languages. The supported
languages are stored in a LANGID table, which itself is a string descriptor at
index 0.

When fetching the LANGID table itself, the USB 2.0 specification does not
specify what LANGID to use, thus the Hub driver would use the default LANGID
"ENUM_LANGID". However, this would cause some devices to stall.

This commit fixes the issue by always requesting the LANGID table itself using
a LANGID of 0.
2023-02-13 18:15:16 +05:30
Tomas Rezucha
74f479151b usb_host: Fix interface descriptor parsing
Previously the USB host driver did not accept interface number greater or equal bNumInterfaces, even though these are valid interface numbers
2023-02-13 18:02:35 +05:30
Jin Cheng
123b6f132b Fixed build errors when sniff subrating is enabled. 2023-02-13 17:27:24 +08:00
Aditya Patwardhan
a971c13447 Merge branch 'bugfix/secure_boot_v2_part_size_check_v4.4' into 'release/v4.4'
gen_esp32part: allow secure boot v2 based app partition size 4K aligned (v4.4)

See merge request espressif/esp-idf!22286
2023-02-13 16:37:50 +08:00
Guillaume Souchere
c8e469b78d heap: Fix priority in shex() bit shift 2023-02-13 09:10:06 +01:00
Chip Weinberger
62d57edbc9 [Logs] print size and caps when malloc fails 2023-02-13 09:10:03 +01:00
Mahavir Jain
62340efd94 Merge branch 'bugfix/fix_return_value_in_httpd_socket_apis_v4.4' into 'release/v4.4'
esp_http_server: fix return values for `httpd_socket_send()` and `httpd_socket_recv()` APIs (v4.4)

See merge request espressif/esp-idf!22308
2023-02-13 14:07:35 +08:00
Marius Vikhammer
d9393d3b47 docs: fix rst external links with wrong format 2023-02-13 12:15:31 +08:00
Mahavir Jain
379d9034eb
partition_table: fix make build for new "--secure [v1/v2]" argument 2023-02-12 21:29:39 +05:30
Mahavir Jain
5002ccd9c3
partition_table: add tests for checking secure boot part size 2023-02-12 18:58:47 +05:30
Mahavir Jain
51a61fb41c
gen_esp32part: allow secure boot v2 based app partition size 4K aligned
For Secure Boot v2 case, unsigned image is first padded to next 64K
aligned boundary and then a signature block of 4K gets appended. Thus
an app partition whose size is 4K aligned should be allowed here.

For Secure Boot v1 case, app partition size must be 64K aligned as the
signature block lies at the very end of 64K boundary.

Relevant:
57b601ab7f
2023-02-12 18:58:21 +05:30
Chen Yudong
1871825d7b CI: optimize example protocol test cases 2023-02-10 15:30:44 +08:00
Harshit Malpani
f7f11cfa51
esp_http_server: fix return values for httpd_socket_send() and httpd_socket_recv() APIs
Closes https://github.com/espressif/esp-idf/issues/10658
2023-02-10 10:57:22 +05:30
Jakob Hasse
1bf3ac5349 bugfix(nvs_flash): fixed wrong error check after open_nvs_handle
Closes https://github.com/espressif/esp-idf/issues/10240
2023-02-10 10:00:13 +08:00
jingli
8c491be452 sleep: fix gpio wakeup not working properly in some cases
Before this fix, when we call esp_pm_configure after gpio_wakeup_enable,
the configuration of GPIO in sleep state in gpio_wakeup_enable will be
overwritten by esp_pm_configure.
2023-02-09 17:58:40 +08:00
jingli
200dcce535 soc_caps: remove SOC_GPIO_SUPPORT_SLP_SWITCH
all esp chips support this feature
2023-02-09 17:52:49 +08:00
Marius Vikhammer
4c335b8dae docs: fix broken link in fatfs doc 2023-02-09 16:11:08 +08:00
Steve Jothen
614b06341f Use correct recursive mutex for env and regular mutex for tz 2023-02-09 16:03:02 +08:00
Jiang Jiang Jian
cb2fde3e3f Merge branch 'feature/seperate_ble_wifi_test_environment_v4.4' into 'release/v4.4'
seperate ble wifi environment (backport v4.4)

See merge request espressif/esp-idf!20083
2023-02-09 15:45:31 +08:00
Zim Kalinowski
39a4ec2045 Merge branch 'refactor/nvs_allocatable_objects_v4.4' into 'release/v4.4'
refactor(nvs): custom allocator for all objects allocated in NVS (v4.4)

See merge request espressif/esp-idf!21793
2023-02-08 18:01:10 +08:00
Zim Kalinowski
a83c40eaf0 Merge branch 'feature/mac_crc_v4.4' into 'release/v4.4'
esp_hw_support(esp32): If the MAC_FACTORY CRC check fails, then INVALID_CRC instead of abort (v4.4)

See merge request espressif/esp-idf!22115
2023-02-08 17:04:30 +08:00
morris
9160670a4a Merge branch 'docs/make_s3_octal_flash_error_handling_clearer_v4.4' into 'release/v4.4'
docs: make s3 octal flash error handling clearer (v4.4)

See merge request espressif/esp-idf!22271
2023-02-08 15:47:02 +08:00
Armando
dfe505cbb3 docs: make s3 octal flash error handling clearer 2023-02-08 12:17:45 +08:00
Aleksei Apaseev
d3eb5b2346 tools: fix the missing chip type in esp-coredump when the board is not connected
Closes https://github.com/espressif/esp-idf/issues/10400
2023-02-08 10:07:15 +08:00
chensheng
a1fd8065bd seperate ble wifi environment 2023-02-08 10:05:31 +08:00
Alexey Lapshin
7b04075676 docs: update link for ESP ROM ELF releases 2023-02-07 18:01:48 +07:00
Zim Kalinowski
80d81c6c8f Merge branch 'bugfix/ulp_riscv_i2c_example_crashes_on_s2_v4.4' into 'release/v4.4'
ulp-riscv: ULP RISC-V I2C example gets stuck on esp32s2 (v4.4)

See merge request espressif/esp-idf!21861
2023-02-07 17:55:58 +08:00
Zim Kalinowski
3cf24d8685 Merge branch 'feature/usb_host_feature_and_refactor_backports_v4.4' into 'release/v4.4'
USB Host: Backport multiple bugfixes/refactors to v4.4

See merge request espressif/esp-idf!21583
2023-02-07 17:54:35 +08:00
Zim Kalinowski
2dec69fa82 Merge branch 'feature/lower-iram-utilization-of-heap-component_v4.4' into 'release/v4.4'
heap: lower the utilization of IRAM by the heap component binary (backport v4.4)

See merge request espressif/esp-idf!21237
2023-02-07 16:54:58 +08:00
Fu Hanxi
dab3f38f0f Merge branch 'ci/fix/isort_incompatible_with_py37_v4.4' into 'release/v4.4'
ci: fix isort py37 incompatible issue (v4.4)

See merge request espressif/esp-idf!22226
2023-02-07 09:12:10 +08:00
David Čermák
57528b8d17 Merge branch 'bugfix/fix_mdns_example_v4.4_' into 'release/v4.4'
mDNS: Fix example test in CI (v4.4)

See merge request espressif/esp-idf!20815
2023-02-07 00:02:00 +08:00
Jiang Jiang Jian
4a4227a3b8 Merge branch 'bugfix/optimize_abnormal_beacon_log_4.4' into 'release/v4.4'
esp_wifi:bugfix for optimize abnormal beacon log 4.4

See merge request espressif/esp-idf!22211
2023-02-06 22:02:10 +08:00
xueyunfei
f73a2cd0f9 esp_wifi:bugfix for optimize abnormal beacon log 2023-02-06 14:52:46 +08:00
Jiang Jiang Jian
0c8dd57d2a Merge branch 'bugfix/bdsa_security_issues_v4.4' into 'release/v4.4'
wpa_supplicant:BDSA related patch updates v4.4

See merge request espressif/esp-idf!21605
2023-02-06 12:12:09 +08:00
morris
e1e9e10d3b Merge branch 'bugfix/rtc_8md256_deepsleep_time_esp32_v4.4' into 'release/v4.4'
pm: Fixed sleep time inaccurate bug when select 8MD256 as rtc slow clock on ESP32 (v4.4)

See merge request espressif/esp-idf!21822
2023-02-06 11:13:52 +08:00
morris
3ecf906721 Merge branch 'bugfix/fix_mspi_timing_tuning_psram_timing_issue_v4.4' into 'release/v4.4'
mspi_tuning: fix psram timing tuning bug (v4.4)

See merge request espressif/esp-idf!21625
2023-02-06 11:11:07 +08:00
morris
43b9f6d4ac Merge branch 'feature/do_not_disable_cache_when_xip_from_psram_v4.4' into 'release/v4.4'
system: do not disable cache when xip from psram (v4.4)

See merge request espressif/esp-idf!21651
2023-02-06 11:10:14 +08:00
Jiang Jiang Jian
d6682ce9c4 Merge branch 'bugfix/minor_syntax_changes_v4.4' into 'release/v4.4'
wpa_supplicant: Fixing a collection of issues encountered during application testing.

See merge request espressif/esp-idf!22098
2023-02-06 10:37:17 +08:00
Fu Hanxi
43ad48e43f Merge branch 'bugfix/env_var_SDKCONFIG_DEFAULTS_fail_with_bootloader_subproject_v4.4' into 'release/v4.4'
build_system: stop looking for env var `SDKCONFIG_DEFAULTS` in bootloader subproject (v4.4)

See merge request espressif/esp-idf!21975
2023-02-06 10:36:56 +08:00
Fu Hanxi
2684850a13 ci: fix isort py37 incompatible issue 2023-02-06 10:32:38 +08:00
Island
bd5af4d879 Merge branch 'bugfix/add_nimble_fail_case_kownissues' into 'release/v4.4'
add NIMBLE_GAP_17021 to kownIssues (4.4)

See merge request espressif/esp-idf!21475
2023-02-03 16:26:06 +08:00
Chen Sheng
54fea8f9b3 add NIMBLE_GAP_17021 to kownIssues (4.4) 2023-02-03 16:26:06 +08:00
Shreyas Sheth
e4c5d21106 wpa_supplicant:BDSA related patch updates 2023-02-03 06:46:30 +00:00
Roland Dobai
0e2db09744 Merge branch 'bugfix/fix_windows_path_case_sensitivity_v4.4' into 'release/v4.4'
bugfix: Fix windows path case sensitivity (v4.4)

See merge request espressif/esp-idf!22076
2023-02-03 14:40:32 +08:00
Roland Dobai
3e1f704d5b Merge branch 'fix/tools_click_envvar_v4.4' into 'release/v4.4'
Tools: Improve idf.py error message when the argument value collides with the environment variable (v4.4)

See merge request espressif/esp-idf!21886
2023-02-03 14:37:45 +08:00
Roland Dobai
dd2c7f8a59 Merge branch 'bugfix/support_coredump_stack_xtensa_v4.4' into 'release/v4.4'
coredump: custom core dump stack is now supported on Xtensa targets (backport v4.4)

See merge request espressif/esp-idf!21805
2023-02-03 14:37:16 +08:00
Roland Dobai
ff86fa0260 Merge branch 'bugfix/fix_esp32s3_diram_calculation_v4.4' into 'release/v4.4'
Tools: Fix diram size calculation (v4.4)

See merge request espressif/esp-idf!21671
2023-02-03 14:36:13 +08:00
Jiang Jiang Jian
bd54673f81 Merge branch 'doc/update_nimble_mesh_example_information_v4.4' into 'release/v4.4'
Nimble: Update Mesh example documentation (v4.4)

See merge request espressif/esp-idf!21579
2023-02-03 13:53:29 +08:00
Jiang Jiang Jian
bf4a710c23 Merge branch 'doc/update_wifi_amsdu_docs_v4.4' into 'release/v4.4'
doc: update wifi amsdu docs(Backport v4.4)

See merge request espressif/esp-idf!21750
2023-02-03 13:52:59 +08:00