Commit Graph

27235 Commits

Author SHA1 Message Date
Jiang Guang Ming
ce1042a267 esp_rom: fix rom layout issues 2023-07-07 01:25:17 -07:00
harshal.patil
e858c2c1e0 mbedtls: update submodule to include:
fix: mbedtls_ecdsa_can_do was not being defined when ECDSA_SIGN_ALT is defined but ECDSA_VERIFY_ALT is not defined causing mbedtls_ecdsa_verify_restartable to always fail.
feature: initial version of the sbom.yml file
2023-07-07 10:30:33 +05:30
Armando
bf5e10dd23 fix(adc): fix s_adc_tsen_enabled not set issue 2023-07-06 16:48:59 +08:00
laokaiyao
bd70b44144 adc_oneshot: move power acquire back to adc_oneshot_new_unit
Revert and fix of d197c59eaa in !23575
2023-07-06 16:46:24 +08:00
Roshan Bangar
b4c8d92d94 fix(nimble): Fix assert due to controller event while stack deinit 2023-07-06 11:49:09 +05:30
Darian Leung
52589aca08 ringbuf: Fix ordering of StaticRingbuffer_t
When building on linux/host compilers (e.g., GCC), the compiler may add padding
depending on the size and order of the member types.

This commit fixes the ordering or the StaticRingbuffer_t such that it matches
the internal Ringbuffer_t. The "_Static_assert" is always enabled for all
compilers.

Note: Removed all usage configSUPPORT_STATIC_ALLOCATION preprocessor conditions
as the macro is always set to 1.

Closes https://github.com/espressif/esp-idf/issues/11726
2023-07-04 21:42:12 +01:00
Krzysztof
7114092451 docs(jtag): Update CN translation of 'api-guides/jtag-debugging/index.rst' 2023-07-04 19:29:52 +08:00
Xabi Crespo
bfddc02963 docs(jtag): Update chip revisions to follow ESP32-C3 errata (GitHub PR) 2023-07-04 19:29:52 +08:00
jgujarathi
181666c4a7 fix(esp_wifi) : Fix collection of issues in sta roam and scan.
1) Fix issue during split scan to allow for data tx.
2) Fix issue when parsing wpa_ie to set correct authmode when AP
   supports both WPA_EAP and WPA_EAP_SHA256 authmode.
   Closes https://github.com/espressif/esp-idf/issues/11202
3) Fix an occasional crash during sta roam.
4) Add home_channel_dwell_time to wifi_scan_config_t. This allows
   configuration of the time spent between scanning consecutive
   channels for tx.
5) Adds a obss scan timer disarm when a sta disconnects from an AP
2023-07-04 11:59:26 +05:30
Shreyas Sheth
5714d6d324 esp_wifi: Bugfix concurrency observed while doing eloop register 2023-07-04 09:42:39 +05:30
Alexey Gerenkov
c076c24a11 gcov: Fix not linked gcov rtio functions 2023-07-03 13:10:01 +03:00
Jiang Jiang Jian
4c775e3eb8 Merge branch 'bugfix/fix_bleqabr23_338_v5.0' into 'release/v5.0'
bluedroid: fixed gatt tcb free when disconnecting (backport v5.0)

See merge request espressif/esp-idf!24499
2023-06-30 11:05:49 +08:00
Jiang Jiang Jian
2558d4c46d Merge branch 'bugfix/fix_esp32s3_tsens_v5.0' into 'release/v5.0'
fix(esp_wifi): Fix crash caused by tx_pwctrl_background call in ESP32S3(v5.0)

See merge request espressif/esp-idf!24477
2023-06-30 10:18:02 +08:00
chenjianhua
64a2778d5f bluedroid: fixed gatt tcb free when disconnecting 2023-06-29 20:55:37 +08:00
cjin
75bd131a54 ble: fix cca for esp32c2 2023-06-29 20:02:34 +08:00
Jiang Jiang Jian
ad5a8be6ab Merge branch 'bugfix/decouple_softap_c2_v5.0' into 'release/v5.0'
Bugfix/decouple softap c2 (v5.0)

See merge request espressif/esp-idf!24471
2023-06-29 18:22:24 +08:00
chenjianxing
af44033b5a esp_wifi: fix timer callback crash after wifi deinit on esp32c2. 2023-06-29 15:09:07 +08:00
chenjianxing
ef3fe14b5f esp_wifi: decouple softap for esp32c2. 2023-06-29 15:09:07 +08:00
Jiang Jiang Jian
b1e79dbcf5 Merge branch 'bugfix/temperature_weak_link_phy_xpd_v5.0' into 'release/v5.0'
temperature_sensor: only link phy_xpd_tsens function in phy_lib ( backport v5.0)

