Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

not getting up link on Ethernet with Esp32 controller

Status
Not open for further replies.

sushant_21

Junior Member level 3
Junior Member level 3
Joined
Apr 30, 2017
Messages
28
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Location
Mumbai
Activity points
269
Hi all,

I have an issue regarding LAN with esp32, So i have got designed a hardware with esp32 and dp83848 phy for ethernet connection. The problem is i dont get Link Up from phy. I am running esp32 example code PHY reset pin is 32. this is log output from board, it just stops at Ethernet started,

V (2958) tcpip_adapter: check: local, if=2 fn=0x400e24d8
[0m
V (2958) tcpip_adapter: call api in lwip: ret=0x0, give sem[0m
V (2958) tcpip_adapter: check: remote, if=2 fn=0x400e24d8
[0m
D (2968) event: running post ETH_EVENT:0 with handler 0x400d3a84 on loop 0x3ffb4f7c[0m
[0;32mI (2978) eth_example: Ethernet Started[0m
I checked the communication between phy and esp32, this sounds good, as i tried to read phy register and below was output, i had used cyclone TCP example code for this., so this conclude phy and esp32 are communicating,

Initializing DP83848...
PHY reg: 00: 0x3100
PHY reg: 01: 0x7849
PHY reg: 02: 0x2000
PHY reg: 03: 0x5C90 (this is phy address)
PHY reg: 04: 0x01E1
PHY reg: 05: 0x0000
PHY reg: 06: 0x0004
PHY reg: 07: 0x2001
PHY reg: 08: 0x0000
PHY reg: 09: 0x0000
PHY reg: 10: 0x0000
PHY reg: 11: 0x0000
PHY reg: 12: 0x0000
PHY reg: 13: 0x0000
PHY reg: 14: 0x0000
PHY reg: 15: 0x0000
PHY reg: 16: 0x0000
PHY reg: 17: 0x0000
PHY reg: 18: 0x0000
PHY reg: 19: 0x0000
PHY reg: 20: 0x0000
PHY reg: 21: 0x0000
PHY reg: 22: 0x0100
PHY reg: 23: 0x0021
PHY reg: 24: 0x0000
PHY reg: 25: 0x8021
PHY reg: 26: 0x0904
PHY reg: 27: 0x0000
PHY reg: 28: 0x0000
PHY reg: 29: 0x6011
PHY reg: 30: 0x003F
PHY reg: 31: 0x0000
so now i have to check between RJ45 jack and PHY, i actually dont understand what is the issue, but i am sure its between phy and RJ45 jack,
i have tried the connection with router and PC directly, also tried using different LAN cable, but didnt work
this is datasheet of RJ45 jack
So any help regarding this will be grateful, if any more information is needed kindly tell me.
 

Hi,

now we know:
* ESP32: it properely works on many applications, thus I guess it´s not the problem.
* dp83848: i guess it´s not the problem, too.
* RJ45 jack: i guess it´s not the problem, too.

What we don´t see:
* your schematic
* your PCB layout
* your code
* your test setup and test conditions

So we don´t see the informations where I expect the problem.

Klaus
 

    sushant_21

    Points: 2
    Helpful Answer Positive Rating
Hi,

now we know:
* ESP32: it properely works on many applications, thus I guess it´s not the problem.
* dp83848: i guess it´s not the problem, too.
* RJ45 jack: i guess it´s not the problem, too.

What we don´t see:
* your schematic
* your PCB layout
* your code
* your test setup and test conditions

So we don´t see the informations where I expect the problem.

Klaus

Thanks for responding, Sorry i didnt add this earlier

What we don´t see:
* your schematic - Added
* your PCB layout - Added
* your code - this the code https://github.com/espressif/esp-idf/tree/master/examples/ethernet/basic , i just configured it for my PCB(just edited reset pin 32 for my setup)
* your test setup and test conditions -

So for test condition,

i am giving 5V to this Board, i tried giving supply from TTL USB, Bench power supply (10A), and also test jig using 7805, but none worked
than i tried giving 3.3V to another PCB( its with out MCP1700 ), but that also not working.

well this is off topic bit, but forum has changed quite a lot from last time i checked, it has become more adaptive & user friendly. Nice job keeping it upto date.
 

Attachments

  • WhatsApp Image 2021-10-26 at 12.53.34 PM (1).jpeg
    WhatsApp Image 2021-10-26 at 12.53.34 PM (1).jpeg
    87.7 KB · Views: 169
  • WhatsApp Image 2021-10-26 at 12.53.34 PM.jpeg
    WhatsApp Image 2021-10-26 at 12.53.34 PM.jpeg
    115.1 KB · Views: 155
  • WhatsApp Image 2021-10-26 at 12.53.35 PM (1).jpeg
    WhatsApp Image 2021-10-26 at 12.53.35 PM (1).jpeg
    224.2 KB · Views: 159
  • WhatsApp Image 2021-10-26 at 12.53.35 PM.jpeg
    WhatsApp Image 2021-10-26 at 12.53.35 PM.jpeg
    100.4 KB · Views: 154
  • WhatsApp Image 2021-10-26 at 12.53.36 PM (1).jpeg
    WhatsApp Image 2021-10-26 at 12.53.36 PM (1).jpeg
    163.9 KB · Views: 152
  • WhatsApp Image 2021-10-26 at 12.53.36 PM.jpeg
    WhatsApp Image 2021-10-26 at 12.53.36 PM.jpeg
    159 KB · Views: 161
  • CKT DIA E-TTL-V1 FINAL-1.jpg
    CKT DIA E-TTL-V1 FINAL-1.jpg
    187.2 KB · Views: 198
  • CKT DIA E-TTL-V1 FINAL-2.jpg
    CKT DIA E-TTL-V1 FINAL-2.jpg
    216.4 KB · Views: 191
Last edited:

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top