cancel
Showing results for 
Search instead for 
Did you mean: 

ENET example (um0248): does this even work?

dan1
Associate II
Posted on October 14, 2009 at 09:41

ENET example (um0248): does this even work?

2 REPLIES 2
dan1
Associate II
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 ??

dolgov
Associate II
Posted on May 17, 2011 at 09:59

hello dan2,

this example works on my mcbstr9 board.

hope you can use it