-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ETH_SendFrame works incorrectly #41
Labels
Comments
I don't use ethernet. Are anybody can to help in this issue? |
Amomum
added a commit
to Amomum/emdr1986x-std-per-lib
that referenced
this issue
Mar 6, 2018
…is still broken. refs eldarkg#41
Amomum
added a commit
to Amomum/emdr1986x-std-per-lib
that referenced
this issue
Mar 20, 2018
…hundred packets, FIFO is still broken completely. Suffering from code style was unbearable so I completely refactored it. Linear mode was tested (with different delimiter values) with LwIP and ping -f --- no packet loss. refs eldarkg#41
Amomum
added a commit
to Amomum/emdr1986x-std-per-lib
that referenced
this issue
Mar 20, 2018
… a several hundred packets, FIFO is still broken completely. Suffering from code style was unbearable so I completely refactored it. Linear mode was tested (with different delimiter values) with LwIP and ping -f --- no packet loss. refs eldarkg#41
@Amomum Can we close this issue? |
I'm not sure. Auto and FIFO modes are still broken. Maybe put it in low-priority? |
@Amomum I understood you |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The reason, as far as I can tell, is the following. Text in the specification says:
So first data word in the ethernet buffer should be data length (in bytes, as far as I can tell from working code example).
However,
ETH_SendFrame
does not put frame length as first word in ethernet buffer, it just copies the frame. So first byte of the frame is interpreted as it's length which is incorrect most of the time.It's more or less straight-forward to fix this for
ETH_BUFFER_MODE_LINEAR
andETH_BUFFER_MODE_AUTOMATIC_CHANGE_POINTERS
but I'm not sure how to do it forETH_BUFFER_MODE_FIFO
.The text was updated successfully, but these errors were encountered: