Ponting ioLibrary_v100 to 16bit, bugs
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: Ponting ioLibrary_v100 to 16bit, bugs
by JimMartz ·
Come across another one today.
Function “loopback_udp”, in loopback.c:
The destination IP is defined as,
uint32_t destip = 0;
The problem is that the UDPRecv function places the IP
address in 4 consecutive memory locations, in the case of a 16bit processor,
it uses 4 16bit words, this don’t fit into the 32bit address defined.
After the UDPRecv function the memory is Eg. 0x00A800C0 (192.0.168.0).
To resolve this I defined the destination IP like:
Uint8 destip[4] = { 0 };
There are pointer castings on the function, (Uint8*)&destip but this
did not seem to matter to my compiler.
Jim,