In FreeRTOS_IP.c:
pxFillInterfaceDescriptor( 0, &( xInterfaces[ 0 ] ) );
(note, no return result, although I don’t see why this function needs a return value, it’s never used)…
And in the example folder DriverSAM, NetworkInterface.c
Which NetworkInterface.c implementation are you using?
FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/source/FreeRTOS_IP.c:932: undefined reference to `pxFillInterfaceDescriptor’
The error seems like there is no definition available for pxFillInterfaceDescriptor.
no return result
The example network interface implementation of pxFillInterfaceDescriptor needs to return the pointer to the interface, though the return value is not used, which seems not to be the case.
I’m trying to get my own port running on an Altera Nios II CPU, referring to the existing examples of NetworkInterface.c in the portable folder. This one I show here is the “SAM” one.
You need to have a definition for pxFillInterfaceDescriptor in your NetworkInterface.c file, if you are creating your own , along the similar lines as “DriverSAM”
Change 4:
Existing API: pxFillInterfaceDescriptor
It is there for backward compatibility. The function FreeRTOS_IPInit() will call it to initialise the interface and end-point objects
New API: prefix_pxFillInterfaceDescriptor
where prefix = Network Interface Name
E.g pxWinPcap_FillInterfaceDescriptor
New function with the same functionality