See merge request espressif/esp-idf!24473
2023-06-29 15:07:06 +08:00
Jiang Jiang Jian
3a8e28d862 Merge branch 'bugfix/fix_deepsleep_saradc_leakage_by_sar' into 'release/v5.0'
bugfix: fix adc current leakage by sar_adc on v5.0

See merge request espressif/esp-idf!24344
2023-06-29 14:23:38 +08:00
Vikram
8390818e7e Added description to disable coredump logs to ram_usage.rst
Signed-off-by: Vikram <vikram.dattu@espressif.com>
2023-06-29 11:51:03 +05:30
Vikram
7c766af407 Optionally disable logs in espcoredump component
Early log strings used by this component are placed in DRAM.
Disabling these logs saves ~5KB of internal memory

Signed-off-by: Vikram <vikram.dattu@espressif.com>
2023-06-29 11:51:03 +05:30
chenjianxing
0f91ea5369 fix(esp_wifi): Fix crash caused by tx_pwctrl_background call in ESP32S3. 2023-06-29 11:08:09 +08:00
Cao Sen Miao
045467e439 temperature_sensor: only link phy_xpd_tsens function in phy_lib 2023-06-29 10:27:38 +08:00
wuzhenghui
e0370d89c3 ci: increase timeout threshold to solve deepsleep wakestub example ci failure 2023-06-28 18:12:33 +08:00
Linda
1dbca70b62 docs: update code of how to configure multiple antennas of wifi 2023-06-28 14:43:45 +08:00
Linda
a42b4da02d docs: fix a typo in api-guides/usb-otg-console 2023-06-28 14:40:53 +08:00
Linda
94294610e9 docs: update installation prerequisites for Ubuntu and Debian system 2023-06-28 14:38:50 +08:00
wuzhenghui
3eae74e966 bugfix: increase pm_dump time field width
Closes https://github.com/espressif/esp-idf/issues/11704
2023-06-28 14:35:20 +08:00
Linda
684e15f729 fix a typo in api-reference/system/ota 2023-06-28 14:28:32 +08:00
Ilia Lutchenko
837a46b5a7 btc_sdp: add_raw_sdp: fix 32 and 128-bit uuid configuration
Added proper conversion of 4 and 16-byte UUIDs values to binary streams.
UUIDs now set with SDP_AddAttribute() instead of
SDP_AddServiceClassIdList().
2023-06-28 14:18:20 +08:00
Frantisek Hrbata
b947cab073 tools: add sbom information for submodules
This adds SBOM information for submodules, which are not managed
by Espressif. Meaning there is no fork for them in the espressif
namespace. Other submodules should add sbom.yml manifest file to
the root of their git repository.

The SBOM information for submodules is stored in the .gitmodules file.
Each SBOM related variable has the "sbom-" prefix and the following
variables may be used:

sbom-version:
   submodule version

sbom-cpe:
   CPE record if available in NVD. This will be used by the SBOM
   tool to check for possible submodule vulnerabilities. The
   version in the CPE can be replaced with the "{}" placeholder,
   which will be replaced by the "sbom-version" value from above.

sbom-supplier:
   Person or organization who is providing the submodule.
   It has to start with "Person:" or "Organization:" prefix
   as required by the SPDX-2.2 standard.

sbom-url:
   URL to the project if exists, e.g. github.

sbom-description:
   Project description.

sbom-hash:
   Submodule SHA as recorded in the git-tree. This field is used by
   CI to check that the submodule checkout hash and info in .gitmodules
   are in sync. IOW if submodule is updated and it has SBOM info in
   .gitmodules, the .gitmodules has to be updated too. The test is
   part of this commit. The checkout has of the submodule can be found
   by using "git submodule status".

Example for micro-ecc submodule
---8<---
[submodule "components/bootloader/subproject/components/micro-ecc/micro-ecc"]
	path = components/bootloader/subproject/components/micro-ecc/micro-ecc
	url = ../../kmackay/micro-ecc.git
	sbom-version = 1.0
	sbom-cpe = cpe:2.3🅰️micro-ecc_project:micro-ecc:{}:*:*:*:*:*:*:*
	sbom-supplier = Person: Ken MacKay
	sbom-url = https://github.com/kmackay/micro-ecc
	sbom-description = A small and fast ECDH and ECDSA implementation for 8-bit, 32-bit, and 64-bit processors
	sbom-hash = d037ec89546fad14b5c4d5456c2e23a71e554966
