2014-12-09 09:40 PM
Hi, I've bought a STM32F4-Discovery board and trying to capture images from the camera. I'm trying to transfer the image to SRAM(112K) instead of LCD-RAM as given in the example code. After the data is read back from the SRAM and the image is seen, it just shows junk. I've checked the pins with a scope to ensure PIXCLK is running. I'm really unsure whether the camera data is being written into SRAM or not.
Can anyone help on this... #dcmi-sram-bmp #dcmi-sram-bmp
2014-12-09 11:11 PM
2014-12-10 02:58 AM
2014-12-10 03:58 AM
So, may be something with DCMI, or DMA initialization?
Just for the test configure the DMA for a single transfer and check if the corresponding transfer complete flag gets set.2014-12-11 03:14 AM
I'm using DMA circular mode. Anyways, I checked the flag and it shows the transfer complete.
2014-12-11 03:51 AM
2014-12-12 10:54 AM
This afternoon, I discovered that another array is using the same locations... I changed the location address but no luck... Will have to do the pattern test... Will update if I find the bug...
2014-12-13 03:35 PM
2014-12-15 11:15 AM
2014-12-17 10:15 AM
that's true regarding the clock...
There is an update... the HS needs to be chaged to Low as per the ov9655 datasheet... unlike the example code with HREF inverted... with me HREF inverted or normal does not have any change... only DCMI HS polarity is causing the data change... HS High is causing all pixels to be black... As suggested.. I write a pattern and this gets replaced with the pixels.. the intensity is also changing with respect to light... I covered it completely and the image pixels are dark...but still garbage.... I've attached the images... ________________ Attachments : Dark.BMP : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hzyl&d=%2Fa%2F0X0000000bRh%2Fjz3AKOXIQYHxRnau6L5g2.LXP_76ayAkUiUqkIcvekM&asPdf=falseLight.BMP : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hzyg&d=%2Fa%2F0X0000000bRg%2FOm.z69_DLN60zlYPiT94ofrH_1zf.RI5kNP4VQOdsRw&asPdf=falsePattern.BMP : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hzpk&d=%2Fa%2F0X0000000bRe%2FQzGou9Y0afLCs4eerNS4D_pPZbTFfHC5rxyZCUSzDM0&asPdf=false