Using FreeRtos Plus FreeRTOS_IP.h

mpi wrote on Thursday, April 05, 2018:

I’m trying to add FreeRtos Plus TCP in order to implement a HTTP server to a STM32H7 chip
I’m using the Eclipse IDE + The STM Pakages.
Following the the instructions in FreeRTOS+TCP Tutorial I’m experiencing some issues

After including “FreeRTOS_IP.h” in order to implement the required application hooks


I receive the following compilation error.

160919_FreeRTOS_Labs/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_IP.h:123:2: error: unknown type name ListItem_t

“ListItem_t” is required by “FreeRTOS_IP.h” in

typedef struct xNETWORK_BUFFER
{ ... } NetworkBufferDescriptor_t;

Any suggestion is apprecieted.

rtel wrote on Thursday, April 05, 2018:

ListItem_t is actually defined in FreeRTOS/Source/Include/list.h - but
that is not a file that should ever be included manually. Have you
included FreeRTOS.h at the top of the file? If so, then list.h should
be brought in at the right place.

mpi wrote on Friday, April 06, 2018:

FreeRTOS.h is already included

#include "FreeRTOS.h"
#include "FreeRTOS_IP.h"

but list.h is not brought in for some reason.
list.h is brought in by including “cmsis_os.h”


#include "FreeRTOS.h"
#include "cmsis_os.h"
#include "FreeRTOS_IP.h"

solves the issue.
Thx for your help.