Skip to main content
AD�?b
Senior
March 17, 2020
Question

STM32F746G-DISCO, STM32CubeIDE 1.3.0, TouchGFX 4.13.0

  • March 17, 2020
  • 5 replies
  • 6540 views

Someone knows what this means as it appears after compilation after joining Touch GFX:

Unresolved inclusion

This topic has been closed for replies.

5 replies

Alexandre RENOUX
Visitor II
March 18, 2020

Hi,

Could you provide some image to illustrate your problem along with more details on your setup ?

/Alexandre

AD�?b
AD�?bAuthor
Senior
March 18, 2020

Hi!

1. I developed a controller for advertising on STM32F746G-DISCO. I used STM32CubeIDE 1.1.0 for Win and TouchGFX 4.13.0.

2. I have now used STM32CubeIDE 1.3.0.

3. I installed STM32CubeIDE and through it TouchGFX with the help of the Installing TouchGFX and TouchGFX HAL Development tutorials.

4. After compilation I have errors like in My.txt.

5. I did not include additional libraries, e.g. BSP

I will be grateful for the tips.

Alexandre RENOUX
Visitor II
March 19, 2020

Hi,

You mention TouchGFX HAL Development tutorials, but are you aware that in Designer, you have the Application Template compatible with TouchGFX Generator for STM32F746G-DISCO ?

If you use CubeMX, also, make sure that in CubeMX you select CubeIDE as ToolChain in the project settings. And when you generate code, do not forget to also generate code from TouchGFX Designer.

Finally, make sure that you included the paths to your header files in CubeIDE by right-clicking on the project then Properties -> C/C++ General-> Includes

/Alexandre

AD�?b
AD�?bAuthor
Senior
March 19, 2020

Thank you for the suggestion. I check what I'm doing wrong.

I will inform you about any errors found.

AD�?b
AD�?bAuthor
Senior
April 7, 2020

In the main.c file it signals the error "unknown type name bool". Why?

Alexandre RENOUX
Visitor II
April 7, 2020

Hi,

A bool is not a type in C code but is a type in C++. If you want a bool in C, you should use uint8_t var = 0 or 1.

/Alexandre

chaaalyy
Senior II
April 7, 2020

At 1st look, this seems to work of course, but if you use more complicated libraries and other foreign stuff, which relies on the standard typedef of "bool", you may get in trouble, if it´s a type of uint8_t or char. Happened to me some time ago in visual studio. NOT funny ;)

I prefer to just include "stdbool.h" in C99 standard ….

chaaalyy
Senior II
April 7, 2020

well… even, if this is not a stm32 related question (It´s just lowest level C programming standard and there are many websites, explaining this, out there … Did you try a google search ?

Anyway: Add the following line in the usercode section for includes (somewhere at the beginning of main.c) :

#include "stdbool.h"

and it should work fine…

/Charly

AD�?b
AD�?bAuthor
Senior
April 7, 2020

In model.hpp uint8_t signals the error as an unknown type. Why?

chaaalyy
Senior II
April 7, 2020

this is compiled in c++, so it doesn´t know these types. Add #include "stdint.h" in the beginning of model.hpp