Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

IORD issue

Altera_Forum
Honored Contributor II
1,004 Views

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?
0 Kudos
0 Replies
Reply