I am using STM32F7-Discovery board. I've written my project in freeRTOS. The JPEG DMA encoding is implemented the same way as in HAL examples.
Everything works fine until I will change freeRTOS heap size. In this case JPEG file size is much bigger than the "correct one" and it is demaged.
There is a preview in attachments:
OK ONE - filesize [216KB]
BAD ONE - filesize [318KB]
Is a heap-size has an influence on DMA process? Did I forget about something?
Thanks in advice.