Skip to main content
Senior
September 4, 2025
Solved

TouchGFX and X-CUBE-AI co-existence

  • September 4, 2025
  • 2 replies
  • 458 views

Hi,

I have a project with TouchGFX based on STM32N6570-DK.

In STM32CubeMX, once I tried to add X-CUBE-AI, I got stuck, and the error is appeared as shown below.

ERROR_0-1756988586023.png

What does it mean?

Once I removed the TouchGFX Graphic Application, the X-CUBE-AI can be enabled, but the generator removed MX_TouchGFX_Init() etc.

Are there any side effects, if I restore the TouchGFX code manually?

And I’m curious — why does this limitation exist?

Regards!

Best answer by Souhaib MAZHOUD

Hello @ERROR 

Actually, X-Cube-AI and touchGFX cannot be used simultaneously. The explanation has already been discussed in this thread.

KR,

Souhaib

2 replies

Souhaib MAZHOUDBest answer
Technical Moderator
September 5, 2025

Hello @ERROR 

Actually, X-Cube-AI and touchGFX cannot be used simultaneously. The explanation has already been discussed in this thread.

KR,

Souhaib

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.
ERRORAuthor
Senior
September 7, 2025

Hi @Souhaib MAZHOUD ,

thank you!