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.

TMS320F28388D: TMS320F28388D

Part Number: TMS320F28388D
Other Parts Discussed in Thread: C2000WARE

Hi,

I'm trying to implement a lwIP on my chip, TMS320F28388D.

I found relevant examples in C2000Ware. 

  • For c28x : C:\ti\c2000\C2000Ware_3_02_00_00\driverlib\f2838x\examples\cm\ethernet\CCS\ethernet_c28x_config
  • For CM : C:\ti\c2000\C2000Ware_3_02_00_00\libraries\communications\Ethernet\third_party\lwip\examples\enet_lwip\cm\

I compiled them and programmed into c28x and CM, respectively. However, I'm unable to ping to 192.168.0.4, which is supposed to respond in my controlCARD.

I think I did everything to set up the network configuration of my Windows 10, like IP and Subnet mask. 

I have no idea where to start to fix this. So I wanna make sure my image files are okay. This can be a starting point.

Can you please have a test with my image files (.out)? (Ping test and HTTP Webserver)

  • For c28x : "ethernet_c28x_config.out"
  • For CM : "enet_lwip_cm.out"

Thanks.

Casey

my_image_files.zip

  • Casey, 

    Will take a look at the files that you sent.

    In the meantime,  pls refer the Readme.txt file located at  C2000Ware_3_02_00_00\libraries\communications\Ethernet\third_party\lwip\examples\enet_lwip\cm\Readme.txt and check if you have followed all the steps.

    Also ensure that your PC is configured to a static IP address programmed to 192.168.0.x (x can be anything other than 4).  For this, you can refer https://stevessmarthomeguide.com/setting-up-static-ip-address-windows-10/

    Best Regards

    Siddharth

  • Hi,

    I have an update. I'm able to see the ping operation and the Webserver. However, it works only in a certain case; start from Jtag (CCS).

    I programmed two images into CPU1 and CM, but they don't work when I reset it. They should be able to start from flash, and ready to respond to my ping and Webserver request, but they don't. Why is it so?

    I elaborated this issue in my video attached as a mp4 file.

    lwip_issue.zip

    I need to implement the lwIP in the boot-from-flash mode for my application.

  • Casey,

    Couple of things that you can check:

    1. Can you check if the entry point is configured as codestart?

    2. Is the watchdog disabled? 

    3.  You will have to call the function Device_bootCM in the CPU1 application, pls check if you are doing this. If you are using ethernet_c28x_config project, then you have to use the Flash configuration (CPU1_Flash)

    Best Regards

    Siddharth

  • Hi,

    Here are my answers to your questions.

    1) entry point 

    • Yes, it's configured as codestart

    2) watch dog

    • Yes, I switched to 1 to disable the watch dog.

    3) CPU_Flash

    • As you can see in my mp4 file, the project file for CPU1 is configured to CPU1_Flash.
    • I already explained it in the video; I made a change to the project file from RAM to Flash.

    What else could be worth a try to fix it?

    p.s.

    Do you mind giving me a CPU1 binary file booting from flash for the lwIP?

  • Casey, 

    Can you try using the latest C2000Ware (v4.00.00.00) and run the same example. Looks like there are a couple of fixes done for this example. 

    Pls refer the thread 

    https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/924192/tms320f28388d-f28388d-only-booting-in-flash-with-jtag

    Best Regards

    Siddharth

  • Hi,

    No offense, but you should have a test with the latest C2000Ware (V4.0) first, and tell me what has changed to prove yourself right.

    You're just saying "try this," although you're not sure. This is far from professional. I once worked at a chip company like TI as an AE (Application Engineer), but I never handled a customer's request like this.

    Please, do more research to confirm it's cleared in the latest C2000Ware.

    Thanks.

    Casey

    p.s. 

    Currently, I'm using C2000Ware V3.02 and CCS v10. It's a burden for me to move on to C200Ware V4.0 because it requires another changes; CCS upgrade to V11, and impacts on my application drivers based on C2000Ware V3.02.

    It would be best if you can pinpoint which one should be modified in the C2000Ware V3.02 to make it work; booting from flash for lwIP.

  • Casey,

    Will get a setup working with this example and keep you posted. 

    I did a comparision between the files of 3.02 an 4.00 and found that the code changes done in the following files are related to run the code from Flash. 

    1. enet_lwip.c

    2. startup_ccs.c

    3. 2838x_flash_lnk_cm_lwip.cmd

    Best Regards

    Siddharth

  • Casey, 

    Have setup working with this example from C2000Ware v4.00.  As mentioned before, there are some code changes done to get it running from Flash. 

    You will have to use the following files from C2000Ware v.400 

    1. driverlib_cm.lib - There are some changes done to ethernet.c and ethernet.h file

    2. enet_lwip.c

    3. startup_ccs.c

    4. 2838x_flash_lnk_cm_lwip.cmd

    You can install C2000Ware v4.00 and overwrite these files in your setup with C2000Ware v3.02. You need to have to update to CCSv11.

    Best Regards

    Siddharth

  • Hi,

    I think I gotta say it's "RESOLVED".

    I upgraded to C2000Ware v4.00, and it works; Boot From Flash for lwIP.

    Thanks for your help. Let me know how to praise a TI guy for his nice work. You deserve a lot of compliments.

    p.s.

    I'm still having a trouble with CCS v11. The C2000Ware v4.0 requires CCS v11, but it doesn't recognize my Jtag; Wintech XDS560V2.

    So I'm using CCS v11 for compilation, and CCS v10 for programming. This is inconvenient. However, I will close this case, because the Jtag issue is a separate one.