Coder Social home page Coder Social logo

digitalcamera_stm32's Issues

Excule me, I want to ask you a question

When I was studying your project,encountered a problem that I didn't quite understand.

This is log:
[LV_CTRL:141] input: 1 0
[LV_CTRL:319] Single Capture Start
[LV_CTRL:326] create IMG005.JPG
Output file write error --- out of disk space?
Improper call to JPEG library in state 0

I hope to receive your reply.
Thank you!
@iwatake2222

ov7670_read, ov7670_write

What is the purpose of the condition in do-while loop (ret != HAL_OK && 0),
it seems loop continue only 1 time.

Can't Get The Camera To Work

I'm facing the same issue as described here. However, in my case, both the HAL_I2C_Mem_Write and HAL_I2C_Master_Transmit are failing while reaching the I2C_WaitOnMasterAddressFlagUntilTimeout One thing to note here is that I'm not getting a timeout failure, rather a acknowledge failure in the below snippet:

while (__HAL_I2C_GET_FLAG(hi2c, Flag) == RESET)
  {
    if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_AF) == SET) <--- Fulfills this if condition
    {
      /* Generate Stop */
      SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP);

      /* Clear AF Flag */
      __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF);

      hi2c->PreviousState       = I2C_STATE_NONE;
      hi2c->State               = HAL_I2C_STATE_READY;
      hi2c->Mode                = HAL_I2C_MODE_NONE;
      hi2c->ErrorCode           |= HAL_I2C_ERROR_AF;

      /* Process Unlocked */
      __HAL_UNLOCK(hi2c);

      return HAL_ERROR;  <----- Fails here
    }
....
}

Any help regarding the same will be very appreciated.

Great project but I can't get SCCB to work!!

Call stack goes:
ov7670_init
ov7670_write
HAL_I2C_Mem_Write
I2C_RequestMemoryWrite
I2C_WaitOnMasterAddressFlagUntilTimeout <-- fails with timeout

Logic analyser says there is a NACK instead of ACK (as expected) but how do I ignore this condition? Only the address part of the transaction is completed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.