Commit Graph

2940 Commits

Author SHA1 Message Date
Zhang Xiao Yan
60e90cdc75 docs: Migrate user guides of ESP32-C3-DevKitM and ESP32-C3-DevKitC to esp-dev-kits (v5.0) 2024-07-03 14:09:47 +08:00
zhangshuxian
e969de7fcb docs: Delete user guide esp32-s2-devkitc-1 2024-07-01 10:42:02 +08:00
Jiang Jiang Jian
0d58e01665 Merge branch 'docs/delete_user_guide_esp32_s2_devkitm_1_v5.0' into 'release/v5.0'
docs: Delete user guide esp32-s2-devkitm-1 (v5.0)

See merge request espressif/esp-idf!31610
2024-07-01 10:14:17 +08:00
Jiang Jiang Jian
7243bf3f3b Merge branch 'fix/docs_wifi_get_sta_list_v5.0' into 'release/v5.0'
fix(docs): tcpip_adapter: Document replacement of tcpip_adapter_get_sta_list (v5.0)

See merge request espressif/esp-idf!31173
2024-07-01 10:13:27 +08:00
Jiang Jiang Jian
16521f6cba Merge branch 'docs/add_missing_usb_functions_to_esp32-c3_devkit_user_guides_v5.0' into 'release/v5.0'
Docs: Added missing USB functions to ESP32-C3 DevKit User Guides (v5.0)

See merge request espressif/esp-idf!30866
2024-07-01 10:12:47 +08:00
zhangshuxian
42fe805d63 docs: Delete user guide esp32-s2-devkitm-1 2024-06-25 16:07:11 +08:00
Xiao Xufeng
01560b9ca5 doc(flash): fix auto suspend enabled by default issue 2024-06-24 17:35:30 +08:00
David Cermak
5f0a92e2e6 fix(docs): tcpip_adapter: Document replacement of tcpip_adapter_get_sta_list 2024-05-29 13:46:08 +02:00
wangning
d3e239e1fe docs(esp32c3): Added missing USB functions to esp32-c3 devkit user guides 2024-05-16 11:32:54 +08:00
xiongweichao
1f4a2c9222 docs: Update the process of Bluetooth entering sleep in the sleep_modes.rst 2024-05-10 10:31:03 +08:00
Song Ruo Jing
02d819b69b fix(uart): Fix mismatch wakeup rising edges required with the threshold configured
Closes https://github.com/espressif/esp-idf/issues/12586
2024-04-24 17:27:27 +08:00
zhangyanjiao
b1c0260dfd docs(wifi): update the docmentation for sniffer API
Closes https://github.com/espressif/esp-idf/issues/10740
2024-04-17 16:19:54 +08:00
zhangyanjiao
693ceaba3c docs(wifi): Updated the LMK description in ESP-NOW
Closes https://github.com/espressif/esp-idf/issues/12976
2024-03-15 15:14:11 +08:00
Marius Vikhammer
e6c0672e4f Merge branch 'docs/usb_host_stack_config_v5.0' into 'release/v5.0'
USB host: host stack configiuration docs backport to v5.0

See merge request espressif/esp-idf!28774
2024-03-06 15:36:47 +08:00
Xiao Xufeng
31201cc947 doc(spi_flash): hide unsupported optional features 2024-03-03 23:11:43 +08:00
Xiao Xufeng
c32a56fe3b spi_flash: fixed issue that enabling HPM-DC by default may cause app unable to restart 2024-03-03 23:11:43 +08:00
linruihao
c57f0f45da docs: update rf coexistenct api guides
1. support esp32c2
2. fix inconsistency between CN and EN docs of rf coexistence
3. adjust the visibility of some contents based on soc_caps
2024-02-23 17:01:14 +08:00
Jiang Jiang Jian
91ed63ef02 Merge branch 'feature/supplicant_bss_extmem_v5.0' into 'release/v5.0'
WiFi: Add support to move supplicant BSS to external memory (v5.0)

See merge request espressif/esp-idf!28745
2024-02-23 10:41:41 +08:00
morris
e6d25871f1 Merge branch 'contrib/github_pr_12963_v5.0' into 'release/v5.0'
fix misformatted link (GitHub PR) (v5.0)

See merge request espressif/esp-idf!28756
2024-02-23 10:27:46 +08:00
mofeifei
8cf35aa27b docs: update cn trans usb_host.rst 2024-01-29 10:26:14 +01:00
Roman Leonov
470ecb3033 feat(docs): added USB Host Stack Configuration description 2024-01-29 10:22:26 +01:00
Gabor Kiss-Vamosi
d43bf5dc51 fix misformatted link 2024-01-29 13:16:29 +08:00
Kapil Gupta
443842fd9d fix(wifi): Add support to move supplicant BSS to external memory 2024-01-27 11:15:10 +05:30
Harshit Malpani
e713b3cbb5
feat: Add API to verify the bootloader and app image
Added an API to verify the bootloader and app image before revoking the key in Secure Boot V2.
This will help in preventing the device to be bricked if the bootloader/application cannot be
verified by any other keys in efuse
2024-01-16 11:57:06 +05:30
David Čermák
616b881b91 Merge branch 'bugfix/lwip_dns_docs_v5.0' into 'release/v5.0'
fix(lwip): Document DNS limitation in lwIP (v5.0)

