2019-07-31 06:38 AM
Hi,
I would like to change the example JPEG_DecodingFromFLASH_DMA to decode the JPEG file data to a frame buffer in RGB565 and then send this buffer to a 320x240 SPI TFT display. Only using the internal SRAM of the STM32H743VI.
Is it possible?
2019-07-31 07:03 AM
Hi. Yes, this is possible. Change LCD_FRAME_BUFFER to address of internal AXI SRAM (0x24000000). And DMA2D output format to DMA2D_OUTPUT_RGB565.
2019-07-31 12:58 PM
Thanks oleksandr, it worked.
I had to create a buffer with 115200 bytes to receive the JPEG decoder output and then use the DMA2D to convert to RGB565 and transfer this buffer to the display frame buffer and then I use DMA to transfer from frame buffer to the SPI TFT. All fitted in the AXI SRAM.
Would be possible do it using only one buffer?
Use the DMA2D to transfer directly to the SPI for example.
2019-08-01 01:18 AM
You can transfer decoded buffer to SPI TFT after DMA2D conversion is complete. Use display frame buffer for DMA2D output.