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

Code breaks at set datasize #3

Open
Hari198 opened this issue Dec 5, 2018 · 3 comments
Open

Code breaks at set datasize #3

Hari198 opened this issue Dec 5, 2018 · 3 comments

Comments

@Hari198
Copy link

Hari198 commented Dec 5, 2018

I have tried downloading the updated code 3.3K resistors pullup was used on the I2C pins. The code seems to break down at
// SPI.setDataSize(SPI_DATA_SIZE_8BIT); // set to 8 bit mode
SPI.setDataSize(DATA_SIZE_8BIT); // set to 8 bit mode

I had to remove SPI_DATA_SIZE_8BIT, as it was found only in the SPI library for F4 series. The blue screen shows that the init is done and nothing happens after that. It seems to break down at 'setDatasize' Please help.
Thanks!

@stevstrong
Copy link
Owner

What do you mean under code "breaks"?
What is the last information displayed on the screen?
SPI.setDataSize() only sets some registers, it cannot hang.
So most probably the program stops somewhere in your loop.
Insert some Serial.print() messages to track where exactly it stops.
And double-check your connection, maybe the sync signals are not detected.

@Hari198
Copy link
Author

Hari198 commented Dec 6, 2018

Hi, Thanks for the response. I tried Serial print and find that the program does not move beyond camera.waitForHref(); When I uncomment this line the displays shows a black screen with one line of pixels to the left, which sort of changes pixel color when pointing the camera at something.
HREF is connected to PB3 and every other pin is connected and checked. PWDN is GND and RESET is connected to VCC. tried them floating and had the same result.

@stevstrong
Copy link
Owner

It looks like the camera is not working correctly, as it does not provide the sync signals.
You should check the pixel clock which comes from the camera, and the other sync signals, too.

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

No branches or pull requests

2 participants