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.

Ethernet example on RM48 control card

Other Parts Discussed in Thread: RM48L952, HALCOGEN, DP83640


The IwIP demo code does not mention how to make it work on the RM48L952 control card. Can we run this code on the control card and connect via Ethernet to a PC? Can anybody help me with these:

1. Are there any examples for  using ethernet port on the control card?

2. Are there any step by step instructions as to what to do with the downloaded demo zip of the IwIP demo? I am not able to find any halcogen files at all and am not able to exactly figure out the directory structure in which to put the files to get a clean build!

3. If both above queries are answered positively, is there any example code or documentation how I can make it work with fixed IP address (not using DHCP)?

4. The wiki talks of HTTP server, UDP and echo server examples, but I find there is only the HTTP example in the unzipped code. Where can I find the UDP and echo server examples?

Any body out there have successfully used ethernet on Hercules paltform?

  • HI,

    We are looking into your query and get back to you as soon as possible.

     

    Hercules forum support

  • Go to: http://processors.wiki.ti.com/index.php/RM48_CNCD

    Search for Lwip.

    What you got is a similar application as the one running on the HDK. (using DHCP)

    Regards,

    Haixiao

  • Hi Haixiao,

    I am back after a pretty long break from this project - I am still in the same boat. The LWIP example you mentioned does not seem to work on the 952 control card. No build errors, but after downloading no reply to PING from my laptop.

    Same IP configuration works with a microchip PIc32 ethernet kit I have with me, so I think it is not a laptop setting issue.

    Any guidance will be helpful!

    Vaidi.

  • 1. connect the board to the network.

    2. open a hyperterminal: 9600 baud rate, no parity

    3. Power reset the control card. look for the instructions on the hyperterminal.

    4. If it does not work, please post the screen shot of the hyperterminal.

    Please refer to http://processors.wiki.ti.com/index.php/HALCoGen_Ethernet_Driver_and_lwIP_Integration_Demonstration

    same description, slightly different firmware.

    Regards,

    Haixiao

  • Hi Haixiao,

    Thanks for the help you provided above.  I was able to get the code from your previous post working on the RM46 control card.  For anyone else's benefit, I was able to set a static IP by modifying line 136 of lwip_main.c to the following:

    ipAddr = lwIPInit(0, macAddress, 0x0A033B54, 0xFFFFFF00, 0, IPADDR_USE_STATIC);    // static 10.3.59.84  

    Can you elaborate on the differences between this example and the example built for the HDK?  I know the communication on the HDK is RMII and the communication on the CNCD is MII.  For the CNCD, I see in lwip_init.c that you uncommented several lines around  line 105, and used iommMuxEnableRmii().  Is there anything else?

    I ask because I've had to get similar code working on both platforms (HDK and CNCD) and I'd like to get a better understanding of what needs to be changed to move between the two.

    Thanks,

    -Ed

     

  • The EMAC module, by default, it is in RMII.

    Other than what you find, I also change MAC Control Register RMII bit to 1.

    Regards,

    Haixiao

  • Hi,

    A also have the same issue.  I have a RM48HDK running fine with LWIP.  On the HDK the EMAC is in MII mode.

    On the RM48CNCD the EMAC is in RMII mode.  I verify this by reading the RMII and BYPASS register for the DP83640 PHY and check that bit 5 is set (indicating RMII).  I have the pin mux's set correctly.

    I get no Rx interrupts from the EMAC.  Do you have any suggestions as to where to look for the problem?

    I am wondering is it a hardware problem on the CNCD boards?.

    Maybe the RM48L952 supports RMII Version 1.0, not 1.2 (DV_CRS pin issue).

    Can you please help?

    Thanks

    Stomp!

  • Stomp,

    Did you look at the example at

    Go to: http://processors.wiki.ti.com/index.php/RM48_CNCD

    Search for Lwip.

    I built that and test it with all the CNCD boards.

    Regards,

    Haixiao

  • Hi,

    Yes I got the RM48_CNCD files and built it.  The results were good in that the network interface comes up, but bad that the HTTP server does not start.  Upon tracing through code entering into httpd_init() causes a data abort.

    Anyhow, at-least the network interface comes up.

    Further tracing through the issue I found maybe a problem with the code/PHY/??.

    Depending on the DP83640 PHY auto-link, bit 1 of register 10 (PHY STATUS) will be set to 1 indicating 10Mb/s and cleared to 0 indicating 100Mb/s link.

    In the RM4's EMAC, bit 15 of the MACCONTROL register tells the EMAC what speed to operate in.  About line 517 of hdkif.c from the LWIP lib the decision is made to set the speed bit in EMAC if the PHY status bit is cleared.

    In many of the tests it seems that the PHY speed bit, changes between 10 and 100Mb/s.  This seems to cause problems.  I don't know of the reason, as it always connects at 100MB/s on HDK.

    Thanks

    Stomp!.