Skip to main content
MCiau.1
Associate
March 8, 2023
Solved

STM32H7 JPEG Encoding does not work with DMA

  • March 8, 2023
  • 4 replies
  • 2074 views

I'm trying to run the JPEG_EncodingFromFLASH_DMA example and the HAL_JPEG_GetDataCallback & HAL_JPEG_DataReadyCallback never executed.

If I try the polling method, the process is successful.

I've disabled the D-Cache & I-Cache.

This topic has been closed for replies.
Best answer by FBL

@MCiau.1​ Hi again,

Could you provide more details where it crashes? Status of JPEG registers after HAL_JPEG_Init(); would help as well.

For a while I thought of another issue. but this example is working fine for me on Discovery H747.

Thank you for your contribution.

Firas

4 replies

ST Technical Moderator
March 9, 2023

Hello @MCiau.1​ and welcome to ST Community

Could you specify the STM32H7 board used? Disco/EVAL?

Thanks

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL
MCiau.1
MCiau.1Author
Associate
March 10, 2023

Hello @F.Belaid​ , thank you for your help.

I'm using the Portenta H7 board which is based on the STM32H747XI MCU.

Do you have any suggestions on how to get JPEG to work with DMA Mode?

Regards!

ST Technical Moderator
March 13, 2023

Hello @MCiau.1​,

Issue tracked internally. I will get back to you as soon as possible.

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL
FBLBest answer
ST Technical Moderator
March 15, 2023

@MCiau.1​ Hi again,

Could you provide more details where it crashes? Status of JPEG registers after HAL_JPEG_Init(); would help as well.

For a while I thought of another issue. but this example is working fine for me on Discovery H747.

Thank you for your contribution.

Firas

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL