Skip to main content
SGROU.1
Associate III
January 15, 2021
Solved

Include import problem from hardware features with touchgfx

  • January 15, 2021
  • 2 replies
  • 1534 views

Hello,

I use a STM32F429 with touchgfx.

From my GUI, I would like to use hardware features of my card like RTC for example, so I activated the RTC on the STM32 and re-generated the code.

So from my "Screen3View" file generated by touchgfx, I make an include of #include "stm32f4xx_hal_rtc_ex.h" to be able to use the rtc features on my GUI.

But when I compile, I get more than 300 errors.

Also, I noticed that if I import any module "stm32f4xx_hal..." then I get exactly the same errors.

I don't understand the errors...

Here's my code and it's the third line that poses a problem

and thats the errors i get...0693W000007BNIwQAO.png

#include <gui/screen3_screen/Screen3View.hpp>
#include <math.h>
#include "stm32f4xx_hal_rtc_ex.h"
Screen3View::Screen3View()
{
}
void Screen3View::setupScreen()
{
 Screen3ViewBase::setupScreen();
 dynamicGraph1.clear();
}
void Screen3View::tearDownScreen()
{
 Screen3ViewBase::tearDownScreen();
}
void Screen3View::handleTickEvent(){
	if(++tickCounter % 10 == 0){
		//dynamicGraph1.clear();
		dynamicGraph1.addDataPoint((int)(cos(tickCounter)*50));
	}
}

Thanks for your help !

This topic has been closed for replies.
Best answer by SGROU.1

I find the solution, I had to include :

#include "stm32f4xx_hal.h"

#include "stm32f4xx_hal_rtc.h"

2 replies

SGROU.1
SGROU.1Author
Associate III
January 15, 2021

I find the solution, I had to include :

#include "stm32f4xx_hal.h"

#include "stm32f4xx_hal_rtc.h"

SGROU.1
SGROU.1AuthorBest answer
Associate III
January 15, 2021

I find the solution, I had to include :

#include "stm32f4xx_hal.h"

#include "stm32f4xx_hal_rtc.h"