Quality RTOS & Embedded Software

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




Loading

STR912 comstick and UDP on FreeRTOS

Posted by ajinkya on March 26, 2013
Hello Friends,
I was want my board (STR912 comstick it has ethernet port on board) to receive a UDP packet sent by some remote host.
My free rtos version is V5.0.2.

So while looking for the same I found this link:

http://www.freertos.org/FreeRTOS-Plus/FreeRTOS_Plus_UDP/FreeRTOS_UDP_IP_Embedded_Ethernet_Tutorial.shtml

but it asks for following files to add to my project directory:

FreeRTOS-Plus/FreeRTOS-Plus-UDP/FreeRTOS_UDP_IP.c
FreeRTOS-Plus/FreeRTOS-Plus-UDP/FreeRTOS_Sockets.c
FreeRTOS-Plus/FreeRTOS-Plus-UDP/FreeRTOS_DHCP.c
FreeRTOS-Plus/FreeRTOS-Plus-UDP/FreeRTOS_DNS.c

I have them but the names are not the same (I am worried whether version is the same or not / it doesn\'t matter)
I have :
uip.c
sockets.c
dhcp.c
dns.c

and i dont have BufferAllocation_2.c file at all which is for BufferManagement.

So how should i go for setting up UDP on FreeRTOS.

RE: STR912 comstick and UDP on FreeRTOS

Posted by Richard on March 26, 2013
It sounds like you have the uIP code, not the FreeRTOS+UDP code.

The FreeRTOS+UDP code is contained in the downloadable projects hosted in the FreeRTOS+ site:

http://www.freertos.org/FreeRTOS-Plus/FreeRTOS_Plus_UDP/Embedded_Ethernet_Examples/RTOS_UDP_CLI_Windows_Simulator.shtml

http://www.freertos.org/FreeRTOS-Plus/FreeRTOS_Plus_UDP/Embedded_Ethernet_Examples/RTOS_UDP_and_CLI_LPC1830_NGX.shtml

Regards.

RE: STR912 comstick and UDP on FreeRTOS

Posted by ajinkya on March 27, 2013
Hello Sir,
But my target platform is not matching with mine.......the source code is for LPC1830 Xplorer board from NGX Technologies.
mine is STR912 comstick by ST Microelectronics. Do we have sample code available for it.....
What can be done in this case??

RE: STR912 comstick and UDP on FreeRTOS

Posted by Dave on March 27, 2013
There is a porting guide on the website. You have to implement a few functions to pass data between the stack and your Ethernet driver. The best thing to do is first ensure your Ethernet driver is working without the FreeRTOS code, then create interface functions required.

http://www.freertos.org/FreeRTOS-Plus/FreeRTOS_Plus_UDP/FreeRTOS_UDP_Porting.shtml


[ 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