---8<---

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2023-06-27 10:05:29 +02:00
harshal.patil
ff28efe5be protobuf-c: Update submodule to v1.4.1 2023-06-27 11:17:43 +05:30
laokaiyao
a2cf3ae4df i2s: fixed i2s_ll compiling failure under C++ evironment
Closes: https://github.com/espressif/esp-idf/issues/11625
2023-06-27 10:39:43 +08:00
morris
e43622d1df touch_element: fix unintended integer division 2023-06-26 07:08:04 +00:00
morris
92ca847730 usbh: fix invalid assert on desc_status 2023-06-26 07:08:04 +00:00
morris
93ce0714fd vfs_uart: fix out-of-bounds read
when open uart device "/2" on chips only have 2 UART peripherals
2023-06-26 07:08:04 +00:00
jgujarathi
6c14120c7f wpa_supplicant : Fix occasional crash during btm roam.
Fix crash due to premature deallocation of neighbour report elements
by scan_done. Post event to btm_rrm_t task to handle scan_done serially
rather than when btm_rrm_t task is processing btm request rx frame.
2023-06-26 10:34:33 +05:30
wangmengyang
49bb1e85b7 component/docs: enable generation of API-reference documents for Bluetooth HID host 2023-06-25 15:37:54 +08:00
gongyantao
df68489f15 resolve the conflicts 2023-06-25 15:37:54 +08:00
Darian Leung
02ee20ff3a pytest: Expect "Calling app_main()" to indicate start of application
This commit updates variousf pytest scripts to expect
"main_task: Calling app_main()" instead of "cpu_start: Starting scheduler" as
indicator of the start of an application.
2023-06-23 10:35:56 +02:00
Peter Dragun
57e188c2e3 fix(monitor/ansi_converter): decode multibyte characters 2023-06-23 09:32:13 +02:00
Darian Leung
9c3a13515c freertos(IDF): Update IDF FreeRTOS linker fragment file
This commit updates the linker fragment file for IDF FreeRTOS.

- Linker fragment file's formatting was updated
- Placement rules of functions is now clearly specified inside the linker
  fragment file.
- Some extra functions are now placed in flash in accordance to the new
  placement rules.
2023-06-23 09:20:18 +02:00
Darian Leung
4ac68a97d9 freertos(SMP): Update SMP FreeRTOS linker fragment file
This commit updates the linker fragment file for Amazon SMP FreeRTOS.

- Linker fragment file's formatting was updated
- Placement rules of functions is now clearly specified inside the linker
  fragment file.
- Some extra functions are now placed in flash in accordance to the new
  placement rules.
2023-06-23 07:16:58 +02:00
Darian Leung
55644575db freertos: Add linker fragments for common functions
This commit adds a separate linker fragment file "linker_common.lf" for the
functions in "port_common.c". The placement rules are now clearly specified
inside the linker fragment file.
2023-06-22 17:20:48 +02:00
Darian Leung
68646e23ae freertos: Refactor port common functions
This commit refactors port_common.c so that it only contains implementation of
FreeRTOS port functions that are common to all FreeRTOS ports (i.e., on all
architectures and on all FreeRTOS implementations).
2023-06-22 17:20:35 +02:00
Darian Leung
feee3a3059 freertos: Refactor OS startup functions
This commit refactors the OS startup functions as follows:

- Moved the OS/app startup functions listed below to "app_startup.c". Their
    implementations are now common to all ports (RISC-V and Xtensa) of all
    FreeRTOS implementations (IDF and Amazon SMP).
    - esp_startup_start_app()
    - esp_startup_start_app_other_cores()
- Removed esp_startup_start_app_common() as app startup functions are now
    already common to all ports.
- Added extra logs to "main_task" to help with user debugging

Note: Increased startup delay on "unity_task". The "unity_run_menu()" is non
blocking, thus if the main task or other startup tasks have not been freed
by the time "unity_run_menu()" is run, those tasks will be freed the next time
"unity_task" blocks. This could cause some tests to have a memory leak, thus
the "unity_task" startup delay has increased.
2023-06-22 17:17:18 +02:00
radim.karnis
7b98762ff5 fix: Compatibility with pyparsing>=3.1.0 2023-06-22 11:29:14 +02:00
KonstantinKondrashov
2bdbcf12a9 freertos: Fix Systick stuck when systimer was not reset
Relates to OTA update for S3/C3 chips from IDF version 4.3 to v5.0 and above
2023-06-21 14:42:34 +00:00
Rahul Tank
da223dd790 Nimble: Expose API to clear all addresses in whitelist out of stack 2023-06-21 15:55:58 +05:30