Skip to main content
Associate II
February 25, 2026
Question

Issue with MX_JPEG_Init Blocking on STM32N6DK750

  • February 25, 2026
  • 2 replies
  • 166 views

Hello,

I’m trying to add the JPEG encoder to be able to save images in JPEG format to the SD card.

While debugging with LEDs, I noticed that MX_JPEG_Init blocks the program, whereas HPDMA is working correctly.
I have added all the necessary files for JPEG, but it doesn’t seem to activate.

Interestingly, when I disable MX_JPEG_Init, I can see the images on the screen connected to the board without any issue.

I’m wondering if there is a configuration problem with the JPEG or if I’m missing something.

For reference, I’m using the STM32N6 Discovery Kit (STM32N6DK750).

Thanks for any advice!

2 replies

Technical Moderator
February 26, 2026

Hi @HMTb 

Do you reproduce using the provided firmware here?

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.Best regards,FBL
HMTbAuthor
Associate II
February 26, 2026

Hi, yes, I cloned the repository with all submodules recursively to make sure nothing was missing. Then I started modifying the DCMIPP snapshot project to add JPEG support.

Technical Moderator
February 26, 2026

@HMTb  I would suggest to test the example JPEG_EncodingFromOSPI_DMA as it is and see if the issue persists.

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.Best regards,FBL