cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with f_write function (STM32F769I EVAL)

mthanh2602
Associate II

Hello everyone,

I have a problem with my code. I'm trying to write a program to take picture from camera and save it as motion jpeg video (MJPEG) in to USB. I build already the header and the structure of MJPEG file but it's really weird when I try to run that file.

I had checked and found the output data of frames and the idx1 was wrote by f_write was incorrect. Sometime data were wrote 2 byte again. 

The header data I wrote to the begin of file is always right, but the data that i wrote to frame place and idx1 place usually has problem.

Anybody have experience about this? 

I am very appreciate with any advise. Thank so much.

0690X000006CXbrQAG.png

0 REPLIES 0