Skip to main content
Associate III
May 17, 2025
Question

Build Error in TouchGFX Simulator: i2c_data.h Not Found

  • May 17, 2025
  • 2 replies
  • 346 views

Hello everyone,

I’m working on an STM32 project using TouchGFX and STM32CubeIDE. The code compiles fine on the real target, but when I try to build the TouchGFX Simulator, I get the following error repeatedly:

fatal error: i2c_data.h: No such file or directory

 

  • The i2c_data.h file is present in my project under Core/Inc.

  • It seems the simulator build does not include the folder containing i2c_data.h in its include paths.

Any guidance on:

  • How to add additional include directories for the TouchGFX simulator?

 

Thank you very much for your help!

 

2 replies

GaetanGodart
Technical Moderator
May 19, 2025

Hello @Rafla ,

 

You will find your answer in this thread : https://community.st.com/t5/stm32-mcus-touchgfx-and-gui/error-1-2-in-touchgfx-simulator/m-p/785481#M42578

 

Regards,

GaetanGodart
Technical Moderator
June 2, 2025

Hello @Rafla ,

 

Have you been able to move forward on your project?

 

Regards,

RaflaAuthor
Associate III
June 9, 2025

yes thank you