Skip to main content
Associate II
February 6, 2025
Solved

"Run Simulator" error after deleting a screen

  • February 6, 2025
  • 2 replies
  • 1101 views

Good morning,
I'm working on a graphics project on a 7 inch Riverdi display (RVT70HSSNWC00-B). I added a screen containing a video but I couldn't play it so I deleted the screen and ran the Run Simulator but it gives me this error:

=========================================================================================

Run Simulator
Generate
Done
Generate Assets
make -f simulator/gcc/Makefile assets -j8
Reading ./application.config
Reading ./target.config
Done
Post Generate
touchgfx update_project --project-file=simulator/msvs/Application.vcxproj
Done
Post Generate Target
touchgfx update_project
.cproject file: ../../STM32CubeIDE/CM7/.cproject
Writing STM32CubeIDE project file: ../../STM32CubeIDE/CM7/.project
Writing STM32CubeIDE project file: ../../STM32CubeIDE/CM7/.cproject
Done
Compile
make -f simulator/gcc/Makefile -j8
Reading ./application.config
Reading ./target.config
Compiling gui/src/home_screen/HOMEPresenter.cpp
Compiling gui/src/home_screen/HOMEView.cpp
Compiling gui/src/setup_screen/SETUPPresenter.cpp
Compiling gui/src/setup_screen/SETUPView.cpp
Compiling gui/src/dual_arthrosis_2_screen/DUAL_ARTHROSIS_2View.cpp
Compiling gui/src/dual_arthrosis_2_screen/DUAL_ARTHROSIS_2Presenter.cpp
Compiling gui/src/pathologies_screen/PATHOLOGIESView.cpp
Compiling gui/src/pathologies_screen/PATHOLOGIESPresenter.cpp
Compiling gui/src/dual_magnetic_field_screen/DUAL_MAGNETIC_FIELDView.cpp
Compiling gui/src/dual_magnetic_field_screen/DUAL_MAGNETIC_FIELDPresenter.cpp
Compiling gui/src/free_field_working_screen/FREE_FIELD_WORKINGPresenter.cpp
Compiling gui/src/free_field_working_screen/FREE_FIELD_WORKINGView.cpp
Compiling gui/src/therapies_working_screen/THERAPIES_WORKINGView.cpp
Compiling gui/src/therapies_working_screen/THERAPIES_WORKINGPresenter.cpp
Compiling gui/src/dual_arthrosis_1_screen/DUAL_ARTHROSIS_1Presenter.cpp
Compiling gui/src/dual_arthrosis_1_screen/DUAL_ARTHROSIS_1View.cpp
Compiling gui/src/quickstart_screen/QUICKSTARTView.cpp
Compiling gui/src/quickstart_screen/QUICKSTARTPresenter.cpp
Compiling gui/src/common/FrontendApplication.cpp
Compiling generated/gui_generated/src/home_screen/HOMEViewBase.cpp
Compiling generated/gui_generated/src/setup_screen/SETUPViewBase.cpp
Compiling generated/gui_generated/src/dual_arthrosis_2_screen/DUAL_ARTHROSIS_2ViewBase.cpp
Compiling generated/gui_generated/src/pathologies_screen/PATHOLOGIESViewBase.cpp
Compiling generated/gui_generated/src/dual_magnetic_field_screen/DUAL_MAGNETIC_FIELDViewBase.cpp
Compiling generated/gui_generated/src/free_field_working_screen/FREE_FIELD_WORKINGViewBase.cpp
Compiling generated/gui_generated/src/therapies_working_screen/THERAPIES_WORKINGViewBase.cpp
Compiling generated/gui_generated/src/dual_arthrosis_1_screen/DUAL_ARTHROSIS_1ViewBase.cpp
Compiling generated/gui_generated/src/quickstart_screen/QUICKSTARTViewBase.cpp
Compiling generated/gui_generated/src/common/FrontendApplicationBase.cpp
Compiling generated/simulator/src/mainBase.cpp
Compiling simulator/main.cpp
In file included from generated/simulator/src/mainBase.cpp:10:0:
generated/videos/include/videos/VideoDatabase.hpp:15:30: error: expected initializer before 'fps_bin_length'
const uint32_t video_Logo_25 fps_bin_length = 18985850;
^~~~~~~~~~~~~~
generated/videos/include/videos/VideoDatabase.hpp:17:37: error: expected initializer before 'fps_bin_start'
extern const uint8_t* video_Logo_25 fps_bin_start;
^~~~~~~~~~~~~
generated/simulator/src/mainBase.cpp: In function 'void setupVideoDecoder(touchgfx::HAL&)':
generated/simulator/src/mainBase.cpp:46:137: error: 'video_Logo_25_fps_bin_length' was not declared in this scope
setupVideo(static_cast<touchgfx::HALSDL2&>(hal).localFileName(videoFileName, 400, "Logo_25 fps.bin"), &video_Logo_25_fps_bin_start, video_Logo_25_fps_bin_length);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
generated/simulator/src/mainBase.cpp:46:137: note: suggested alternative: 'video_Logo_25_fps_bin_start'
setupVideo(static_cast<touchgfx::HALSDL2&>(hal).localFileName(videoFileName, 400, "Logo_25 fps.bin"), &video_Logo_25_fps_bin_start, video_Logo_25_fps_bin_length);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
video_Logo_25_fps_bin_start
make[2]: *** [build/MINGW32_NT-6.2/generated/simulator/src/mainBase.o] Error 1
generated/simulator/gcc/Makefile:196: recipe for target 'build/MINGW32_NT-6.2/generated/simulator/src/mainBase.o' failed
make[2]: *** Waiting for unfinished jobs....
generated/simulator/gcc/Makefile:155: recipe for target 'generate_assets' failed
make[1]: *** [generate_assets] Error 2
simulator/gcc/Makefile:32: recipe for target 'all' failed
make: *** [all] Error 2
Failed
Failed

=========================================================================================

I ask you kindly how can I solve the problem?

I also ask you what type of file and video size does the TouchGFX application manage?

Thanks

 

Best answer by TechnicalPBG2025

Hi @GaetanGodart ,

I managed to load my video on the display in 800x480 format.

I kindly ask you one last thing, is it possible to upload a video in the 1024x600 format?

Thanks.

2 replies

ferro
Lead
February 6, 2025

Hi @TechnicalPBG2025 

 

Aparat from deleting the screen within the GfxDesigner, delete screen folders from the project structure and 'generated' folder as well.

 

Delete these 3 folders

.\generated

.\gui\include\gui\<screen folder deleted in GfxDesigner>

.\gui\scr\<screen folder deleted in GfxDesigner>

GaetanGodart
Technical Moderator
February 6, 2025

Hello @TechnicalPBG2025 ,

 

It seems you are trying to run a video.
Did you enable the video decoding inside STM32CubeMX?
Are you able to run one of the video provided in the TouchGFX Stock (they are in the right format and codec)?

 

Regards,

Associate II
February 7, 2025

Hello @GaetanGodart,

when I try to insert a video into a screen I get this error window. What is it about?

TechnicalPBG2025_0-1738937283627.png

GaetanGodart
Technical Moderator
February 7, 2025

Hello @TechnicalPBG2025 ,

 

Can you reproduce the bug, then right after, send me the logs and tell me the steps to reproduce the issue so we can investigate?

 

Regards,