Commit Graph

19347 Commits

Author SHA1 Message Date
chenjianhua
8aad580431 bluedroid: fixed default extended connection params 2023-06-16 17:55:21 +08:00
chenjianhua
304deb005d esp_hid: fixed ble hid battery level setting 2023-06-16 17:55:11 +08:00
Aditya Patwardhan
3897faa9c8 Merge branch 'bugfix/aes_dma_align_issue_v4.3' into 'release/v4.3'
aes: fix DMA descriptor calculation for the alignment case (v4.3)

See merge request espressif/esp-idf!24096
2023-06-14 16:57:18 +08:00
Roland Dobai
2c3cba7e9f Merge branch 'feature/extend_proj_desc_json_v4.3' into 'release/v4.3'
extend information in project_description.json (v4.3)

See merge request espressif/esp-idf!24130
2023-06-09 02:10:56 +08:00
Frantisek Hrbata
f1eef50947 tools: extend information in project_description.json
This extends information provided in the project_description.json file.
Newly added information can be used in the SBOM generating tool and
also to improve hints regarding the the component dependency issues.

Added fields

version:
   This adds versioning to the project_description.json file,
   so it's easy to identify if it contains the required information.

project_version:
   Can be used as a version for the resulting binary e.g. `hello_world.bin`.

idf_path:
   This one is probably not necessary, but it allows tools to run even without
   esp-idf environment exported(e.g. export.sh).

c_compiler:
   The `CMAKE_C_COMPILER` value with full path to the compiler binary. This can
   be used to get information about toolchain, which was used to build the project.

common_component_reqs:
   List of common components as presented in cmake's __COMPONENT_REQUIRES_COMMON
   and set in tools/cmake/build.cmake:__build_init().

build_component_info:
   Detailed information about components used during build. It's a
   dictionary with the component name as a key and each component has
   a dictionary with detailed information. Following is an example for
   the efuse component.

   "efuse": {
       "alias": "idf::efuse",
       "target": "___idf_efuse",
       "prefix": "idf",
       "dir": "/home/fhrbata/work/esp-idf/components/efuse",
       "type": "LIBRARY",
       "lib": "__idf_efuse",
       "reqs": [],
       "priv_reqs": [ "bootloader_support", "soc", "spi_flash" ],
       "managed_reqs": [],
       "managed_priv_reqs": [],
       "file": "/home/fhrbata/work/blink/build/esp-idf/efuse/libefuse.a",
       "sources": [ "/home/fhrbata/work/esp-idf/components/efuse/esp32s3/esp_efuse_table.c", ... ],
       "include_dirs": [ "include", "esp32s3/include" ]
   }

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2023-06-08 18:42:06 +02:00
Frantisek Hrbata
befb32b45b tools: fix make_json_list to return empty json list for empty cmake list
Currently make_json_list() returns '[ "" ]' for empty cmake list. Fix this
so empty json list is returned instead.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2023-06-08 18:42:06 +02:00
Mahavir Jain
18dbdbb643
aes: fix DMA descriptor calculation for the alignment case
The number of the DMA descriptors allocated for certain length (e.g.,
8176) were not sufficient (off by 1 error). This used to result in the
dynamic memory corruption as the region was modified beyond the
allocated range.

This change fixes the DMA descriptor calculation part and allocates
sufficient DMA descriptors based on the data length alignment considerations.

Test has also been added to cover the specific scenario in the CI.

Closes https://github.com/espressif/esp-idf/issues/11310
2023-06-07 09:22:10 +05:30
Jiang Jiang Jian
b13ddef25c Merge branch 'bugfix/close_phy_tsens_before_sleep_v4.3' into 'release/v4.3'
sleep: fix deepsleep current leakage caused by phy_tsens (backport v4.3)

See merge request espressif/esp-idf!23907
2023-06-06 11:52:12 +08:00
Jiang Jiang Jian
756fa45a06 Merge branch 'bugfix/fix_wakeup_failed_if_powerdown_flash_in_lightsleep_v4.3' into 'release/v4.3'
Power Management: fixed flash funcs called in sleep wakeup process (backport v4.3)

See merge request espressif/esp-idf!24006
2023-06-06 11:50:59 +08:00
Jiang Jiang Jian
8c01b63cbd Merge branch 'bugfix/dpp_retry_start_listening_issue_v4.3' into 'release/v4.3'
esp_dpp: Fix retry with esp_supp_dpp_start_listen after failure (v4.3)

See merge request espressif/esp-idf!23597
2023-06-02 09:56:59 +08:00
Jiang Jiang Jian
cac7fb93e4 Merge branch 'bugfix/hf_cind_ind_index_v4.3' into 'release/v4.3'
bt: Fixed the inconsistency between the indicator event received by the HF application layer and the actually received indicator(v4.3)

See merge request espressif/esp-idf!23563
2023-06-01 19:44:38 +08:00
Jiang Jiang Jian
eb56474d53 Merge branch 'bugfix/hfp_ag_idx_invalid_v4.3' into 'release/v4.3'
bt: Fixed out of bounds access due to variable length array(v4.3)

See merge request espressif/esp-idf!23668
2023-06-01 19:43:39 +08:00
Jiang Jiang Jian
fabd11b320 Merge branch 'bugfix/s3_compile_error' into 'release/v4.3'
bt: Fixed compilation errors for ESP32S3(v4.3)

See merge request espressif/esp-idf!23957
2023-06-01 19:42:30 +08:00
Jiang Jiang Jian
65c877a63e Merge branch 'contrib/github_pr_11215_v4.3' into 'release/v4.3'
improve thread safety in esp_timer (GitHub PR) (v4.3)

See merge request espressif/esp-idf!23542
2023-06-01 19:41:42 +08:00
Jiang Jiang Jian
08c7c13260 Merge branch 'bugfix/fix_blufi_compilation_issue_v4.3' into 'release/v4.3'
Blufi: Fix compilation issue for blufi over NimBLE(v4.3)

See merge request espressif/esp-idf!24022
2023-06-01 19:38:19 +08:00
Rahul Tank
6445a2cc54 Blufi: Fix compilation issue for blufi over NimBLE 2023-06-01 12:56:31 +05:30
wuzhenghui
327352cf53 bugfix: fix wakeup failed if powerdown flash in lightsleep 2023-05-31 19:11:23 +08:00
xiongweichao
674593177c bt: Fixed compilation errors for ESP32S3 2023-05-30 06:14:02 +00:00
Jens Gutermuth
af3486ecf9 improve thread safety in esp_timer
Inadequate locking in the esp_timer component allowed corruption
of the s_timers linked list:

1. timer_armed(timer) returns false
2. another task arms the timer and adds it to s_timers
3. the list is locked
4. the timer is inserted into s_timers again

The last step results in a loop in the s_timers list, which causes
an infinite loop when iterated. This change always locks the
list before checking if the timer is already armed avoiding
the data race.
2023-05-29 14:27:49 +08:00
wuzhenghui
2f74124170 bugfix: close phy_tsens before deepsleep 2023-05-25 11:53:32 +08:00
Jiang Jiang Jian
3a10cc9e4a Merge branch 'bugfix/fix_iphone_disconnects_immediately_after_connecting_when_BLE_wifi_coexist_v4.3' into 'release/v4.3'
Fix iPhone disconnects immediately after connecting when ble wifi coexist(backport v4.3)

See merge request espressif/esp-idf!23814
2023-05-23 18:34:44 +08:00
zhiweijian
9e2e3f8d19 Update libphy for ble 1M/2M switch and ble track on ESP32-C3 2023-05-23 11:10:34 +08:00
Jiang Jiang Jian
119c4c4b18 Merge branch 'bugfix/fix_some_ble_bug_v4.3' into 'release/v4.3'
Fixed some BLE bugs (backport v4.3)

See merge request espressif/esp-idf!23700
2023-05-22 11:56:54 +08:00
Zim Kalinowski
ceddc4ff04 Merge branch 'bugfix/sync-contribution-guide_v4.3' into 'release/v4.3'
docs: updated contribution agreement (v4.3)

See merge request espressif/esp-idf!23836
2023-05-20 04:48:36 +08:00
chenjianhua
87aaf07b0f Update bt lib for ESP32-C3 and ESP32-S3
- Fixed remote mic error during encryption procedure
- Fixed ble hopping selection for connection when disabled 5.0 feature
2023-05-19 15:58:42 +08:00
chenjianhua
bb1b696e69 bluedroid: fix ble ext adv rand addr setting for NRPA 2023-05-19 15:57:45 +08:00
chenjianhua
7893c5f479 bluedroid: fix ble adv data construct for device name 2023-05-19 15:57:38 +08:00
chenjianhua
e3594aca70 bluedroid: fix ble smp key distribution setting 2023-05-19 15:57:32 +08:00
chenjianhua
a7c1fd9f60 bluedroid: report disconnect event after BLE link closed 2023-05-19 15:57:25 +08:00
Zim Kalinowski
40d52d7978 docs: updated contribution agreement 2023-05-18 16:48:29 +02:00
Wang Meng Yang
471332039e Merge branch 'bugfix/fix_esp32_bugs_230511_v4.3' into 'release/v4.3'
Fixed some esp32 bugs(backport v4.3)

See merge request espressif/esp-idf!23705
2023-05-18 15:04:37 +08:00
Mahavir Jain
d532e2307e Merge branch 'bugfix/update_test_dl_esp_cert_v4.3' into 'release/v4.3'
tests: update Root certificate for the test endpoints (v4.3)

See merge request espressif/esp-idf!23800
2023-05-18 12:16:29 +08:00
Mahavir Jain
e0bea82931
tests: update Root certificate for the test endpoints
Use Root certificate (`DigiCert Global Root G2`) for the
`dl.espressif.com` and `espressif.com` test endpoints.

This fixes the test failure introduced due to renewal of
the intermediate certificate.
2023-05-17 15:29:06 +05:30
Zim Kalinowski
bf2e588972 Merge branch 'bugfix/i2c_timing_wrong_v4.3' into 'release/v4.3'
i2c: fix a bug in sda sample timing (backport v4.3)

See merge request espressif/esp-idf!23232
2023-05-17 14:49:04 +08:00
Marius Vikhammer
85c0fe4a7d Merge branch 'bugfix/psram_newlib_time_rom_v4.3' into 'release/v4.3'
rom: fix newlib time ROM functions being regardless of CONFIG_SPIRAM_CACHE_WORKAROUND (v4.3)

See merge request espressif/esp-idf!23388
2023-05-17 09:24:27 +08:00
zhiweijian
4853b91b18 Fixed blufi doc error 2023-05-11 20:21:21 +08:00
zhiweijian
0f0ea746a9 Fixed BLE disconnection failure on ESP32 2023-05-11 20:18:40 +08:00
zwj
cd4a4a6bb5 Fixed disconnection due to consecutive CRC errors in first 6 intervals 2023-05-11 20:18:31 +08:00
zwj
2098472085 Fixed no error report when own address type is rpa_random and no random address setting 2023-05-11 20:18:21 +08:00
zhiweijian
60c5d952db Fixed battery profile wrong condition 2023-05-11 20:18:12 +08:00
Marius Vikhammer
e3d109dd1d rom: fix newlib time ROM functions being regardless of CONFIG_SPIRAM_CACHE_WORKAROUND
On ESP32 ROM functions are not compatible with CONFIG_SPIRAM_CACHE_WORKAROUND.
This were handled correctly in cmake, but not in make.
2023-05-11 07:22:17 +00:00
xiongweichao
08e3ff3f77 bt: Deleted some redundant variables in HFP_AG 2023-05-10 10:28:38 +08:00
xiongweichao
a21f801eba bt: Fixed the problem of out-of-bounds access caused by the variable-length array introduced in 3268075231
Closes https://github.com/espressif/esp-idf/issues/11264
2023-05-10 10:28:34 +08:00
xiongweichao
979d63de4d bt: Fixed codec mode error in ESP_HF_WBS_RESPONSE_EVT 2023-05-10 10:28:29 +08:00
jasta
cf14eb4a17 esp_dpp: Fix retry with esp_supp_dpp_start_listen after failure
This fixes a subtle bug in which ESP_ERR_DPP_TX_FAILURE errors would
call esp_supp_dpp_stop_listen which sets the s_dpp_stop_listening flag
to true.  Subsequent attempts to restart listening with
esp_supp_dpp_start_listen then only attempt to listen once more for
500ms before reading the s_dpp_stop_listening flag again and giving up.

This contributes greatly to #10615, but the fix here is still largely
a work-around as it sometimes requires manually retrying a couple times
before it works.  Without this fix, any number of retries by
deinit/init again will seemingly not work as the retries for currently
unknown reasons.

Signed-off-by: Shreyas Sheth <shreyas.sheth@espressif.com>

Closes https://github.com/espressif/esp-idf/pull/10865
2023-05-05 14:21:32 +05:30
xiongweichao
d2ce8548cd bt: Fixed the inconsistency between the indicator event received by the HF application layer and the actually received indicator.
Closes https://github.com/espressif/esp-idf/issues/6486
2023-05-04 14:20:08 +08:00
Omar Chebib
b2c50986ee i2c: fix a bug in sda sample timing
* Closes https://github.com/espressif/esp-idf/issues/9777

This bug prevented SCL line to work properly after a NACK was received in master mode.
2023-05-04 04:16:12 +00:00
Zim Kalinowski
33b3db35d7 Merge branch 'doc/fix_pthread_create_example' into 'release/v4.3'
doc: fixed pthread_create call in example

See merge request espressif/esp-idf!23355
2023-04-24 14:54:30 +08:00
Jiang Jiang Jian
551de84c52 Merge branch 'bugfix/improve_scan_performance_when_scan_and_sync_coexist_v4.3' into 'release/v4.3'
Fixed some ESP32C3/S3 BLE bugs 23-04-22(backport v4.3)

See merge request espressif/esp-idf!23368
2023-04-24 11:09:39 +08:00
Jiang Jiang Jian
f3c5763f0e Merge branch 'bugfix/fix_some_ble_bug_v4.3' into 'release/v4.3'
Fixed some BLE bugs (backport v4.3)

See merge request espressif/esp-idf!23302
2023-04-24 10:46:48 +08:00