Commit Graph

31729 Commits

Author SHA1 Message Date
Mahavir Jain
f047237aa5 fix(bootloader_support): check the secure version only for app image
Secure version in the image header is only available for the application
image. However, for certain security workflows, bootloader verifies
itself (own image) and hence the secure version check during that must be
avoided.

Regression introduced in recent commit-id: 3305cb4d

Tested that both secure boot and flash-enc workflows work correctly
with the anti-rollback scenario.
2024-02-20 11:16:56 +02:00
Sudeep Mohanty
57627f5883 fix(docs): Minor update to esp_event.rst for improved user experience
This commit adds semicolons in c-code blocks in esp_event.rst for
improved user experience when directly copying and pasting code.

Closes https://github.com/espressif/esp-idf/issues/13156
2024-02-20 08:45:38 +01:00
ShenWeilong
f05aef3ddf fix(ble): Fixed the free_all crash on esp32c6 and esp32h2 2024-02-19 20:17:17 +08:00
Island
931eaf7320 Merge branch 'bugfix/ble_update_lib_20240207_v5.1' into 'release/v5.1'
update lib on release/v5.1

See merge request espressif/esp-idf!28970
2024-02-19 18:12:41 +08:00
harshal.patil
85e18aa755
fix(mbedtls/gcm): Avoid using GCM hardware when config MBEDTLS_HARDWARE_GCM is disabled 2024-02-16 11:55:02 +05:30
harshal.patil
7e4d273e45
fix(mbedtls/gcm): Fix build failure when config MBEDTLS_HARDWARE_GCM is disabled 2024-02-16 11:55:01 +05:30
Mahavir Jain
83ec466b26 fix(ota): additional checks for secure version in anti-rollback case
Some additional checks related to secure version of the application in
anti-rollback case have been added to avoid any attempts to boot lower
security version but valid application (e.g., passive partition image).

- Read secure_version under sha256 protection

- First check has been added in the bootloader to ensure correct secure
  version after application verification and loading stage. This check
  happens before setting up the flash cache mapping and handling over
  the final control to application. This check ensures that application
  was not swapped (e.g., to lower security version but valid image) just
  before the load stage in bootloader.

- Second check has been added in the application startup code to ensure
  that currently booting app has higher security version than the one
  programmed in the eFuse for anti-rollback scenario. This will ensure
  that only the legit application boots-up on the device for
  anti-rollback case.
2024-02-15 15:10:28 +02:00
luomanruo
f5a0d5d0bc ble(update):
Update h2 lib to eb112893
Update c6 lib to eb112893
2024-02-07 17:29:32 +08:00
gongyantao
aad082a795 fix(bt/bluedroid): fix dangling pointer issue when logging remove section 2024-02-07 14:58:08 +08:00
Sudeep Mohanty
746b8bf98f fix(ulp_riscv): Updated RTC I2C to use open-drain IOs
This commit updates the RTC I2C driver in the ULP RISC-V to initialize
all I2C IOs in open-drain mode.
2024-02-06 08:42:12 +01:00
zhiweijian
add7c68104 feat(ble/controller): Add API to get BLE controller status on ESP32 2024-02-05 16:07:19 +08:00
zhiweijian
fd8bfba10a Fixed xQueueSemaphoreTask assert when deinit host during scan 2024-02-05 16:06:37 +08:00
nilesh.kale
fee1e43f09 feat(mbedtls): updated mbedtls version from 3.5.0 to 3.5.2
This updates the submodule mbedtls to its latest version 3.5.2.
2024-02-05 12:50:43 +05:30
Jiang Jiang Jian
7380f96017 Merge branch 'bugfix/bugfix_for_radio_spinel' into 'release/v5.1'
fix(openthread): fix openthread configurations for radio spinle on 5.1

See merge request espressif/esp-idf!28872
2024-02-05 14:15:15 +08:00
Jiang Jiang Jian
eb4fa7234f Merge branch 'backport/openthread_related_mr_v51' into 'release/v5.1'
Backport openthread fix to v5.1

