lwIP stuck in FreeRTOS list.c line 150

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

lwIP stuck in FreeRTOS list.c line 150

1,077 Views
willhelm_schmid
Contributor I

I am using IAR 8.x with i.MX RT1020 and a modified lwip_examples\lwip_httpsrv project. I have swapped out the server with my own server, but everything else is as it was originally set up.

The code gets stuck in FreeRTOS list.c at line 150. I have looked at all the recommendations provided in the comments at this code location. Macro  configASSERT()  was already set in this project. I have added stack check.

I have attached the stack trace. Function HttpSocket_netconnCB is my own netconn callback, e.g.
netconn_new_with_callback(NETCONN_TCP, HttpSocket_netconnCB)

This is an accept as you can see from the stack trace.

Code line 150:

        /* *** NOTE ***********************************************************
        If you find your application is crashing here then likely causes are
        listed below.  In addition see https://www.freertos.org/FAQHelp.html for
        more tips, and ensure configASSERT() is defined!
        https://www.freertos.org/a00110.html#configASSERT

            1) Stack overflow -
               see https://www.freertos.org/Stacks-and-stack-overflow-checking.html
            2) Incorrect interrupt priority assignment, especially on Cortex-M
               parts where numerically high priority values denote low actual
               interrupt priorities, which can seem counter intuitive.  See
               https://www.freertos.org/RTOS-Cortex-M3-M4.html and the definition
               of configMAX_SYSCALL_INTERRUPT_PRIORITY on
               https://www.freertos.org/a00110.html
            3) Calling an API function from within a critical section or when
               the scheduler is suspended, or calling an API function that does
               not end in "FromISR" from an interrupt.
            4) Using a queue or semaphore before it has been initialised or
               before the scheduler has been started (are interrupts firing
               before vTaskStartScheduler() has been called?).
        **********************************************************************/

        for( pxIterator = ( ListItem_t * ) &( pxList->xListEnd ); pxIterator->pxNext->xItemValue <= xValueOfInsertion; pxIterator = pxIterator->pxNext ) ;

Labels (1)
0 Kudos
1 Reply

928 Views
victorjimenez
NXP TechSupport
NXP TechSupport

Hello Will,

Unfortunately, NXP doesn't support any additional modifications made to the lwip examples provided within the SDK. Sorry for the inconvenience that this might cause. 


Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos