42437 Commits

Author SHA1 Message Date
Konstantin Kondrashov
8155e60edf feat(esp_ringbuf): Update ring buffer doc
Closes https://github.com/espressif/esp-idf/issues/15298
2025-02-06 17:44:14 +02:00
Guillaume Souchere
5a0e1615d9 Merge branch 'fix/usb-cdc-non-blocking-read' into 'master'
fix(esp_vfs_console): USB CDC read when non blocking

See merge request espressif/esp-idf!36469
2025-02-05 14:30:15 +08:00
Mahavir Jain
35fd0fe155 Merge branch 'fix/simple_http_server_ctrl_sock_address_len' into 'master'
fix(http_server): Simple http server socket len fix

See merge request espressif/esp-idf!36665
2025-02-05 11:41:03 +08:00
Michael (XIAO Xufeng)
ece4ee30da Merge branch 'fix/p4_lsc_v100_warning' into 'master'
fix(isp_lsc): fixed warning description for p4 v1.0

See merge request espressif/esp-idf!34593
2025-02-05 10:53:06 +08:00
David Čermák
df6e92eba2 Merge branch 'fix/eth_w5500_test_event' into 'master'
fix(esp_eth): Fix test code to unregister event correctly

Closes IDFCI-2705 and IDFCI-2706

See merge request espressif/esp-idf!36723
2025-02-04 20:46:45 +08:00
David Cermak
a591e48b97 fix(esp_eth): Fix test code to unregister event correctly 2025-02-04 12:29:43 +01:00
hrushikesh.bhosale
ef9259775e fix(http_server): Simple http server socket len fix
The socket address length is not typecasted properly while
passing to bind and sendto functions. Due to this
http_server/simple was not running with target linux on MacOS
used to give error -

I (132253266) port: Starting scheduler.
I (132253269) esp_netif_loopback: loopback initialization
I (132253269) example: Starting server on port: '8001'
E (132253270) httpd: httpd_server_init: error in creating ctrl socket (22)
I (132253270) example: Error starting server!

With this commit, simple http server runs with target linux
on MacOS for IPV4 configurations
2025-02-04 15:35:26 +05:30
Erhan Kurubas
2e708d1a7d Merge branch 'fix/coredump_test_uart_data_missing' into 'master'
Fix missing coredump uart data in tests

See merge request espressif/esp-idf!36677
2025-02-03 22:03:38 +08:00
David Čermák
3114ae365e Merge branch 'fix/event_no_isr_post' into 'master'
fix(esp_event): Fix minor no-ISR post regression from 15f6775f5

See merge request espressif/esp-idf!36697
2025-02-03 21:03:07 +08:00
David Cermak
881628c548 fix(esp_event): Fix minor no-ISR post regression
from 15f6775f5d5bd9ee73072e914118024d15b685eb
2025-02-03 12:26:35 +01:00
Sonika Rathi
b0aac120fb Merge branch 'fix/fatfs_diskio_static_func' into 'master'
fix(fatfs): make the diskio functions static

See merge request espressif/esp-idf!36694
2025-02-03 18:27:30 +08:00
sonika.rathi
50dc84ca6e fix(fatfs): make the diskio functions static
Closes https://github.com/espressif/esp-idf/issues/15248
2025-02-03 09:29:46 +01:00
Erhan Kurubas
f6b407d6b9 test(coredump): collect all expected uart data first, then process lazily 2025-02-01 06:12:11 +08:00
Michael (XIAO Xufeng)
cb227eb260 fix(isp_lsc): fixed warning description for p4 v1.0 2025-02-01 00:10:37 +08:00
Guillaume Souchere
ae7c8691d9 fix(esp_vfs_console): USB CDC read when non blocking
In non blocking mode, the read function is expected
to return weather data is available for reading or not.

In case data are available but the size does not match
the expected size, the function read should return whatever
data is available.

Previously, the function was returning -1 with errno set
to EWOULDBLOCK even if the size of data in the buffer was
less than the requested size. It would only return the
available data if the size in the buffer was greater or equal
to the requested size.

The implementation of cdcacm_read is modified to return the avilable
data from the buffer even is the size is lesser than the requested
size.
2025-01-30 08:51:54 +01:00
Guillaume Souchere
82f558b47a Merge branch 'fix/esp-event-profiling' into 'master'
fix(esp_event): Fix event loop profiling in handler_execute function

Closes IDFGH-14245

See merge request espressif/esp-idf!35735
2025-01-30 15:42:21 +08:00
Mahavir Jain
b5ee028273 Merge branch 'feat/bootloader_nvs_read_encrypted' into 'master'
Support reading encrypted NVS partitions by the bootloader

