iwatake2222 / digitalcamera_stm32 Goto Github PK
View Code? Open in Web Editor NEWThis is a project to create a digital camera with STM32 and OV7670
This is a project to create a digital camera with STM32 and OV7670
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
I need to capture the image and send it to the server with the sim800l gsm module. I can handle sim800l, but How can I capture images with a camera and in what way should I send them?
What is the purpose of the condition in do-while loop (ret != HAL_OK && 0),
it seems loop continue only 1 time.
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.