Skip to main content
Mikk Leini
Senior
February 2, 2026
Solved

Not fixed JPEG_SWAP_RG macro

  • February 2, 2026
  • 3 replies
  • 204 views

Reporting that this bug is sitll present in CubeMX v6.16.1

Solved: We found a bug while using Hardware JPEG. - STMicroelectronics Community

MikkLeini_0-1770028665716.png

Still JPEG_SWAP_RG, not JPEG_SWAP_RB.

I wish there would be user defined section in jpeg_utils.conf.h to workaround it.

And there's another bug:

Every time I regenerate code, CubeMX erases Utilities/JPEG folder. So the package code has to be manually restored.

Best answer by Souhaib MAZHOUD

Hello @Mikk Leini 

Thanks for your feedback,

The issue has been escalated internally to the dedicated team for further investigation and resolution. (Ticket 226502 This is an internal tracking number and is not accessible or usable by customers.)

Meanwhile, as a temporary workaround, I suggest placing JPEG files in a custom folder other than Utilities to prevent code regeneration from deleting this folder. 

KR, Souhaib

3 replies

Technical Moderator
February 2, 2026

Hello @Mikk Leini 

In order to investigate the problem, could you please attach an IOC that demonstrates the issue? 

BR, Souhaib

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Mikk Leini
Senior
February 2, 2026

I would have to make a new IOC file to demonstrate it without other stuff. But there is wrong parameter name in the screenshot and CubeMX v6.16.1 Help -> About window over it. Even if my IOC file is bad the CubeMX should not be wrong.

Technical Moderator
February 2, 2026

Hello @Mikk Leini 

Which MCU are you using?

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Mikk Leini
Senior
February 2, 2026

STM32N6570

Souhaib MAZHOUDBest answer
Technical Moderator
February 3, 2026

Hello @Mikk Leini 

Thanks for your feedback,

The issue has been escalated internally to the dedicated team for further investigation and resolution. (Ticket 226502 This is an internal tracking number and is not accessible or usable by customers.)

Meanwhile, as a temporary workaround, I suggest placing JPEG files in a custom folder other than Utilities to prevent code regeneration from deleting this folder. 

KR, Souhaib

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.