Commit Graph

36545 Commits

Author SHA1 Message Date
Erhan Kurubas
9c99a385ad Merge branch 'feature/update-openocd-to-v0.12.0-esp32-20240318' into 'master'
feat(tools): update openocd version to v0.12.0-esp32-20240318

See merge request espressif/esp-idf!29759
2024-04-05 01:53:12 +08:00
Jakob Hasse
51f6bb8931 refactor(cmock): simplified mock build tests 2024-04-04 16:14:13 +02:00
Ivan Grokhotkov
6b6de47308
feat(sdspi): add LDO (power control) in sdspi tests 2024-04-04 15:03:27 +02:00
Ivan Grokhotkov
344439dfaa
change(sdmmc): move SD power control logic into sdmmc_test_sd_begin
This simplifies the code a bit,
- removing SOC_SDMMC_IO_POWER_EXTERNAL ifdefs from error paths
- moving the LDO code next to where sdmmc_test_board_card_power_set
  is called for the same purpose
2024-04-04 15:02:11 +02:00
Ivan Grokhotkov
2bd1a8706d
feat(sdmmc): add test config for ESP32-P4 EV board 2024-04-04 14:59:28 +02:00
Jakub Kocka
8e0a1e8039 fix(gcov): Fixed mixed path separators on Windows 2024-04-04 13:56:15 +02:00
Alexey Lapshin
4879bac36c feat(ulp): use --mcpu=esp32s3 for esp32s3 2024-04-04 16:12:39 +08:00
Alexey Lapshin
68464aad11 feat(tools): update esp32ulp-elf version to 2.38_20240113 2024-04-04 16:12:39 +08:00
David Čermák
295f908ef2 Merge branch 'fix/netif_ip_changed' into 'master'
fix(esp_netif): Post IP_CHANGE event also if mask and GW is ANY

Closes IDFGH-11836

See merge request espressif/esp-idf!29719
2024-04-04 16:01:20 +08:00
Frantisek Hrbata
75c765ff42 fix: exit gracefully when process started via asyncio is terminated
Currently when process is started through asyncio Runner and it is termited
e.g. with SIGINT(ctrl+c) a traceback is printed instead of gracefully
exit.

Exception ignored in: <function BaseSubprocessTransport.__del__ at 0x7fe980970900>
Traceback (most recent call last):
  File "/usr/lib64/python3.12/asyncio/base_subprocess.py", line 129, in __del__
    self.close()
  File "/usr/lib64/python3.12/asyncio/base_subprocess.py", line 107, in close
    proto.pipe.close()
  File "/usr/lib64/python3.12/asyncio/unix_events.py", line 568, in close
    self._close(None)
  File "/usr/lib64/python3.12/asyncio/unix_events.py", line 592, in _close
    self._loop.call_soon(self._call_connection_lost, exc)
  File "/usr/lib64/python3.12/asyncio/base_events.py", line 793, in call_soon
    self._check_closed()
  File "/usr/lib64/python3.12/asyncio/base_events.py", line 540, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed

This is caused because asyncio Runner context in asyncio.run is closing the event
loop and if exception is unhandled in coroutine(run_command) the transport is not
closed before the even loop is closed and we get RuntimeError: Event loop is closed
in the transport __del__ function because it's trying to use the closed
even loop.

Let's catch asyncio.CancelledError in case the process we are trying to
read from is terminated, print message, let the asyncio finish and exit
gracefully.

Closes https://github.com/espressif/esp-idf/issues/13418

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2024-04-04 09:58:01 +02:00
David Čermák
5c97c40689 Merge branch 'fix/ci_check_public_headers' into 'master'
fix(ci): Simplify public header checker

See merge request espressif/esp-idf!29446
2024-04-04 15:13:09 +08:00
Alexey Gerenkov
c9b649779e feat(tools): update openocd version to v0.12.0-esp32-20240318 2024-04-04 14:50:06 +08:00
David Cermak
4d40751158 fix(ci): Simplify and document public header checker
Documented specific checks/subchecks for header file verification
Simplified the process, now we use simple regex to remove macros from
the current header. Before, we re-ran preprocess_one_header()
function with removed `#include ...`s from the header under test, so
we were looking into the actual header (rather than included headers)
when checking for `extern "C"` keyword.
The procedure is easier to follow without this recursion (mostly because
in the second execution we might encounter compilation failers and
ignore them).
Note that this procedure is not 100% correct (we might see some false
positive and false negatives)
2024-04-04 08:45:15 +02:00
David Cermak
965ba606a7 fix(esp_netif): Post IP_CHANGE event also if mask and GW is ANY
Closes https://github.com/espressif/esp-idf/issues/12927
2024-04-04 08:12:43 +02:00
Darian
c8c3d4b28a Merge branch 'refactor/usb_new_phy_hal_api' into 'master'
refactor(hal/usb): Update USB WRAP/USJ P4 LL, add new USB PHY HAL API

