Hi everyone,
I am currently working on porting MicroPython code to C for the OpenMV H7 R1, which uses the MT9M114 sensor. I am facing an issue with configuring the sensor via I2C to collect images using DCMI.
Here are the details of the problem:
- Setup: I am using the main code[ GitHub - openmv/openmv: OpenMV Camera Module] and have traced the MicroPython implementation to the C level.
- Configuration: To collect images from the sensor via DCMI, I need to configure the sensor using I2C.
- Issue: The problem arises in the
set_frame_size
function. After loading the values into the registers, I attempt to set the configuration and monitor the OK bit in the command register (R0x0080) as per AND9572. However, the OK bit is not getting set; it remains cleared. - Status Check: When I check the Result Status Register (
sysmgr_cmd_status
0xDC02), it returns 0 [ENOERR – command successful].
Despite the status indicating success, the OK bit in the command register does not get set. I have attached the relevant code as replay for reference.
Could anyone provide insights or suggestions on what might be causing this issue and how to resolve it?