2025-03-06 4:08 PM
Hello everyone.
I would like to use the STM32H747I-DISCO and B-CAMS-OMV (OV5640) module to view HD resolution images on my PC.
I found a good example in the link below that uses the hardware I have.
However, when I add the code to set the HD (1280*720 ) resolution to the example code and run it, the camera is not recognized by the PC.
Is it possible to stream high resolution images or send captured images with the H747i-DISCO board and B-CAMS-OMV module?
I just want to confirm that it is possible or impossible.
2025-03-07 1:21 AM
Hello @LiamSmith and welcome to the community;
To support the higher resolution you need to make sure that the DMA is configured to support the higher resolutions.
In case of a resolution that is 1280x1024, the image size is 655360 words (32 bits). This size must be
divided into equal buffers, with a maximum size of 65535 for each of them. To be correctly received, the image
must then be divided into 16 frame buffers, with each frame buffer size equal to 40960 (lower than 65535).
An example is developed and described using this DMA configuration in AN5020 Section 8.3.6: Resolution capture (YCbCr data format).
Also, I think this FAQ How to improve DCMI frame rate: An example using a ov5640 camera module can help you.
OV5640 sensor is supposed to support up to 5 Megapiexel (2592×1944) resolution. Also, I don't find any problem for HD resolution to be supported by the STM32H7. The DCMI interface is very sensible to latency for memory access, for that make sure that no huge concurrent access to the memory by other masters.
What do you mean by "the camera is not recognized by the PC."? Do you have the same issue posed here?
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.