Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

csi2_reva: Incorrect line count in end of frame detection in void MXC_CSI2_RevA_DMA_Handler() #1147

Open
aniktash opened this issue Aug 30, 2024 · 0 comments
Assignees

Comments

@aniktash
Copy link
Contributor

The line_cnt starts from 0, the condition should be >=, not >:
The frame complete comes late as the condition is not met after the last line is received.
This does not affect the one-shot capture, but when testing with a free-running camera, this causes an issue.

void MXC_CSI2_RevA_DMA_Handler()
{
...
// if (line_cnt > csi2_state.req-> lines_per_frame) {
**if (line_cnt >= csi2_state.req-> lines_per_frame) { **

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants