Forum Discussion
Altera_Forum
Honored Contributor
16 years agolan91c111c debug on custom board
Hi all,
I have a custom made board that uses lan91c111 connected to a cyclone fpga. I tried first impementing the simple socket server example application. I needed to do some modifications because my system doesn't support any external flash memory. To overcome on this I changed a little bit the network_utilities.c to get the MAC address without accessing an external flash memory. Compilation succeeds, application starts giving the message: "server starting up, socket listening on port 30".... or something likee this :rolleyes: Anyway when I connect the ethernet cable leds doesn't get on neither on the pc-side ethernet board. Please, does anyone have on idea if my idea of bypassing exterenal memory falsh could make the system not working?! Can anyone suggest me a way to debug at low level the connection between NIOS and lan91c111!? Thank a lot in advance!! Massi2 Replies
- Altera_Forum
Honored Contributor
I would double check your board design, top-level FPGA design connections and the connections from that top-level to SOPC Builder, first.
- Use the Altera kits that include the 91c111 as a guide. - Pay attention to _all_ signals, not just the ones that are connected to the SOPC Builder module! Then I would proceed to stepping through the initialization of the ethernet driver in alt_sys_init.c (built as a part of your System Library...or BSP, depending on the flow you use). Cheers and Good Luck! - slacker - Altera_Forum
Honored Contributor
<div class='quotetop'>QUOTE (slacker @ Sep 4 2009, 10:54 AM) <{post_snapback}> (index.php?act=findpost&pid=23751)</div>
--- Quote Start --- I would double check your board design, top-level FPGA design connections and the connections from that top-level to SOPC Builder, first. - Use the Altera kits that include the 91c111 as a guide. - Pay attention to _all_ signals, not just the ones that are connected to the SOPC Builder module! Then I would proceed to stepping through the initialization of the ethernet driver in alt_sys_init.c (built as a part of your System Library...or BSP, depending on the flow you use). Cheers and Good Luck! - slacker[/b] --- Quote End --- Thanks slacker, it succeeds, looking at other example design I found that resetn_to_lan91c111 from SOPC module wasn't really connected to the lan91c111 reset pin, along with other pins that are tied to a fixed voltage (VDD or VSS) on the board by some resistors. Now everything seems to work, I can, at least, connect to the socket. Thanks alot for your collaboration. Kind regards. Massimo