Forum Discussion

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

No data transmission between board and pc

Hi all,

I'm working on a DE2 Board and i'd like to send data from the board to my pc via ethernet.

To reach my target i've built a very easy system on SOPC builder with:

- nios2\s

- onchip_mem (20k)

- jtag uart (to display some messages)

- sysid

- dm9000a (taken from DE2_NET demo)

Then i've written some simple code to transmit data from the board to my pc.

Apparently there aren't errors,

but when i run my code, it stops @:

while(!(ior(NSR)&0x0C))

in the transmitPacket function of the "dm9000a.c" file

i've tryed with a cross cable and also with a switch, but it won't work in bot cases...

in my main() code i've called the init function, and then,inside while (1) , the transmitpacket function with the right parameters...

The leds at the bottom of my board's ethernet port, never light up... is an hw problem? or i forget something that i can't see?

Anyone can help?