W5500 PHY link status reading PHYCFGR problem
Ethernet Chips
No replies yet. Be the first to reply.
Join the discussion.
Ethernet Chips
No replies yet. Be the first to reply.
Join the discussion.
Share projects and connect with makers.
Joined before the site update? first.
New to WIZnet Makers?
We sent a verification link to your address. Open it to activate your account, then log in.
Accounts from this email provider are reviewed by an administrator after verification. Approval usually takes one business day.
Already have an account?
Enter your email address. If it belongs to an account, we'll send a link to set a new password. Members who joined before the site update use this to set their password.
If an account uses that address, we sent a link to set a new password. The link works once and expires in 30 minutes.
Know your password?
Need an account?
RE: W5500 PHY link status reading PHYCFGR problem
by Eugeny ·
Format code properly. And it has nothing to do with W5500. It is purely C exercise.
RE: RE: W5500 PHY link status reading PHYCFGR problem
by arcticPlatypus ·
OK. I will try again.
Hopefully this code is better formatted and massively simplified to show my problem (Or missunderstanding)
With an ethernet cable connected (LINK UP) 191 is printed.
Which is what I would expect.
191 = b’1011 1111’. bit 0 is set indicating LINK UP.
With no ethernet cable connected (LINK DOWN) nothing is printed and the code doesn’t even proceed to print “End”. It appears getPHYCFGR is not returning a value.
As soon as I plug a cable in the code resumes and prints 191.
If I have a basic mis-understanding please help me understand.
Thank you