facing issue in enabling ethernet in esp32 wrover kit with idf version release/4.2

kesha.modhia
Posts: 41
Joined: Fri May 13, 2022 12:36 pm

facing issue in enabling ethernet in esp32 wrover kit with idf version release/4.2

Postby kesha.modhia » Mon May 16, 2022 6:11 am

problem:

I have used espressif esp32s ethernet example trying to build code of basic and binary is successfully generated, now while executing it is throwing error as given below :

hardware/software

chip used esp32-wrover-1

idf version -release/v4.2

build sysytem - msys/MINGW32

power supply - usb

error logs:

ets Jun 8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:7236
load:0x40078000,len:13212
load:0x40080400,len:4568
entry 0x400806f4
I (27) boot: ESP-IDF HEAD-HASH-NOTFOUND 2nd stage bootloader
I (27) boot: compile time 13:01:33
I (27) boot: chip revision: 1
I (31) boot_comm: chip revision: 1, min. bootloader chip revision: 0
I (54) boot.esp32: SPI Speed : 40MHz
I (54) boot.esp32: SPI Mode : DIO
I (54) boot.esp32: SPI Flash Size : 16MB
I (57) boot: Enabling RNG early entropy source...
I (62) boot: Partition Table:
I (66) boot: ## Label Usage Type ST Offset Length
I (73) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (80) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (88) boot: 2 factory factory app 00 00 00010000 00100000
I (95) boot: End of partition table
I (99) boot_comm: chip revision: 1, min. application chip revision: 0
I (107) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x0e244 ( 57924) map
I (138) esp_image: segment 1: paddr=0x0001e26c vaddr=0x3ffb0000 size=0x01dac ( 7596) load
I (141) esp_image: segment 2: paddr=0x00020020 vaddr=0x400d0020 size=0x2f6dc (194268) map
I (218) esp_image: segment 3: paddr=0x0004f704 vaddr=0x3ffb1dac size=0x00358 ( 856) load
I (219) esp_image: segment 4: paddr=0x0004fa64 vaddr=0x40080000 size=0x0a898 ( 43160) load
I (250) boot: Loaded app from partition at offset 0x10000
I (250) boot: Disabling RNG early entropy source...
I (250) cpu_start: Pro cpu up.
I (254) cpu_start: Application information:
I (259) cpu_start: Project name: ethernet_basic
I (264) cpu_start: App version: 1
I (269) cpu_start: Compile time: May 13 2022 15:20:07
I (275) cpu_start: ELF file SHA256: f0a94d419d039944...
I (281) cpu_start: ESP-IDF: HEAD-HASH-NOTFOUND
I (287) cpu_start: Starting app cpu, entry point is 0x40081830
I (0) cpu_start: App cpu up.
I (297) heap_init: Initializing. RAM available for dynamic allocation:
I (304) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (310) heap_init: At 3FFB38A0 len 0002C760 (177 KiB): DRAM
I (316) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (323) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (329) heap_init: At 4008A898 len 00015768 (85 KiB): IRAM
I (335) cpu_start: Pro cpu start user code
I (354) spi_flash: detected chip: gd
I (354) spi_flash: flash io: dio
I (355) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
E (462) emac_esp32: emac_esp32_init(308): reset timeout
E (462) esp_eth: esp_eth_driver_install(198): init mac failed
ESP_ERROR_CHECK failed: esp_err_t 0xffffffff (ESP_FAIL) at 0x40083ee4
file: "../main/ethernet_example_main.c" line 125
func: app_main
expression: esp_eth_driver_install(&config, &eth_handle)

abort() was called at PC 0x40083ee7 on core 0

Backtrace:0x40084357:0x3ffb5620 0x40084a01:0x3ffb5640 0x400884de:0x3ffb5660 0x40083ee7:0x3ffb56d0 0x400d4501:0x3ffb56f0 0x400d2eae:0x3ffb5760 0x40084a09:0x3ffb5790


ELF file SHA256: f0a94d419d039944

Rebooting...
Last edited by kesha.modhia on Thu May 26, 2022 5:37 am, edited 2 times in total.

ESP_ondrej
Posts: 162
Joined: Fri May 07, 2021 10:35 am

Re: facing issue in enabling ethernet in esp32 wrover kit with idf version release/4.2

Postby ESP_ondrej » Mon May 16, 2022 6:26 am

Do you use any specific development board? It seems to be the ESP32 EMAC is not properly configured. Probably not properly clocked, but I need to know your hardware configuration so we could move forward.

Thanks

kesha.modhia
Posts: 41
Joined: Fri May 13, 2022 12:36 pm

