2024-10-16 09:18 AM
I am trying to save a much RAM as Possible in my project and realized there are some buffers associated with MJPEG that are taking up a noticeable amount of memory. I am not using any videos in my project and wondering if there is a setting I missed that would allow me to just remove MJPEG support and free up that memory.
I am also not using any .JPEG (Only .PNG), so I tried just unchecking Multimedia JPEG in CubeMx, but CubeMx freezes upon doing so. Is JPEG necessary for all touchGFX projects?
Solved! Go to Solution.
2024-10-17 02:44 AM - edited 2024-10-17 04:42 AM
Hello @EthanMankins,
No, you don't necessarily need the JPEG support for you project if you are not using videos. In order to remove the support for video, you have to undo some of the configurations.
Regarding unchecking JPEG, you should first remove the entries for MDMA under System Core, and then uncheck JPEG.
The configurations that you have to revert are mentioned here:
TouchGFX Generator Video Decoding
If you have followed the steps, and there are still some files related to video after regenerating code from both STM32CubeMX and TouchGFX, then please remove them manually.
I hope this helps you!
Don't hesitate to ask more questions if you have any!
2024-10-17 02:44 AM - edited 2024-10-17 04:42 AM
Hello @EthanMankins,
No, you don't necessarily need the JPEG support for you project if you are not using videos. In order to remove the support for video, you have to undo some of the configurations.
Regarding unchecking JPEG, you should first remove the entries for MDMA under System Core, and then uncheck JPEG.
The configurations that you have to revert are mentioned here:
TouchGFX Generator Video Decoding
If you have followed the steps, and there are still some files related to video after regenerating code from both STM32CubeMX and TouchGFX, then please remove them manually.
I hope this helps you!
Don't hesitate to ask more questions if you have any!