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.

MSP432E401Y: Having difficulty with socket interface context, more specifically the makeContext() call. Faulting and I don't know why.

Part Number: MSP432E401Y

Hello All,

I'm having difficulty with the following lines, which are contained with SlNetIf.c and therein the SlNetIf_add(..) function

I suspect the issue is with the ifConf argument (the right-most argument) passed into the function call. As seen in the following screenshot.

I use SlNetIf_listHead, which at the time of calling set to NULL. However, this is the only argument of type SlNetIf_Config_t that I have found which gets me to this point without an ISR fault or returning an error code.

Here is the code that preceeds ifCreateContext call, in case it helps.

I have failed to locate the definition and declaration of the ifCreateContext call. This may also be the issue. When stepping through using the debugger, the program jumps to an ISR fault infinite while loop the instant that line 1091 (screenshot 2) runs.

Thank you in advance for your help

EDIT:

When using the "step into assembly" option at that line (line 1091), I get the following message.

I don't know if that helps at all, but I thought I should append it to my post.

  • Sorry, please wait for some time, it is out of our knowledge.

  • Hi Robert,

    To clarify- your issue is that when you run SlNetIf_add, your program enters an ISR fault, specifically in line 1091 of SlNetIf.c? You are also using SlNetIf_listHead->netIf.ifConf which is NULL at the time you call SlNetIf_add? Let me know if my understanding is correct or not.

    Are you basing your program off of an example from the SimpleLink MSP432E4 SDK, and if so, which one? Which version of the SDK are you using?

    Best,
    Kristen

  • Hello Kristen,

    Yes, your understanding is correct. Not necessarily line 1091 of SlNetIf, but at that line in the screenshot when the ifCreateContext function is called.

    I call the function using the arguments shown in the screenshot. SlNetIf_listHead is declared globally and set as NULL, yes you are correct.

    I am using udpecho with FreeRTOS from simplelink SDK v. 4.10.00.3

    I have discovered something new since posting. Here is a screenshot of the debugger. The value of ifCreateContext matches the value shown in the pop-up that I am presented with when I step in and the fault happens.
    I also was able to find the declaration of ifCreateContext, but I do not understand it. It doesn't look much like a function to me. I have included a screenshot of it below.


  • Hi Robert,

    Have this problem solved?

    Eason

**Attention** This is a public forum