Role of FreeRTOSIPConfigDefault.h

Hi.

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: https://github.com/aws/amazon-freertos/blob/master/libraries/abstractions/secure_sockets/freertos_plus_tcp/iot_secure_sockets.c#L32

Here is a sample FreeRTOSIPConfig.h: https://github.com/aws/amazon-freertos/blob/master/vendors/microchip/boards/curiosity_pic32mzef/aws_demos/config_files/FreeRTOSIPConfig.h

Thanks.

[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 https://github.com/FreeRTOS/FreeRTOS/blob/master/FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_Minimal_Windows_Simulator/main.c#L44

Hi and thank you.

I don’t have any include error anymore.