2014-11-16 09:01 PM
Hi,
I want to implement DCMI on the STM32F429I Discovery using OV7670. I am using external clock of 20MHz for OV7670 clock source. I can get the frame interrupt, but cannot get the dma interrupt working. Also, no data is written to the buffer. My code is posted below. So my question is can i actually implement DCMI with STM32F429 and use lcd at the same time? I am using lcd driver without ltdc, so the dcmi pin is still not used. And, how can I write data received to DCMI to the data buffer? Any help will be greatly appreciatedThanksVincentcode https://www.dropbox.com/s/rcdn0erle0epxna/CameraTest.zip?dl=0 #stm32f429 #dcmi #lcd #dma2015-08-28 07:22 AM
Interesting. It looks like the DMA does not the job correctly.
Try to check status of DMA when the DMA IRQ arrives, looking for errors. To make sure we have belts and suspenders, declare your buffer as uint32_t, so you naturally get word alignment.2015-08-29 04:25 AM
Hi
I will check it
on Monday
2015-08-31 12:51 AM
Everything remained as before
DMA status at the time of interruption - ''DMA Mem0 process success''2015-08-31 01:15 AM
How did you wire the camera. Having a quick look in your code, I did not see how VSYNC is connected.
2015-08-31 02:06 AM
2015-08-31 02:35 AM
PB7 is not configured in our code.
2015-08-31 03:02 AM
I noticed this error several days ago.
I corrected her, but no changes http://code.re/8gi2015-08-31 04:13 AM
I updated
version of
Hal
.Now
something is happening
2015-08-31 06:06 AM
What's happening here is probably only related to a different code/data/heap arrangement.
Your #1 problem is to understand why DMA produces no errors (do not trust HAL, check registers) while the target buffer is not overwritten. Does data present in the buffer still survive the DMA transfer ?2015-09-01 12:52 AM