Skip to main content
Associate
February 25, 2026
Solved

stm32n6 build error after generating an example with Touchgfx Designer

  • February 25, 2026
  • 1 reply
  • 373 views

I have created a UI in touchgfx designer, after I opened CubeMX and based .ioc file from touchgfx designer generate codes for stm32n6.

Now I want to build these codes in Cube IDE but get this Error .

 

Errors occurred during the build.
Errors running builder 'CDT Builder' on project 'STM32N6570-DK-FreeRTOS_Appli'.
Cannot invoke "com.st.stm32cube.common.mx.registry.IIdeHelper.getRootProject(org.eclipse.core.resources.IProject)" because the return value of "com.st.stm32cube.common.mx.registry.MxRegistry.getIdeHelper()" is null

 

Best answer by mƎALLEm

Hello @dev-riv and welcome to the ST community,

I've just created an empty project starting from a TBS board by selecting FreeRTOS flavor in TouchGFX Designer 4.26.0:

screenshot.png

Generated the code with TouchGFX designer:

screenshot.png

then compiled the two projects available. None of them showed an issue in compilation. I'm using the latest version of CubeIDE 2.1.0.

screenshot.png

I've attached the project I've created. Could you please test it from your side? Please use the latest version of CubeIDE as I mentioned above.

Hope that helps.

1 reply

mƎALLEm
mƎALLEmBest answer
Technical Moderator
February 25, 2026

Hello @dev-riv and welcome to the ST community,

I've just created an empty project starting from a TBS board by selecting FreeRTOS flavor in TouchGFX Designer 4.26.0:

screenshot.png

Generated the code with TouchGFX designer:

screenshot.png

then compiled the two projects available. None of them showed an issue in compilation. I'm using the latest version of CubeIDE 2.1.0.

screenshot.png

I've attached the project I've created. Could you please test it from your side? Please use the latest version of CubeIDE as I mentioned above.

Hope that helps.

"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."
dev-rivAuthor
Associate
March 3, 2026

Hi mƎALLEm

Thank you for your response. 

In every created example I have gotten the same error . And I took other way, edit codes and build and flash with designer(+CubeProg) . 

mƎALLEm
Technical Moderator
March 4, 2026

Hello,

Did you try the project I've attached? did it work?

Otherwise try to re-install all the tools...

"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."