cancel
Showing results for 
Search instead for 
Did you mean: 

CMOS data pass to ethernet interface throguh DMA channel

simonlee0311
Associate II
Posted on March 24, 2012 at 04:32

Dear All:

I try to pass my CMOS data to ethernet interface through DMA. (Before transfer to ethernet interface, I will add bmp file header.)

I already show the CMOS data on my LCD. But I don't have any idea how to pass data to ethernet interface.

I have readed the sample code, LwIP, which in stander library director.

My plan is add my CMOS control code in LwIP (httpserver-standalone project).

Anyone has experience or idea about this? Would you please give me some idea to do this?

Thanks.

34 REPLIES 34
simonlee0311
Associate II
Posted on April 27, 2012 at 15:07

Hi, Friends:

Can you please give some advice or practice?

Now I'm not the slightest clue how to proceed.

How do I let the platform to reply my java script request?

I think my problem may be a bit stupid, but I really want to finish it.

So, please. If you have any idea or any suggestion for me, please told me.

Thanks 

 Simon

simonlee0311
Associate II
Posted on April 28, 2012 at 12:05

Dear all:

Does anyone using FSMC to control TFT and Ex-SRAM together?

I using CMOS to catch the image and DMA2_Stream1 to move data to Ex-SRAM.

My question is 

FSMC time settings I need to separate the settings? Or should be based on which one to set? TFT or Ex_SRAM?

Because I found image show on TFT is good but on web side (read from Ex-SRAM) has color error.

Simon
Posted on April 28, 2012 at 18:15

Because I found image show on TFT is good but on web side (read from Ex-SRAM) has color error.

This is more likely because the BMP encoding is not identical to the TFT one. You need to understand the various encoding schemes, and how to translate between them.

You could always post the BMP, and you could also post the video/graphic format the camera uses, or a link to it's documentation. These are things which would permit others to provide more useful analysis.

As I've suggested previously there are some simple ways of confirming that the data on the STM32 side matches that on the PC side.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
simonlee0311
Associate II
Posted on April 30, 2012 at 10:50

Dear Clive1:

Thanks for you remind me to check the data format.

I found the bug of my image data.

I forgot add the color mask, that what my image always color error.

Thank you again.

Now I am try to fix another problem. How to load image on the web which don't use

web refresh.

Simon

simonlee0311
Associate II
Posted on May 14, 2012 at 09:13

Dear all:

I am back. I already fixed color error and don't refresh whole page to show image.

Thanks guys, thanks your kindly help.

Now, I have a question about DMA doublebuffer mode.

Double buffer mode:

M0AR -> Buffer 0 start address

M1AR -> Buffer 1 start address

Does it means filled two buffer at one time? Because I can't found any data store from M1AR . I can not found any detail description about double buffer mode in RF document.

Please if you have any experience using DCMI and DMA bouble buffer mode please to share I willing to read!

Thanks 

Simon