See merge request espressif/esp-idf!28819
2024-02-05 14:15:00 +08:00
zhanghaipeng
a95d480780 fix(ble/controller): Fixed tx count in direct test mode on ESP32-C3 and ESP32-S3
- Fixed tx count in direct test mode on ESP32-C3 and ESP32-S3
- fixed modem sleep enter failed sometimes
2024-02-04 14:30:19 +08:00
chenjianhua
f86a5ffb2a fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(91980c2)
- Fixed scheduling when modem sleep wakeup delayed
- Fixed IRQ FIFO overflow when enter critical
- Fixed clock sync timeout for modem sleep
- Fixed directed adv with RPA when privacy disabled
- Fixed instant passed for connection update and PHY update
2024-02-04 14:30:10 +08:00
Xu Si Yu
3c6ee5a957 fix(openthread): fix openthread configurations for radio spinle on 5.1 2024-02-04 11:50:41 +08:00
Marius Vikhammer
1e3c43297d docs(build): add cannonical stable url to all docs 2024-02-02 10:36:33 +08:00
Fu Hanxi
d2b1e5b577
ci: limit idf-build-apps version to 1.x in pre-commit config file 2024-02-01 09:56:42 +01:00
zwx
5c74483fb6 feat(openthread): disable the rx on when idle in coex scenario 2024-02-01 14:53:57 +08:00
zwx
d117ae0d21 fix(openthread): fix RCP handle timeout crashing issue
* update openthread upstream
2024-02-01 14:17:04 +08:00
zwx
ff1fd81e2f fix(openthread): support uart ISR in IRAM 2024-02-01 14:16:00 +08:00
zwx
1cc34e69d7 fix(802154): fix pending tx will be delayed issue 2024-02-01 14:16:00 +08:00
Kapil Gupta
8a01702d65 fix(wifi): add low memory options for eap enterprise 2024-02-01 10:05:06 +05:30
Jan Beran
91b1a362ea feat: Use python-reorder-imports instead of isort 2024-01-31 09:27:47 +01:00
xiongweichao
05d196938d fix(bt/bluedroid): Fixed SPP connection failure
The connection failure is caused by the BTU and application layer status being out of sync.
2024-01-30 15:42:39 +08:00
xiongweichao
2c9dccc64e fix(ble): Fixed macro definition error for 136K clock drift 2024-01-30 15:37:01 +08:00
xiongweichao
75dcda2750 fix(ble): Fixed Bluetooth not waking up due to clock drift 2024-01-30 15:36:53 +08:00
Sudeep Mohanty
300cd0c34f fix(lp_i2c): Fixed an issue where the LP_I2C IO lines were not in open-drain mode
This commit fixes an issue where in the LP I2C IO lines were not
initialized in open-drain mode.

Closes https://github.com/espressif/esp-idf/issues/12969
2024-01-29 09:48:39 +01:00
Jiang Jiang Jian
7cbee80fb9 Merge branch 'bugfix/fix_ble_tx_2m_problem_causing_by_phy_wifi_enable_set_v5.1' into 'release/v5.1'
fix(esp_phy): Fixed BLE TX 2M problem causing by phy_wifi_enable_set() (backport v5.1)

See merge request espressif/esp-idf!28679
2024-01-29 14:46:58 +08:00
Shu Chen
0b28bdb8f0 Merge branch 'backport/154_receive_handle_done_v5.1' into 'release/v5.1'
Backport/154 receive handle done v5.1

See merge request espressif/esp-idf!28718
2024-01-29 14:30:16 +08:00
Harshit Malpani
276ebe98a0
fix: fix esp_http_client_example build failure
Fixed the build failure of esp_http_client_example for ESP32-C6 when
build with Wi-Fi enabled
2024-01-29 11:36:26 +05:30
Harshit Malpani
3cfbbbd978
fix(esp_http_client): Fix http digest auth without qop
Closes https://github.com/espressif/esp-idf/issues/12962
2024-01-29 11:11:02 +05:30
Michael (XIAO Xufeng)
7f39afb373 Merge branch 'h2_auto_dbias_master_hsq_v5.1' into 'release/v5.1'
ESP32H2: Active & sleep dbias get from efuse to fix the voltage (v5.1)

