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.

RTOS/MSP432E401Y: Http server with msp432 using tcp echo

Part Number: MSP432E401Y

Tool/software: TI-RTOS

Hi community,

I have seen this below post for adding web control to the rtos tcpecho example program.

https://e2e.ti.com/support/microcontrollers/msp430/f/166/t/686691

However can any one let me know how to hook the AddWebFiles & RemoveWebFiles functions to the stack.

I try to add the following declaration in the ndk_tirtos.c file.

/* ================ Application Specific Instances ================ */
var Global = xdc.useModule('ti.ndk.config.Global');
var Http = xdc.useModule('ti.ndk.config.Http');
Global.IPv6 = false;
var http0Params = new Http.Params();
var http0 = Http.create(http0Params);
Global.stackInitHook = "&AddWebFiles";
Global.stackDeleteHook = "&RemoveWebFiles";

Then i am getting some errors.

Is that right or where i need to put these declarations.

Thank you

Regards

Kalyan.

  • Hello Kalyan,

    I haven't tried what is proposed in the forum post that is linked to this post. Reading the description, it looks like you should call the function AddWebFiles before configuring the HTTP Server in ndk_tirtos.c file. Have you tried it?

    The code that you have attached will not work with the C code. It is meant for the .cfg file that will be used by the xconfig tool to generate the necessary code.

    FYI, the upcoming SimpleLink MSP432E4 SDK will have an HTTP Server along with an example. This SDK is planned to be released mid-January 2019.

    Thanks,
    Sai
  • Hello sai,
    Thank you sir for the reply.

    I haven't tried that. Seems, it has to be declared in .cfg file. However i haven't found the .cfg file in the example. Could you provide me any link which will give me some idea how to use the xconfig tool.

    The HTTP server example : will it be in rtos or nortos?.

    Thank you
    Kalyan.
  • Hello Kalyan,

    The SimpleLink SDK examples don't provide .cfg file. Instead of using the GUI, the examples provide the configuration as part of the ndk_tirtos.c file. As mentioned in my earlier post that is where you should add the AddWebFiles function call.

    The HTTP server example will be using RTOS and NDK.

    Thanks,
    Sai

**Attention** This is a public forum