• AVR Freaks

Helpful ReplyHot!Harmony 3 and the tcpip_tcp_server example failing with DRV PHY init failed: -1

Author
JonTrepte
New Member
  • Total Posts : 2
  • Reward points : 0
  • Joined: 2019/06/06 02:14:18
  • Location: 0
  • Status: offline
2019/06/24 12:44:40 (permalink)
0

Harmony 3 and the tcpip_tcp_server example failing with DRV PHY init failed: -1

Hi, this is my very first post so please be gentle with me if I've done something wrong.
I have made a copy of the tcpip_tcp_server and loaded into MPLABX (5.20) and built with no errors and loads into my D320007 Ethernet Eval board using a PicKit 4. The program runs and picks up a IP and talks to a small test program over the socket (Port 9760).
 
I needed to add some extra functionality so I used Harmony 3 (V3.3.0.1) to modify the code. At first the Generate function did not work as the UART2 was not connected to Console. Fixing this and adding a few extra modules (DEBUG. COMMAND) allowed a error free build. However when I loaded it I get the following on the VCOM port.
 
DRV PHY init failed: -1
TCP/IP Stack: Initialization failed: 0x0 - Aborting! 
 
 APP: TCP/IP stack initialization failed!
 
I have disconnected the RST pin 22 even though it's not connected to MCLR. It has a GPIO pin EBIRDY2/RH11 which is not used anywhere else.
 
So I've noted the following
1) unchanged project works
2) harmony file not reflecting the project (UART2 link, DEBUG and SYS_COMMAND missing)
3) Build is good after MHC finishes but now target board does not work.
 
Any Ideas
 

 
 

Attached Image(s)

#1
rainad
Moderator
  • Total Posts : 1223
  • Reward points : 0
  • Joined: 2009/05/01 13:39:25
  • Location: 0
  • Status: offline
Re: Harmony 3 and the tcpip_tcp_server example failing with DRV PHY init failed: -1 2019/06/25 05:23:10 (permalink)
0
The "DRV PHY init failed: -1" message signals that the communication with the PHY failed, there was no response from the PHY when queried. This may mean (since the board is working fine) wrong configuration fuses, I/O configuration, or simply using the wrong PHY address.
Since the "1) unchanged project works", try to make a difference between the original project and what you get after regenerating.
 
#2
JonTrepte
New Member
  • Total Posts : 2
  • Reward points : 0
  • Joined: 2019/06/06 02:14:18
  • Location: 0
  • Status: offline
Re: Harmony 3 and the tcpip_tcp_server example failing with DRV PHY init failed: -1 2019/06/26 09:04:54 (permalink) ☄ Helpfulby portfolio 2019/06/29 17:30:22
5 (1)
Thanks for your advice. I found that the clock was not enabled for the Ethernet chip. MHC forgot to do this. All is working fine now
#3
Jump to:
© 2019 APG vNext Commercial Version 4.5