Commit Graph

33092 Commits

Author SHA1 Message Date
Darian Leung
94b46599c3 change(freertos/idf): Update FreeRTOS documentation build
This commit does the following:

- Update doxygen comments in FreeRTOS headers to remove unsupported doxygen
labels and internal functions
- Fixed existing doxygen warnings in FreeRTOS headers
2023-10-21 04:39:17 +08:00
Darian Leung
fdfdfc6d9e change(freertos/idf): Temporarily disable "Test suspend-resume CPU works with xTimer'"
The test is flakey with the v10.5.1 kernel.
2023-10-21 04:39:16 +08:00
Darian Leung
0d846ffe26 fix(freertos/idf): Add missing vPortSetStackWatchpoint() call
This commit restores a missing call to vPortSetStackWatchpoint() in the
V10.5.1 kernel.
2023-10-21 04:39:16 +08:00
Darian Leung
6c6a6ad44a fix(freertos/idf): Add workaround for same priority preemption in xTaskIncrementTick()
This commit temporarily disables a bugfixed introduced by FreeRTOS v10.5.1 that
ensures timed out tasks will only preempt if their priority is higher than the
currently running task.

This bugfix has been temporarily reversed due to some compatibility issues with
some IDF tests.
2023-10-21 04:39:16 +08:00
Darian Leung
4d14717e77 fix(freertos/idf): Add work around vTaskResumeAll() compiler optimization
This commit adds a workaround for a compiler optimization issue in FreeRTOS
v10.5.1 in xTaskResumeAll() where pxTCB is only read once, even if in a loop.

A follow up ticket has been added to properly resolve this issue.
2023-10-21 04:39:16 +08:00
Darian Leung
0c15815c2b fix(freertos/idf): vTaskStepTick assertions in SMP
Fixes vTaskStepTick() assertions in SMP, where SMP uses critical sections
instead of scheduler suspension when handling tickless idling.
2023-10-21 04:39:16 +08:00
Darian Leung
ec1ba78b7c fix(freertos/idf): Fix utility function performance
This commit optimizes the following utility functions to achieve higher
overall system performance:

xTaskGetCurrentTaskHandle():
- Made into stand alone function instead of wrapper call to "ForCore" variant
- Replaced critical sections with disabling interrupts. Lack of lock contention
improves performance.

xTaskGetCurrentTaskHandleForCore():
- Removed unecessary critical sections

xTaskGetSchedulerState():
- Replaced critical sections with disabling interrupts. Lack of lock contention
improves performance.
2023-10-21 04:39:16 +08:00
Darian Leung
b13b9c1163 fix(freertos/idf/linux): Fix configMAX_PRIORITIES for linux port
Previously the linux port of FreeRTOS set configMAX_PRIORITIES to 7. However,
multiple linux POSIX simulator examples will call API that create tasks with
priortiies >= 7.

This commit fixes the configMAX_PRIORITIES and unifies all ports to have 25
priorities.
2023-10-21 04:39:16 +08:00
Darian Leung
a23ba22fb7 fix(freertos/cmock): Fix FreeRTOS CMock builds for v10.5.1 kernel
This commit fixes the FreeRTOS CMock component in the following ways:

- Updated include directories to work with vanilla FreeRTOS v10.5.1
`#include "portmacro.h"` style inclusion.
2023-10-21 04:39:16 +08:00
Darian Leung
13f3a226bb change(examples): Update example configurations for FreeRTOS v10.5.1
This commit updates the sdkconfig for some examples when building with the
v10.5.1 kernel. The updates fixes the following:

Place FreeRTOS functions into flash

- Some examples use nearly 100% of available IRAM, thus any small increase in
IRAM in other components (e.g., FreeRTOS) will lead to a build error. As a
result, 'CONFIG_FREERTOS_PLACE_FUNCTIONS_INTO_FLASH' has been enabled in those
examples to save some IRAM.
- Some examples consume too much flash memory, leading to the 'factory'
parition overflowing. IN those examples,
'CONFIG_PARTITION_TABLE_SINGLE_APP_LARGE' has been enabled to use a larger
'factory' partition.
2023-10-21 04:39:16 +08:00
Darian Leung
5c0449a63a change(freertos/idf): Update single-core macros to prevent unused variable error
Various convenience macros in tasks.c will simply leave macro arguments unused
when built for single-core. This leads to an 'unused variable' warning.

This commit updates those macrso so that the unused arguments have a
'(void)' statement.
2023-10-21 04:39:16 +08:00
Darian Leung
82ad04e3ba change(freertos/idf): Update version number, licenses, and sbom to v10.5.1
Following the upgrade to FreeRTOS kernel v10.5.1, this commit updates the
version numbers, licenses, and SBOM files of FreeRTOS files to reflect v10.5.1.

