Has there been made any port yet to the LPC17XX platform? I intend to use FreeRTOS+TCP with an LPC1769 on an own hardware platform. The LPCopen code does not seem to be maintained much so it would be nice if it was possible to use FreeRTOS+TCP instead.
There is a driver for the LPC18xx for FreeRTOS+TCP, but it has not been used in a while, and may therefore need a little tinkering to get it to build with the latest +TCP code.
I have attached what we have - note while this was working just fine some time ago, as you can see it was never completed, and may need work to use with the latest +TCP code. I hope it will be useful, but that’s all…
which is from a very recent date, recently tested on a LPC1830, and compatible with the latest release of FreeRTOS+TCP.
One of the users on this forum is adapting this LPC18xx/NetworkInterface.c to use it on a LPC43xx.
However, if I’m not mistaken, the EMAC of LPC18xx is not compatible with the EMAC of a LPC17xx.
I will attach the LPC17xx version. This version has not been tested for a long time. We only kept the naming of the functions up-to-date, so it should compile. But I guess that you will have some work on it before it runs.
You can always write if you have more questions.
Iam trying to implement TCP on LPC1768 and facing the same problem.
Iam getting errors like:
undefined reference to EMAC_CheckReceiveIndex. Similarly undefined reference to EMAC_GetReceiveDataSize,EMAC_NextPacketToRead,EMAC_UpdateRxConsumeIndex,
ucMACAddress,EMAC_CheckTransmitIndex,uxRand,vLoggingPrintf and so on.
LPC18xx has lpc18xx_emac.c file bt its missing for LPC17xx series.
The problem I run into though, is that after some random time, I get an assert error in pxDuplicateNetworkBufferWithDescriptor(). It looks like sometimes pxGetNetworkBufferWithDescriptor() will return a valid buffer but the pointer inside that points to pucEthernetBuffer is NULL. Maybe I should start a new thread on this.
Ulysses, if you decide to use FreeRTOS+TCP on a LPC17XX, you can get all support here on this forum. It would be good if you open a new thread for that purpose.
Thanks, Hein
Hello Vladimir,
I know it is quite an old post but I haven’t found more recent posts about this topic. I also must port the FreeRtos+TCP to an LPC1788 board and I wonder if you were able to make it work.
Hi @Gonzagds,
As this thread mentioned, LPC18xx hasn’t beend used for a while.
But I found a discussion here in wolfssl forum. @ulysses has done some integration with LPC1788.
You can take a look at this thread for more information.
Hi @Gonzagds
Welcome to the FreeRTOS Community Forum. In addition to the resource shared by @ActoryOu , you can also go through this previous forum post and see if it helps to resolve your issue.