2023-12-28 04:31 PM - last edited on 2024-01-05 06:57 AM by KDJEM.1
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?
Solved! Go to Solution.
2024-01-05 06:59 AM
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.
2024-01-05 06:59 AM
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.