Role of FreeRTOSIPConfigDefault.h


I am currently trying for the first time to create a project using FreeRTOS+TCP.
I followed the tuto page : Including in a Project

But when compiling, i get an error in FreeRTOSIPConfigDefault.h : “The ipconfigEVENT_QUEUE_LENGTH parameter must be at least ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS + 5”.

I also have an error in FreeRTOS_Sockets.h because i did not include FreeRTOSIPConfig.h : #error FreeRTOSIPConfig.h has not been included yet

I have several questions :

  1. If FreeRTOSIPConfigDefault.h checks user’s config, why this header does not contain FreeRTOSIPConfig.h ?
  2. Where should I include FreeRTOSIPConfig.h ?

I know these questions seem a bit dumb. Sorry.

Thank you.

You can look here for include order:

Here is a sample FreeRTOSIPConfig.h:


[thought I had posted this earlier today, but seems I didn’t click the “reply” button]

I’m not sure that is actually correct. I don’t think you should include FreeRTOSIPConfig.h directly, but FreeRTOS_IP.h. See here for an example

Hi and thank you.

I don’t have any include error anymore.