Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
19 years ago

IORD issue

Hey,

I'm trying to receive packets from a PC using a modified version the DE2_NET program. I can receive a packet, but it doesn't read the length correctly. Furthermore, when I hard-code the length (say, to 64), I can view the packet received, but although it resembles the packet sent, there are inconsistencies. Example: The destination and source MAC addresses come through as follows:

Sent: 01 60 6E 11 02 0F 00 11 11 13 3E F4

Received: 01 60 06 11 02 0F 04 11 01 13 60 F4

I traced the problem into DM9000A.c --> ReceivePacket( ) and found that those are the values obtained from the call IORD(DM9000A_BASE, IO_data). What's going on here?

Also: the program had been receiving packets with the correct data until I replaced the DE2 board. Could this problem (integrity of packet data) be affected by some damaged part of a seemingly functional DE2 board?
No RepliesBe the first to reply