Skip to main content
Associate III
January 29, 2026
Solved

unable to run the readily given example from mx for stm326570-dk nx_webserver_project

  • January 29, 2026
  • 2 replies
  • 293 views

MownishBugatha_0-1769669094172.png

I am trying to build the readily given Nx_webserver project , i had selected the given example and just change the tool chain to STMcube IDE inorder to build the project with the cube ide after redirection to the cube IDE i just click on the build , it ends up with the following error:

 

Spoiler

12:03:20 **** Build of configuration Debug for project Nx_WebServer_FSBL ****

make -j8 all

arm-none-eabi-gcc "C:/Users/admin/STM32Cube/Example/Nx_WebServer/Middlewares/ST/threadx/common/src/tx_block_pool_performance_info_get.c" -mcpu=cortex-m55 -std=gnu11 -g3 -DRTL8211_INIT_TO=10000 -DETH_PHY_1000MBITS_SUPPORTED -DDEBUG -DUSE_HAL_DRIVER -DSTM32N657xx -DFX_INCLUDE_USER_DEFINE_FILE -DNX_INCLUDE_USER_DEFINE_FILE -DTX_INCLUDE_USER_DEFINE_FILE -DTX_SINGLE_MODE_SECURE=1 -c -I../../../Middlewares/ST/netxduo/ports/cortex_m55/gnu/inc -I../../../Middlewares/ST/threadx/ports/cortex_m55/gnu/inc -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -mcmse -MMD -MP -MF"Middlewares/threadx/Performance/tx_block_pool_performance_info_get.d" -MT"Middlewares/threadx/Performance/tx_block_pool_performance_info_get.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Middlewares/threadx/Performance/tx_block_pool_performance_info_get.o"

arm-none-eabi-gcc "C:/Users/admin/STM32Cube/Example/Nx_WebServer/Middlewares/ST/threadx/common/src/tx_block_pool_performance_system_info_get.c" -mcpu=cortex-m55 -std=gnu11 -g3 -DRTL8211_INIT_TO=10000 -DETH_PHY_1000MBITS_SUPPORTED -DDEBUG -DUSE_HAL_DRIVER -DSTM32N657xx -DFX_INCLUDE_USER_DEFINE_FILE -DNX_INCLUDE_USER_DEFINE_FILE -DTX_INCLUDE_USER_DEFINE_FILE -DTX_SINGLE_MODE_SECURE=1 -c -I../../../Middlewares/ST/netxduo/ports/cortex_m55/gnu/inc -I../../../Middlewares/ST/threadx/ports/cortex_m55/gnu/inc -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -mcmse -MMD -MP -MF"Middlewares/threadx/Performance/tx_block_pool_performance_system_info_get.d" -MT"Middlewares/threadx/Performance/tx_block_pool_performance_system_info_get.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Middlewares/threadx/Performance/tx_block_pool_performance_system_info_get.o"

arm-none-eabi-gcc "C:/Users/admin/STM32Cube/Example/Nx_WebServer/Middlewares/ST/threadx/common/src/tx_byte_pool_performance_info_get.c" -mcpu=cortex-m55 -std=gnu11 -g3 -DRTL8211_INIT_TO=10000 -DETH_PHY_1000MBITS_SUPPORTED -DDEBUG -DUSE_HAL_DRIVER -DSTM32N657xx -DFX_INCLUDE_USER_DEFINE_FILE -DNX_INCLUDE_USER_DEFINE_FILE -DTX_INCLUDE_USER_DEFINE_FILE -DTX_SINGLE_MODE_SECURE=1 -c -I../../../Middlewares/ST/netxduo/ports/cortex_m55/gnu/inc -I../../../Middlewares/ST/threadx/ports/cortex_m55/gnu/inc -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -mcmse -MMD -MP -MF"Middlewares/threadx/Performance/tx_byte_pool_performance_info_get.d" -MT"Middlewares/threadx/Performance/tx_byte_pool_performance_info_get.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Middlewares/threadx/Performance/tx_byte_pool_performance_info_get.o"

arm-none-eabi-gcc "C:/Users/admin/STM32Cube/Example/Nx_WebServer/Middlewares/ST/threadx/common/src/tx_byte_pool_performance_system_info_get.c" -mcpu=cortex-m55 -std=gnu11 -g3 -DRTL8211_INIT_TO=10000 -DETH_PHY_1000MBITS_SUPPORTED -DDEBUG -DUSE_HAL_DRIVER -DSTM32N657xx -DFX_INCLUDE_USER_DEFINE_FILE -DNX_INCLUDE_USER_DEFINE_FILE -DTX_INCLUDE_USER_DEFINE_FILE -DTX_SINGLE_MODE_SECURE=1 -c -I../../../Middlewares/ST/netxduo/ports/cortex_m55/gnu/inc -I../../../Middlewares/ST/threadx/ports/cortex_m55/gnu/inc -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -mcmse -MMD -MP -MF"Middlewares/threadx/Performance/tx_byte_pool_performance_system_info_get.d" -MT"Middlewares/threadx/Performance/tx_byte_pool_performance_system_info_get.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Middlewares/threadx/Performance/tx_byte_pool_performance_system_info_get.o"

