cancel
Showing results for 
Search instead for 
Did you mean: 

OV5640 driver

Afebia
Visitor

Hello everyone.

I have some problems with the configuration of the OV5640 camera module and I need your help.

https://github.com/STMicroelectronics/stm32-ov5640

I am using the OV5640 library created by STM above. I have a card that I have drawn and with this card I get the image from the OV5640 camera and save it to the uSD card via SDRAM. But before I get the image, I am currently working on the configuration of the camera. I have never dealt with DCMI before and I do not know how to use the library written by STM. I do the configuration with I2C but when I use any function in the library, STM enters the hardfault handler

Afebia_0-1742409269201.png

I think the problem is that I do not define which I2C I configure the camera with anywhere. The processor I use is STM32H743ZIT6 and I am trying to make the configuration using I2C1.

I2C_HandleTypeDef hi2c1;
HAL_I2C_Mem_Read(&hi2c1, DevAddress, MemAddress, MemAddSize, pData, Size, Timeout)

For example, in this function, reading is done by sending the hi2c1 handle to the function, but there is no such definition in the OV5640 library that I use and I think I need to do it somewhere but I don't know how to do it or the problem may not be caused by this at all.

Has anyone configured the OV5640 using this library before? If so, what are the solutions? 

Thanks in advance.

 

 

0 REPLIES 0