Commit Graph

196 Commits

Author SHA1 Message Date
Frantisek Hrbata 1c92945f59 change(examples): switch examples to use a minimal build
Currently, several example dependencies rely on the fact that all
registered components are added to the build, along with components
specified in common requirements. This results in longer build times
because even unused components must be built. Switch all examples to use
idf_minimal_build to compile only the components actually required by
the example.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2024-11-20 20:14:40 +01:00
Frantisek Hrbata ad15109daa change(examples): explicitly specify component dependencies for examples
Currently, several examples do not explicitly state their component
dependencies, relying instead on the default behavior that includes all
registered components and commonly required ones in the build.
Explicitly adding component dependencies can reduce build time when
set(COMPONENTS main) is used.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2024-11-20 14:11:24 +01:00
Ondrej Kosta d2b1202d5a feat(esp_eth): added HW Time Stamping support for ESP32P4
Added mechanism to L2 TAP to retreive time stamp

Added PTP time synchronization example
2024-11-07 15:01:24 +08:00
Ondrej Kosta 0738314308 feat(esp_eth): added new generic PHY driver 2024-10-11 10:14:53 +02:00
morris 175cdcf15c Merge branch 'bugfix/spi_eth_latest_p4_fnc_board' into 'master'
fix(esp_eth): fixed SPI ETH GPIO to align with latest ESP32-P4-Function-EV-Board

Closes IDF-9381

See merge request espressif/esp-idf!33549
2024-09-25 18:59:42 +08:00
Ondrej Kosta feedad8467 remove(esp_eth): Removed SPI ETH ENC28J60 example 2024-09-24 16:51:21 +02:00
Ondrej Kosta 301e67157b ci(esp_eth): enabled build and test for c61 in eth/proto examples 2024-09-18 08:44:58 +02:00
Ondrej Kosta b11669b576 feat(esp_eth): added SPI ETH defaults for C61 in examples 2024-09-16 16:56:13 +02:00
Ondrej Kosta e8343f228f fix(esp_eth): fixed SPI ETH GPIO to align with latest ESP32-P4-Function-EV-Board 2024-09-16 09:28:26 +02:00
Ondrej Kosta dd81b56fb6 feat(esp_eth): removed disable of C5 and P4 from examples .build-test-rules
Updated examples to be able to build for C5 and P4.

Added Ethernet support for static_ip example.
2024-08-14 10:07:48 +02:00
Ondrej Kosta 43066f2e37 feat(esp_eth): Added SPI Ethernet support of ESP32C5 in examples 2024-08-14 10:05:26 +02:00
Ondrej Kosta 9e10cca102 fix(esp_eth): fixed default GPIO to match new ver. of P4 devboard 2024-08-08 18:11:38 +02:00
wanlei 3cf069c7d8 feat(esp32c61): disable unsupported build test 2024-07-16 16:06:19 +08:00
Fu Hanxi 59bd0b3166 ci: update .build-test-rules.yml based on latest detected components 2024-05-22 20:52:32 +08:00
Bogdan Kolendovskyy 712f0cbce4 feat(examples/ethernet/basic): add pytest script to basic ethernet example 2024-05-17 14:19:18 +02:00
Ondrej Kosta 5e7cbdb4da feat(esp_eth): added example to deinit Ethernet 2024-05-14 08:23:35 +02:00
Ondrej Kosta d15a9c2c48 feat(esp_eth): a new folder structure of the driver and other improvements
Fixed memory leak in emac_esp_new_dma function.

Polished ESP EMAC cache management.

Added emac_periph definitions based on SoC features and improved(generalized) ESP EMAC GPIO
initialization.

Added ESP EMAC GPIO reservation.

Added check for frame error condition indicated by EMAC DMA and created a target test.
2024-05-14 08:23:31 +02:00
Bogdan Kolendovskyy a23d1b45af feat(iperf): use iperf component in iperf example 2024-05-13 14:11:41 +02:00
laokaiyao 65b1fd33d3 ci(esp32c5mp): disable the unsupported tests 2024-04-07 12:13:29 +08:00
Bogdan Kolendovskyy c6002f7dfd Merge branch 'feature/iperf_for_all_phys' into 'master'
add(examples/ethernet/iperf): capability to run iperf test on all supported phys

See merge request espressif/esp-idf!29348
2024-03-26 21:15:50 +08:00
Bogdan Kolendovskyy 934f741361 test(examples/ethernet/iperf): Add default configurations for all supported PHYs
Created default configurations to run iperf test on all supported phys and adpated test code appropriately
2024-03-26 11:37:30 +01:00
Chen Yudong c48eb1055b feat: move iperf to component registry 2024-03-22 10:53:24 +08:00
Ondrej Kosta 6643798227 feat(esp_eth): added configuration of SPI ETH for ESP32P4 ETH examples 2024-03-04 16:23:40 +01:00
Ondrej Kosta fd0a1dc53c feat(esp_eth): added SPI Ethernet module polling mode
Closes https://github.com/espressif/esp-idf/issues/12682
2024-02-07 11:21:57 +01:00
Ondrej Kosta ce388a4111 feat(esp_eth): Added support of internal EMAC for ESP32P4
Refactored internal EMAC DMA access.

