FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [November 2013 Threads] Demo FreeRTOS+UDP on ML605Posted by roberto-plus on November 4, 2013 Hi guys,
I'm trying to make an example of UDP trasmition. After following the tutorial in :
http://www.freertos.org/FreeRTOS-Plus/FreeRTOSPlusUDP/FreeRTOSUDPIPEmbeddedEthernetTutorial.shtml#addingudptofreertos_project
I have this problem.
https://gist.github.com/anonymous/7303406
The source code organitation is :
http://imageshack.us/photo/my-images/30/mvrf.JPG/
Somebody can help me?
Thanks
Demo FreeRTOS+UDP on ML605Posted by richardbarry on November 4, 2013 Assuming the line is from an unmodified V1.0.1 version of NetworkBufferManagement.h then I would guess the compiler does not know what a xNetworkBufferDescriptor_t type is.
Have you #included "FreeRTOSUDPIP.h" before #including "NetworkBufferManagement.h"?
See the includes in FreeRTOS-PlusSourceFreeRTOS-Plus-UDPportableNetworkInterfaceSH2ANetworkInterface.c - which is a very basic exmaple (that does not support zero copy).
Regards.
Demo FreeRTOS+UDP on ML605Posted by roberto-plus on November 4, 2013 Yes,I put #included "FreeRTOSUDPIP.h" before #including "NetworkBufferManagement.h" like FreeRTOS-PlusSourceFreeRTOS-Plus-UDPportableNetworkInterfaceSH2ANetworkInterface.c
As you sent me, I'm using the file networkInterface.c from SH2A.
Did you see my source code organitation? Is it correct?
http://imageshack.us/photo/my-images/30/mvrf.JPG/
Where can I find the defination of xNetworkBufferDescriptor_t ?
Thanks a lot for the support.
Demo FreeRTOS+UDP on ML605Posted by richardbarry on November 4, 2013
Where can I find the defination of xNetworkBufferDescriptor_t ?
Good point - the SH2A driver has not been used since the definition was split into a separate header file. Try adding
include "FreeRTOSIPPrivate.h"
immediately after including "FreeRTOSUDPIP.h".
Hope that helps. Applications should not include FreeRTOSIPPrivate.h directly, but it is necessary for drivers.
Your files look fine as afar as I can tell from the image.
Regards.
Demo FreeRTOS+UDP on ML605Posted by roberto-plus on November 4, 2013 Yes maybe it's little bit better.
Now error is in NetworkInterface.c:127:
https://gist.github.com/anonymous/7304999
My NetworkInterface.c is :
https://gist.github.com/anonymous/7305017
Best regards
Demo FreeRTOS+UDP on ML605Posted by richardbarry on November 4, 2013 Yes - it seems it was not such a good plan to start with that driver after all as it is out of date.
From the previous posts you know where to find the xNetworkBufferDecriptor_t structure, from its definition, and from the other drivers in the portable layer, you can see that the name of the structure member was changed from pucBuffer to pucEthernetBuffer.
Regards.
Demo FreeRTOS+UDP on ML605Posted by roberto-plus on November 4, 2013 Dear Richard, thanks a lot.
Yes, I know where to find the xNetworkBufferDecriptort structure. Now, I think is the moment to change its definition and to create driver for my Ethernet.
I'm following this link :
http://www.freertos.org/FreeRTOS-Plus/FreeRTOSPlusUDP/EmbeddedEthernet_Porting.shtml
Best regards
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|