cancel
Showing results for 
Search instead for 
Did you mean: 

Include import problem from hardware features with touchgfx

SGROU.1
Associate III

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 !

1 ACCEPTED SOLUTION

Accepted Solutions
SGROU.1
Associate III

I find the solution, I had to include :

#include "stm32f4xx_hal.h"

#include "stm32f4xx_hal_rtc.h"

View solution in original post

2 REPLIES 2
SGROU.1
Associate III

I find the solution, I had to include :

#include "stm32f4xx_hal.h"

#include "stm32f4xx_hal_rtc.h"

SGROU.1
Associate III

I find the solution, I had to include :

#include "stm32f4xx_hal.h"

#include "stm32f4xx_hal_rtc.h"