FreeRTOS-PLUS-TCP: Ethernet installation with DHCP enable and TCP server

Good morning I download the folder FreeRTOSv202212.01. I compiled a demo project for my board (CORTEX_MPU_M7_NUCLEO_H743ZI2_GCC_IAR_Keil) to create a project into the development environment STM32Cube. Everything ok. FreeRTOS running correctly

Now I would like to test the ethernet via the FreeRTOS-PLUS-TCP library.
How can I do?
How can I installing dhcp and tcp server?
Thanks

Hi @FraGu,
Welcome to the FreeRTOS community.
You can use one of the available demos to validate the FreeRTOS-plus-TCP functionality.
WinSim Demo : FreeRTOS - Open Source Embedded Ethernet TCP/IP web Server Demo with Source Code
Multi-Interface Demo: FreeRTOS-Plus-TCP Multiple Interfaces - FreeRTOS

Just to add, these are the instructions to add FreeRTOS-Plus-TCP to a project - TCP networking tutorial - Adding the source files into an RTOS project. You can also use this project as a reference which should be pretty close to 743ZI - GitHub - tony-josi-aws/STM32_Nucleo_H723ZG_FreeRTOS_TCP.

Hello thank you for your reply. Now I’ll try to create a project for testing tcp. One thing that I founded in your example folder. what means ipTYPE_IPv4? I don’t found this variable…Thanks.

Hello again…sorry but I can’t compile the project nucleo H723ZG. Can you help me with a simple project for testing dhcp and socket udp-tcp with freeRTOS-plus-tcp for my board STM32H735DK. Thanks.

The value defies whether IP address is of IPv4 type of IPv6 type. ipTYPE_IPv4 is defined here, & ipTYPE_IPv6 is defined here.

The project provided above is just for reference and this app_main can also be referenced as sample code for your main application.
You can also try running these demos as mentioned above on windows simulator to get more idea on testing dhcp and socket udp-tcp.

Also can you please let us know what type of compilation issues are you facing.

Hi Monika, ok thank you. I’ll try asap and then I’ll let you know. Thanks again

Hi Monika, another thing please…where I found the function “showEndPoint”? Thanks

Hi @FraGu ,
I wanted to bring to your attention that you seem to be using an older release of FreeRTOS that does not support IPv6 (before FreeRTOS-Plus-TCP V4.0.0). This is likely the reason why you are unable to find certain variables or functions related to IPv6.

I would kindly suggest that you consider updating to a newer version of FreeRTOS. If you wish to continue using the current version, please refer to the Initialising the TCP/IP Stack [Deprecated] guide, which is marked as [Deprecated], for instructions on initializing your stack.

Additionally, I have compiled a list of useful samples that may assist you:

Please note that the zero-copy samples are considered advanced and require additional user support for better performance by reducing memory copy operations. You may choose to ignore these samples initially.

Thank you.

1 Like

Hi ActorOu,
I try to installing the Ehernet with freeRTOS funtions on my board STM32H735DK but I don’t see the packet 255.255.255.255 from my board to server dhcp.
Can you help me please to debug this my issue please? Thanks

Hi @FraGu,
Could you kindly provide some additional details about your environment? Has that particular board been able to successfully transmit data in the past?

Thank you.

Hi ActorOu,
this morning I fixed my issue. I checked and modification the GPIOs ethernet settings and now it’s ok. DHPC and ping working fine. Could you show where I can found some example about http / https and ssh server installation on my board H735 please? Many thanks in advance

I do not think we have any SSH example. For HTTP, you can refer these examples - FreeRTOS/FreeRTOS-Plus/Demo/coreHTTP_Windows_Simulator at main · FreeRTOS/FreeRTOS · GitHub.

Ok but this demo is it ok for STM32H735 for installing http server on my board? Thanks.

These are not HTTP server demos but HTTP client demos. These are not for the board you mentioned but you should be able to use them as reference. I do not think we have a HTTP server demo.

ok understand. But what means your folder “/FreeRTOS-Plus/Demo/Common/Demo_IP_Protocols/HTTP_Server/”? is not HTTP server example?

I need some example for then start my development about HTTP and then HTTPS server.

Thanks.

I was wrong and you are exactly right. You should be able to use this demo as a reference.

You can also this as a reference point, you will need to replace LWip with FreeRTOS+TCP

Here are 3 drivers/protocols: HTTP, FTP and NTP.

The project needs some adaptation to work with the latest release of +TCP.

Thank you for suggestion but I need to use stack ethernet with freeRTOS+TCP and not LWIP