cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Adventurer
Adventurer
3,144 Views
Registered: ‎09-26-2007

XPS_TFT: Video Memory Adress

Jump to solution

Hello,

 

The problem come when I try to ouput two images: an original image with noise and its filtered image. I can control the VGA without problem but I do not understand how the video memory configuration works. I would like to  This is an example code that shows what I am trying to do:

 

 

 

  // Mapped Memory: 0x0 -0x03FFFFFF 64MB DDR       

  // 2MB (0x001F0000) is needed for the xps_tft controller to storage the 640x480 image

 

 

  ...................................   

  ...................................

  ...................................

 

   // write the original image    ( 0X02000000 is the BASE ADDRESS MEMORY for the video memory. This is defined in xps)
  ...................................   

  ...................................

  ...................................

 

  sleep(100);                                                                       // wait to see the original image     

 

 

  XTft_SetFrameBaseAddr(&TftInstance,0x03000000);    // change the base address for the video memory to write the filtered image 

 

 

 // write the filtered image .

 

 ....................................

 ....................................

 ......................................

 

 sleep(100);                                                                        // wait to see the filtered image     

 

 

XTft_SetFrameBaseAddr(&TftInstance,0x03000000);     // return to the original image 


....................................

....................................

......................................

 

 

I can see the original image perfectly but the filtered appears incorrectly. I do not think it is a problem with the memory range cos :

                      

 

(BASE_ADDRESS    +  2MB)

original image range:                     0x0200 0000      -     0x021FFFFFF  

filtered image range:                      0x0300 0000      -     0X031FFFFF  

 

 

Does anyone know what I am doing wrongly? 

 

 

 

Thanks in advance

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Adventurer
Adventurer
3,636 Views
Registered: ‎09-26-2007

Re: XPS_TFT: Video Memory Addres

Jump to solution

Hello,

 

I have found out where the problem was. Everytime the base address video frame is changed, it is very important to clean the screen to initialize that new memory.

 

 

Bye.

 

 

 

 

View solution in original post

0 Kudos
1 Reply
Highlighted
Adventurer
Adventurer
3,637 Views
Registered: ‎09-26-2007

Re: XPS_TFT: Video Memory Addres

Jump to solution

Hello,

 

I have found out where the problem was. Everytime the base address video frame is changed, it is very important to clean the screen to initialize that new memory.

 

 

Bye.

 

 

 

 

View solution in original post

0 Kudos