cancel
Showing results for 
Search instead for 
Did you mean: 

STM32: DCMI sends unreadable data to terminal

nicola3
Associate II

Hi Community!

I managed to communicate between the STM32-L4A6 (Nucleo-L4A6ZG) and the OV5640 camera module. I can read the camera's ID, set its modes, and even get image data. But there's a problem: the characters in the data I receive turn into unreadable data at some point (check the video link). Initially, everything looks good, but then it gets messy.

My goal is to send this data to the computer terminal using LUPART. If anyone knows why this is happening or how to fix it, I'd really appreciate the help.

Thank you in advance!

 

Video: https://www.icloud.com/attachment/?u=https%3A%2F%2Fcvws.icloud-content.com%2FB%2FAScrgf68YNAa28dSwi5pD24zZp8wAXrn1SOrfleYcqcKAARhtyqvfYqg%2F%24%7Bf%7D%3Fo%3DAlzB3DNKsDz4UGd-ztn9VnUKmrXMedOrxs9sE2RF_bqM%26v%3D1%26x%3D3%26a%3DCAogLVOIuo5oPnJCJqcbEdn0gv8T-MDYakDbkNWzz6WsFPsSeBDbl9XmvzEY26fQuskxIgEAKgkC...

10 REPLIES 10
KDJEM.1
ST Employee

Hi @nicola3 ,

Each JPEG stream is divided into packets, which have programmable size. The packets dispatching depends on the image content, and results in a variable blanking duration between two packets.
DCMI_HSYNC is used to signal the start/end of a packet. DCMI_VSYNC is used to signal the start/end of the
stream. For that, please make sure that DCMI_HSYNC and DCMI_VSYNC polarities are programmed according to the camera module configuration.

Thank you.

Kaouthar

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.