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: Lwip somewhat works with a static connection and does not work with DHCP

Part Number: LAUNCHXL2-RM57L
Other Parts Discussed in Thread: HALCOGEN, TMS570LC4357

I found this tutorial for using lwip with FreeRTOS on an RM57L (https://e2e.ti.com/support/archive/launchyourdesign/m/c2000microcontrollerprojects/666055), the "Configure R5-MPU-PMU" section says to change all the regions to the values in the tutorial. In Halcogen the first four regions are frozen, I made the change in the image below (lines 277 and 278) in vPortStoreTaskMPUSettings in os_port.c but I don't think that it is all I need to do. When I set up a static address lwip connection I can send data from my board to another computer and I can see the data with a sharktap but not if I go straight to another computer running wireshark. When I try to setup a DHCP connection I fail to connect. What else do I need to change to correctly configure the R5-MPU-PMU settings?

  • Hello Christian,

    I will take a look, and come back later.

  • Hi Christian
    Sorry to keep you waiting on this - Brad Davis just reminded us of this pending issue. QJ has been tied up on a few other escalations. We will need some more time to get back to you on this. The combination of LWIP + Free RTOS is usually tricky IMHO.
    Are you planning to use LWIP and Free RTOS for your final product implementation?
    Regards
    Mukul
  • Yes our final product will use LWIP and FreeRTOS. I appreciate your continued assistance with this. A high priority/urgency would be greatly appreciated.

    Thanks,

    Christian

  • Christian
    Thanks for the clarification. Do you have more details on your failure? Are you suspecting this to be an MPU setting issue or a networking /DHCP issue?
    When you see the failure , are you seeing any data aborts etc that would point it to be an MPU issue etc?
  • Mukul,

    I have been following the tutorial I mentioned in my post and the only two parts I have not gotten working are the MPU section and replacing the HL_sys_link.cmd file with the recommended one. I can't do the MPU section because it is frozen in my Halcogen file so I would have to make the changes manually. I am still working on the HL_sys_link.cmd file. Do you have a link to a working HL_sys_link.cmd file that was written for the RM57L? 

    I have not seeing any data aborts. When I create a static connection I can see that data is being sent out with a sharktap but I can't see the packets in another computer using wireshark. Whenever I try creating a DHCP connection the code fails when I try to establish a connection. I assume that this is because of the problems mentioned above with setting everything up properly.

    Christian

  • Hi Christian

    Thanks for the additional information. It looks like we have Free RTOS working standalone (simple examples) , and we know LWIP works both static and DHCP mode standalone.

    We have not tried testing them both together and now getting a bench setup to try this out. We will update you once we have this up and running on our side. 

    May take us a couple of days and some debug effort.

    Regards

    Mukul 

  • Hi Christian,

    I will attach my example code for freeRTOS and LWIP webserver which works on TMS570LC4357 HDK. It works for both static IP and DHCP.
  • This is working freeRTOS+LWIP (webserver) on TMS570LC43x HDK:

    5618.TMS570LC4357_FreeRTOS_LWIP.7z

  • Hi Christian
    Can you confirm that the updated example from QJ fixes the issues you were having.
    I am marking this post closed - but definitely feel free to re-open (simply by posting a response) if you see any issues

    regards
    Mukul