Re: facing issue in enabling ethernet in esp32 wrover kit with idf version release/4.2

Postby kesha.modhia » Mon May 16, 2022 8:46 am

We are using NLG1200 board on which esp32 chip is mounted. Image NLG1200 i have attached below
Attachments
Screenshot (158).png
Screenshot (158).png (708.15 KiB) Viewed 3116 times
Screenshot (157).png
nlg1200 board
Screenshot (157).png (264.49 KiB) Viewed 3116 times

kesha.modhia
Posts: 41
Joined: Fri May 13, 2022 12:36 pm

Re: facing issue in enabling ethernet in esp32 wrover kit with idf version release/4.2

Postby kesha.modhia » Mon May 16, 2022 9:02 am

Screenshot (159).png
Screenshot (159).png (143.24 KiB) Viewed 3117 times
Screenshot (159).png
Screenshot (159).png (143.24 KiB) Viewed 3117 times
Screenshot (160).png
Screenshot (160).png (144.73 KiB) Viewed 3117 times
Screenshot (161).png
Screenshot (161).png (149.2 KiB) Viewed 3117 times

kesha.modhia
Posts: 41
Joined: Fri May 13, 2022 12:36 pm

Re: facing issue in enabling ethernet in esp32 wrover kit with idf version release/4.2

Postby kesha.modhia » Mon May 16, 2022 9:12 am

Screenshot (162).png
Screenshot (162).png (144.88 KiB) Viewed 3107 times
Screenshot (163).png
Screenshot (163).png (145.16 KiB) Viewed 3107 times
Screenshot (164).png
Screenshot (164).png (150.57 KiB) Viewed 3107 times

kesha.modhia
Posts: 41
Joined: Fri May 13, 2022 12:36 pm

Re: facing issue in enabling ethernet in esp32 wrover kit with idf version release/4.2

Postby kesha.modhia » Mon May 16, 2022 9:13 am

Screenshot (166) - Copy - Copy.png
Screenshot (166) - Copy - Copy.png (145.95 KiB) Viewed 3105 times
Screenshot (165).png
Screenshot (165).png (142.04 KiB) Viewed 3105 times

ESP_ondrej
Posts: 162
Joined: Fri May 07, 2021 10:35 am

Re: facing issue in enabling ethernet in esp32 wrover kit with idf version release/4.2

Postby ESP_ondrej » Mon May 16, 2022 9:38 am

Thanks for the inputs. Frankly speaking, I have no knowledge about NLG1200... Did you check the Ethernet configuration align with actual hardware? For example, proper GPIO is selected?

kesha.modhia
Posts: 41
Joined: Fri May 13, 2022 12:36 pm

Re: facing issue in enabling ethernet in esp32 wrover kit with idf version release/4.2

Postby kesha.modhia » Tue May 17, 2022 11:22 am

Hello, could you please guide me, what and all will be the configuration to execute ethernet example which is already given in sdk/example/ethernet/basic in idf version release/4.2
For that from idf.py menuconfig what and all should be enabled

ESP_ondrej
Posts: 162
Joined: Fri May 07, 2021 10:35 am

Re: facing issue in enabling ethernet in esp32 wrover kit with idf version release/4.2

Postby ESP_ondrej » Wed May 18, 2022 6:11 am

kesha.modhia, as I said, please double check that the Ethernet basic example GPIO configuration aligns with your actual hardware. You've already sent screen shots of that in menuconfig. I don't have schematics of NLG1200 neither the hardware itself. Therefore I cannot guide you in this manner. I can only guess what's wrong. However, based on described symptoms, it seems there is no RMII REF CLK which could be caused the PHY is kept in reset which in turn is caused by incorrect GPIO setting. Please also make sure you select the PHY part number.

kesha.modhia
Posts: 41
Joined: Fri May 13, 2022 12:36 pm

Re: facing issue in enabling ethernet in esp32 wrover kit with idf version release/4.2

Postby kesha.modhia » Wed May 18, 2022 7:09 am

Okay i am sending you some screen shot of the schematic on NLG1200 board on which i want to enable the ethernet
In that board i am trying to run ethernet basic example, and according to schematic i have selected gpio19 for phy reset,previously it was gpio5. Correct me if i am wrong for this
Attachments
Screenshot (169).png
Screenshot (169).png (112.46 KiB) Viewed 2915 times
Screenshot (167).png
Screenshot (167).png (382.64 KiB) Viewed 2915 times
Screenshot (168).png
Screenshot (168).png (357.17 KiB) Viewed 2915 times

Who is online

Users browsing this forum: No registered users and 57 guests