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.

TM4C1294NCPDT: errors using lwip with freertos

Part Number: TM4C1294NCPDT
Other Parts Discussed in Thread: SYSBIOS

Hello

We want implement modbus TCP with freertos . We already successfully developed Modbus tcp without having any rtos . This will be done with the help of your example code(enet_lwip). But when we trying to implement Modbus tcp with lwip stack through freertos 100+ error comes and so many errors with lwip stacks so can you give example code of lwip stack with freertos for CCS IDE.

  • Hello Anushka,

    We do not have FreeRTOS expertise to help with debug of FreeRTOS implementations. If you need support from Texas Instruments for using an RTOS with TM4C MCUs, then you can look into using TI-RTOS for Tiva-C: http://www.ti.com/tool/TI-RTOS-MCU

    User's Guide: http://www.ti.com/lit/ug/spruhu5d/spruhu5d.pdf

    The FreeRTOS resources in TivaWare are provided as is to help provide an initial starting point, but we just are not in position to help support that implementation. If you get further along and have specific questions relating to the TM4C itself, then please let us know.

  • hello ralph,

    so please give us sample code for modbus TCP with ti-rtos. 

  • Hello Anushka,

    We do not have example code for that, but it would be possible to try and help guide through technical challenges with implementation that are device or RTOS specific. You mention you were starting with enet_lwip and trying implement that on FreeRTOS. So for TI-RTOS for Tiva-C, you can start with one of the various TCP examples offered to give you a strong foundation to then develop the Modbus layer on top of.

  • Hello ralph,

    Thank you for your support . I can now successfully develop Modbus TCP stack through ti-rtos

    But I have a following query’s

    1)      As I connect to Modbus tcp with reference of your tcp-echo example , max I can connect 5 connection at a same time and for 6th connection it will not be connected so how and where this can be restricted like only 5 connections are allowed. please explain me in details  

    2)      IP address gateway and subnet i have change through .cfg file and then connect to that ip address . How that can be changeable at run time(i need to change it ,just like other normal settable parameter) ? how to change .cfg file parameters at run time ?

    3)      How to declare and use ISR function on ti-rtos. Supporse I want UART receive ISR function so how to declare that function . On non Ti-rtos project it can be define at startup_ccs.c file but with ti-rtos function this file is not preset so how and where to declare ISR functions.

  • Hi Anushka,

    Anushka Parab21 said:
    1)      As I connect to Modbus tcp with reference of your tcp-echo example , max I can connect 5 connection at a same time and for 6th connection it will not be connected so how and where this can be restricted like only 5 connections are allowed. please explain me in details  

    I'd take a look at https://e2e.ti.com/support/microcontrollers/msp430/f/166/t/738539. It might be a memory issue.

    Anushka Parab21 said:
    2)      IP address gateway and subnet i have change through .cfg file and then connect to that ip address . How that can be changeable at run time(i need to change it ,just like other normal settable parameter) ? how to change .cfg file parameters at run time ?

    Take a look at the generate code in the debug\configPkg\package\cfg\<.cfgname>_<target>.c file. Look in the "======== ti.ndk.config.Global TEMPLATE ========" section. You'll see how the IP address is set-up (along with NDK memory buffers, etc.). You can stop the network stat and restart it using similar code that is in the generate .c file.

    Anushka Parab21 said:
    3)      How to declare and use ISR function on ti-rtos. Supporse I want UART receive ISR function so how to declare that function . On non Ti-rtos project it can be define at startup_ccs.c file but with ti-rtos function this file is not preset so how and where to declare ISR functions.

    You can use the drivers supplied by TI-RTOS (e.g. UART). Or you write your own. Make sure to use ti.sysbios.hal.Hwi module to setup the ISRs though.

    Todd