2015-06-25 01:35 PM
I used CubeMX to create a DCMI camera interface project for the F407 Discovery board. Just after MX_DCMI_Init is called, a VSYNC interrupt is generated. After that VSYNC ints are turned off and no DCMI operations occur.
This is not surprising since the VSYNC ISR disables this interrupt. /* Disable the VSYNC interrupt */ __HAL_DCMI_DISABLE_IT(hdcmi, DCMI_IT_VSYNC); I've searched through the product code and can find no place other than in MX_DCMI_Init that this interrupt is enabled.I've looked as the DCMI example project for the F4xxG EVAL board and it has the same code with no obvious code that re-enables the interrupt. I assume this example works, and it can't without VSYNC interrupts being re-enabled, so my question is:How does the VSYNC interrupt get re-enabled in CubeMX generated code or the F4 Eval board example code, once it is disabled by its ISR ?Thanks for your help,Dave2015-06-25 01:53 PM
Have you tried reenabling it in your callback?
I think this is what you need to do.2015-06-25 03:26 PM