imxRT1060 evk camera image capture and transfer.

Showing results for 
Show  only  | Search instead for 
Did you mean: 

imxRT1060 evk camera image capture and transfer.

Contributor II


We are working on the imxRT1060 evk.

In our application, we have to capture an image and send RAW data to mobile device.

We have taken CSI example code and able to start camera.

And according to the camera flow, we understand that 

CAMERA_RECEIVER_GetFullBuffer() function will give full camera FB image for that instance in inactiveFrameAddr variable.

For our application for image data transfer, we have taken value from inactiveFrameAddr and assign to the char pointer, and we took the strlen of those data to manage the raw data transfer(RGB565) and send those data to the mobile in from of chunk of 244 bytes packet.

Once mobile receive the data and convert the RAW data to any format to show the image on mobile, we not able to display the same image as we show on the imxRT1060 LCD. Image shown on mobile is not in proper pixel format.

Can you please help us to make the image steady.

Is our flow for image capture is right?

What will be the total size of Frame Buffer of single image frame (inactiveFrameAddr)?

Please let me know if something misses here.

Thank you 

2 Replies

Contributor II

HI Carlose

Thank you for updated,

I am able to send image to my mobile device and on mobile device i am able to show correct image, our issue is related to storing the received data in proper formate on mobile device.

Now, I have face some other issue, in MCUxpresso default CSI camera example has 272x480 resolution setting.

When i change it to 480x640 then camera example stop working.

Can you please suggest what all other changes required to make my CSI camera with 480x640 resolution .

Thank you

NXP Employee
NXP Employee

Hi niket,

You should verify the color format since the camera output. The CSI camera could be configured with I2C commands, you should ensure the colors order (Red-Green-Blue or Blue-Green-Red), besides of the number of bits and the alignment.

Then, when creating the buffer, verify the endianness of the transfer, ensuring proper LSB or MSB transfer first according with the expected format of the mobile application.

You should also verify the packet size and format of the transport layer used to transfer the buffers from the i.MXRT device to the mobile application.

Hope this will be useful for you.
Best regards!
Note: If this post answers your question, please click the Correct Answer button. Thank you!