Added MPLL acquire to manage access to the MPLL by multiple periphs.
2024-01-16 14:29:25 +01:00
Armando fca46eac52 refactor(spi): make spi driver as component 2023-11-09 14:50:05 +08:00
Song Ruo Jing 9461993ec5 refactor(gpio): make gpio driver as component, and fix astyle 2023-11-03 15:42:23 +08:00
Chen Yudong eaca72b60c ci: update ethernet and wifi examples build rules 2023-10-08 08:21:58 +00:00
Jiang Jiang Jian d42306c317 Merge branch 'docs/eth_opt' into 'master'
docs(esp_eth): added Ethernet to Improving Network Speed section

See merge request espressif/esp-idf!25839
2023-09-25 10:09:28 +08:00
Ivan Grokhotkov 6d87100a70 feat(examples): add local components via idf_component.yml
Specifying all the dependencies (managed and local) in the manifest
makes it easier for users to see every component the example
depends on.
2023-09-19 10:38:24 +02:00
Ondrej Kosta 219e4646f8 docs(esp_eth): added Ethernet to Improving Network Speed section 2023-09-07 09:36:01 +02:00
Ondrej Kosta 0ff10c3e06 feat(esp_eth): added IRAM optimization option for internal EMAC 2023-09-05 07:42:30 +02:00
Armando 6f412393b6 change(ci): add todo to p4 build test enable 2023-08-24 12:51:19 +08:00
Armando 7dbd3f6909 feat(ci): Enable p4 example, test_apps and unit tests CI build 2023-08-24 12:51:19 +08:00
Ondrej Kosta 4e10048400 Moved 'eth2ap' example to /examples/network folder
Ethernet related .build-test-rules.yml cleanup
2023-06-19 16:09:28 +02:00
Ondrej Kosta 7e481c02a3 Ethernet examples: removed configuration of SPI Input Delay which was introduced by a mistake 2023-05-23 09:11:14 +02:00
Ondrej Kosta e82dce7917 Merge branch 'bugfix/bridge_spi_emac_readme' into 'master'
Updated Ethernet README Common Troubleshooting

See merge request espressif/esp-idf!23784
2023-05-22 22:32:37 +08:00
Ondrej Kosta a2d669c008 Updated Ethernet README Common Troubleshooting to describe workaround when SPI issues are observed with internal EMAC connected 2023-05-19 15:17:07 +02:00
AndriiFilippov 8694a1ea0c update default pins for Ethernet basic and enc28j60 examples
update .yml files
2023-05-18 17:51:44 +02:00
laokaiyao 49f16eefbb esp32h4: checked all the corner stuffs of the removal 2023-04-23 12:03:07 +00:00
laokaiyao bf2a7b2df6 esp32h4: removed esp32h4 related codes 2023-04-23 12:03:07 +00:00
Jiang Jiang Jian a39514a55e Merge branch 'bugfix/fix_format_error' into 'master'
examples: fix format errors, remove -Wno-format

Closes IDF-6433

See merge request espressif/esp-idf!21637
2023-03-21 19:19:47 +08:00
Omar Chebib 5e5343d429 TWDT: Use the new TWDT Kconfig options in the examples and tests 2023-02-17 11:22:25 +08:00
Bogdan Kolendovskyy d7b8b36082 examples: fix format errors, remove -Wno-format
Logging in series of examples has misuse of "%d" instead of type-appropriate format specifiers.
Fix by changing "%d" to PRIxx macros corresponding to type.
Remove -Wno-format compile flag in those examples that are affected.
2023-02-14 15:46:54 +01:00
AndriiFilippov 8868bf5c64 Update default pins for ESP32H4
Update default pins for ENC28J60 example
2023-02-14 10:31:45 +00:00
Ondrej Kosta 05510e67d1 Merge branch 'bugfix/eth_lan8720_ci' into 'master'
esp_eth: start/stop and L2 test stability improvements

See merge request espressif/esp-idf!21898
2023-02-09 15:36:12 +08:00
Ondrej Kosta 256d457969 esp_eth: possible start/stop issue fixed
ESP32 EMAC could hang when stopped/started multiple times at 10Mbps speed mode
2023-02-03 10:48:39 +01:00
Ondrej Kosta 5da702bab3 Merge branch 'feature/iperf_pytest_migration' into 'master'
iperf pytest migration

Closes IDFCI-1143

See merge request espressif/esp-idf!21726
2023-01-31 18:04:59 +08:00
Cao Sen Miao 94120b82c2 esp32h2: add build test 2023-01-17 10:29:04 +08:00
Ondrej Kosta 7aa4462d0b Ethernet & WiFi iperf test migration to pytest 2023-01-16 15:45:56 +01:00