Search found 181 matches

by ESP_ondrej
Wed Jun 26, 2024 3:35 pm
Forum: Hardware
Topic: ESP32-C6 - Ethernet Support?
Replies: 3
Views: 275

Re: ESP32-S6 - Ethernet Support?

I'm responsible for Ethernet so I usually seek for Ethernet related topics here on forum. Therefore I simply missed it since it's been related to forum functionality... Approved now.
by ESP_ondrej
Wed Jun 26, 2024 6:53 am
Forum: Hardware
Topic: ESP32-C6 - Ethernet Support?
Replies: 3
Views: 275

Re: ESP32-S6 Ethernet Support?

Hi Michael, the trick is the ESP32-C6 does not have internal EMAC with MII/RMII. Therefore it's not shown in the selector. However, you can connect SPI Ethernet module to it. That's the reason why Ethernet examples support even these targets without internal EMAC. The only chips with internal EMAC a...
by ESP_ondrej
Tue Jun 25, 2024 5:54 am
Forum: ESP-IDF
Topic: emac insufficient buffer size error on ethernet
Replies: 3
Views: 1929

Re: emac insufficient buffer size error on ethernet

That's strange, "insufficient buffer size error" should not occur in "basic" example! Could you please provide more information about your setup?
- What board do you use?
- What is your exact IDF version?
- Please share logs from "basic" example if insufficient buffer size error occurs.
by ESP_ondrej
Wed Jun 19, 2024 2:10 am
Forum: ESP-IDF
Topic: emac insufficient buffer size error on ethernet
Replies: 3
Views: 1929

Re: emac insufficient buffer size error on ethernet

What example do you run? Anyway, it indicates you are trying to transmit more data than the hardware is able to process, i.e. you are reaching to limit of maximum Ethernet bandwidth of 100 Mbps. In reality it little bit less. You need to limit bandwidth. With default configuration of 10 Tx buffers, ...
by ESP_ondrej
Mon May 13, 2024 8:09 am
Forum: ESP-IDF
Topic: ESP32-S3 with W5500 reeeealy slow performance
Replies: 8
Views: 1338

Re: ESP32-S3 with W5500 reeeealy slow performance

Hi FrankJensen, could you please double check that you initialized the Ethernet driver correctly? The thing is that basically exactly the same interrupt initialization as yours is performed by the driver: esp_rom_gpio_pad_select_gpio(emac->int_gpio_num); gpio_set_direction(emac->int_gpio_num, GPIO_M...
by ESP_ondrej
Thu May 02, 2024 7:24 am
Forum: ESP-IDF
Topic: Simple example code to dump LAN8710A registers
Replies: 3
Views: 713

Re: Simple example code to dump LAN8710A registers

Here is a code example to dump PHY registers: esp_err_t dump_phy_regs(esp_eth_handle_t *eth_handle, uint32_t start_addr, uint32_t end_addr) { esp_eth_phy_reg_rw_data_t reg; uint32_t reg_val; reg.reg_value_p = ®_val; printf("--- PHY Registers Dump ---\n"); for (uint32_t curr_addr = start_addr; cur...
by ESP_ondrej
Mon Apr 29, 2024 7:09 am
Forum: ESP-IDF
Topic: Not getting an ip address using the basic ethernet example
Replies: 7
Views: 1112

Re: Not getting an ip address using the basic ethernet example

Create an app to transmit same data in a loop and measure the RMII Tx signal path on your board. You need to see the signal at the ESP32 output and the same at PHY input.
by ESP_ondrej
Mon Apr 29, 2024 7:06 am
Forum: ESP-IDF
Topic: ESP32 EMAC receive not working
Replies: 9
Views: 1463

Re: ESP32 EMAC receive not working

Ethernet driver always initializes the Rx task from which is the callback called. Therefore, you don't save any resources if you use `mac->receive` function directly. Just use the callback. If you don't need the Ethernet after receiving your frame, you can stop it and de-initialize it.
by ESP_ondrej
Fri Apr 26, 2024 7:14 am
Forum: ESP-IDF
Topic: ESP32 EMAC receive not working
Replies: 9
Views: 1463

Re: ESP32 EMAC receive not working

Why you don't want to use callback? Using `mac->receive` is not designed to be called from user code.
by ESP_ondrej
Thu Apr 25, 2024 8:30 am
Forum: ESP-IDF
Topic: Not getting an ip address using the basic ethernet example
Replies: 7
Views: 1112

Re: Not getting an ip address using the basic ethernet example

It seems your board is able to receive frames so the Rx path works. Now, check if Tx path works too. Connect your board to a PC and capture traffic using e.g. Wireshark to see if your board sends DHCP request. You can also try to run loopback test to see if there is no issue with RMII (https://githu...