cancel
Showing results for 
Search instead for 
Did you mean: 

DynamicGraph issues

edsatt
Associate

 

I've been using dynamicGraph regularly by now (mostly in TouchGFX) and, randomly, in the generated code of both the .hpp and .cpp files (mainPageViewBase.hpp/.cpp) istances of elements inside the dynamicGraph are deleted/not generated (GraphelementDots and GraphElementHistogram classes).

 

This causes build to fail.

 

Simply deleting and recreating elements inside dynamicGraph (in TouchGFX) "fixes" the issue (build is successful), but the problem occurs regularly almost every time I build the code, so it is not a practical and definitive solution.
Do you think it's a touchGFX bug?

 

Here's what console is reporting while trying to build the code:

 

In file included from ../TouchGFX/gui/include/gui/mainpage_screen/mainPageView.hpp:4,
                 from ../TouchGFX/gui/src/mainpage_screen/mainPageView.cpp:1:
../TouchGFX/generated/gui_generated/include/gui_generated/mainpage_screen/mainPageViewBase.hpp:167:15: error: using-declaration for non-member at class scope
  167 |     touchgfx::GraphElementHistogram ;
      |               ^~~~~~~~~~~~~~~~~~~~~
../TouchGFX/generated/gui_generated/include/gui_generated/mainpage_screen/mainPageViewBase.hpp:168:15: error: using-declaration for non-member at class scope
  168 |     touchgfx::GraphElementDots ;
      |               ^~~~~~~~~~~~~~~~
In file included from ../TouchGFX/gui/include/gui/mainpage_screen/mainPageView.hpp:4,
                 from ../TouchGFX/gui/src/mainpage_screen/mainPagePresenter.cpp:1:
../TouchGFX/generated/gui_generated/include/gui_generated/mainpage_screen/mainPageViewBase.hpp:167:15: error: using-declaration for non-member at class scope
  167 |     touchgfx::GraphElementHistogram ;
      |               ^~~~~~~~~~~~~~~~~~~~~
../TouchGFX/generated/gui_generated/include/gui_generated/mainpage_screen/mainPageViewBase.hpp:168:15: error: using-declaration for non-member at class scope
  168 |     touchgfx::GraphElementDots ;
      |               ^~~~~~~~~~~~~~~~
