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 FreeRTOS and LWIP

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

Hello,

Is there a working sample that uses FreeRTOS and LWIP on the LAUNCHXL2 RM57L ?

(I found on the git repository a working application that uses lwip, however with no RTOS)

Thanks,

Eitan.

  • Hello,

    So, I've attempted to create such a project myself, with only some susses.

    I'm attaching my project , hoping that someone here will spot my bug.

    This project does the following

    1. Boot the unit, creates a task and start  the FreeRTOS scheduler - works.

    2. Attempt to initialize LWIP as a DHCP client from within the task - . breaks after initialization is completed.

    Notes:

    1. I know for sure that there is a DHCP server and that the unit could get an IP if the code was correct as the the LWIP sample at

    ttps://processors.wiki.ti.com/index.php/LAUNCHXL2_RM57L:_lwIP_Demo works fine.

    2. TI's HAL and LWIP are under the Libraries folder

    2806.spidebugger.zip

    Thanks!

    Eitan.

  • Part Number: LAUNCHXL2-RM57L

    Hello,

    I need help with creating a simple project that has FreeRTOS that initiate LWIP HTTP server sample from one of it's tasks.

    I've attempted to create a FreeRTOS project using HAL CODE GENERATOR, based on the http server sample, by simply creating a new FreeRTOS project and adding the necessary changes so

    the HTTP code will work. The code run, up to the point where there is an attempt to get an IP from a remote DHCP, it doesn't break but rather thinks that there is no response from the  DHCP.

    I've suspected that this was somehow related to the PMU and that the task was running in a non privileged mode. Changing manually the generated PMU asm code and setting the permissions of region 3 to "PRIV_RW_USER_RW_EXEC"  made it possible to retrieve an IP and start the demo from main() but not from within a task.

    Creating a privileged task using xTaskCreateRestricted() did not work and I think that changing the asm file manually messed up FreeRTOS at that point..

    Guys, please help,

    What is the correct PMU setup that will allow a task to execute that sample ?, a HCG project would be appreciated.

    Is there a way to avoid the PMU all together and use the memory as a flat non partitioned space with max permissions to the code ?

    (I'm new to this Cortex and those new permissions are driving me crazy).

    Thanks,

    Eitan.