cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F746G-DISCO, STM32CubeIDE 1.3.0, TouchGFX 4.13.0

AD�?b
Senior

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

Unresolved inclusion

33 REPLIES 33

I understand. However, it seems to me that in STM32CubeIDE 1.1.0. and TouchGFX 4.13.0 was simpler. This program that I am writing was made on version CubeIDE 1.1.0. two screens with several buttons. But I'm changing to the new version because that is not being developed.

Thanks for the clarification.

Why can't I call BSP_LED_Init (LED_GREEN); ?

Hi,

You cannot call BSP_LED_Init() because the BSP file implementing this function is not included.

Two possibilities are available :

- You initialize the corresponding GPIO yourself by using CubeMX and then you call functions like 

HAL_GPIO_WritePin(Port, Pin, GPIO_PIN_SET);

HAL_GPIO_TogglePin(Port, Pin);

- You generate the AT v1.1.0 of the STM32F746G-DISCO and copy/paste the stm32746g_discovery.c and .h files in your project

You will find these files in [project_path]\target\bsp\source\vendor\STM32746G-Discovery

You should put them in your [currentProjectPath]\Drivers\BSP along with the already added stm32746g_discovery_qspi.c/.h

Careful because there might be some dependencies created from adding stm32746g_discovery.c so you might have to add other bsp files.

/Alexandre

Thank you for the information.

AD�?b
Senior

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

Alexandre RENOUX
Principal

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

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

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 ….

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

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