Forum Discussion
Altera_Forum
Honored Contributor
13 years agoThanks. I am running the example on a custom board with 88E1111 PHY and Cyclone III chip. I'm having a problem with the program crashing at the start and haven't been able to track down the problem with debug. I've taken out the timer function and input polling function to try and track down the problem so all the main loop is doing right now is printing a message every 250 ms.
It reaches the main loop, goes through the loop a few times, then the whole thing dies within 5 seconds. Does anyone have any suggestions for tracking down what is causing this problem? I am also turned off DHCP and the BUILD_HTTPD part. I am on an isolated network. My board is connected to a router by itself so no traffic coming or going. Here is the output by the way. The "at 250" is the print I added. There are several more before it crashes.Running...
INFO : TSE MAC 0 found at address 0x0c000000
INFO : PHY Marvell 88E1111 found at PHY address 0x12 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 : PHY - Checking link...
INFO : PHY - Link established
INFO : PHY - Speed = 100, Duplex = Full
Waiting for link...OK
IP address: 192.168.1.100
at 250Edit: I have tracked down to this: if (init(netif) != ERR_OK) {
return NULL;
}in netif.c. If I comment this out, the program doesn't crash (but doesn't init properly obviously). Edit again: Sorry for the multiple edits but I'm working on this right now in case that isn't obvious :cool: I've traced the problem down to this: tse_sgdma_read_init(&tse); in lwip_tse_mac.c. So it seems there is a problem with the RX SGDMA but I am at a loss for what that could be. Thanks again for any help that you can offer. I am not very experienced with the ethernet applications for FPGA platforms.