2021-01-15 12:12 AM
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...
#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 !
Solved! Go to Solution.
2021-01-15 05:06 AM
I find the solution, I had to include :
#include "stm32f4xx_hal.h"
#include "stm32f4xx_hal_rtc.h"
2021-01-15 05:06 AM
I find the solution, I had to include :
#include "stm32f4xx_hal.h"
#include "stm32f4xx_hal_rtc.h"
2021-01-15 05:06 AM
I find the solution, I had to include :
#include "stm32f4xx_hal.h"
#include "stm32f4xx_hal_rtc.h"