cancel
Showing results for 
Search instead for 
Did you mean: 

STM32U083C-DK Demo example does not compile in STM32CubeIDE (missing tsl_conf.h)

RufusVS
Associate III

I've run into some problems with the Demo example pulled in by the project configurations tools for the STM32U083C-DK eval board. 
The error I am getting is a missing header file.  Error message:

 

In file included from C:/Users/rufus/STM32CubeIDE/workspace_1.16.0/Demo/Middlewares/ST/STM32_TouchSensing_Library/src/tsl_acq.c:20:
../../Middlewares/ST/STM32_TouchSensing_Library/inc/tsl_acq.h:24:10: fatal error: tsl_conf.h: No such file or directory
   24 | #include "tsl_conf.h"

 

I see one tsl_conf.h in an unreferenced directory (main_app)  and two other files that appear to be renamable templates. tsl_conf_stm32l1xx_template.h and tsl_conf_tsc_template.h in the library inc directory.  They have slight different contents, so I don't know which I should attempt to use, or if they are all incorrect.
If someone could explain the file naming conventions for the library too, that would help.


P.S.  Incidentally The BSP project for STM32U083C-DK didn't build correctly either, but that was a duplicate symbol problem, so I just excluded one directory from the build, then it built without errors.

 

2 REPLIES 2
Imen.D
ST Employee

Hello @RufusVS ,

I tested the Demo example and cannot reproduce the error related to the missing tsl_conf.h.

This error "tsl_conf.h: No such file or directory" means that the include paths are not set up correctly or the required file is missing from your project.

For that, ensure that the include paths in your project settings are correctly configured to point to the directories containing the required header files.

The tsl_conf_stm32l1xx_template.h is specific for l1. However, the file "tsl_conf_tsc_template.h" is the generic one.
For STM32U0, it's recommended to use it as template and do the necessary modifications, as per the "tsl_conf.h" file used for the projects.

Thank you for your contribution.

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
John123
Associate II

Hi - I have the same problem with the STM32U083C-DK Demo - tsl_conf.h is definitely missing.

I see the file tsl_conf_tsc_template.h , but I have no idea how to modify this myself.

Could someone expand on the comment "do the necessary modifications".

Many thanks, John.