Skip to main content
ksale.1
Senior II
June 15, 2022
Solved

../TouchGFX/target/generated/OSWrappers.cpp(20): error: 'touchgfx/hal/HAL.hpp' file not found

  • June 15, 2022
  • 2 replies
  • 1197 views

Hi,

This error was raised using Touchgfx 4.19.1, CubeMX 6.5. Nothing interesting in the project, just the default settings of Nucleo f446re, adding gfx software pack and adding a clock in the designer -> generate code and compile in CubeIDE and again in uVision. Same error and I cannot find this file searching the file explorer ! Your help is much appreciated.

This topic has been closed for replies.
Best answer by ksale.1

I've re-installed touchgfx from cubemx and started a project properly from the cubemx then initiated the designer from the generated code, this solved the problem. Please accept my apologies for wasting your time.

2 replies

ksale.1
ksale.1AuthorBest answer
Senior II
June 16, 2022

I've re-installed touchgfx from cubemx and started a project properly from the cubemx then initiated the designer from the generated code, this solved the problem. Please accept my apologies for wasting your time.

Osman SOYKURT
ST Technical Moderator
June 23, 2022

Hi ksale.1,

Great to hear your problem is solved. Remember to always regenerate from TouchGFX after generating from STM32CubeMX, and only then you can compile.

/Osman

ST Software Developer | TouchGFX