See merge request espressif/esp-idf!27563
2023-12-22 04:43:37 +08:00
Jiang Jiang Jian
c74c15a92f Merge branch 'docs/Separate_low-power_documents_v5.0' into 'release/v5.0'
docs:separate low power documents (backport v5.0)

See merge request espressif/esp-idf!28020
2023-12-21 11:11:51 +08:00
Krzysztof Budzynski
d0a89f848e Apply 2 suggestion(s) to 2 file(s) 2023-12-20 10:57:07 +08:00
wangtao@espressif.com
a5db7c63ea docs:Separate low-power documents 2023-12-20 10:56:51 +08:00
Roland Dobai
585c252527 Merge branch 'feature/docker_git_safe_dirs_v5.0' into 'release/v5.0'
feat(docker): allow to add dirs into git's safe.directory (v5.0)

See merge request espressif/esp-idf!27561
2023-12-19 19:34:36 +08:00
wanlei
64ac8f0874 fix(spi): correct some signals and dummy bits docs 2023-12-06 16:28:51 +08:00
David Cermak
ee02d4d51b fix(lwip): Document DNS limitation in lwIP
* Add a note that DNS server config is global in lwIP
* Add a section about defining LWIP config macros from CMake
* Mention the DNS limitation in ESP-IDF additions to lwIP
* Update CN for lwIP DNS limitation

Co-Authored-By: Wang Ziyan <wangziyan@espressif.com>
2023-12-01 08:47:16 +01:00
Frantisek Hrbata
13e4c1a9e7 feat(docker): allow to add paths into git's safe.directory
With 8959555cee7e[1] ("setup_git_directory(): add an owner check for the top..")
git added an ownership check of the git directory and refuses to
run any git commands, even parsing the config file, if the git directory
is not owned by the current user. The "fatal: detected dubious ownership in repository"
is reported.

This fixes CVE-2022-24765[2], which allows to compromise user account. On a
multi-user system or e.g. on a shared file system, one user may create a "rogue"
git repository with e.g. core.fsmonitor set to an arbitrary command. Other user
may unwillingly execute this command by running e.g. git-diff or
git-status within the "rogue" git repository, which may be in one of the parent
directories. If e.g. PS1 is set to display information about a git
repository in CWD, as suggested in Git in Bash[3], the user do not need to run
any git command to trigger this, just entering some subdirectory under
this "rogue" git repository is enough, because the git command will be
started transparently through the script used in PS1. The core.fsmonitor
can be set to arbitrary command. It's purpose is to help git to identify changed files
and speed up the scanning for changed files.

rogue
├── .git     # owned by user1
└── dir1     # owned by user2
    ├── dir2 # owned by user2
    └── .git # owned by user2

user1 sets core.fsmonitor for git repository in rogue directory
$ git config --add core.fsmonitor "bash -c 'rm -rf \$HOME'"

user2 enters dir1 and runs e.g. git diff and triggers the core.fsmonitor command.

The ownership check may cause problems when running git commands in
ESP-IDF Docker container. For example user may run the container as
root, but the mounted project may be owned by a particular user.

In this case git will refuse to execute any git command within the
"/project" directory, because it's not owned by root. To overcome this,
git allows to set safe.directories, for which the ownership check is
skipped. The security check may be completely disabled by setting
safe.directories to "*". This solution was proposed in PR 12636[4], but
it would allow make it possible to exploit this vulnerability again.

This fix allows user to specify git's safe.directory in IDF_GIT_SAFE_DIR
environmental variable, which may be set during container startup.

The IDF_GIT_SAFE_DIR has same format as PATH and multiple directories can be
specified by using a ":" separator. To entirely disable this git security check
within the container, user may set IDF_GIT_SAFE_DIR='*'. This might be
heplfull in CI.

Closes https://github.com/espressif/esp-idf/pull/12636

[1] - 8959555cee
[2] - https://nvd.nist.gov/vuln/detail/cve-2022-24765
[3] - https://git-scm.com/book/en/v2/Appendix-A%3A-Git-in-Other-Environments-Git-in-Bash
[4] - https://github.com/espressif/esp-idf/pull/12636

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2023-12-01 08:31:06 +01:00
morris
3bb601cee7 Merge branch 'feature/mcpwm_trigger_driver_v5.0' into 'release/v5.0'
feature(MCPWM): Add MCPWM trigger driver (v5.0)

