cancel
Showing results for 
Search instead for 
Did you mean: 

Internal SRAM write and read back problem

chaitanya
Associate II
Posted on December 10, 2014 at 06:40

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
11 REPLIES 11
ivani
Associate II
Posted on December 17, 2014 at 20:28

It seems like a mismatch between input and output resolution in X/Y. Clearly, there is some correlation between pixels, not a chaotic image.

chaitanya
Associate II
Posted on December 18, 2014 at 17:56

found the problem... and a lot of thanks for help...

It was a grave mistake...As I'm not using the LCD, I was using the LEDs for indicating the status of configuration... Out of instinct... using green for success and red for failure...

And see... Discovery board PD12 for both green LED and for Camera reset....

So... what i actually doing was configuring the camera and giving it  reset..(thinking I'm just blinking the LED)... and the PIXCLK changes back to reset mode... the clock was out of sync with data and was just giving me some garbage image... I changed it...

Now the pics are good... :)