See merge request espressif/esp-idf!29853
2024-04-04 14:09:03 +08:00
Mahavir Jain
78ff15602e
docs: add note about newly added mbedtls config to reduce app size footprint 2024-04-04 09:23:05 +05:30
Mahavir Jain
64fd14e787
feat(mbedtls): add kconfig option for MBEDTLS_ERROR_C
Disabling this config can reduce footprint for the cases where
mbedtls_strerror() is used and hence the debug strings are getting
pulled into the application image.
2024-04-04 09:20:28 +05:30
Alexey Lapshin
bcd753994b Merge branch 'feature/introduce-esp_rom_libc_stubs_h' into 'master'
feat(esp_rom): add esp_rom_libc_stubs.h

See merge request espressif/esp-idf!29769
2024-04-04 03:18:15 +08:00
Darian Leung
778c2e6863
refactor(hal/usb): Add new USB PHY related HAL API
This commit adds/updates the USB PHY related HAL APIs. The following changes
are made:

- Updated 'usb_wrap_hal.h' API
- Added 'usb_serial_jtag_hal.h' API
2024-04-04 02:47:00 +08:00
Darian Leung
023eae4f0b
feat(hal/usb): Update USB WRAP and USJ LL, add missing ESP32-P4 LL
This commit updates updates the LLs of USB WRAP and USJ as follows:

- Added missing 'usb_wrap_ll.h' and 'usb_serial_jtag_ll.h' for the ESP32-P4
- Added LL cap macros to distinguish feature differences between the LLs of
  different targets:
    - '..._LL_EXT_PHY_SUPPORTED' indicates whether the USB WRAP/USJ supports
      routing to an external FSLS PHY.
    - '..._LL_SWAP_PHY_SUPPORTED' indicates whether the USB WRAP/USJ supports
      swapping between multiple internal FSLS PHYs.
- Tidied up some RCC LL functions and their callers.
- Added 'usb_wrap_types.h' and 'usb_serial_jtag_types.h' to provide types used
  in LLs.
- Fixed some spelling/naming issues as part of code-spell pre-commit
2024-04-04 02:47:00 +08:00
Darian Leung
84ba2ef2e8
feat(soc/usb): Add USB UTMI PHY struct and LL for the ESP32-P4 2024-04-04 01:47:35 +08:00
Roland Dobai
ffbcbccf61 docs(readme): Update the chip support matrix in the README 2024-04-03 17:31:20 +02:00
Alexey Lapshin
9ff7ad2173 feat(esp_rom): add esp_rom_libc_stubs.h 2024-04-03 18:34:44 +04:00
Suren Gabrielyan
2267d4b6b5 fix(ws_transport): fix first fragment losting during websocket connection 2024-04-03 17:57:37 +04:00
wuzhenghui
2b4a2da52d
fix(esp_hw_support): fix esp332p4 stuck in dfs issue 2024-04-03 19:47:09 +08:00
Konstantin Kondrashov
f909dddde7 Merge branch 'feature/mac_esp32p4_support' into 'master'
feat(esp_hw_support): Adds MAC address support for esp32p4

Closes IDF-8949

See merge request espressif/esp-idf!28704
2024-04-03 19:01:29 +08:00
Chen Yudong
7d13f8210f ci: fix pytest generic env markers 2024-04-03 18:10:43 +08:00
chenjianhua
ae95ad5958 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(5274796)
- Fixed extended uncoded and coded scan scheduling
- Add config for channel assessment and ping procedure
- Clear random address for extended advertising
- Add periodic advertising list check
- Fixed periodic advertising data setting with zero length
2024-04-03 17:56:21 +08:00
Rahul Tank
23bae90070 Merge branch 'contrib/github_pr_11497' into 'master'
Nimble: Added blecsc (Cycling Speed and Cadence) profile support for nimble examples.

Closes IDFGH-10233

