W5500 Transmission Buffer Issue
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 Transmission Buffer Issue
by Eugeny ·
I estimate probability of the issue being an outcome of bad clocking or any other configuration problem as low. This needs to be investigated further, and patterns must be found.
How long this while is? Is the period reproducible? Between failures? After power on?
How much data has been sent when issue appears? Is it always the same amount after the whole system power up? If you look into the raw data in the Wireshark, is this data total mess or you can recognize parts of valid data, but wrongly arranged? Did you check at the driving MCU side that you really use correct pointer to data when issue starts to appear? Is the MCU data you use at that pointer is what you expect it to be at the time when issue appears?
RE: RE: W5500 Transmission Buffer Issue
by miguellopes1979 ·
I will put some trace output in the code to try to answer your questions. Meanwhile should i be concerned about the TX write pointer when the the updated Tx pointer crosses the 64Kb address? I read in the datasheet that if overflow occurs when setting the updated tx write pointer the carry flag is ignored and the tx pointer is updated with the lower 16bits. I know that this is handled by the EthernetLib and i am assuming that the implementation there is good, correct?
And is also safe to assume that when SEND interrupt flag is set, the data was fully delivered to the peer? In my case the MQTT broker is the peer.
RE: W5500 Transmission Buffer Issue
by Eugeny ·
That’s why I asked how much data has been sent before issue happens. If it happens far after buffer wraps, (e.g. 32kB with default socket memory config of 2k) then it is not the TX buffer pointer wrapping/socket data addressing issue. If you get it after you send 2kB of data, then the first thing to check TX pointers.