Skip to main content
Visitor II
October 14, 2009
Question

ENET example (um0248): does this even work?

  • October 14, 2009
  • 2 replies
  • 738 views
Posted on October 14, 2009 at 09:41

ENET example (um0248): does this even work?

    This topic has been closed for replies.

    2 replies

    dan1Author
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 09:59

    I'm trying to run example1 from um0248, on our STR912FA board. The PHY is in loopback mode, but no transfers seem to take place. In debugging the situation, I've been looking at the internal DMA setup, which example1 uses.

    I find that ENET_HandleTxPkt calls ENET_UpdateTxDscr, which properly sets the TX VALID bit, which *should* initiate the TX DMA operation. I poll the VALID bit to wait for it to clear (the indication that the DMA operation has completed, if I understand the manual correctly), but it never does.

    In looking further, I don't see anyplace where the other TX DMA fields (TXSAR, TXCR) are ever initialized, so I *think* that the DMA doesn't proceed because the descriptor isn't valid. In fact, those two fields are not referenced *anywhere* in the um0248 code. Am I looking at this wrong? If not, is there anywhere else that I can look for working ENET code on the STR912 ??

    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 09:59

    hello dan2,

    this example works on my mcbstr9 board.

    hope you can use it