arm-none-eabi-g++ "../TouchGFX/generated/gui_generated/src/containers/menuTopbarBase.cpp" -mcpu=cortex-m33 -std=gnu++14 -g3 -DDEBUG -DFX_INCLUDE_USER_DEFINE_FILE -DLX_INCLUDE_USER_DEFINE_FILE -DTX_INCLUDE_USER_DEFINE_FILE -DTX_SINGLE_MODE_NON_SECURE=1 -DUX_INCLUDE_USER_DEFINE_FILE -DUSE_HAL_DRIVER -DSTM32U599xx -c -I../Core/Inc -I"D:/APPLICATIVI/TOUCH/HMI4_stmu599_HiDew/Drivers/BSP/Components/ts3510" -I"D:/APPLICATIVI/TOUCH/HMI4_stmu599_HiDew/Drivers/BSP/Components/Common" -I"D:/APPLICATIVI/TOUCH/HMI4_stmu599_HiDew/Drivers/BSP/Components/rtc_rv3028c7" -I"D:/APPLICATIVI/TOUCH/HMI4_stmu599_HiDew/Drivers/BSP/Components/zmod4410" -I../FileX/App -I../LevelX/App -I../TouchGFX/App -I../TouchGFX/target/generated -I../TouchGFX/target -I../AZURE_RTOS/App -I../USBX/App -I../USBX/Target -I../Drivers/STM32U5xx_HAL_Driver/Inc -I../Drivers/STM32U5xx_HAL_Driver/Inc/Legacy -I../Middlewares/ST/levelx/common/inc -I../Middlewares/ST/threadx/common/inc -I../Drivers/CMSIS/Device/ST/STM32U5xx/Include -I../Middlewares/ST/filex/common/inc -I../Middlewares/ST/filex/ports/generic/inc -I../Middlewares/ST/threadx/ports/cortex_m33/gnu/inc -I../Middlewares/ST/usbx/common/core/inc -I../Middlewares/ST/usbx/ports/generic/inc -I../Drivers/CMSIS/Include -I../Middlewares/ST/touchgfx/framework/include -I../TouchGFX/generated/fonts/include -I../TouchGFX/generated/gui_generated/include -I../TouchGFX/generated/images/include -I../TouchGFX/generated/texts/include -I../TouchGFX/generated/videos/include -I../TouchGFX/gui/include -I../Middlewares/ST/usbx/common/usbx_stm32_host_controllers -I../Middlewares/ST/usbx/common/usbx_host_classes/inc -I../Drivers/BSP/Components/is25lp032d -I../FileX/Target -I../Middlewares/ST/touchgfx_components/gpu2d/NemaGFX/include -I../Middlewares/ST/touchgfx_components/gpu2d/TouchGFXNema/include -O0 -ffunction-sections -fdata-sections -fno-exceptions -fno-rtti -fno-use-cxa-atexit -Wall -femit-class-debug-always -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"TouchGFX/generated/gui_generated/src/containers/menuTopbarBase.d" -MT"TouchGFX/generated/gui_generated/src/containers/menuTopbarBase.o" --specs=nano.specs -mfpu=fpv5-sp-d16 -mfloat-abi=hard -mthumb -o "TouchGFX/generated/gui_generated/src/containers/menuTopbarBase.o"
arm-none-eabi-g++ "../TouchGFX/generated/gui_generated/src/common/FrontendApplicationBase.cpp" -mcpu=cortex-m33 -std=gnu++14 -g3 -DDEBUG -DFX_INCLUDE_USER_DEFINE_FILE -DLX_INCLUDE_USER_DEFINE_FILE -DTX_INCLUDE_USER_DEFINE_FILE -DTX_SINGLE_MODE_NON_SECURE=1 -DUX_INCLUDE_USER_DEFINE_FILE -DUSE_HAL_DRIVER -DSTM32U599xx -c -I../Core/Inc -I"D:/APPLICATIVI/TOUCH/HMI4_stmu599_HiDew/Drivers/BSP/Components/ts3510" -I"D:/APPLICATIVI/TOUCH/HMI4_stmu599_HiDew/Drivers/BSP/Components/Common" -I"D:/APPLICATIVI/TOUCH/HMI4_stmu599_HiDew/Drivers/BSP/Components/rtc_rv3028c7" -I"D:/APPLICATIVI/TOUCH/HMI4_stmu599_HiDew/Drivers/BSP/Components/zmod4410" -I../FileX/App -I../LevelX/App -I../TouchGFX/App -I../TouchGFX/target/generated -I../TouchGFX/target -I../AZURE_RTOS/App -I../USBX/App -I../USBX/Target -I../Drivers/STM32U5xx_HAL_Driver/Inc -I../Drivers/STM32U5xx_HAL_Driver/Inc/Legacy -I../Middlewares/ST/levelx/common/inc -I../Middlewares/ST/threadx/common/inc -I../Drivers/CMSIS/Device/ST/STM32U5xx/Include -I../Middlewares/ST/filex/common/inc -I../Middlewares/ST/filex/ports/generic/inc -I../Middlewares/ST/threadx/ports/cortex_m33/gnu/inc -I../Middlewares/ST/usbx/common/core/inc -I../Middlewares/ST/usbx/ports/generic/inc -I../Drivers/CMSIS/Include -I../Middlewares/ST/touchgfx/framework/include -I../TouchGFX/generated/fonts/include -I../TouchGFX/generated/gui_generated/include -I../TouchGFX/generated/images/include -I../TouchGFX/generated/texts/include -I../TouchGFX/generated/videos/include -I../TouchGFX/gui/include -I../Middlewares/ST/usbx/common/usbx_stm32_host_controllers -I../Middlewares/ST/usbx/common/usbx_host_classes/inc -I../Drivers/BSP/Components/is25lp032d -I../FileX/Target -I../Middlewares/ST/touchgfx_components/gpu2d/NemaGFX/include -I../Middlewares/ST/touchgfx_components/gpu2d/TouchGFXNema/include -O0 -ffunction-sections -fdata-sections -fno-exceptions -fno-rtti -fno-use-cxa-atexit -Wall -femit-class-debug-always -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"TouchGFX/generated/gui_generated/src/common/FrontendApplicationBase.d" -MT"TouchGFX/generated/gui_generated/src/common/FrontendApplicationBase.o" --specs=nano.specs -mfpu=fpv5-sp-d16 -mfloat-abi=hard -mthumb -o "TouchGFX/generated/gui_generated/src/common/FrontendApplicationBase.o"
make[1]: *** [TouchGFX/gui/src/mainpage_screen/subdir.mk:22: TouchGFX/gui/src/mainpage_screen/mainPagePresenter.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [TouchGFX/gui/src/mainpage_screen/subdir.mk:22: TouchGFX/gui/src/mainpage_screen/mainPageView.o] Error 1
In file included from ../TouchGFX/gui/include/gui/mainpage_screen/mainPageView.hpp:4,
                 from ../TouchGFX/generated/gui_generated/include/gui_generated/common/FrontendHeapBase.hpp:24,
                 from ../TouchGFX/gui/include/gui/common/FrontendHeap.hpp:4,
                 from ../TouchGFX/target/generated/TouchGFXGeneratedHAL.cpp:21:
../TouchGFX/generated/gui_generated/include/gui_generated/mainpage_screen/mainPageViewBase.hpp:167:15: error: using-declaration for non-member at class scope
  167 |     touchgfx::GraphElementHistogram ;
      |               ^~~~~~~~~~~~~~~~~~~~~
../TouchGFX/generated/gui_generated/include/gui_generated/mainpage_screen/mainPageViewBase.hpp:168:15: error: using-declaration for non-member at class scope
  168 |     touchgfx::GraphElementDots ;
      |               ^~~~~~~~~~~~~~~~
In file included from ../TouchGFX/gui/include/gui/mainpage_screen/mainPageView.hpp:4,
                 from ../TouchGFX/generated/gui_generated/include/gui_generated/common/FrontendHeapBase.hpp:24,
                 from ../TouchGFX/gui/include/gui/common/FrontendHeap.hpp:4,
                 from ../TouchGFX/target/generated/TouchGFXConfiguration.cpp:21:
../TouchGFX/generated/gui_generated/include/gui_generated/mainpage_screen/mainPageViewBase.hpp:167:15: error: using-declaration for non-member at class scope
  167 |     touchgfx::GraphElementHistogram ;
      |               ^~~~~~~~~~~~~~~~~~~~~
../TouchGFX/generated/gui_generated/include/gui_generated/mainpage_screen/mainPageViewBase.hpp:168:15: error: using-declaration for non-member at class scope
  168 |     touchgfx::GraphElementDots ;
      |               ^~~~~~~~~~~~~~~~
make[1]: *** [TouchGFX/target/generated/subdir.mk:35: TouchGFX/target/generated/TouchGFXGeneratedHAL.o] Error 1
make[1]: *** [TouchGFX/target/generated/subdir.mk:35: TouchGFX/target/generated/TouchGFXConfiguration.o] Error 1
In file included from ../TouchGFX/generated/gui_generated/src/mainpage_screen/mainPageViewBase.cpp:4:
../TouchGFX/generated/gui_generated/include/gui_generated/mainpage_screen/mainPageViewBase.hpp:167:15: error: using-declaration for non-member at class scope
  167 |     touchgfx::GraphElementHistogram ;
      |               ^~~~~~~~~~~~~~~~~~~~~
../TouchGFX/generated/gui_generated/include/gui_generated/mainpage_screen/mainPageViewBase.hpp:168:15: error: using-declaration for non-member at class scope
  168 |     touchgfx::GraphElementDots ;
      |               ^~~~~~~~~~~~~~~~
../TouchGFX/generated/gui_generated/src/mainpage_screen/mainPageViewBase.cpp: In constructor 'mainPageViewBase::mainPageViewBase()':
../TouchGFX/generated/gui_generated/src/mainpage_screen/mainPageViewBase.cpp:238:5: error: expected primary-expression before '.' token
  238 |     .setColor(touchgfx::Color::getColorFromRGB(255, 255, 255));
      |     ^
../TouchGFX/generated/gui_generated/src/mainpage_screen/mainPageViewBase.cpp:239:5: error: expected primary-expression before '.' token
  239 |     .setBarWidth(4);
      |     ^
../TouchGFX/generated/gui_generated/src/mainpage_screen/mainPageViewBase.cpp:240:5: error: expected primary-expression before '.' token
  240 |     .setBaseline(0);
      |     ^
../TouchGFX/generated/gui_generated/src/mainpage_screen/mainPageViewBase.cpp:241:33: error: no matching function for call to 'touchgfx::FadeAnimator<touchgfx::GraphWrapAndClear<25> >::addGraphElement()'
  241 |     dynamicGraph.addGraphElement();
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
In file included from ../Middlewares/ST/touchgfx/framework/include/touchgfx/widgets/graph/GraphWrapAndClear.hpp:22,
                 from ../TouchGFX/generated/gui_generated/include/gui_generated/mainpage_screen/mainPageViewBase.hpp:24,
                 from ../TouchGFX/generated/gui_generated/src/mainpage_screen/mainPageViewBase.cpp:4:
../Middlewares/ST/touchgfx/framework/include/touchgfx/widgets/graph/AbstractDataGraph.hpp:726:10: note: candidate: 'void touchgfx::AbstractDataGraph::addGraphElement(touchgfx::AbstractGraphElement&)'
  726 |     void addGraphElement(AbstractGraphElement& d);
      |          ^~~~~~~~~~~~~~~
../Middlewares/ST/touchgfx/framework/include/touchgfx/widgets/graph/AbstractDataGraph.hpp:726:10: note:   candidate expects 1 argument, 0 provided
../TouchGFX/generated/gui_generated/src/mainpage_screen/mainPageViewBase.cpp:244:5: error: expected primary-expression before '.' token
  244 |     .setPainter(Painter);
      |     ^
../TouchGFX/generated/gui_generated/src/mainpage_screen/mainPageViewBase.cpp:245:5: error: expected primary-expression before '.' token
  245 |     .setDotWidth(4);
      |     ^
make[1]: *** [TouchGFX/generated/gui_generated/src/mainpage_screen/subdir.mk:19: TouchGFX/generated/gui_generated/src/mainpage_screen/mainPageViewBase.o] Error 1
In file included from ../TouchGFX/gui/include/gui/mainpage_screen/mainPageView.hpp:4,
                 from ../TouchGFX/generated/gui_generated/include/gui_generated/common/FrontendHeapBase.hpp:24,
                 from ../TouchGFX/gui/include/gui/common/FrontendHeap.hpp:4,
                 from ../TouchGFX/generated/gui_generated/src/common/FrontendApplicationBase.cpp:6:
../TouchGFX/generated/gui_generated/include/gui_generated/mainpage_screen/mainPageViewBase.hpp:167:15: error: using-declaration for non-member at class scope
  167 |     touchgfx::GraphElementHistogram ;
      |               ^~~~~~~~~~~~~~~~~~~~~
../TouchGFX/generated/gui_generated/include/gui_generated/mainpage_screen/mainPageViewBase.hpp:168:15: error: using-declaration for non-member at class scope
  168 |     touchgfx::GraphElementDots ;
      |               ^~~~~~~~~~~~~~~~
make[1]: *** [TouchGFX/generated/gui_generated/src/common/subdir.mk:19: TouchGFX/generated/gui_generated/src/common/FrontendApplicationBase.o] Error 1
make: *** [makefile:224: all] Error 2
"make -j20 all" terminated with exit code 2. Build might be incomplete.

 

3 REPLIES 3
matteo_lazzaro
Associate II

Same problem to me, the software revision of the TouchGFX is 4.22.0.

Waiting for a bug fix of the TouchGFX.

edsatt
Associate

I'm on the same version, 4.22.0

matteo_lazzaro
Associate II

Up