See merge request espressif/esp-idf!26788
2023-11-23 14:33:20 +08:00
Jiang Jiang Jian
5f497153f7 Merge branch 'bugfix/rmt_stop_issue_v5.0' into 'release/v5.0'
fix(rmt): a disabled channel may pick up a pending transaction (v5.0)

See merge request espressif/esp-idf!26780
2023-11-23 14:27:25 +08:00
morris
28224b3af5 Merge branch 'bugfix/fix_wrong_adc_attenuation_name_v5.0' into 'release/v5.0'
fix(adc): rename ADC_ATTEN_DB_11 to ADC_ATTEN_DB_12 (v5.0)

See merge request espressif/esp-idf!26968
2023-11-23 12:04:24 +08:00
Song Ruo Jing
c0a1d27858 fix(ledc): fix ledc driver 100% duty cycle configuration
Update ledc duty cycle value range in doxygen.
Fix duty configuration error at 100% duty cycle for ESP32.
Improve LEDC API doxygen.

Closes https://github.com/espressif/esp-idf/pull/11516
Closes https://github.com/espressif/esp-idf/issues/12593
Closes https://github.com/espressif/esp-idf/issues/12083
2023-11-22 03:12:38 +00:00
Chen Jichang
01c5d8d72e feature(MCPWM): Add MCPWM trigger driver and test
Each MCPWM operator has two Trigger (named T0 and T1), and they can be
routed to GPIO fault signal or timer sync event.Generator can be set up
to perform different action on Trigger event.
This commit add a trigger driver and a test for the driver.

fix(mcpwm): fault trigger test forget connect timer and operator
2023-11-09 21:52:37 +08:00
morris
6a7e250442 feat(rmt): support calling rmt_receive in ISR callback 2023-11-08 15:03:44 +08:00
Armando
f8500f77b1 fix(adc): rename ADC_ATTEN_DB_11 to ADC_ATTEN_DB_12
By design, it's 12 dB. There're errors among chips, so the actual
attenuation will be 11dB more or less
2023-11-07 14:12:50 +08:00
morris
da2399a2c5 fix(rmt): a disabled channel may pick up a pending transaction
because in the trans_done interrupt, the driver didn't check the channel FSM
2023-11-03 02:40:56 +00:00
Jiang Jiang Jian
03732b50fd Merge branch 'feature/pbkdf2_fast_implementation_v5.0' into 'release/v5.0'
change(esp_wifi): Copy fastpbkdf2 implementation

See merge request espressif/esp-idf!26852
2023-11-02 15:12:20 +08:00
Kapil Gupta
973aca32be change(esp_wifi): Port fast_pbkdf2 implementation for mbedlts
Add changes to use fast_pbkdf2 as default for PMK calculations.
fast_pbkdf2 is significantly faster than current implementations
for esp chips.

Also removes unnecessary code for pbkdf-sha256 and pbkdf-sha512.
2023-11-01 21:56:56 +05:30
liuning
728cd2489a feat(esp_wifi): support ps-none mode at coexist 2023-10-31 20:38:17 +08:00
Jiang Guang Ming
c2f6a5c180 docs: Update COPYRIGHT.rst since mbedtls supported in C2 ROM 2023-10-26 21:00:39 +08:00
Jiang Guang Ming
d5fda4a286 docs: add the description of CONFIG_MBEDTLS_USE_CRYPTO_ROM_IMPL 2023-10-26 21:00:39 +08:00
Jiang Jiang Jian
349bc1795c Merge branch 'feature/free_bt_memory_5.0' into 'release/v5.0'
feat(bt): Frees BLE memory when no longer in use

See merge request espressif/esp-idf!26574
2023-10-26 17:55:32 +08:00
morris
674b533eed Merge branch 'feature/mcpwm_timer_change_freq_v5.0' into 'release/v5.0'
feat(mcpwm): support update timer period dynamically (v5.0)

See merge request espressif/esp-idf!26625
2023-10-25 09:49:03 +08:00
Shen Weilong
6875e2b7d0 feat(bt): Frees BLE memory when no longer in use
It will free libble.a & libbt all txt, data and bss segment memory.
          This memory is combined into one large memory and put into the heap
          pool.
2023-10-24 06:04:39 +00:00
morris
0187f3b4e3 feat(mcpwm): support update timer period dynamically
Implement the requirement asked in
https://www.esp32.com/viewtopic.php?f=13&t=35919
2023-10-24 10:08:29 +08:00
Alexey Gerenkov
d2b9326df1 Merge branch 'bugfix/docs_hw_breakpoints_num_v5.0' into 'release/v5.0'
fix(docs/jtag): Fix hard-coded HW breakpoints/watchpoints number (v5.0)

See merge request espressif/esp-idf!26501
2023-10-23 20:16:27 +08:00