Using OCRAM as a buffer instead of SDRAM for a camera application

Showing results for 
Search instead for 
Did you mean: 

Using OCRAM as a buffer instead of SDRAM for a camera application

Contributor I

Greetings all,

From my understanding of the camera based applications in AN12103 and AN12110 (webcam and camera to LCD/JPEG respectively), the SDRAM is just used as a buffer until the data is consumed. The data is consumed continuously to display on the LCD, compress as JPEG (needs 8 rows to start compressing if I understand correctly) or stream over USB. So a whole image isn't stored on the SDRAM, which means even the internal RAM can also be used with the OCRAM peripheral.

Is my understanding correct? Can broad level pointers be provided to change these applications to use the internal SRAM? Thanks.

Tags (1)
0 Kudos
1 Reply

NXP TechSupport
NXP TechSupport


  I think OCRAM size of i.MX RT1050 is not sufficient for camera applications, since, at least

double buffering scheme for storing frame buffers may be recommended in order to avoid image

tearing. It takes about 1.2 Mbytes for frame buffers to capture VGA (640 x 480) video frames with

RGB565 (two bytes) pixel format.

  In real applications, ring queue structure of frame buffers may be recommended. This requires to store

several buffers in memory.

Have a great day,




Note: If this post answers your question, please click the Correct Answer button. Thank you!

0 Kudos