# FreeRTOS+TCP STM32F4 minimal TCP example

**URL:** <https://forums.freertos.org/t/freertos-tcp-stm32f4-minimal-tcp-example/11807>\
**Category:** Libraries\
**Created:** [February 21, 2021, 6:53pm UTC](https://forums.freertos.org/t/freertos-tcp-stm32f4-minimal-tcp-example/11807 "2021-02-21T18:53:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ptihanyi](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/ptihanyi/32/4216_2.png) [@ptihanyi](https://forums.freertos.org/u/ptihanyi)\
**Post date:** [February 21, 2021, 6:53pm UTC](https://forums.freertos.org/t/freertos-tcp-stm32f4-minimal-tcp-example/11807/1 "2021-02-21T18:53:15Z")

</div>

Hello!

I would like to create an example project for FreeRTOS + TCP.  
My devboard is a NUCLEO-F439ZI, the development system is STM32CubeIDE.  
So far, I got to have a working native (without CMSIS-RTOS) project with two LED flashing tasks with FreeRTOS 10.4.2.  
I tried to add FreeRTOS + TCP to the project based on the example code “FreeRTOS\_Plus\_TCP\_Minimal\_Windows\_Simulator” but got stuck.

Unfortunately, all sample code is for Windows Simulator only. Where can I find a working and current example for STM32F4?  
I am completely confused about the sample programs. At [freertos.org](http://freertos.org), for examples of real hardware, I can only find links to pages with more links without real example code.

My quick and dirty source code is at the following link:  
[https://drive.google.com/file/d/11SdFFXN2csiWGbgyZ2G2R6dQot5X92aM/view?usp=sharing](https://drive.google.com/file/d/11SdFFXN2csiWGbgyZ2G2R6dQot5X92aM/view?usp=sharing)

Thanks in advance for all the help / links!

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [February 21, 2021, 7:39pm UTC](https://forums.freertos.org/t/freertos-tcp-stm32f4-minimal-tcp-example/11807/2 "2021-02-21T19:39:49Z")

</div>

Anything here help? [GitHub - htibosch/freertos\_plus\_projects: FreeRTOS sample projects using +TCP and/or +FAT](https://github.com/htibosch/freertos_plus_projects)

---

<div class="post-metadata">

**Author:** ![htibosch](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/htibosch/32/62_2.png) [@htibosch](https://forums.freertos.org/u/htibosch)\
**Post date:** [February 22, 2021, 5:48pm UTC](https://forums.freertos.org/t/freertos-tcp-stm32f4-minimal-tcp-example/11807/3 "2021-02-22T17:48:02Z")

</div>

Richard is right, you will find several demo projects there, that run on real hardware.  
You find the STM32Fx4 project [here](https://github.com/htibosch/freertos_plus_projects/tree/master/plus/stm32F40),

When you go to `/plus/stm32F40/Src`, you can call GNU make, which will look for `Makefile` in that location.

You will notice that you’ll have to adapt `config.mk`, to indicate the proper location of the compiler. You will see several examples, both for Linux and for WIndows.

In `/plus/stm32F40/Inc` you will find all configuration files of the project.

When you have any questions, don’t hesitate to ask them here.

There are also files that you will need later on Eclipse. I used AC6.

---

<div class="post-metadata">

**Author:** ![ptihanyi](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/ptihanyi/32/4216_2.png) [@ptihanyi](https://forums.freertos.org/u/ptihanyi)\
**Post date:** [February 23, 2021, 1:49pm UTC](https://forums.freertos.org/t/freertos-tcp-stm32f4-minimal-tcp-example/11807/4 "2021-02-23T13:49:16Z")

</div>

Richard, Hein: Thank you very much for your help!

With that, I can get started!

---

<div class="post-metadata">

**Author:** ![marek](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@marek](https://forums.freertos.org/u/marek)\
**Post date:** [January 28, 2022, 12:10pm UTC](https://forums.freertos.org/t/freertos-tcp-stm32f4-minimal-tcp-example/11807/5 "2022-01-28T12:10:42Z")

</div>

Hello!

I am also having problems with setting up FreeRTOS+TCP to a NUCLEO-F439ZI and in search for a working example code. Did you manage to get it running? Do you have a working example code you can share? Thanks in advance.
