I’ve set up a socket set with the code above and when I reach the select function an exception is thrown( read access violation, line 532 of event_groups.c).
I’m running this on the win32 simulator using Visual Studio.
I don’t understand what is happening in the code where the exception is thrown.
Is there anything about this set up that would cause the exception?
FreeRTOS_FD_Set() only has two parameters but you are passing three.
See
FreeRTOS_select(&xFD_set, pdMS_TO_TICKS(500));
The first parameter to FreeRTOS_select() passing is the xFD_Set variable
directly, whereas you are passing in the address of the variable - that
is most likely the cause of the exception.
I would recommend ensuring the code, as far as possible, builds without
any compiler warnings.