Note:

- Updated licenses as v10.5.1 now uses SPDX format
- Removed CVE-2021-43997 as it was fixed post v10.4.5
2023-10-21 04:39:16 +08:00
Darian Leung
16ccb31d33 change(freertos/idf): Make v10.5.1 the default kernel
This commit makes v10.5.1 the default FreeRTOS kernel in ESP-IDF by removing
the CONFIG_FREERTOS_USE_KERNEL_10_5_1 option and v10.4.3 specific code
blocks.
2023-10-21 04:39:16 +08:00
Darian Leung
2025a77dd6 change(freertos/idf): Move v10.5.1 kernel files
This commit moves the v10.5.1 kernel files to the 'FreeRTOS-Kernel' directory.
2023-10-21 04:39:16 +08:00
Darian Leung
fe5a577198 change(freertos/idf): Remove v10.4.3 kernel files
This commit removes the v10.4.3 kernel files in prepartion for upgrading to
v10.5.1.

- Portable files still remain
- Added as a separate commit to preserve commit history
2023-10-21 04:39:16 +08:00
Aditya Patwardhan
7b8a2e8119 Merge branch 'fix/https_request_example_build_with_esp_wolfssl' into 'master'
fix(esp-tls): Fix the https_request example build for esp-wolfssl

See merge request espressif/esp-idf!26576
2023-10-20 22:31:14 +08:00
Martin Vychodil
8cd898ebee Merge branch 'docs/nvs_add_return_error_description_for_nvs_open' into 'master'
docs: nvs_open* add ESP_ERR_INVALID_ARG to return description

Closes IDF-1528

See merge request espressif/esp-idf!26583
2023-10-20 22:27:42 +08:00
Ivan Grokhotkov
40347c9c27 Merge branch 'feature/app_trace_component_test_app' into 'master'
feat(app_trace): migrate the tests from unit-test-app

Closes IDF-5564

See merge request espressif/esp-idf!26273
2023-10-20 21:45:05 +08:00
zhiweijian
0914d9b8d8 feat: support ble esp32c3 eco7 2023-10-20 19:54:36 +08:00
Jiang Jiang Jian
aa22a66c22 Merge branch 'feat/support_esp32c3_eco7_wifi' into 'master'
Feat/support esp32c3(v1.1) wifi

Closes WIFI-6274

See merge request espressif/esp-idf!26132
2023-10-20 19:13:03 +08:00
Chen Yudong
a91f692358 ci: optimize deploy jobs dependencies 2023-10-20 18:51:30 +08:00
Rocha Euripedes
c82c00d238 Merge branch 'ci/move_pubconnect_to_nightly' into 'master'
ci(mqtt): Move publish tests to nightly

See merge request espressif/esp-idf!26594
2023-10-20 18:30:33 +08:00
morris
df2c62d270 bugfix(driver): fix wrong DMA bus usage
in SPI, RMT, parlio
2023-10-20 09:08:54 +00:00
morris
0cbcb9f5ea feat(mcpwm): support update timer period dynamically
Implement the requirement asked in
https://www.esp32.com/viewtopic.php?f=13&t=35919
2023-10-20 16:57:25 +08:00
Roland Dobai
91da72ef95 Merge branch 'docs/dialout_group_linux' into 'master'
docs(get-started): Adjusteded docs flashing part to be more user friendly

Closes IDFGH-11199

See merge request espressif/esp-idf!26411
2023-10-20 16:36:12 +08:00
Aditya Patwardhan
7e6f4d4e87 fix(esp-tls): Fix the https_request example build for esp-wolfssl 2023-10-20 13:43:18 +05:30
Roland Dobai
44fcbe2ea4 Merge branch 'feat/min_config_labels' into 'master'
feat(tools/kconfig): add menu labels for min config

Closes IDFGH-8945

See merge request espressif/esp-idf!26312
2023-10-20 15:54:49 +08:00
Armando (Dou Yiwen)
37a5ab0f09 Merge branch 'bugfix/fix_bootloader_random_multiple_build_issue' into 'master'
rng: only build bootloader_random apis once

See merge request espressif/esp-idf!26571
2023-10-20 15:48:22 +08:00
Alex Lisitsyn
1c0631ee70 Merge branch 'bugfix/modbus_examples_fix_format_issues' into 'master'
modbus: fix -wno-format issues in the examples

Closes IDF-6437

