Skip to main content
ksale.1
Senior II
Jun 15, 2022 12:00 PM UTC
Solved

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

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.
ksale.1
ksale.1Best answer
Senior II
Jun 16, 2022 1:19 PM UTC

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
Jun 16, 2022 1:19 PM UTC

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
Jun 23, 2022 12:09 PM UTC

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