See merge request espressif/esp-idf!28715
2024-01-29 11:21:06 +08:00
Island
71dfc32a98 Merge branch 'bugfix/ble_update_lib_20240125_v5.1' into 'release/v5.1'
Bugfix/ble update lib 20240125 v5.1

See merge request espressif/esp-idf!28709
2024-01-29 10:40:21 +08:00
Kapil Gupta
0cd6a05fdf fix(wifi): Add support to move supplicant BSS to external memory 2024-01-27 10:54:26 +05:30
Jiang Jiang Jian
a5e3e0b90e Merge branch 'bugfix/fix_dynamic_mbedtls_crash_v5.1' into 'release/v5.1'
mbedtls: Fix enable dynamic mbedtls will occur heap corruption when server support TLS renegotiation(backport v5.1)

See merge request espressif/esp-idf!28325
2024-01-26 22:25:24 +08:00
Shu Chen
1b4837fb24 docs(ieee802154): add migration note for the receive done handler feature 2024-01-26 17:00:38 +08:00
Shu Chen
81ee463f54 feat(ieee802154): make the receive done handler feature mandatory 2024-01-26 17:00:38 +08:00
Shu Chen
fa544a6dff feat(ieee802154): remove the ieee802154 lib submodule 2024-01-26 17:00:38 +08:00
xieqinan
918705d6e0 feat(zigbee): Updated Zigbee examples to align with esp-zigbee-lib v1.0.9 2024-01-26 17:00:31 +08:00
Shu Chen
15a392cfd9 Merge branch 'backport5.1/openthread_backport' into 'release/v5.1'
some openthread changes backport to release/v5.1

See merge request espressif/esp-idf!28638
2024-01-26 13:37:02 +08:00
hongshuqing
9f5cd217a0 feat(pmu): set fix voltage to different mode for esp32h2
h2 remove include
2024-01-26 11:39:16 +08:00
KonstantinKondrashov
cce3c4a1d5 feat(efuse): Adds new efuses for esp32c6 2024-01-26 11:39:16 +08:00
KonstantinKondrashov
f7a920685a feat(efuse): Adds new efuse for esp32h2 2024-01-26 11:39:16 +08:00
luomanruo
9f405f2174 fix failure of pre-commit 2024-01-26 10:38:16 +08:00
Frantisek Hrbata
6133810392 fix: harden input parsing in component_requirements hint module
Currently we silently ignore when the original component is not found
in a hope we can provide at least some meaningful hint. As it turned
out it's not true. Instead of providing misleading hint, just return
error. This adds several checks for situations, which should not happen,
but when they do it should be easier to identify the root cause of the
problem.

For example when hint module received malformed output with extra new
lines, e.g. caused by a bug in RunTool, it wrongly reported the original
component as source component.

This should also fix the tests on Windows.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2024-01-25 14:20:22 +01:00
Frantisek Hrbata
0fc2e77017 feat(hints): use all_component_info from project_description.json
Currently the component_requirements hint module does not work
as expected if the component list for a project is trimmed down.
With the new "all_component_info" dictionary info in project_description.json,
the module can produce hints even if cmake's COMPONENTS variable is
set.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2024-01-25 14:20:22 +01:00
Frantisek Hrbata
87afd5e829 feat(tools): export information about all components in __COMPONENT_TARGETS
Add new "all_component_info" dictionary into the
project_description.json file. It contains information about all
registered components presented in the __COMPONENT_TARGETS list.
Since components in this list are not fully evaluated, because only the first
stage of cmakefiles processing is done, it does not contain the same information
as the "build_component_info" dictionary. The "type", "file" and "sources" variables
are missing.

Most of the properties are already attached to the component target, so
this only adds INCLUDE_DIRS property to the target during the first cmakefiles
processing stage.

The "all_component_info" dict is generated in a separate function, even
though the original function for "build_component_info" could be
adjusted. This introduces a little bit of boilerplate, but keeps it
logically separated and probably easier if we want to extend it in the
future.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2024-01-25 14:20:22 +01:00