Skip to main content
Associate II
July 12, 2026
Question

STM32 Nucleo-N6 TCP Client Project NetXDuo for VSCode with IOC

  • July 12, 2026
  • 2 replies
  • 88 views

I’m trying to have my own TCP Client with NetXDuo that I can configure with CubeMX in VSCode for the Nucleo-N6.

There is an NetXDuo Echo Client example project in N6 FW1.3.0 and 1.2.0 releases. The 1.2.0 version of the sample has no IOC but works in VSCode, the 1.3.0 version has the IOC file but doesn’t work in VSCode.

I’ve additionally started from CubeMX and generated a fresh project with the matching configuration from the sample project and attempted both a static IP and DHCP (this works with the sample code) but can’t get either functionality to work.

Is there an IOC version of a TCP client with NextXDuo somewhere that is based on CMake that I can integrate into VSCode that has proven to work with either a static IP and DHCP? I have searched countless times and I can’t find any.

2 replies

ST Employee
July 14, 2026

Hello ​@bsgursta,

Thank you for your report.

For a TCP client development in VS Code, please start from the delivered example and keep the FSBL. Generate the project for CMake or import the CubeIDE project, then build and flash both the FSBL and the application.

You can configure your server in app_netxduo.h by setting TCP_SERVER_ADDRESS and TCP_SERVER_PORT. Also, please set the boot switches to BOOT1 = 2-3.

This setup is required because the N6 boots as two separate projects: FSBL + Application. Since it has no internal flash, a First Stage Boot Loader is needed to initialize the clocks, external memory, and MPU before jumping to the application. This is why the example includes an FSBL/ folder, and why a fresh single-project CubeMX build does not run, whether using static IP or DHCP.

 

With Regards,

If your question is answered, please close this topic by clicking ""Accept as Solution"".
bsgurstaAuthor
Associate II
July 15, 2026

Thank you for responding SAHSTM.

If I import the 1.3.0 NX echo client example from the STM32CubeIDE folder I’m left without an IOC file, even though it was present in the firmware package installed from CubeMX.

 



When I try to generate the CMake project in CubeMX and then use the “Setup STM32Cube Project” button in the VsCode extension I get this error:
 



Simply importing the NX Echo Client example through the VSCode extension only works for 1.2.0, which doesn’t provide an IOC file like I mentioned. While version 1.3.0 does have an IOC file but isn’t an option to import in the vscode extension menu, unlike the 1.3.0 Echo Server is an option to import in the extension as seen below:

 


I understand that I have to use the provided example as a starting point. However, there isn’t a method to produce a working example with an IOC file for additional CubeMX configuration once the project has been setup.