arm-none-eabi-gcc "C:/Users/admin/STM32Cube/Example/Nx_WebServer/Middlewares/ST/threadx/common/src/tx_event_flags_performance_info_get.c" -mcpu=cortex-m55 -std=gnu11 -g3 -DRTL8211_INIT_TO=10000 -DETH_PHY_1000MBITS_SUPPORTED -DDEBUG -DUSE_HAL_DRIVER -DSTM32N657xx -DFX_INCLUDE_USER_DEFINE_FILE -DNX_INCLUDE_USER_DEFINE_FILE -DTX_INCLUDE_USER_DEFINE_FILE -DTX_SINGLE_MODE_SECURE=1 -c -I../../../Middlewares/ST/netxduo/ports/cortex_m55/gnu/inc -I../../../Middlewares/ST/threadx/ports/cortex_m55/gnu/inc -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -mcmse -MMD -MP -MF"Middlewares/threadx/Performance/tx_event_flags_performance_info_get.d" -MT"Middlewares/threadx/Performance/tx_event_flags_performance_info_get.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Middlewares/threadx/Performance/tx_event_flags_performance_info_get.o"

arm-none-eabi-gcc "C:/Users/admin/STM32Cube/Example/Nx_WebServer/Middlewares/ST/threadx/common/src/tx_event_flags_performance_system_info_get.c" -mcpu=cortex-m55 -std=gnu11 -g3 -DRTL8211_INIT_TO=10000 -DETH_PHY_1000MBITS_SUPPORTED -DDEBUG -DUSE_HAL_DRIVER -DSTM32N657xx -DFX_INCLUDE_USER_DEFINE_FILE -DNX_INCLUDE_USER_DEFINE_FILE -DTX_INCLUDE_USER_DEFINE_FILE -DTX_SINGLE_MODE_SECURE=1 -c -I../../../Middlewares/ST/netxduo/ports/cortex_m55/gnu/inc -I../../../Middlewares/ST/threadx/ports/cortex_m55/gnu/inc -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -mcmse -MMD -MP -MF"Middlewares/threadx/Performance/tx_event_flags_performance_system_info_get.d" -MT"Middlewares/threadx/Performance/tx_event_flags_performance_system_info_get.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Middlewares/threadx/Performance/tx_event_flags_performance_system_info_get.o"

arm-none-eabi-gcc "C:/Users/admin/STM32Cube/Example/Nx_WebServer/Middlewares/ST/threadx/common/src/tx_mutex_performance_info_get.c" -mcpu=cortex-m55 -std=gnu11 -g3 -DRTL8211_INIT_TO=10000 -DETH_PHY_1000MBITS_SUPPORTED -DDEBUG -DUSE_HAL_DRIVER -DSTM32N657xx -DFX_INCLUDE_USER_DEFINE_FILE -DNX_INCLUDE_USER_DEFINE_FILE -DTX_INCLUDE_USER_DEFINE_FILE -DTX_SINGLE_MODE_SECURE=1 -c -I../../../Middlewares/ST/netxduo/ports/cortex_m55/gnu/inc -I../../../Middlewares/ST/threadx/ports/cortex_m55/gnu/inc -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -mcmse -MMD -MP -MF"Middlewares/threadx/Performance/tx_mutex_performance_info_get.d" -MT"Middlewares/threadx/Performance/tx_mutex_performance_info_get.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Middlewares/threadx/Performance/tx_mutex_performance_info_get.o"

arm-none-eabi-gcc "C:/Users/admin/STM32Cube/Example/Nx_WebServer/Middlewares/ST/threadx/common/src/tx_mutex_performance_system_info_get.c" -mcpu=cortex-m55 -std=gnu11 -g3 -DRTL8211_INIT_TO=10000 -DETH_PHY_1000MBITS_SUPPORTED -DDEBUG -DUSE_HAL_DRIVER -DSTM32N657xx -DFX_INCLUDE_USER_DEFINE_FILE -DNX_INCLUDE_USER_DEFINE_FILE -DTX_INCLUDE_USER_DEFINE_FILE -DTX_SINGLE_MODE_SECURE=1 -c -I../../../Middlewares/ST/netxduo/ports/cortex_m55/gnu/inc -I../../../Middlewares/ST/threadx/ports/cortex_m55/gnu/inc -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -mcmse -MMD -MP -MF"Middlewares/threadx/Performance/tx_mutex_performance_system_info_get.d" -MT"Middlewares/threadx/Performance/tx_mutex_performance_system_info_get.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Middlewares/threadx/Performance/tx_mutex_performance_system_info_get.o"

