Cannot Set DPORT W5500
IO Modules
- W5500
No replies yet. Be the first to reply.
Join the discussion.
IO Modules
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: Cannot Set DPORT W5500
by WIZnet AI AI generated ·
RE: Cannot Set DPORT W5500
by Grace_Koo WIZnet ·
Hi.
If you don’t mind sharing, could you show how you're setting DIPR and DPORT in your code?
It might help narrow down the issue.
Thank you.
RE: RE: Cannot Set DPORT W5500
by taylorh140 ·
Thanks I`ll bring let you know the details.
Currently the order of operations are:
1. Wait for Sn_CR == 0x00
2. Read Sn_SR and verify it is 0x22 (udp open)
3. Read Sn_TX_FSR and SN_TX_WR
- verify txFSR is large enoug for my data
- Write Data to the TX_BUFFER
4. Clear Sn_IR - SEND_OK and TIEMOUT flags
5. try 8 times:
a. Set Sn_DIPR
b. Set Sn_DPORT
c. Read DPORT
if readback matches the setting continue
6. Set the Sn_TX_WR to the SN_TX_WR + data length and set Sn_CR to SEND
I`m still working out how to make this work more smoothly so any help would be great. Each numbered or lettered item is a single CS transfer.