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.

TMS570LS31xx ethernet interface

Other Parts Discussed in Thread: HALCOGEN, TMS570LS3137

 Hi i wanna work on ethernet interface for TMS570LS31xx device can any body suggest me how to start for that i thought of porting LWIP but not getting any info on web how to proside with this and to find IP address is there any script file from TI like Finder from stelleries for their LM3SXX controllers.

  • Hi,

    You need 4 main components to make lwip work on LS31x HDK:

    1. the LS1x device abstraction layer drivers: Those drivers handle MDIO, EMAC, PHY.

    2. LWIP network interface layer: This layer mainly handles network device init, packets TX, packets RX, etc

    3. LWIP based application layer: This layer contains ethernet application like a HTTP server. This is the layer at which all the incoming packets terminate and all outgoing packets originate.

    4. LS31x system application layer: This layer implements system level initialization and provides options for lwip stack.

    We can provide help with #1 and #4, and how to use DMA/CPPI RAM in #2. We don't have tool like Finder so far. You can use DHCP on host (while runing the application on LS31x HDK which is connected to a host peer-by-peer) to assigned the IP to the HDK.

    Please refer to http://lwip.wikia.com/wiki/LwIP_Wiki. If you need #1 and #4, please let us know.

    Regards,

    QJ

     

  • Chandrasekhar,

    Ethernet driver will be available with the next release of HALCoGen & this is planned for Mid-Dec release. We also have a sample/demo integration of these drivers with LWIP. Does the timeline suite your needs?

    Regards,
    Pramod 

  • Hi Pramod,

    fist of all  thanks for your replay, yes i have good time to develop this can you give me an idea hoew i have start work with this.

    how i have configur LWIP with respect to this particular hardware and what else need to change in LWIP suit.

  • HI Mr QJ,

     thanks for your reply, i am ready to work with DHCP accordingly can you send me the complete details for those how i   have to proside for farther development  send if you have any sample codes and configuration documents.

     

    Regards

    ReddyShekar

     

  • Hi Reddy,

     

    I will post a example project to use lwip on TMS570 HDK. 

     

    Regards,

    QJ

  • Hi Reddy,

    I integrated LWIP into my Hercules RM48 HDK test case. Please use this project as reference. The files in "hercules" folder under lwip-1.3.2 contain hw related headers files and source code. The file "gladiator_lwip.c under nonHalCogen/EMAC is used to init lwip and search IP address. The project also contains CPU/Peripheral initialization.

    I compiled the project without any error, but I haven't tested the LWIP part in the project. 

    Regards,

    QJ

    6170.Hercules LWIP Sample.zip

  •  

    HI QJ Wang,

    Thanks a lot for addressing my queries, I want some documents on usage of CGT as well usermanual of CCStudio4 to work for TMS570LS..

    like configuring and starting basic projects with CCS and also send sample interfacing programs like ADC and Timers for TMS570LS.

     Please can you provide helpful links for downloading.

     

     Thanks & Regards

     Reddyshekar.

  • Hi Mr.QJ

        i have tried to comple the LWIP project file which you have sent by adding as a existing CCS project it is geving errors. is it is needed any specific settings to

    make for the CCS before compiling, one more thing is that here i am using TMS570LS3137 development board of local design i am not using USB kit or HDK.

     

    Thanks & Regards

    Reddyshekar.

     

     

  • Hi Reddyshekar,

     

    Have a look at this CCS site (http://processors.wiki.ti.com/index.php/CCSv4) there were tutorials for different targets.

    The project I ave you have example code for ADC, HET, GIO etc. The example code for ADC is in adc_demo.c which are used to demo temperature sensor and light sensor..

    Regards,

    QJ

     

  • Hi Reddyshekar,

    The project I gave contains the project build configuration. I didn't see any error when I compiled it. Can you please post the errors? 

    Regards,

    QJ

  •  

    Hi Mr.QJ

    i am trying to compile the project as it is by impoting in to CCSV4 it is giving following errors

    could not open source file "locator.h"

    could not open source file "lwiplib.h"

     

    gmake: *** No rule to make target `C:/Documents and Settings/a0324020/My Documents/workspace/third_party/lwip-1.3.2/apps/httpserver_raw/httpd.c', needed by `httpd.obj'.

    gmake: *** No rule to make target `C:/Documents and Settings/a0324020/My Documents/workspace/third_party/lwip-1.3.2/ports/hercules/locator.c', needed by `locator.obj'.

    gmake: *** No rule to make target `C:/Documents and Settings/a0324020/My Documents/workspace/third_party/lwip-1.3.2/ports/hercules/lwiplib.c', needed by `lwiplib.obj'.

    these are  the errors which i got while compiling the project.

    Thanks & Regards

    Reddyshekar

     

  • Hi Reddyshekar,

    Please make sure you have added the following directories to your #include search path:

    :lwip-1.3.2\src\include\ipv4

    :lwip-1.3.2\apps\httpserver_raw

    :lwip-1.3.2\src\include

    :lwip-1.3.2

    :lwip-1.3.2\ports\hercules\include     ---------- please check if those 2 header files are in this folder !!

    :lwip-1.3.2\ports\hercules

    Thanks and Regards,
    QJ

  • Hi Mr QJ

     all those files are ther in proper location where you are saying but still it is giving same errors like mentioned bellow. one more help can you send me any

    document link for how to use HALCoGen code generator user manuals. to configur for various peripherals.

     

    gmake: *** No rule to make target `C:/Documents and Settings/a0324020/My Documents/workspace/third_party/lwip-1.3.2/apps/httpserver_raw/httpd.c', needed by `httpd.obj'.
    gmake: *** No rule to make target `C:/Documents and Settings/a0324020/My Documents/workspace/third_party/lwip-1.3.2/ports/hercules/locator.c', needed by `locator.obj'.
    gmake: *** No rule to make target `C:/Documents and Settings/a0324020/My Documents/workspace/third_party/lwip-1.3.2/ports/hercules/lwiplib.c', needed by `lwiplib.obj'.

     

    "../src/nonHalCoGen/interrupt_handlers.c", line 7: fatal error: could not open source file "lwiplib.h"
    1 fatal error detected in the compilation of "../src/nonHalCoGen/interrupt_handlers.c".
    Compilation terminated.

    >> Compilation failure
    gmake: *** [src/nonHalCoGen/interrupt_handlers.obj] Error 1

     

    "../src/nonHalCoGen/EMAC/gladiator_lwip.c", line 2: fatal error: could not open source file "locator.h"
    1 fatal error detected in the compilation of "../src/nonHalCoGen/EMAC/gladiator_lwip.c".
    Compilation terminated.

    >> Compilation failure
    gmake: *** [src/nonHalCoGen/EMAC/gladiator_lwip.obj] Error 1


    gmake: *** [src/nonHalCoGen/EMAC/gladiator_lwip.obj] Error 1
    gmake: Target `all' not remade because of errors.


    "../src/nonHalCoGen/EMAC/gladiator_lwip.c", line 2: fatal error: could not open source file "locator.h"
    1 fatal error detected in the compilation of "../src/nonHalCoGen/EMAC/gladiator_lwip.c".
    Compilation terminated.

     

  • Hi  Mr.QJ

       can i get the price details of the TMS570LS3137 evel board and emalutor tool for that.

  • Please try another way to add 3 files to your project:

    1. CCS4, under project, use LINK file to Active Project

    2. select files: httpd.c under "third_party\lwip-1.3.2\apps\httpserver_raw\httpd.c"

    3. select file: locator.c under "third_party\lwip-1.3.2\ports\hercules\locator.c"

    4. and select file:lwiplib under "third_party\lwip-1.3.2\ports\hercules\lwiplib.c"

    Double check your "include path", make sure you add all the related paths you the list. 

    Regards,

    QJ

  • Hi Reddy,

    Please find the information here:

    http://www.ti.com/mcu/docs/mcuprodtoolsw.tsp?sectionId=95&tabId=2661&familyId=1870&toolTypeId=1

     

    Regards,

    QJ

  •  

    You can purchase the HDK from the TI e-store at http://www.ti.com/tool/tmdx570ls31hdk.  It is also available from our authorized distributors.

  • HI Mr.QJ,

         i wanna work on LM3S9B96 PWM control, if you have any example codes for this can you send me. in htis i am struggiling to identify which and all files need to add

      to work for the project creation can you give me the details of how to create a project in  Keil4 IDE and what and all files need to add for this make work, here i thought of using API's instud of register programming.

     

    Thanks & Regards

    ReddySekhar