Quality RTOS & Embedded Software

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




Loading

FreeRTOS+TCP restart with new static ip ...

Posted by debugasm on July 28, 2017

Hi,

Today I finally got to try FreeRTOS+TCP using MicroBlaze and EthernetLite on Spartan6 FPGA.

I am very happy because in my next project I want to use FreeRTOS+TCP instead of lwip.

I still have to do many tests and write a lot of code but I think that FreeRTOS+TCP will give me a lot of satisfaction, thanks to the excellent work that has been done up to here from the "Real Time Engineers ltd".

In my appliances I always use a static IP address, I do not use DHCP (which I have disabled) and for now I set the IP address hardcoded.

I have a problem though: How to change IP address when started FreeRTOS+TCP ?

I did not find any APIs for that, was not considered ?

I have found this :

~~~ FreeRTOSSetIPAddress FreeRTOSSetNetmask FreeRTOS_SetGatewayAddress ~~~

But missing :

FreeRTOS_SetDNS

But these routines do not seem appropriate to what I see in the code.

How do I change my network configuration after I have started FreeRTOS+TCP with another manually assigned IP address ?

Suggestion:

While porting the EthernetLite driver I noticed that the call to:

BaseType_t xNetworkInterfaceInitialise( void )

does not pass the MAC address to be set to the EMAC interface, but it is necessary to refer to an external variable:

~~~ /* ucMACAddress as it appears in main.c */ extern const uint8_t ucMACAddress[ 6 ]; ~~~

Would not it be better to pass the MAC value as a parameter ?

There is an upgrade after "160919FreeRTOSLabs.zip" ?

Thanks so much.

debugasm


[ 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