Closes IDF-11791

See merge request espressif/esp-idf!35466
2025-01-30 12:00:49 +08:00
David Čermák
48c400d7e4 Merge branch 'fix/bridge_wifi' into 'master'
fix(network/examples): Fix bridge example with eth-wifi config

See merge request espressif/esp-idf!36628
2025-01-29 23:16:09 +08:00
harshal.patil
62df1017ad
change(nvs_sec_provider): Change NVS encryption's default efuse HMAC key ID to -1 2025-01-29 18:51:29 +05:30
harshal.patil
f205476ffe
fix(nvs_flash): Add encrypted-flash as the dependency in nvs_create_partition_image() 2025-01-29 18:51:29 +05:30
harshal.patil
c7f86301e6
change(bootloader): Increase the iram_seg size of bootloader to fit NVS encryption 2025-01-29 18:51:29 +05:30
harshal.patil
5b17375aca
test(nvs_flash): Extend the nvs_flash test app to support encrypted NVS reads 2025-01-29 18:51:29 +05:30
harshal.patil
3b7d71eca2
feat(examples): Extend the bootloader_nvs example to support encrypted NVS reads 2025-01-29 18:51:29 +05:30
harshal.patil
cadd6b8bcc
feat(nvs_flash): Support reading encrypted NVS partitions in the bootloader 2025-01-29 18:51:29 +05:30
harshal.patil
37de702e97
feat(nvs_flash): Enable the usage of mbedtls from ROM for bootloader NVS decryption
Bootloader NVS decryption uses hardware ROM APIs to decrypt the NVS contents,
but for targets that do not support AES hardware we could benefit by using the
software mbedtls library that is present in the ROM directly.
2025-01-29 18:51:29 +05:30
harshal.patil
7c3832ff2a
feat(nvs_flash): Add a minimal XTS-AES layer for the bootloader 2025-01-29 18:51:29 +05:30
harshal.patil
4c38499303
fix(esp_partition): Support reading unencrypted partitions by the bootloader
- When flash encryption is enable to support reading a partition that is not
marked as "encrypted", the `esp_partition_read()` API of bootloader build
should be redirected to the `bootloader_flash_read()` API.
2025-01-29 18:51:28 +05:30
harshal.patil
eb05db30fc
fix(esptool_py): Fix NVS partition being incorrectly marked as encrypted
- The CMake function esptool_py_partition_needs_encryption() in the esptool_py
component used to mark NVS partition as encrypted, instead it should have marked
the NVS keys partition as encrypted.
2025-01-29 18:51:28 +05:30
harshal.patil
2ee22f968a
fix(nvs_flash): Allow matching with partition when label provided is NULL
- When esp_parition_find_first() is called with the partition label provided
as NULL by the bootloader, allowing matching to the first partition that matches
partition_type and partition_subtype as done in the app variant.
2025-01-29 18:51:28 +05:30
Guillaume Souchere
15f6775f5d fix(esp_event): Handler unregistration by itself issue
when esp_event_handler_unregister_with_internal cannot take
the loop mutex (e.g., when the handler unregisters itself),
create an event with a special base identifier and add it to
the queue of the corresponding loop to postpone the removal
of the handler from the list at a time when the loop mutex can be
successfully taken.
2025-01-29 13:37:27 +01:00
Rocha Euripedes
b09a515587 Merge branch 'fix/test_app_certificate' into 'master'
Regenerate certificates for testing

See merge request espressif/esp-idf!36664
2025-01-29 20:35:17 +08:00
Guillaume Souchere
d8d3c50b3f fix(esp_event): Fix event loop profiling in handler_execute function
handler_execute function is looking to match the handler only in the
list of loop events but does not look in the base event handler list
nor the id event handler list. So unless the event handler is
registered to be triggered for all event bases and all event ids of
an event loop, its profiling fields (invoked and time) are not updated
when it is called.

This commit updates the search for the matching handler to also look
in base event list and ID event list.

Closes https://github.com/espressif/esp-idf/issues/15041
2025-01-29 13:17:00 +01:00
Roman Leonov
6ac45b2559 Merge branch 'fix/usb_host_enum_unchecked_return_coverity' into 'master'
fix(usb_host): Fixed unchecked return value in enum driver (coverity)

Closes IDF-10068

See merge request espressif/esp-idf!36663
2025-01-29 19:45:48 +08:00
Roland Dobai
57b2ef83ea Merge branch 'feat/diag_cpuinfo' into 'master'
feat(tools): add basic system information to diag report

Closes IDF-12100

See merge request espressif/esp-idf!36627
2025-01-29 17:46:07 +08:00
Tomas Rohlinek
9f253c7d7c Merge branch 'fix/fatfs_use_standard_flex_arrays' into 'master'
fix(storage/fatfs): use standard flex-array fields, instead of extension

See merge request espressif/esp-idf!36666
2025-01-29 17:31:56 +08:00
Roland Dobai
395984e4e8 Merge branch 'feat/diag_purge_file' into 'master'
feat(tools): enable passing the purge file as an argument to diag

Closes IDF-11825

See merge request espressif/esp-idf!36659
2025-01-29 17:31:33 +08:00
Tomáš Rohlínek
a700e7c210
fix(storage/fatfs): use standard flex-array fields, instead of extension 2025-01-29 09:08:44 +01:00
Mahavir Jain
9b876d939a Merge branch 'feat/add_h2_config_and_maxver_for_v1.2' into 'master'
feat(soc): add Kconfig rev min option and increase max ver for H2 v1.2

Closes IDF-11993

See merge request espressif/esp-idf!36415
2025-01-29 14:14:52 +08:00
Xiao Xufeng
06166ad3aa feat(soc): add Kconfig rev min option and increase max ver for H2 v1.2 2025-01-29 12:55:15 +08:00
Mahavir Jain
c97b63db32 Merge branch 'fix/rng_register_prefix_discrepency_older_targets' into 'master'
fix(soc): Add the unavailable TRM mentioned RNG_DATA_REG register for C2 and C3

Closes DOC-5138 and DOC-5135

See merge request espressif/esp-idf!36602
2025-01-29 12:51:54 +08:00
Euripedes Rocha
45d59f8205 fix(mqtt): Regenerate certificates for testing
- Previous fix ommited one of the client certificates by mistaque.
- This regenerates all certificates to clean that up.
2025-01-28 14:34:29 +01:00
Roman Leonov
2255cdc462 fix(usb_host): Fixed unchecked return value in enum driver (coverity) 2025-01-28 14:11:55 +01:00
Frantisek Hrbata
7216d11110 feat(tools): enable passing the purge file as an argument to diag
At present, the diag tool uses its default purge file. However, users
may find it beneficial to specify and reuse their own purge file. A new
command line option, --purge, has been introduced to allow users to
provide their own purge file to diag. When this option is used, the
default purge file is ignored.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2025-01-28 09:19:36 +01:00
Martin Vychodil
64a7472808 Merge branch 'fix/sdmmc_concurrency_slot_count_doesnt_work' into 'master'
fix(sdmmc): SDMMC concurrency change active slot only after the slot is initialized

Closes IDF-12168

See merge request espressif/esp-idf!36640
2025-01-27 21:56:41 +08:00
Frantisek Hrbata
350dbaf73c feat(tools): add system.yml recipe to diag
This should enable the collection of more detailed information about the
operating system and basic CPU details.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2025-01-27 13:34:33 +01:00
Frantisek Hrbata
f7b754acfa feat(tools): add option to execute steps only on a specific system
At present, the steps are executed unconditionally. With this
modification, we can restrict each step individually to determine if it
should run on a particular system. For instance, we can execute
different commands on different systems. This is achieved by adding a
new key, "system," to the step dictionary, with possible values being
Linux, Windows, and Darwin.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2025-01-27 13:34:19 +01:00
Ondrej Kosta
e188afdacf Merge branch 'docs/eth_memory_consideration' into 'master'
Non-functional Ethernet updates

Closes IDFGH-13346 and IDF-11736

See merge request espressif/esp-idf!36219
2025-01-27 19:24:34 +08:00
Mahavir Jain
8b7204d87a Merge branch 'feature/esp_tee_cfg_srv' into 'master'
feat(esp_tee): Make the attestation service K-configurable

See merge request espressif/esp-idf!36123
2025-01-27 19:20:09 +08:00
Tomas Rezucha
dfcc0b22c9 Merge branch 'fix/periodic_fs_usb_on_p4' into 'master'
fix(usb/host): Fixed Full Speed periodic transfers on ESP32-P4

Closes IDF-11988

See merge request espressif/esp-idf!36560
2025-01-27 17:28:24 +08:00
Aleksei Apaseev
7d1d949729 Merge branch 'ci/add-pre-signed-urls-of-built-test-related-apps-to-artifacts' into 'master'
ci: fix the issue with missing presigned URLs for test-related apps

Closes RDT-1120

See merge request espressif/esp-idf!36636
2025-01-27 16:19:42 +08:00