Forum Discussion
Altera_Forum
Honored Contributor
17 years agoproblem adding TSE_MAC + SGDMA
I'm having troubles adding TSE_MAC + SGDMA to interfacing with a Marvel Ethernet Phy. I'm using a Cyclone III board which I've purchased to DevBoards GmbH DBM_3C40. After download the .sof to the hardware, I've tried to run single socket server example from NIOS IDE and this is the log
nios2-terminal: connected to hardware target using JTAG UART on cable
nios2-terminal: "USB-Blaster ", device 1, instance 0
nios2-terminal: (Use the IDE stop button or Ctrl-C to terminate)
=============== Software License Reminder ================
This software project uses an unlicensed version of the NicheStack TCP/IP
Network Stack - Nios II Edition. If you want to ship resulting object
code in your product, you must purchase a license for this software from
Altera. For information go to: "http://www.altera.com/nichestack"
=====================================================
InterNiche Portable TCP/IP, v3.1
Copyright 1996-2007 by InterNiche Technologies. All rights reserved.
prep_tse_mac 0
Your Ethernet MAC address is 00:07:ed:ff:be:f8
Static IP Address is 0.10.10.11
prepped 1 interface, initializing...
INFO : TSE MAC 0 found at address 0x02403800
INFO : PHY Marvell 88E1111 found at PHY address 0x01 of MAC Group
INFO : PHY - Automatically mapped to tse_mac_device
INFO : PHY - Restart Auto-Negotiation, checking PHY link...
INFO : PHY - Auto-Negotiation PASSED
INFO : Applying additional PHY configuration of Marvell 88E1111
INFO : PHY - Checking link...
INFO : PHY - Link established
INFO : PHY - Gigabit = 0, Duplex = Full
OK, x=1, CMD_CONFIG=0x00000000
MAC post-initialization: CMD_CONFIG=0x04000203
RX descriptor chain desc (1 depth) created
It seems all is ok but the program never starts, any idea??3 Replies
- Altera_Forum
Honored Contributor
1) I've disabled DHCP and I've set a fixed IP by modifying <network_utilities.c>
3) I've set a system timer running at 10msecs I'll try to debug the code.... - Altera_Forum
Honored Contributor
Did you create your task with the appropriate macro? When you are using Interniche you need to use a TK macro to do that, not the usual uC OS one.
You can also try to add a few debug printf's in your code, to see when it freezes. - Altera_Forum
Honored Contributor
1 - The first thing I would try is disabling DHCP. It might be fooling you if it's got a really long timeout set. You can either do this in the system library properties or just hack the netowork_utilities.c file.
2 - Try debugging the code and seeing where it's hanging. 3 - If this is a custom built system. Did you add a system timer with the appropriate timeout? Jake