See merge request espressif/esp-idf!26542
2023-10-20 15:27:33 +08:00
Alex Lisitsyn
c5b2291eea modbus: fix -wno-format issues in the examples 2023-10-20 15:27:33 +08:00
laokaiyao
e2c182ab4b refactor(i2s): stop to output mclk after uninstalled on esp32 2023-10-20 14:55:10 +08:00
wuzhenghui
d6cda1b6e1 ci(esp_hw_support): add test case for gpio output internal clock feature ci 2023-10-20 14:55:10 +08:00
wuzhenghui
7195bf19df feat(esp_hw_support): support one-to-many signal-gpio mapping output 2023-10-20 14:55:06 +08:00
wuzhenghui
6a436286dc feat(esp_hw_support): add api to gpio driver to support output internal clock on GPIO 2023-10-20 14:35:26 +08:00
zwx
1dc2a98d1e fix(openthread): fix host interface mdoe none 2023-10-20 14:03:24 +08:00
Euripedes Rocha
9628c9b5b8 ci(mqtt): Move publish tests to nightly
Publish test cases are prone to fail depending on Ci load.
2023-10-20 07:44:35 +02:00
Rahul Tank
e7e478205b Merge branch 'bugfix/fix_espcoredump_compilation_warning' into 'master'
fix(espcoredump): fixed compilation warning

Closes IDFGH-11151

See merge request espressif/esp-idf!26395
2023-10-20 13:41:47 +08:00
Jiang Jiang Jian
172f3a77bc Merge branch 'feat/dynamic_integration_pipeline' into 'master'
ci: dynamic integration child pipeline

Closes IDFCI-1659 and MTWJ-306

See merge request espressif/esp-idf!25898
2023-10-20 11:12:08 +08:00
alanmaxwell
cd784eb0f1 fix(ci): disable WiFi IRAM option for bleprph_wifi_coex example 2023-10-20 11:02:05 +08:00
alanmaxwell
4d33bf7ee9 feat(wifi): support esp32c3 v1.1 WiFi
1.bringup c3 v1.1 and sync func to c3 eco7 rom
2.support to set null&probe lifetime
3.support to adjust listen interval to dtim period
4.support tx pkt w/o wake null
5.allow to tx null0 if requtest to rx data
2023-10-20 11:01:07 +08:00
Jiang Guang Ming
5f00b8a4d5 fix(esp32c3): Update esp32c3 chip revision 2023-10-20 11:01:07 +08:00
Jiang Guang Ming
d1fbec028c feat(esp32c3): Add rom ld with ROM tag esp32c3-eco7-20230720 2023-10-20 11:01:07 +08:00
Shen Wei Long
4c9d181076 Merge branch 'ci/update_bt_examples_build_rules' into 'master'
ci: update bluetooth examples build rules

Closes IDFCI-1820 and IDF-8368

See merge request espressif/esp-idf!26271
2023-10-20 10:50:06 +08:00
Armando (Dou Yiwen)
1bce665e73 Merge branch 'feat/sdspi_esp32p4' into 'master'
sdspi: supported sdspi on esp32p4

Closes IDF-7501

See merge request espressif/esp-idf!26458
2023-10-20 10:41:44 +08:00
Wang Meng Yang
5557ef4036 Merge branch 'fix/remove_esp_hf_ag_devices_status_indchage_in_example' into 'master'
fix(bt/bluedroid): Send device status of AG to HF with a different api

Closes BT-3437

See merge request espressif/esp-idf!26350
2023-10-20 09:45:59 +08:00
morris
565b9fd117 Merge branch 'refactor/hal_util_bitwise_reverse8' into 'master'
hal: add util function to reverse a 8bit byte

See merge request espressif/esp-idf!26532
2023-10-20 09:43:15 +08:00
Jiang Jiang Jian
865d29ea18 Merge branch 'bugfix/update_ble_lib_1018' into 'master'
change(ble): update ble lib on c6 h2 and c2 chip

Closes BLERP-144, BLERP-134, BLERP-143, BLERP-128, BLERP-136, BLERP-135, BLERP-132, BLERP-146, BLERP-147, BLERP-148, BLERP-149, BLERP-150, BLERP-145, BLERP-151, BLERP-152, BLERP-153, BLERP-154, BLERP-155, and BLERP-156

See merge request espressif/esp-idf!26541
2023-10-20 00:40:54 +08:00
wuzhenghui
1f10c84a4f change(hal): rewrite gpio_ll_set_iomux_pin_ctrl api 2023-10-19 22:24:08 +08:00
Armando (Dou Yiwen)
471f1f61ae Merge branch 'feature/support_sdmmc_ver2_on_p4' into 'master'
sdmmc: esp32p4 support

Closes IDF-6502

See merge request espressif/esp-idf!25405
2023-10-19 22:00:40 +08:00
Jiang Jiang Jian
06822da186 Merge branch 'fix/phy_pll_track_corner' into 'master'
fix(esp_phy): fix pll track corner case

Closes WIFIBUG-199

See merge request espressif/esp-idf!26546
2023-10-19 21:33:10 +08:00