This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LAUNCHXL2-RM57L Ethernet Receive Example

Other Parts Discussed in Thread: LAUNCHXL2-RM57L, HALCOGEN

Hi there,

I am looking for some examples for receiving data on the LAUNCHXL2-RM57L and sending data from the PC through ethernet to get some footing in this section. I have already done the LwIP example but I am unable to debug how each module works. I have  also gone through the EMAC and MDIO sections in the User Guides and Data Sheets. Please give suggestions on how I can learn this part. 

Need your help.

Thanks 

  • Rishabh,

    You are heading in the right direction - and honestly this is an area that you should expect to spend a lot of time if you want to master. I only feel like I have superficial knowledge myself. It may wind up taking you months to a year of working w. it fulltime to feel like you have mastered it.

    I don't know what you want to do -- but I would not focus too much on MDIO because this is just a way to talk to the phy for sideband stuff like what mode the phy is in. If your demo is running you don't need to go deep here.

    To study the EMAC itself you can look at the functions for EMAC that are produced by HalCoGen, I think it's HL_emac.c or something like that. It's buried in the port folder of lwIP and the file looks like it is excluded from the project (because it 'is' excluded) but there is a file above it that in "C" does a #include of HL_emac.c and so the functions get pulled in indirectly. You should still be able to find these functions by typing their name into the disassembly window of CCS - assuming you build with debug symbols. Then you can set some breakpoints and step through. You will be able to see the format of the descriptor that is given to the EMAC's DMA -- which will point to the packet buffer containing the data that actually goes across the network.

    Just some tips but the biggest is to be patient - this isn't easy stuff but nothing rewarding ever is ;)
  • Anthony,

    Thank you so much. Basically I need to receive data from a sensor through ethernet.

    Thanks for the advice will do accordingly.