cancel
Showing results for 
Search instead for 
Did you mean: 

Disable/Remove MJPEG from Project

EthanMankins
Senior

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?

1 ACCEPTED SOLUTION

Accepted Solutions

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:

Video Decoding 

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!

Mohammad MORADI
ST Software Developer | TouchGFX

View solution in original post

1 REPLY 1

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:

Video Decoding 

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!

Mohammad MORADI
ST Software Developer | TouchGFX