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.

CCS/TMS320F28388D: lwip sample project on TMS320F28388D controlCARD

Part Number: TMS320F28388D
Other Parts Discussed in Thread: C2000WARE

Tool/software: Code Composer Studio

I am running the lwip on 320F28388D ControlCard. 

The SDK version is shown as below:

CCS: 9.3

C2000Ware_2_01_00_00

xdctools_3_60_02_34_core

bios_6_76_04_02

The webserver and ping are working fine. I tried to connect the server by an app. But it failed to establish the connection and always send RST. I modified the static IP as 10.0.0.233 and Port as 8282 in order to get them in the same network. The client is 10.0.0.65.

I am expecting the server will response [SYN, ACK] rather than [RST, ACK]. I am appreciated if you could give me some ideas.

Thanks,

  • Hi,

    Andy Fung said:
    The webserver and ping are working fine

    Do you mean the Webserver application provided in C2000Ware Package? or your own version?

    Andy Fung said:
    bios_6_76_04_02

    The stock lwip Application does not use BIOS. Did you modify it to use BIOS?

    Andy Fung said:
    I tried to connect the server by an app

    Is it running on the same client from where you did ping/open web browser/client?

    Andy Fung said:
    I am expecting the server will response [SYN, ACK] rather than [RST, ACK]. I am appreciated if you could give me some ideas.

    You may want to see further by adding lwip_stats in the watch window and see further as to why it is happening

    Regards,

    Sudharsanan

  • - I meaned the Webserver application provided in C2000Ware Package. I ran the example followed the steps in 

    C:\ti\c2000\C2000Ware_2_01_00_00\libraries\communications\Ethernet\third_party\lwip\examples\enet_lwip\cm\Readme.txt

    I changed the static IP address in enet_lwip.c line 328 

    unsigned long IPAddr = 0x0A0000E9;//10.0.0.233

    The webserver and ping works fine.

    - For the bios_6_76_04_02, please ignored this one. I didn't modify to use BIOS. I just installed the SDK.

    - Then I tried to run the client which is my own app and not the same client from where you did ping/open web browser.That app establish the connection just the same way as the web browser. The following capture is the communication between the web browser and the server.

    Both web browser and the app established the TCP connection by setting a SYN flag in TCP segment. Not understand why the server return RST (shown in the screen shot in the first post) to the app.

  • Hi, 

    Thanks for the additional details.

     

    Andy Fung said:
    I tried to run the client which is my own app and not the same client from where you did ping/open web browser.

    which is the Application? what does it do?

    Can you see the lwip_stats and see if it gives some clue of why this reset is happening the statistics at TCP layer might be of help.

    Regards,

    Sudharsanan

  • Hi Andy,

    A few questions/pointers:

    1. Is this custom app desktop or mobile-based? 

    2. If this is mobile-based, could you check if you're able to connect to the server with the mobile browser? 

    3. Just curious if you tried connecting to any other server than the one present on the microcontroller? Could something be wrong with this app itself? Is it pointing to correct port numbers, etc.?

    Regards,

    Sudhakar