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.

RM57L FreeRTOS + lwIP

Other Parts Discussed in Thread: HALCOGEN

Hello,

I used lwIP without FreeRTOS and it works very good. I can ping my microcontroller without any problem. And I can send or receive UDP and TCP packets.

But when I create a new project with HALCoGen and Code Composer Studio to do the same but via FreeRTOS, it is not possible anymore to ping or to send TCP/UDP packets to my microcontroller.

This is the output I get when my microcontroller starts up (left side) and what I get from pinging to it (right side).

I've been troubleshooting for more than a week and I can't find what's wrong.

I hope somebody can help me. I also attached my project (HALCoGen and Code Composer Studio).2018.lwIP_FreeRTOS_test.rar

Thank you in advance.

  • Hi Jason,

    This is a bit above my own experience - never tried FreeRTOS + lwIP. Probably someone else on this forum has but I would also suggest you look at posts like www.freertos.org/.../freertos_FreeRTOS_lwIP_5416267.html

    Because if you have everything working standalone that points to an integration issue not a hardware issue on the microcontroller.
    It could be an issue in which API from FreeRTOS you are calling in the ISR handler.

    Could be some issue with the MPU settings and also since the newer FreeRTOS versions make tasks run in User mode by default, if you are not aware of this you may have your buffers in a place that works fine with a standalone HalCoGen demo running in system mode but fails miserably when you run in user mode.

    Also read through the lwIP documentation. There is definitely discussion of how to use lwIP with an OS in that documentation.
    I haven't digested it to give you an answer but there is information there.
  • Hello Anthony,
    Thanks for responding.

    The problem is that I do not create any tasks in my program and I do not even start the scheduler. It's the same code in my main as when do not implement FreeRTOS with HALCoGen.

    Best regards,
    Jason
  • Hi Jason,

    Ok then sounds like there is still quite some work to do.