freertos+tcp

kotyal wrote on Thursday, October 26, 2017:

can anyone tell how to port FREERTOS+TCP on FREERTOS

febe2 wrote on Thursday, October 26, 2017:

Hi,
did you see this?
http://www.freertos.org/FreeRTOS-Plus/FreeRTOS_Plus_TCP/FreeRTOS_TCP_Porting.html
In gernal I would say: you need a new NetworkInterface.c file and drivers (gmac/ethernet_phy) for your board.
Which controller do you use?
Best Felix

kotyal wrote on Thursday, October 26, 2017:

how to port FREERTOS+TCP on intel galileo board

febe2 wrote on Thursday, October 26, 2017:

sry I have no experience with this board…
I think you habe to follow the instructions described here: http://www.freertos.org/FreeRTOS-Plus/FreeRTOS_Plus_TCP/FreeRTOS_TCP_Porting.html
right now there are only offical ports released for: sam4e, stm32F4, windows simulator and zynq

heinbali01 wrote on Monday, October 30, 2017:

Hi Mananda, do you have enough information to get on with your project?

Porting +TCP consists of these steps:

  1. Configure the PHY, start auto-negotiation, and wait for the Link Status. Check the actual parameters like speed and duplex.

  2. Configure the EMAC, using the obtained parameters ( speeds and duplex ).

  3. Implement the send function xNetworkInterfaceOutput(). You can check if it works by running Wireshark on a nearby laptop.

  4. Implement the reception function. Use xSendEventStructToIPTask() to pass (the ownership of) the network buffers to the IP-task.

Please have a look at existing +TCP drivers. Here is a newer zero-copy driver that you can use as an example.

And if you have questions, you can ask them on this forum.