2022-09-07 01:23 AM
Hi,
I try to make stm32l496 as a video camera device. I use Ov5640 sensor. The aim is that taking photos and send them to the host device directly (like a webcam).
The challenge is that when I try to use high resolutions, due to I don't use any memory, how I can handle it and send the data through otg? I want to use WVGA resolution (800x480) with JPEG format.
Solved! Go to Solution.
2022-09-15 03:51 AM
Hi @Jävad Maleki ,
For DCMI High resolution, you should use the Double-buffer mode.
But, the Double-buffer mode is not available in STM32L496 devices.
You can refer to the section "4.4.8 Double-buffer mode for medium resolutions (snapshot or continuous capture)" in this AN5020 Digital camera interface (DCMI) on STM32 MCUs
When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.
Imen
2022-09-07 06:10 AM
Hello @Javad,
You should consider some parameters like: the pixel clock, the supported data format...
Higher resolution require maximum DCMI pixel clock.
You can check the product datasheet, and I recommend that you refer to this AN5020 Digital camera interface (DCMI) on STM32 MCUs
that helps you on DCMI configuration.
Imen
2022-09-15 03:51 AM
Hi @Jävad Maleki ,
For DCMI High resolution, you should use the Double-buffer mode.
But, the Double-buffer mode is not available in STM32L496 devices.
You can refer to the section "4.4.8 Double-buffer mode for medium resolutions (snapshot or continuous capture)" in this AN5020 Digital camera interface (DCMI) on STM32 MCUs
When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.
Imen