2025-02-06 01:27 AM
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
Solved! Go to Solution.
2025-02-11 05:04 AM
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.
2025-02-06 03:03 AM
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>
2025-02-06 08:20 AM
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,
2025-02-07 06:09 AM
Hello @GaetanGodart,
when I try to insert a video into a screen I get this error window. What is it about?
2025-02-07 06:14 AM
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,
2025-02-11 12:56 AM
Hi @GaetanGodart ,
I was able to load a movie into the TouchGFX environment and launching the simulator it plays correctly.
When I go to program the 7" display (RVT70HSSNWC00-B), the programming is successful but the display shows a black screen.
If, however, I delete the video screen and reprogram everything as done previously, the display shows everything correctly.
How can I solve it?
Thanks
2025-02-11 01:30 AM
Hello @TechnicalPBG2025 ,
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)?
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?
What board are you using to control your display?
I need these information to help you.
Can you also share your .ioc file (STM32CubeMX file) and maybe your TouchGFX project?
Regards,
2025-02-11 03:15 AM
Hello @GaetanGodart ,
NO, I have not enabled decoding inside STM32CubeMX.
I tried loading one of the videos provided and it plays fine.
The board mounted on the display is the 70STM32H7 Rev1.2
2025-02-11 05:04 AM
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.
2025-02-14 01:15 AM
Hello @TechnicalPBG2025 ,
I am glad you were able to achieve your desired result.
There is not restriction on video size but as you get to bigger screen size, you run into issues such as transfer speed or computation speed so make sure your board is powerful enough.
Regards,