C:/Users/admin/STM32Cube/Example/Nx_WebServer/Middlewares/ST/threadx/common/src/tx_block_pool_performance_info_get.c:28:10: fatal error: tx_api.h: No such file or directory

28 | #include "tx_api.h"

| ^~~~~~~~~~

compilation terminated.

C:/Users/admin/STM32Cube/Example/Nx_WebServer/Middlewares/ST/threadx/common/src/tx_block_pool_performance_system_info_get.c:28:10: fatal error: tx_api.h: No such file or directory

28 | #include "tx_api.h"

| ^~~~~~~~~~

compilation terminated.

C:/Users/admin/STM32Cube/Example/Nx_WebServer/Middlewares/ST/threadx/common/src/tx_byte_pool_performance_info_get.c:28:10: fatal error: tx_api.h: No such file or directory

28 | #include "tx_api.h"

| ^~~~~~~~~~

compilation terminated.

C:/Users/admin/STM32Cube/Example/Nx_WebServer/Middlewares/ST/threadx/common/src/tx_event_flags_performance_system_info_get.c:28:10: fatal error: tx_api.h: No such file or directory

28 | #include "tx_api.h"

| ^~~~~~~~~~

compilation terminated.

C:/Users/admin/STM32Cube/Example/Nx_WebServer/Middlewares/ST/threadx/common/src/tx_byte_pool_performance_system_info_get.c:28:10: fatal error: tx_api.h: No such file or directory

28 | #include "tx_api.h"

| ^~~~~~~~~~

compilation terminated.

make: *** [Middlewares/threadx/Performance/subdir.mk:64: Middlewares/threadx/Performance/tx_block_pool_performance_info_get.o] Error 1

make: *** Waiting for unfinished jobs....

make: *** [Middlewares/threadx/Performance/subdir.mk:68: Middlewares/threadx/Performance/tx_byte_pool_performance_info_get.o] Error 1

make: *** [Middlewares/threadx/Performance/subdir.mk:66: Middlewares/threadx/Performance/tx_block_pool_performance_system_info_get.o] Error 1

C:/Users/admin/STM32Cube/Example/Nx_WebServer/Middlewares/ST/threadx/common/src/tx_event_flags_performance_info_get.c:28:10: fatal error: tx_api.h: No such file or directory

28 | #include "tx_api.h"

| ^~~~~~~~~~

compilation terminated.

make: *** [Middlewares/threadx/Performance/subdir.mk:74: Middlewares/threadx/Performance/tx_event_flags_performance_system_info_get.o] Error 1

make: *** [Middlewares/threadx/Performance/subdir.mk:70: Middlewares/threadx/Performance/tx_byte_pool_performance_system_info_get.o] Error 1

make: *** [Middlewares/threadx/Performance/subdir.mk:72:

Spoiler
 

Middlewares/threadx/Performance/tx_event_flags_performance_info_get.o] Error 1

C:/Users/admin/STM32Cube/Example/Nx_WebServer/Middlewares/ST/threadx/common/src/tx_mutex_performance_info_get.c:28:10: fatal error: tx_api.h: No such file or directory

28 | #include "tx_api.h"

| ^~~~~~~~~~

compilation terminated.

C:/Users/admin/STM32Cube/Example/Nx_WebServer/Middlewares/ST/threadx/common/src/tx_mutex_performance_system_info_get.c:28:10: fatal error: tx_api.h: No such file or directory

28 | #include "tx_api.h"

| ^~~~~~~~~~

compilation terminated.

make: *** [Middlewares/threadx/Performance/subdir.mk:76: Middlewares/threadx/Performance/tx_mutex_performance_info_get.o] Error 1

make: *** [Middlewares/threadx/Performance/subdir.mk:78: Middlewares/threadx/Performance/tx_mutex_performance_system_info_get.o] Error 1

"make -j8 all" terminated with exit code 2. Build might be incomplete.

 

12:03:22 Build Failed. 17 errors, 0 warnings. (took 2s.319ms)

Best answer by Mahmoud Ben Romdhane

Hello @MownishBugatha 

Let me thank you for posting.

I retested the behavior described using STM32CubeMX 6.16.1, and the compilation finished successfully.

MahmoudBenRomdhane_0-1769763353513.png

Thanks.

Mahmoud

 

2 replies

Technical Moderator
January 30, 2026

Hello @MownishBugatha 

Let me thank you for posting.

I retested the behavior described using STM32CubeMX 6.16.1, and the compilation finished successfully.

MahmoudBenRomdhane_0-1769763353513.png

Thanks.

Mahmoud

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Associate III
January 30, 2026

Thank You Now its build for me , there are the path issues , i rectified by manually adding them to builder.