FreeRTOS-Plus-TCP /test dirctory codes can test on the development board?

Hey, We have finished the FreeRTOS-Plus-TCP porting on our development board now. We just want to use the FreeRTOS-Plus-TCP/test/ souces to test the protocol stack functions is all OK on our development board ?

Hi @raintiliang
It is great that you have successfully ported FreeRTOS-Plus-TCP on your board.
FreeRTOS-Plus-TCP/test is a directory made for the purpose of Unit testing of the FreeRTOS-Plus-TCP APIs.

You can port the test sources , mock missing stuff and adapt for your hardware drivers. These tests help catch regressions quickly.

Are you facing any issue running these tests on your development board ?

Hey, your reply is welcome. We want to make complete test cases to check our FreeRTOS-plus-tcp stack porting working well ? May have your some ideas or examples.

To run the FreeRTOS-Plus-TCP tests on your development board, you integrate test source files (like test_TCP_Echo.c) into your existing FreeRTOS project where the TCP/IP stack is already working. Ensure the network is initialized using FreeRTOS_IPInit() and wait for FreeRTOS_IsNetworkUp() before starting the test tasks. Modify your main() function or create a dedicated test task to launch the tests after network setup. Update FreeRTOSIPConfig.h to enable required features (e.g., ipconfigUSE_TCP, ipconfigUSE_DHCP) and redirect logging macros like FreeRTOS_printf() to UART for debugging. Once flashed, the tests will run on target, and you can interact with them via tools like netcat or monitor results through serial logs.

1 Like

Hey, Thanks a lot, the netcat is one great idea. Yes ,What about the network performance test suggest ? Not only to test the network stack functions, But also to measure the network stack base the development board performances?

You can try measuring the performance using iperf.
This issue might be a good starting point .