2024-07-22 11:23 AM - last edited on 2024-07-23 02:33 AM by Andrew Neil
How to write code for TCP client on the STM32F767ZI based NUCLEO board without using any RTOS on STM32Cube IDE? Do you have any example code? Also looking for TCP server code that is working... Please respond with details and the sample program if you have one. It is little urgent. Thanks!
2024-07-23 02:21 AM
hello @rdevisetti ,
For developing a TCP client on the STM32F767ZI NUCLEO board without using any RTOS, you can find useful example code in the STM32Cube firmware package. Specifically, you can refer to the examples on Github :
You can adapt the examples to fit the STM32F767ZI NUCLEO board and your specific requirements.
Br
2024-07-23 09:33 AM
Those examples using Netconn RTOS. So that does not suit my need. Please point me to the program that runs on bare board with no OS. Also that shall be implemented for STM32Cube IDE for STM32F767ZI.
2024-07-24 04:08 AM
Hello @rdevisetti ,
This 2 examples LwIP_TCP_Echo_Client & LwIP_TCP_Echo_Server doesn't use Netconn RTOS .
using LwIP_TCP_Echo_Client example , in lwipopts.h file ( line 181) Netconn API is disactivate :
* LWIP_NETCONN==1: Enable Netconn API (require to use api_lib.c)
*/
#define LWIP_NETCONN 0
BR
2024-07-26 05:41 AM - edited 2024-07-26 05:42 AM
I had made the changes to my project for configuring my NUCLEO-F767ZI board as a TCP client and my PC as TCP server. But what I noticed is that the board is not acquiring the IP address. I turned on the DHCP also on the board. Please let me know what I am doing wrong. I need it urgently and is important for me. TCP Server on my PC is working fine when I tested it with a TCP Client program running on the same PC. Attached the TCP Server Visual Studio solution also for your reference.
I had attached my TCP Client Project to this reply in 7z format for your reference. I am working on this for last many days. Please provide your feedback on my project. We will be using this project for initial test on our custom board based on STM32F767VIT6 once this project is working. Thanks!