See merge request espressif/esp-idf!26631
2024-04-03 17:12:34 +08:00
Ivan Grokhotkov
dd35ded06a Merge branch 'maint/supported_targets_update' into 'master'
readme, tools: supported targets update

See merge request espressif/esp-idf!29425
2024-04-03 16:58:00 +08:00
Armando (Dou Yiwen)
fd11a0e85a Merge branch 'change/remove_no_longer_public_spi_reg' into 'master'
spi: remove no longer public spi reg

Closes DOC-7416

See merge request espressif/esp-idf!30010
2024-04-03 16:57:31 +08:00
Konstantin Kondrashov
dc4bf7d3e3 Merge branch 'bugfix/esp_timer_improve_tests' into 'master'
fix(esp_timer): Fix tests when esp_timer is running on CPU1

See merge request espressif/esp-idf!29901
2024-04-03 15:42:46 +08:00
Ivan Grokhotkov
9e279a3c07
change(ci): temporarily skip failures in macOS tests 2024-04-03 09:21:19 +02:00
Armando
2c81664fa3 change(spi): remove no longer public spi reg 2024-04-03 13:37:09 +08:00
ESPAbhinav
f8b2ab7955 feat(nimble): Added blecsc profile support for nimble examples 2024-04-03 10:50:02 +05:30
Island
28f68a0376 Merge branch 'feat/adjust_ble_log_init_order' into 'master'
Feat/adjust ble log init order

Closes BLERP-649, BLERP-651, BLERP-631, BLERP-652, and BLERP-655

See merge request espressif/esp-idf!29931
2024-04-03 12:39:49 +08:00
Mahavir Jain
2bfef64fc6 Merge branch 'fix/pmp_idcache_prot_c6_h2' into 'master'
fix(esp_hw_support): Fix the flash I/DROM region PMP protection

See merge request espressif/esp-idf!29933
2024-04-03 12:09:28 +08:00
Cao Sen Miao
d16e890993 docs(i2c_master): Add docs for lp_i2c support in i2c master driver 2024-04-03 11:39:10 +08:00
Cao Sen Miao
1fe7cc8d13 test(i2c_master): Add test for lp_i2c support in i2c master driver 2024-04-03 11:39:07 +08:00
Cao Sen Miao
0985bfbe27 feat(i2c_master): Add lp_i2c support in i2c master driver 2024-04-03 11:39:04 +08:00
Shen Weilong
f09dcff91e feat(ble): Support BLE on esp32c5beta3 2024-04-03 10:58:06 +08:00
shenmengjing
b8808f4211 docs: Edit the CN Translation and EN Source of usb-host 2024-04-03 10:45:06 +08:00
gaoxiaojie
aa3d3835ab fix(esp_rom): patch esprv_intc_int_set_type for esp32p4 2024-04-03 10:09:47 +08:00
Konstantin Kondrashov
d902a023ba fix(esp_timer): Fix tests when esp_timer is running on CPU1 2024-04-02 21:00:42 +03:00
Gao Xu
db3e43908a Merge branch 'feat/add_esp_dma_capable_malloc' into 'master'
dma_utils: add esp dma capable malloc function

Closes IDF-9638

See merge request espressif/esp-idf!29869
2024-04-02 21:31:45 +08:00
David Cermak
bd8b1eca9e fix(console): Fix linux target build on MacOS
We're correctly checking for the CONFIG_IDF_TARGET_LINUX macro, but before including sdkconfig.h
2024-04-02 15:14:19 +02:00
Laukik Hase
48503dd39f
fix(esp_hw_support): Fix the flash I/DROM region PMP protection 2024-04-02 18:41:07 +05:30
Roman Leonov
fc326374e0 Merge branch 'refactor/usb_host_add_hcd_mps_request' into 'master'
refactor(hcd_dwc): Added mps request from hcd_dwc

See merge request espressif/esp-idf!29904
2024-04-02 20:49:29 +08:00
Alexey Lapshin
11eeca6c98 Merge branch 'fix/gcov_fault' into 'master'
fix(gcov): fix exceptions on gcov task_tick_hook

Closes IDFGH-12501

See merge request espressif/esp-idf!29962
2024-04-02 20:24:07 +08:00
Jiang Jiang Jian
ce6363095e Merge branch 'bugfix/wpa3_ap_ci_crash' into 'master'
fix(esp_wifi): Fix crash when assoc req comes before confirm is processed

Closes IDFCI-2090

See merge request espressif/esp-idf!29805
2024-04-02 20:05:06 +08:00