cancel
Showing results for 
Search instead for 
Did you mean: 

DCMI / DMA interface not working while camera gives all the correct signals via oscilloscope

NGall.5
Associate II

I am currently doing a product that includes the STM32L4R5ZI chip and the Himax HM01B0 Camera.

PS: This is a main.c file with only the camera part which we used to debug.

CAMERA DS

To the problem, have the main.c on the side:

Line 67-75 | The I2C commands for the camera get saved to be used later.

Line 77-79 | Initialize the buffer which we then pass to the DMA later. Since we are using monocrome QVGA 8-bit We have 324 width * 244 height /4 bytes per word.

Line 117 | Configured the timer3 channel 4 to output a 4 MHz master clock signal which is on the lower end that the camera will accept.

Line 119-122 | The camera now gets sent the initialisation commands after the masterclock is running.

Line 135 | Starting the DCMI transfer via DMA in Snapshot mode. Command 1 to the camera also said use OneShot mode.

Line 137 | Sending the command to the camera to take one picture.

All the data lines and HSync/ VSync are correctly connected. The camera is behaving as expected when looking at it through the oscilloscope. We see the picture clock, hsync and vsync trigger as expected.

After the supposed image capture I read out the register with debugger. No change in the buffer.

Any idea what could be wrong here?

Thanks for your time.

0 REPLIES 0