Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT




Loading

Demo FreeRTOS+UDP on ML605

Posted 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 ML605

Posted 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 ML605

Posted 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 ML605

Posted 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 ML605

Posted 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 ML605

Posted 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 ML605

Posted 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


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

FreeRTOS kernel V10 is available for immediate download. Now MIT licensed.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS