cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H723 OV5640 DCMI HAL_DCMI_FrameEventCallback() missing

kbch
Associate II

Hello

I have this Board from WeActStudio: https://github.com/WeActStudio/WeActStudio.MiniSTM32H723

There is the following example which allows displaying the camera on the onboard LCD: https://github.com/WeActStudio/WeActStudio.MiniSTM32H723/blob/master/Examples/08-DCMI2LCD/Core/Src/main.c

The example project is generated with STM32CubeMX for Keil uVision. When building and flashing the example with Keil uVision, everything works fine.

I would like to port this example project to a Makefile project. I have used STM32CubeMX to generate a Makefile project. The .ioc file is given in the example project.

This worked fine. I can build the project after manually adding a few .c files into the Makefile, which CubeMX didn't catch. After flashing the resulting binary, the onboard LCD is working fine. But the Software starts to hang during capture start as there are no HAL_DCMI_FrameEventCallback(). I can verify this with a debugger.

The camera seems to be running, checking with an oscilloscope, I can see data on the parallel data bus of the camera.

 

Any idea why I don't get this callback when building the Project in a Makefile environment?

1 ACCEPTED SOLUTION

Accepted Solutions
kbch
Associate II

I have found a solution to this issue. The Buffer for the DMA needs to be placed in one of the Dx memory regions. If this isn't the case, there is no callback occuring.

View solution in original post

1 REPLY 1
kbch
Associate II

I have found a solution to this issue. The Buffer for the DMA needs to be placed in one of the Dx memory regions. If this isn't the case, there is no callback occuring.