STM32U575I-EV DCMI example, expected performance
I am currently using the STM32U575I-EV; I was able to flash the DCMI example project's code from STM32CubeU5 (Projects\STM32U575I-EV\Examples\DCMI\DCMI_ContinousCap_EmbeddedSynchMode) and I see the onboard camera's feed displaying on the LCD as expected.
I wanted to measure the frame rate. To do this, I modified the behavior of LED5 (labelled LD5 on the eval kit; corresponding GPIO pin at PB7 in the CN14 header) such that each toggle represents a frame that got captured; with a logic analyzer, I count the number of edges within 1 sec and get the approx. frame rate. In the code, I comment out the main.c, BSP_LED_Off() function call, like so:
int main(void)
{
/* init code ... */
while (1)
{
/* LCD and suspend/resume code ...*/
if(frame_captured != 0)
{
frame_captured = 0;
BSP_LED_Toggle(LED5);
}
// else
// {
// BSP_LED_Off(LED5);
// }
}
}
After doing this, the logic analyzer output showed about 7.5fps. This seems somewhat low, since the OV5640 camera's datasheet claims its maximum can be 120fps at the 320x240 resolution. So I wanted to ask if there are any suggestions for improving the frame rate. My company is working on a project that would like to achieve at least 720p 15fps with a similar setup.
