2020-03-17 06:30 AM
Someone knows what this means as it appears after compilation after joining Touch GFX:
Unresolved inclusion
2020-03-27 08:07 AM
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.
2020-04-04 11:01 AM
Why can't I call BSP_LED_Init (LED_GREEN); ?
2020-04-06 04:53 AM
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
2020-04-06 09:20 AM
Thank you for the information.
2020-04-07 07:43 AM
In the main.c file it signals the error "unknown type name bool". Why?
2020-04-07 07:50 AM
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
2020-04-07 09:28 AM
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
2020-04-07 09:40 AM
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 ….
2020-04-07 09:44 AM
In model.hpp uint8_t signals the error as an unknown type. Why?
2020-04-07 10:12 AM
this is compiled in c++, so it doesn´t know these types. Add #include "stdint.h" in the beginning of model.hpp