#if ( ipconfigEVENT_QUEUE_LENGTH < ( ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS + 5 ) ) #error The ipconfigEVENT_QUEUE_LENGTH parameter must be at least ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS + 5 #endif
Fatal Error[Pe035]: #error directive: The ipconfigEVENT_QUEUE_LENGTH parameter must be at least ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS + 5 C:\dev\bootloader\Bootloader\FreeRTOSv202012.00\FreeRTOSIPConfig.h 98
However I cannot find any definitions for ipconfigEVENT_QUEUE_LENGTH and ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS.
do you include here my FreeRTOSIPConfig.h?
I cannot see any attachments button…
By the way,
This test that causes the error, is on line 97 #if ( ipconfigEVENT_QUEUE_LENGTH < ( ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS + 5 ) ) #error The ipconfigEVENT_QUEUE_LENGTH parameter must be at least ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS + 5 #endif
Seems you’re referring to the FreeRTOSIPConfigDefaults.h which indeed could be polished here and there.
However, e.g. my (custom) FreeRTOSIPConfig.h contains just the required/desired #defines
The problem is that I want to use the latest release and this file I believe may have come from release 8…
Since the compiler gives an error, because the definitions are after the test, I guess this is an error.
Could you tell me how I should proceed? What is the correct way of customising the FreeRTOSIPConfigDefaults.h file in order to generate a proper FreeRTOSIPConfig.h?
FreeRTOSIPConfigDefaults.h is not a user editable file as it should be the same for all FreeRTOS+TCP projects. You customise +TCP for your application by providing a FreeRTOSIPConfig.h file. Anything that is not defined in FreeRTOSIPConfig.h will be defaulted by the values in FreeRTOSIPConfigDefaults.h. This is the same as in the FreeRTOS kernel - whereby you customise the kernel for your application by providing FreeRTOSConfig.h and anything not defined in there will either trigger a #error message or get set to a default value.
The following links may help:
First you can look at the FreeRTOSIPConfig.h used in the example found in the main FreeRTOS download. Note the one I have linked to is for the Windows port, so its settings are not suitable for devices with limited RAM. There are other examples around - also in Hein’s git repo.