Search found 181 matches

by ESP_ondrej
Tue Jan 09, 2024 8:21 am
Forum: Hardware
Topic: MIIM / SMI "ETH Connected" check on eth-switch
Replies: 8
Views: 42366

Re: MIIM / SMI "ETH Connected" check on eth-switch

I double checked and I was kind of wrong. SMI is non standard version of MII so it was not implemented due to lack of time. You can access all registers via SMI. Try the following: * remove `ksz8863_ctrl_intf_init` from `ksz8863_board_specific_init` so the I2C/SPI is not going to be initialized * up...
by ESP_ondrej
Mon Jan 08, 2024 9:35 am
Forum: Hardware
Topic: MIIM / SMI "ETH Connected" check on eth-switch
Replies: 8
Views: 42366

Re: MIIM / SMI "ETH Connected" check on eth-switch

If I remember correctly, it is not possible to access all registers via SMI => you can manage only host port and you cannot mange the other ports or switch configuration. That was the reason why SMI is not implemented because it didn't worth. Please consult with switch chip documentation for more in...
by ESP_ondrej
Fri Dec 22, 2023 6:34 pm
Forum: ESP-IDF
Topic: ESP32 and W5500 ethernet performance
Replies: 6
Views: 67134

Re: ESP32 and W5500 ethernet performance

Could you please clarify what do you mean by W5500 EMAC mode?
by ESP_ondrej
Wed Dec 13, 2023 11:08 am
Forum: General Discussion
Topic: emac_dm9051: no mem for receive buffer
Replies: 3
Views: 58587

Re: emac_dm9051: no mem for receive buffer

This issue happens when your application consumes a lot of memory and if Ethernet messages are received with short interval. The size of packet doesn't matter since the driver always allocates 1500B. The driver was optimized in ESP-IDF v5.0 and above. I recently backported the optimization to v4.3 a...
by ESP_ondrej
Tue Dec 12, 2023 9:55 am
Forum: ESP-IDF
Topic: ESP32 and W5500 ethernet performance
Replies: 6
Views: 67134

Re: ESP32 and W5500 ethernet performance

Just note that performance may vary. It is affected by your application code, cache misses, etc. Difference between KSZ8851 and W5500 is not that significant. Therefore, if I were you, I would also consider other factors (price, availability, etc.).
by ESP_ondrej
Mon Dec 11, 2023 8:01 am
Forum: ESP-IDF
Topic: ESP32 and W5500 ethernet performance
Replies: 6
Views: 67134

Re: ESP32 and W5500 ethernet performance

See below for same performance comparison (for ESP32). +---------------------+---------+------------+---------+ | Proto / direction | EMAC | KSZ8851* | W5500* | +---------------------+---------+------------+---------+ | TCP Rx [Mbps] | 31 | 13 | 10 | | TCP Tx [Mbps] | 59 | 15 | 14 | | UDP Rx [Mbps] ...
by ESP_ondrej
Mon Dec 11, 2023 7:38 am
Forum: General Discussion
Topic: emac_dm9051: no mem for receive buffer
Replies: 3
Views: 58587

Re: emac_dm9051: no mem for receive buffer

What ESP-IDF version do you use?
by ESP_ondrej
Mon Sep 18, 2023 6:38 am
Forum: General Discussion
Topic: Esp32 ethernet basic not accepting DHCP offer from DNSMasq
Replies: 8
Views: 7197

Re: Esp32 ethernet basic not accepting DHCP offer from DNSMasq

Do other devices on your local network get assigned IP addresses from DHCP server? It's strange since your device receives Ethernet frames as indicated by the log you provided. If I were you, I would connect the device directly to a PC with DHCP server running and capture traffic to see what's going...
by ESP_ondrej
Mon Sep 18, 2023 6:34 am
Forum: ESP-IDF
Topic: ESP32 internal MAC ethernet + IP101GRI conflicts with SDSPI
Replies: 3
Views: 4315

Re: ESP32 internal MAC ethernet + IP101GRI conflicts with SDSPI

Could you please try to set EMAC DMA burst length to e.g. EMAC_LL_DMA_BURST_LENGTH_4BEAT at https://github.com/espressif/esp-idf/bl ... hal.c#L301?

Note that there is user configuration option for this in higher IDF versions.
by ESP_ondrej
Wed Aug 30, 2023 7:42 am
Forum: Hardware
Topic: esp32+lan8720+rc522
Replies: 5
Views: 3519

Re: esp32+lan8720+rc522

Read documentation at https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/network/esp_eth.html#configure-mac-and-phy and get familiar with REF RMII CLK options. In case of LAN8720, I recommend to use GPIO17 as CLK source to avoid board reset and startup issues, see https://www....